blob: 820080c210aea7c436423ab769d5c9436bf09c1a [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner01d3e382006-11-14 00:59:52 +00003# Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
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#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if 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
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=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
Reid Spencera773bd52006-08-04 18:18:08 +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
240# Be Bourne compatible
241if 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
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if 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
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
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
Reid Spencera773bd52006-08-04 18:18:08 +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"
528else
529 as_executable_p=:
530fi
531rm -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 Lattner01d3e382006-11-14 00:59:52 +0000718PACKAGE_VERSION='2.0cvs'
719PACKAGE_STRING='llvm 2.0cvs'
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>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000833DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000838ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000839TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000840ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000841EXTRA_OPTIONS
842CXX
843CXXFLAGS
844ac_ct_CXX
845LEX
846LEXLIB
847LEX_OUTPUT_ROOT
848FLEX
849YACC
850YFLAGS
851BISON
852NM
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
884INSTALL_LTDL_TRUE
885INSTALL_LTDL_FALSE
886CONVENIENCE_LTDL_TRUE
887CONVENIENCE_LTDL_FALSE
888LIBADD_DL
889ECHO
890AR
891STRIP
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897ETAGSFLAGS
898LLVMGCC
899LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000900USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000901HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000902HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000903ALLOCA
904MMAP_FILE
905LLVMCC1
906LLVMCC1PLUS
907LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000908LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000909LLVMGCC_VERSION
910LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000911LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000912SHLIBEXT
913LLVM_PREFIX
914LLVM_BINDIR
915LLVM_LIBDIR
916LLVM_DATADIR
917LLVM_DOCSDIR
918LLVM_ETCDIR
919LLVM_INCLUDEDIR
920LLVM_INFODIR
921LLVM_MANDIR
922LLVM_CONFIGTIME
923LIBOBJS
924LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000925ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932CPPFLAGS
933CPP
934CXX
935CXXFLAGS
936CCC
937YACC
938YFLAGS
939CXXCPP
940F77
941FFLAGS'
942ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000943projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000944projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000945projects/llvm-test
946projects/llvm-reopt
947projects/llvm-gcc
948projects/llvm-java
949projects/llvm-tv
950projects/llvm-poolalloc
951projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000978# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000987includedir='${prefix}/include'
988oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000998
999ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001000ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001001for ac_option
1002do
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001005 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001006 ac_prev=
1007 continue
1008 fi
1009
Reid Spencera773bd52006-08-04 18:18:08 +00001010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
John Criswell7a73b802003-06-30 21:59:07 +00001014
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1016
Reid Spencera773bd52006-08-04 18:18:08 +00001017 case $ac_dashdash$ac_option in
1018 --)
1019 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001020
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1025
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1030
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1037
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1040
Reid Spencera773bd52006-08-04 18:18:08 +00001041 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001042 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001044 datadir=$ac_optarg ;;
1045
Reid Spencera773bd52006-08-04 18:18:08 +00001046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1052
John Criswell7a73b802003-06-30 21:59:07 +00001053 -disable-* | --disable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001060 eval enable_$ac_feature=no ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001071
1072 -enable-* | --enable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001079 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1100
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1105
Reid Spencera773bd52006-08-04 18:18:08 +00001106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
John Criswell7a73b802003-06-30 21:59:07 +00001112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1135
Reid Spencera773bd52006-08-04 18:18:08 +00001136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
John Criswell7a73b802003-06-30 21:59:07 +00001141 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001142 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001146 localstatedir=$ac_optarg ;;
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1152
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1173
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1209
Reid Spencera773bd52006-08-04 18:18:08 +00001210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
John Criswell7a73b802003-06-30 21:59:07 +00001220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1229
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1240
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1245
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1250
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1257
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1262
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1265
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1268
1269 -with-* | --with-*)
1270 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001276 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001277
1278 -without-* | --without-*)
1279 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001285 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1308 ;;
1309
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001316 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 ;;
1326
1327 esac
1328done
1329
1330if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1334fi
1335
Reid Spencera773bd52006-08-04 18:18:08 +00001336# Be sure to have absolute directory names.
1337for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001341do
Reid Spencera773bd52006-08-04 18:18:08 +00001342 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001343 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001346 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001349done
1350
1351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
1357
1358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367fi
1368
1369ac_tool_prefix=
1370test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372test "$silent" = yes && exec 6>/dev/null
1373
1374
Reid Spencera773bd52006-08-04 18:18:08 +00001375ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376ac_ls_di=`ls -di .` &&
1377ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1383
1384
John Criswell7a73b802003-06-30 21:59:07 +00001385# Find the source files, if location was not specified.
1386if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001390$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001394echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)[^/].*/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\).*/{
1408 s//\1/
1409 q
1410 }
1411 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001412 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001413 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001414 srcdir=..
1415 fi
1416else
1417 ac_srcdir_defaulted=no
1418fi
Reid Spencera773bd52006-08-04 18:18:08 +00001419if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001422 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001423fi
Reid Spencera773bd52006-08-04 18:18:08 +00001424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001427 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001428 pwd)`
1429# When building in place, set srcdir=.
1430if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432fi
1433# Remove unnecessary trailing slashes from srcdir.
1434# Double slashes in file names in object file debugging info
1435# mess up M-x gdb in Emacs.
1436case $srcdir in
1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438esac
1439for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444done
John Criswell7a73b802003-06-30 21:59:07 +00001445
1446#
1447# Report the --help message.
1448#
1449if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001453\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001454
1455Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460Defaults for the options are specified in brackets.
1461
1462Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
John Criswell7a73b802003-06-30 21:59:07 +00001473Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001477 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479By default, \`make install' will install all the files in
1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482for instance \`--prefix=\$HOME'.
1483
1484For better control, use the options below.
1485
1486Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001506_ACEOF
1507
1508 cat <<\_ACEOF
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001519 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001520 esac
1521 cat <<\_ACEOF
1522
1523Optional Features:
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001527 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001528 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001530 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001531 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001532 --enable-pic Build LLVM with Position Independent Code (default
1533 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001534 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001535 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001536 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1537 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001538 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001539 --enable-shared[=PKGS] build shared libraries
1540 [default=enable_shared_default]
1541 --enable-static[=PKGS] build static libraries
1542 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001543 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001544 optimize for fast installation
1545 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001546 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001547
1548Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001551 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1552 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001553 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001554 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-pic try to use only PIC/non-PIC objects [default=use
1557 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001558 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001559 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 CC C compiler command
1563 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001568 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001571 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1572 the first program found out of: `bison -y', `byacc', `yacc'.
1573 YFLAGS The list of arguments that will be passed by default to $YACC.
1574 This script will default YFLAGS to the empty string to avoid a
1575 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001576 CXXCPP C++ preprocessor
1577 F77 Fortran 77 compiler command
1578 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <llvmbugs@cs.uiuc.edu>.
1584_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001585ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001591 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001592 ac_builddir=.
1593
Reid Spencera773bd52006-08-04 18:18:08 +00001594case "$ac_dir" in
1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596*)
John Criswell7a73b802003-06-30 21:59:07 +00001597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604esac
1605ac_abs_top_builddir=$ac_pwd
1606ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607# for backward compatibility:
1608ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001609
1610case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001611 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001623esac
Reid Spencera773bd52006-08-04 18:18:08 +00001624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001625
Reid Spencera773bd52006-08-04 18:18:08 +00001626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001634 else
1635 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001638 done
1639fi
1640
Reid Spencera773bd52006-08-04 18:18:08 +00001641test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001642if $ac_init_version; then
1643 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001644llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001645generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001646
Reid Spencera773bd52006-08-04 18:18:08 +00001647Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001651
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001652Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001653_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001654 exit
John Criswell7a73b802003-06-30 21:59:07 +00001655fi
Reid Spencera773bd52006-08-04 18:18:08 +00001656cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001657This file contains any messages produced by compilers while
1658running configure, to aid debugging if configure makes a mistake.
1659
Tanya Lattner01d3e382006-11-14 00:59:52 +00001660It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001661generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001662
1663 $ $0 $@
1664
1665_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001666exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001667{
1668cat <<_ASUNAME
1669## --------- ##
1670## Platform. ##
1671## --------- ##
1672
1673hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681
1682/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1683/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1684/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001685/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001686/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1687/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1688/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689
1690_ASUNAME
1691
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 echo "PATH: $as_dir"
1698done
Reid Spencera773bd52006-08-04 18:18:08 +00001699IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001700
1701} >&5
1702
1703cat >&5 <<_ACEOF
1704
1705
1706## ----------- ##
1707## Core tests. ##
1708## ----------- ##
1709
1710_ACEOF
1711
1712
1713# Keep a trace of the command line.
1714# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001715# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001716# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001717# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001718ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001719ac_configure_args0=
1720ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001721ac_must_keep_next=false
1722for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001723do
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 for ac_arg
1725 do
1726 case $ac_arg in
1727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729 | -silent | --silent | --silen | --sile | --sil)
1730 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001732 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733 esac
1734 case $ac_pass in
1735 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736 2)
1737 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001739 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001741 case $ac_arg in
1742 *=* | --config-cache | -C | -disable-* | --disable-* \
1743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745 | -with-* | --with-* | -without-* | --without-* | --x)
1746 case "$ac_configure_args0 " in
1747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748 esac
1749 ;;
1750 -* ) ac_must_keep_next=true ;;
1751 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001753 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ;;
1755 esac
1756 done
John Criswell7a73b802003-06-30 21:59:07 +00001757done
John Criswell0c38eaf2003-09-10 15:17:25 +00001758$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759$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 +00001760
1761# When interrupted or exit'd, cleanup temporary files, and complete
1762# config.log. We remove comments because anyway the quotes in there
1763# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001764# WARNING: Use '\'' to represent an apostrophe within the trap.
1765# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001766trap 'exit_status=$?
1767 # Save into config.log some information that might help in debugging.
1768 {
1769 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001770
John Criswell7a73b802003-06-30 21:59:07 +00001771 cat <<\_ASBOX
1772## ---------------- ##
1773## Cache variables. ##
1774## ---------------- ##
1775_ASBOX
1776 echo
1777 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001778(
1779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in #(
1782 *${as_nl}*)
1783 case $ac_var in #(
1784 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1786 esac
1787 case $ac_var in #(
1788 _ | IFS | as_nl) ;; #(
1789 *) $as_unset $ac_var ;;
1790 esac ;;
1791 esac
1792 done
John Criswell7a73b802003-06-30 21:59:07 +00001793 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001796 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001797 "s/'\''/'\''\\\\'\'''\''/g;
1798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001800 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001803 esac |
1804 sort
1805)
John Criswell7a73b802003-06-30 21:59:07 +00001806 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001807
1808 cat <<\_ASBOX
1809## ----------------- ##
1810## Output variables. ##
1811## ----------------- ##
1812_ASBOX
1813 echo
1814 for ac_var in $ac_subst_vars
1815 do
Reid Spencera773bd52006-08-04 18:18:08 +00001816 eval ac_val=\$$ac_var
1817 case $ac_val in
1818 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 esac
1820 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001821 done | sort
1822 echo
1823
1824 if test -n "$ac_subst_files"; then
1825 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001826## ------------------- ##
1827## File substitutions. ##
1828## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001829_ASBOX
1830 echo
1831 for ac_var in $ac_subst_files
1832 do
Reid Spencera773bd52006-08-04 18:18:08 +00001833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001838 done | sort
1839 echo
1840 fi
1841
John Criswell7a73b802003-06-30 21:59:07 +00001842 if test -s confdefs.h; then
1843 cat <<\_ASBOX
1844## ----------- ##
1845## confdefs.h. ##
1846## ----------- ##
1847_ASBOX
1848 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001849 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001850 echo
1851 fi
1852 test "$ac_signal" != 0 &&
1853 echo "$as_me: caught signal $ac_signal"
1854 echo "$as_me: exit $exit_status"
1855 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001856 rm -f core *.core core.conftest.* &&
1857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001858 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001859' 0
John Criswell7a73b802003-06-30 21:59:07 +00001860for ac_signal in 1 2 13 15; do
1861 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862done
1863ac_signal=0
1864
1865# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001866rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001867
1868# Predefined preprocessor variables.
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_NAME "$PACKAGE_NAME"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_VERSION "$PACKAGE_VERSION"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_STRING "$PACKAGE_STRING"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892_ACEOF
1893
1894
1895# Let the site file select an alternate cache file if it wants to.
1896# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001897if test -n "$CONFIG_SITE"; then
1898 set x "$CONFIG_SITE"
1899elif test "x$prefix" != xNONE; then
1900 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901else
1902 set x "$ac_default_prefix/share/config.site" \
1903 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001904fi
Reid Spencera773bd52006-08-04 18:18:08 +00001905shift
1906for ac_site_file
1907do
John Criswell7a73b802003-06-30 21:59:07 +00001908 if test -r "$ac_site_file"; then
1909 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1913 fi
1914done
1915
1916if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921echo "$as_me: loading cache $cache_file" >&6;}
1922 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001925 esac
1926 fi
1927else
1928 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929echo "$as_me: creating cache $cache_file" >&6;}
1930 >$cache_file
1931fi
1932
1933# Check that the precious variables saved in the cache have kept the same
1934# value.
1935ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001936for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001941 case $ac_old_set,$ac_new_set in
1942 set,)
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1946 ,set)
1947 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,);;
1951 *)
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001953 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001954echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001955 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001956echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001957 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001958echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001959 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001960 fi;;
1961 esac
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1964 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001965 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001966 *) ac_arg=$ac_var=$ac_new_val ;;
1967 esac
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 esac
1972 fi
1973done
1974if $ac_cache_corrupted; then
1975 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
1980fi
1981
Reid Spencera773bd52006-08-04 18:18:08 +00001982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
John Criswell7a73b802003-06-30 21:59:07 +00002006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002014LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002015
2016
2017
2018
2019
2020
2021
John Criswell7a73b802003-06-30 21:59:07 +00002022ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002023for ac_dir in autoconf "$srcdir"/autoconf; do
2024 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 break
Reid Spencera773bd52006-08-04 18:18:08 +00002028 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 break
Reid Spencera773bd52006-08-04 18:18:08 +00002032 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/shtool install -c"
2035 break
2036 fi
2037done
2038if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002039 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2040echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002041 { (exit 1); exit 1; }; }
2042fi
Reid Spencera773bd52006-08-04 18:18:08 +00002043
2044# These three variables are undocumented and unsupported,
2045# and are intended to be withdrawn in a future Autoconf release.
2046# They can cause serious problems if a builder's source tree is in a directory
2047# whose full name contains unusual characters.
2048ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2049ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2050ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052
John Criswell392aaa32003-07-22 19:18:09 +00002053
Reid Spencer2706f8c2004-09-19 23:53:36 +00002054if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2056 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002057echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2058 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059 fi
John Criswell93e1c722003-09-15 17:04:06 +00002060fi
2061
John Criswell33a911a2003-11-25 20:36:46 +00002062for i in `ls ${srcdir}/projects`
2063do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002064 if test -d ${srcdir}/projects/${i} ; then
2065 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002066 CVS) ;;
2067 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002068 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002069 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002070 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002071 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002072 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002073 llvm-test) subdirs="$subdirs projects/llvm-test"
2074 ;;
2075 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002076;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002077 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002078 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002079 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002080 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002081 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002083 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002086 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002088 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2089echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002090 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 esac
John Criswell33a911a2003-11-25 20:36:46 +00002092 fi
2093done
John Criswell559a6c12003-09-30 16:31:48 +00002094
John Criswell7a73b802003-06-30 21:59:07 +00002095
2096# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002097$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002100 { (exit 1); exit 1; }; }
2101
Reid Spencera773bd52006-08-04 18:18:08 +00002102{ echo "$as_me:$LINENO: checking build system type" >&5
2103echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002104if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
Reid Spencera773bd52006-08-04 18:18:08 +00002107 ac_build_alias=$build_alias
2108test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002114ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002117 { (exit 1); exit 1; }; }
2118
2119fi
Reid Spencera773bd52006-08-04 18:18:08 +00002120{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121echo "${ECHO_T}$ac_cv_build" >&6; }
2122case $ac_cv_build in
2123*-*-*) ;;
2124*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2127esac
John Criswell7a73b802003-06-30 21:59:07 +00002128build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002129ac_save_IFS=$IFS; IFS='-'
2130set x $ac_cv_build
2131shift
2132build_cpu=$1
2133build_vendor=$2
2134shift; shift
2135# Remember, the first character of IFS is used to create $*,
2136# except with old shells:
2137build_os=$*
2138IFS=$ac_save_IFS
2139case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002140
2141
Reid Spencera773bd52006-08-04 18:18:08 +00002142{ echo "$as_me:$LINENO: checking host system type" >&5
2143echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002144if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
Reid Spencera773bd52006-08-04 18:18:08 +00002147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002153 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002154fi
John Criswell7a73b802003-06-30 21:59:07 +00002155
2156fi
Reid Spencera773bd52006-08-04 18:18:08 +00002157{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158echo "${ECHO_T}$ac_cv_host" >&6; }
2159case $ac_cv_host in
2160*-*-*) ;;
2161*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2164esac
John Criswell7a73b802003-06-30 21:59:07 +00002165host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_host
2168shift
2169host_cpu=$1
2170host_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174host_os=$*
2175IFS=$ac_save_IFS
2176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002177
2178
Reid Spencera773bd52006-08-04 18:18:08 +00002179{ echo "$as_me:$LINENO: checking target system type" >&5
2180echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002181if test "${ac_cv_target+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
Reid Spencera773bd52006-08-04 18:18:08 +00002184 if test "x$target_alias" = x; then
2185 ac_cv_target=$ac_cv_host
2186else
2187 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002190 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002191fi
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193fi
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195echo "${ECHO_T}$ac_cv_target" >&6; }
2196case $ac_cv_target in
2197*-*-*) ;;
2198*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199echo "$as_me: error: invalid value of canonical target" >&2;}
2200 { (exit 1); exit 1; }; };;
2201esac
John Criswell7a73b802003-06-30 21:59:07 +00002202target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002203ac_save_IFS=$IFS; IFS='-'
2204set x $ac_cv_target
2205shift
2206target_cpu=$1
2207target_vendor=$2
2208shift; shift
2209# Remember, the first character of IFS is used to create $*,
2210# except with old shells:
2211target_os=$*
2212IFS=$ac_save_IFS
2213case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002214
2215
2216# The aliases save the names the user supplied, while $host etc.
2217# will get canonicalized.
2218test -n "$target_alias" &&
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2220 NONENONEs,x,x, &&
2221 program_prefix=${target_alias}-
2222
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2224echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002228 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002229 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232 llvm_cv_os_type="AIX"
2233 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002234 *-*-irix*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="IRIX"
2238 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002242 llvm_cv_os_type="Cygwin"
2243 llvm_cv_platform_type="Unix" ;;
2244 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option="-Wl,-all_load"
2246 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 llvm_cv_os_type="Darwin"
2248 llvm_cv_platform_type="Unix" ;;
2249 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="FreeBSD"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002254 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002257 llvm_cv_os_type="OpenBSD"
2258 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002259 *-*-netbsd*)
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="NetBSD"
2263 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002264 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002267 llvm_cv_os_type="HP-UX"
2268 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 *-*-interix*)
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="Interix"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="Linux"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,-z,allextract"
2281 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="SunOS"
2283 llvm_cv_platform_type="Unix" ;;
2284 *-*-win32*)
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 Spencer7b3e8512004-12-24 06:29:05 +00002287 llvm_cv_os_type="Win32"
2288 llvm_cv_platform_type="Win32" ;;
2289 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="MingW"
2293 llvm_cv_platform_type="Win32" ;;
2294 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option=""
2296 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Unknown"
2298 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002299esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002300fi
Reid Spencera773bd52006-08-04 18:18:08 +00002301{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2302echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002303
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002307 { (exit 1); exit 1; }; }
2308fi
2309
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002311
2312
Reid Spencera773bd52006-08-04 18:18:08 +00002313LINKALL=$llvm_cv_link_all_option
2314
2315NOLINKALL=$llvm_cv_no_link_all_option
2316
2317
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318case $llvm_cv_platform_type in
2319 Unix)
2320
2321cat >>confdefs.h <<\_ACEOF
2322#define LLVM_ON_UNIX 1
2323_ACEOF
2324
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002325 LLVM_ON_UNIX=1
2326
2327 LLVM_ON_WIN32=0
2328
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 ;;
2330 Win32)
2331
2332cat >>confdefs.h <<\_ACEOF
2333#define LLVM_ON_WIN32 1
2334_ACEOF
2335
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002336 LLVM_ON_UNIX=0
2337
2338 LLVM_ON_WIN32=1
2339
Reid Spencer7b3e8512004-12-24 06:29:05 +00002340 ;;
2341esac
2342
Reid Spencera773bd52006-08-04 18:18:08 +00002343{ echo "$as_me:$LINENO: checking target architecture" >&5
2344echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345if test "${llvm_cv_target_arch+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002349 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002350 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002351 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2352 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002353 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002354 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002355 arm-*) llvm_cv_target_arch="ARM" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002356 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002357esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358fi
Reid Spencera773bd52006-08-04 18:18:08 +00002359{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2360echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002361
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362if test "$llvm_cv_target_arch" = "Unknown" ; then
2363 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2364echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2365fi
John Criswell76595452003-07-01 22:07:39 +00002366
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002368
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002375if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002392 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 +00002393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397done
2398done
Reid Spencera773bd52006-08-04 18:18:08 +00002399IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002405 { echo "$as_me:$LINENO: result: $CC" >&5
2406echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407else
Reid Spencera773bd52006-08-04 18:18:08 +00002408 { echo "$as_me:$LINENO: result: no" >&5
2409echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410fi
2411
Reid Spencera773bd52006-08-04 18:18:08 +00002412
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413fi
2414if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002432 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 +00002433 ac_cv_prog_ac_ct_CC="gcc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438done
Reid Spencera773bd52006-08-04 18:18:08 +00002439IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002445 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447else
Reid Spencera773bd52006-08-04 18:18:08 +00002448 { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450fi
2451
Reid Spencera773bd52006-08-04 18:18:08 +00002452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
2457{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458whose name does not start with the host triplet. If you think this
2459configuration is useful to you, please write to autoconf@gnu.org." >&5
2460echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461whose name does not start with the host triplet. If you think this
2462configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463ac_tool_warned=yes ;;
2464esac
2465 CC=$ac_ct_CC
2466 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467else
2468 CC="$ac_cv_prog_CC"
2469fi
2470
2471if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002472 if test -n "$ac_tool_prefix"; then
2473 # 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 +00002474set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002489 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 +00002490 ac_cv_prog_CC="${ac_tool_prefix}cc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494done
2495done
Reid Spencera773bd52006-08-04 18:18:08 +00002496IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002502 { echo "$as_me:$LINENO: result: $CC" >&5
2503echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504else
Reid Spencera773bd52006-08-04 18:18:08 +00002505 { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507fi
2508
Reid Spencera773bd52006-08-04 18:18:08 +00002509
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511fi
2512if test -z "$CC"; then
2513 # Extract the first word of "cc", so it can be a program name with args.
2514set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002517if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523 ac_prog_rejected=no
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002530 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 +00002531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532 ac_prog_rejected=yes
2533 continue
2534 fi
2535 ac_cv_prog_CC="cc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539done
2540done
Reid Spencera773bd52006-08-04 18:18:08 +00002541IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542
2543if test $ac_prog_rejected = yes; then
2544 # We found a bogon in the path, so make sure we never use it.
2545 set dummy $ac_cv_prog_CC
2546 shift
2547 if test $# != 0; then
2548 # We chose a different compiler from the bogus one.
2549 # However, it has the same basename, so the bogon will be chosen
2550 # first if we set CC to just the basename; use the full file name.
2551 shift
2552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553 fi
2554fi
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002559 { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561else
Reid Spencera773bd52006-08-04 18:18:08 +00002562 { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564fi
2565
Reid Spencera773bd52006-08-04 18:18:08 +00002566
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002570 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002571 do
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002588 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 +00002589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593done
2594done
Reid Spencera773bd52006-08-04 18:18:08 +00002595IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002596
2597fi
2598fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002601 { echo "$as_me:$LINENO: result: $CC" >&5
2602echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002603else
Reid Spencera773bd52006-08-04 18:18:08 +00002604 { echo "$as_me:$LINENO: result: no" >&5
2605echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002606fi
2607
Reid Spencera773bd52006-08-04 18:18:08 +00002608
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002610 done
2611fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612if test -z "$CC"; then
2613 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002614 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002615do
2616 # Extract the first word of "$ac_prog", so it can be a program name with args.
2617set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002632 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 +00002633 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637done
2638done
Reid Spencera773bd52006-08-04 18:18:08 +00002639IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002640
2641fi
2642fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002645 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2646echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002647else
Reid Spencera773bd52006-08-04 18:18:08 +00002648 { echo "$as_me:$LINENO: result: no" >&5
2649echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002650fi
2651
Reid Spencera773bd52006-08-04 18:18:08 +00002652
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002654done
John Criswell7a73b802003-06-30 21:59:07 +00002655
Reid Spencera773bd52006-08-04 18:18:08 +00002656 if test "x$ac_ct_CC" = x; then
2657 CC=""
2658 else
2659 case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet. If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&5
2664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665whose name does not start with the host triplet. If you think this
2666configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669 CC=$ac_ct_CC
2670 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671fi
2672
John Criswell7a73b802003-06-30 21:59:07 +00002673fi
2674
2675
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2677See \`config.log' for more details." >&5
2678echo "$as_me: error: no acceptable C compiler found in \$PATH
2679See \`config.log' for more details." >&2;}
2680 { (exit 1); exit 1; }; }
2681
John Criswell7a73b802003-06-30 21:59:07 +00002682# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002683echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002684ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002685{ (ac_try="$ac_compiler --version >&5"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002695{ (ac_try="$ac_compiler -v >&5"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002705{ (ac_try="$ac_compiler -V >&5"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715
2716cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002722
John Criswell7a73b802003-06-30 21:59:07 +00002723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002732ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002733# Try to create an executable without -o first, disregard a.out.
2734# It will help us diagnose broken compilers, and finding out an intuition
2735# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002736{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002738ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002739#
2740# List of possible output files, starting from the most likely.
2741# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2742# only as a last resort. b.out is created by i960 compilers.
2743ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2744#
2745# The IRIX 6 linker writes into existing files which may not be
2746# executable, retaining their permissions. Remove them first so a
2747# subsequent execution test works.
2748ac_rmfiles=
2749for ac_file in $ac_files
2750do
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 esac
2755done
2756rm -f $ac_rmfiles
2757
2758if { (ac_try="$ac_link_default"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770# in a Makefile. We should not override ac_cv_exeext if it was cached,
2771# so that the user can short-circuit this test for compilers unknown to
2772# Autoconf.
2773for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002774do
2775 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002776 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002778 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002779 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002780 # We found the default executable, but exeext='' is most
2781 # certainly right.
2782 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002783 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785 then :; else
2786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787 fi
2788 # We set ac_cv_exeext here because the later test for it is not
2789 # safe: cross compilers may not add the suffix if given an `-o'
2790 # argument, so we may need to know it at that point already.
2791 # Even if this section looks crufty: it has the advantage of
2792 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002796 esac
2797done
Reid Spencera773bd52006-08-04 18:18:08 +00002798test "$ac_cv_exeext" = no && ac_cv_exeext=
2799
John Criswell7a73b802003-06-30 21:59:07 +00002800else
2801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002802sed 's/^/| /' conftest.$ac_ext >&5
2803
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002804{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002805See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002806echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002807See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002808 { (exit 77); exit 77; }; }
2809fi
2810
2811ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002812{ echo "$as_me:$LINENO: result: $ac_file" >&5
2813echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002814
Reid Spencera773bd52006-08-04 18:18:08 +00002815# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002816# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002817{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002819# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820# If not cross compiling, check that we can run a simple program.
2821if test "$cross_compiling" != yes; then
2822 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002823 { (case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 cross_compiling=no
2833 else
2834 if test "$cross_compiling" = maybe; then
2835 cross_compiling=yes
2836 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002837 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002838If you meant to cross compile, use \`--host'.
2839See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002840echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002841If you meant to cross compile, use \`--host'.
2842See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002843 { (exit 1); exit 1; }; }
2844 fi
2845 fi
2846fi
Reid Spencera773bd52006-08-04 18:18:08 +00002847{ echo "$as_me:$LINENO: result: yes" >&5
2848echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002849
John Criswell0c38eaf2003-09-10 15:17:25 +00002850rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002851ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002852# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002853# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002854{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2856{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002858
Reid Spencera773bd52006-08-04 18:18:08 +00002859{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2861if { (ac_try="$ac_link"
2862case "(($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_link") 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 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2873# work properly (i.e., refer to `conftest.exe'), while it won't with
2874# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002875for ac_file in conftest.exe conftest conftest.*; do
2876 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002877 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002880 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002881 * ) break;;
2882 esac
2883done
2884else
John Criswell0c38eaf2003-09-10 15:17:25 +00002885 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." >&5
2887echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002889 { (exit 1); exit 1; }; }
2890fi
2891
2892rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002893{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002895
2896rm -f conftest.$ac_ext
2897EXEEXT=$ac_cv_exeext
2898ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002899{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002901if test "${ac_cv_objext+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002910
John Criswell7a73b802003-06-30 21:59:07 +00002911int
2912main ()
2913{
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002932 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 break;;
2936 esac
2937done
2938else
2939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002946 { (exit 1); exit 1; }; }
2947fi
2948
2949rm -f conftest.$ac_cv_objext conftest.$ac_ext
2950fi
Reid Spencera773bd52006-08-04 18:18:08 +00002951{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2952echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002953OBJEXT=$ac_cv_objext
2954ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002955{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2956echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002957if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002966
John Criswell7a73b802003-06-30 21:59:07 +00002967int
2968main ()
2969{
2970#ifndef __GNUC__
2971 choke me
2972#endif
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002979if { (ac_try="$ac_compile"
2980case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002986 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_compiler_gnu=yes
3013else
3014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003015sed 's/^/| /' conftest.$ac_ext >&5
3016
Reid Spencera773bd52006-08-04 18:18:08 +00003017 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003018fi
Reid Spencera773bd52006-08-04 18:18:08 +00003019
3020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003021ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003022
3023fi
Reid Spencera773bd52006-08-04 18:18:08 +00003024{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003026GCC=`test $ac_compiler_gnu = yes && echo yes`
3027ac_test_CFLAGS=${CFLAGS+set}
3028ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003029{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003031if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
Reid Spencera773bd52006-08-04 18:18:08 +00003034 ac_save_c_werror_flag=$ac_c_werror_flag
3035 ac_c_werror_flag=yes
3036 ac_cv_prog_cc_g=no
3037 CFLAGS="-g"
3038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003039/* confdefs.h. */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003044
John Criswell7a73b802003-06-30 21:59:07 +00003045int
3046main ()
3047{
3048
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003088else
3089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003090sed 's/^/| /' conftest.$ac_ext >&5
3091
Reid Spencera773bd52006-08-04 18:18:08 +00003092 CFLAGS=""
3093 cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h. */
3099
3100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 :
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_prog_cc_g=yes
3199else
3200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
John Criswell7a73b802003-06-30 21:59:07 +00003204fi
Reid Spencera773bd52006-08-04 18:18:08 +00003205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003207fi
Reid Spencera773bd52006-08-04 18:18:08 +00003208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3214fi
3215{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003222 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003223 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003224 fi
3225else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003228 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003230 fi
3231fi
Reid Spencera773bd52006-08-04 18:18:08 +00003232{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3234if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
Reid Spencera773bd52006-08-04 18:18:08 +00003237 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238ac_save_CC=$CC
3239cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#include <stdarg.h>
3246#include <stdio.h>
3247#include <sys/types.h>
3248#include <sys/stat.h>
3249/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250struct buf { int x; };
3251FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252static char *e (p, i)
3253 char **p;
3254 int i;
3255{
3256 return p[i];
3257}
3258static char *f (char * (*g) (char **, int), char **p, ...)
3259{
3260 char *s;
3261 va_list v;
3262 va_start (v,p);
3263 s = g (p, va_arg (v,int));
3264 va_end (v);
3265 return s;
3266}
3267
3268/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003271 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003274 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
Reid Spencera773bd52006-08-04 18:18:08 +00003277/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3279#define FOO(x) 'x'
3280int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282int test (int i, double x);
3283struct s1 {int (*f) (int a);};
3284struct s2 {int (*f) (double a);};
3285int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286int argc;
3287char **argv;
3288int
3289main ()
3290{
3291return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 ;
3293 return 0;
3294}
3295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003296for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298do
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003334 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335else
3336 echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
Reid Spencera773bd52006-08-04 18:18:08 +00003339
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003340fi
Reid Spencera773bd52006-08-04 18:18:08 +00003341
3342rm -f core conftest.err conftest.$ac_objext
3343 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344done
Reid Spencera773bd52006-08-04 18:18:08 +00003345rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346CC=$ac_save_CC
3347
3348fi
Reid Spencera773bd52006-08-04 18:18:08 +00003349# AC_CACHE_VAL
3350case "x$ac_cv_prog_cc_c89" in
3351 x)
3352 { echo "$as_me:$LINENO: result: none needed" >&5
3353echo "${ECHO_T}none needed" >&6; } ;;
3354 xno)
3355 { echo "$as_me:$LINENO: result: unsupported" >&5
3356echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003358 CC="$CC $ac_cv_prog_cc_c89"
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361esac
3362
John Criswell0c38eaf2003-09-10 15:17:25 +00003363
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003376{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378# On Suns, sometimes $CPP names a directory.
3379if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3381fi
3382if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 do
3389 ac_preproc_ok=false
3390for ac_c_preproc_warn_flag in '' yes
3391do
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h. */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h. */
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409 Syntax error
3410_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003411if { (ac_try="$ac_cpp conftest.$ac_ext"
3412case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
3416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 else
3428 ac_cpp_err=
3429 fi
3430else
3431 ac_cpp_err=yes
3432fi
3433if test -z "$ac_cpp_err"; then
3434 :
3435else
3436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 # Broken: fails on valid input.
3440continue
3441fi
Reid Spencera773bd52006-08-04 18:18:08 +00003442
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443rm -f conftest.err conftest.$ac_ext
3444
Reid Spencera773bd52006-08-04 18:18:08 +00003445 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446 # can be detected and how.
3447 cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453#include <ac_nonexistent.h>
3454_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003455if { (ac_try="$ac_cpp conftest.$ac_ext"
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 else
3472 ac_cpp_err=
3473 fi
3474else
3475 ac_cpp_err=yes
3476fi
3477if test -z "$ac_cpp_err"; then
3478 # Broken: success on invalid input.
3479continue
3480else
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 # Passes both tests.
3485ac_preproc_ok=:
3486break
3487fi
Reid Spencera773bd52006-08-04 18:18:08 +00003488
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489rm -f conftest.err conftest.$ac_ext
3490
3491done
3492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493rm -f conftest.err conftest.$ac_ext
3494if $ac_preproc_ok; then
3495 break
3496fi
3497
3498 done
3499 ac_cv_prog_CPP=$CPP
3500
3501fi
3502 CPP=$ac_cv_prog_CPP
3503else
3504 ac_cv_prog_CPP=$CPP
3505fi
Reid Spencera773bd52006-08-04 18:18:08 +00003506{ echo "$as_me:$LINENO: result: $CPP" >&5
3507echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508ac_preproc_ok=false
3509for ac_c_preproc_warn_flag in '' yes
3510do
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error" is here to catch this case.
3517 cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528 Syntax error
3529_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003530if { (ac_try="$ac_cpp conftest.$ac_ext"
3531case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534esac
3535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null; then
3543 if test -s conftest.err; then
3544 ac_cpp_err=$ac_c_preproc_warn_flag
3545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546 else
3547 ac_cpp_err=
3548 fi
3549else
3550 ac_cpp_err=yes
3551fi
3552if test -z "$ac_cpp_err"; then
3553 :
3554else
3555 echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 # Broken: fails on valid input.
3559continue
3560fi
Reid Spencera773bd52006-08-04 18:18:08 +00003561
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003562rm -f conftest.err conftest.$ac_ext
3563
Reid Spencera773bd52006-08-04 18:18:08 +00003564 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565 # can be detected and how.
3566 cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h. */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h. */
3572#include <ac_nonexistent.h>
3573_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003574if { (ac_try="$ac_cpp conftest.$ac_ext"
3575case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } >/dev/null; then
3587 if test -s conftest.err; then
3588 ac_cpp_err=$ac_c_preproc_warn_flag
3589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590 else
3591 ac_cpp_err=
3592 fi
3593else
3594 ac_cpp_err=yes
3595fi
3596if test -z "$ac_cpp_err"; then
3597 # Broken: success on invalid input.
3598continue
3599else
3600 echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 # Passes both tests.
3604ac_preproc_ok=:
3605break
3606fi
Reid Spencera773bd52006-08-04 18:18:08 +00003607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003608rm -f conftest.err conftest.$ac_ext
3609
3610done
3611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612rm -f conftest.err conftest.$ac_ext
3613if $ac_preproc_ok; then
3614 :
3615else
3616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3617See \`config.log' for more details." >&5
3618echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3621fi
3622
John Criswell7a73b802003-06-30 21:59:07 +00003623ac_ext=c
3624ac_cpp='$CPP $CPPFLAGS'
3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
John Criswell7a73b802003-06-30 21:59:07 +00003629
Reid Spencera773bd52006-08-04 18:18:08 +00003630{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3631echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003632if test "${ac_cv_path_GREP+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
Reid Spencera773bd52006-08-04 18:18:08 +00003635 # Extract the first word of "grep ggrep" to use in msg output
3636if test -z "$GREP"; then
3637set dummy grep ggrep; ac_prog_name=$2
3638if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
Reid Spencera773bd52006-08-04 18:18:08 +00003641 ac_path_GREP_found=false
3642# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003648 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3651 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3652 # Check for GNU ac_path_GREP and select it if it is found.
3653 # Check for GNU $ac_path_GREP
3654case `"$ac_path_GREP" --version 2>&1` in
3655*GNU*)
3656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3657*)
3658 ac_count=0
3659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3660 while :
3661 do
3662 cat "conftest.in" "conftest.in" >"conftest.tmp"
3663 mv "conftest.tmp" "conftest.in"
3664 cp "conftest.in" "conftest.nl"
3665 echo 'GREP' >> "conftest.nl"
3666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668 ac_count=`expr $ac_count + 1`
3669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670 # Best one so far, save it but keep looking for a better one
3671 ac_cv_path_GREP="$ac_path_GREP"
3672 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003674 # 10*(2^10) chars as input seems more than enough
3675 test $ac_count -gt 10 && break
3676 done
3677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678esac
3679
3680
3681 $ac_path_GREP_found && break 3
3682 done
3683done
3684
3685done
3686IFS=$as_save_IFS
3687
3688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689fi
Reid Spencera773bd52006-08-04 18:18:08 +00003690
3691GREP="$ac_cv_path_GREP"
3692if test -z "$GREP"; then
3693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695 { (exit 1); exit 1; }; }
3696fi
3697
3698else
3699 ac_cv_path_GREP=$GREP
3700fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701
John Criswell7a73b802003-06-30 21:59:07 +00003702
Reid Spencera773bd52006-08-04 18:18:08 +00003703fi
3704{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3705echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3706 GREP="$ac_cv_path_GREP"
3707
3708
3709{ echo "$as_me:$LINENO: checking for egrep" >&5
3710echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3711if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3715 then ac_cv_path_EGREP="$GREP -E"
3716 else
3717 # Extract the first word of "egrep" to use in msg output
3718if test -z "$EGREP"; then
3719set dummy egrep; ac_prog_name=$2
3720if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 ac_path_EGREP_found=false
3724# Loop through the user's path and test for each of PROGNAME-LIST
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in egrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3733 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3734 # Check for GNU ac_path_EGREP and select it if it is found.
3735 # Check for GNU $ac_path_EGREP
3736case `"$ac_path_EGREP" --version 2>&1` in
3737*GNU*)
3738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3739*)
3740 ac_count=0
3741 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3742 while :
3743 do
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 echo 'EGREP' >> "conftest.nl"
3748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 ac_count=`expr $ac_count + 1`
3751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_EGREP="$ac_path_EGREP"
3754 ac_path_EGREP_max=$ac_count
3755 fi
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760esac
3761
3762
3763 $ac_path_EGREP_found && break 3
3764 done
3765done
3766
3767done
3768IFS=$as_save_IFS
3769
3770
3771fi
3772
3773EGREP="$ac_cv_path_EGREP"
3774if test -z "$EGREP"; then
3775 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3777 { (exit 1); exit 1; }; }
3778fi
3779
3780else
3781 ac_cv_path_EGREP=$EGREP
3782fi
3783
3784
3785 fi
3786fi
3787{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3788echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3789 EGREP="$ac_cv_path_EGREP"
3790
3791
3792{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3793echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003794if test "${ac_cv_header_stdc+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003803#include <stdlib.h>
3804#include <stdarg.h>
3805#include <string.h>
3806#include <float.h>
3807
John Criswell0c38eaf2003-09-10 15:17:25 +00003808int
3809main ()
3810{
3811
3812 ;
3813 return 0;
3814}
John Criswell7a73b802003-06-30 21:59:07 +00003815_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003816rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003817if { (ac_try="$ac_compile"
3818case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003824 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003829 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3831 { (case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834esac
3835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003850 ac_cv_header_stdc=yes
3851else
3852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003853sed 's/^/| /' conftest.$ac_ext >&5
3854
Reid Spencera773bd52006-08-04 18:18:08 +00003855 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003856fi
Reid Spencera773bd52006-08-04 18:18:08 +00003857
3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003859
3860if test $ac_cv_header_stdc = yes; then
3861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003868#include <string.h>
3869
3870_ACEOF
3871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003872 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003873 :
3874else
3875 ac_cv_header_stdc=no
3876fi
3877rm -f conftest*
3878
3879fi
3880
3881if test $ac_cv_header_stdc = yes; then
3882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003889#include <stdlib.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003893 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003894 :
3895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then
3905 :
3906else
3907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003908/* confdefs.h. */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003913#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003914#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003915#if ((' ' & 0x0FF) == 0x020)
3916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003919# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003920 (('a' <= (c) && (c) <= 'i') \
3921 || ('j' <= (c) && (c) <= 'r') \
3922 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924#endif
3925
3926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927int
3928main ()
3929{
3930 int i;
3931 for (i = 0; i < 256; i++)
3932 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003933 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003934 return 2;
3935 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003936}
3937_ACEOF
3938rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003939if { (ac_try="$ac_link"
3940case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943esac
3944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 :
3959else
3960 echo "$as_me: program exited with status $ac_status" >&5
3961echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003962sed 's/^/| /' conftest.$ac_ext >&5
3963
John Criswell7a73b802003-06-30 21:59:07 +00003964( exit $ac_status )
3965ac_cv_header_stdc=no
3966fi
Reid Spencera773bd52006-08-04 18:18:08 +00003967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3968fi
3969
3970
John Criswell7a73b802003-06-30 21:59:07 +00003971fi
3972fi
Reid Spencera773bd52006-08-04 18:18:08 +00003973{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3974echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003975if test $ac_cv_header_stdc = yes; then
3976
3977cat >>confdefs.h <<\_ACEOF
3978#define STDC_HEADERS 1
3979_ACEOF
3980
3981fi
3982
Reid Spencera773bd52006-08-04 18:18:08 +00003983# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3994 inttypes.h stdint.h unistd.h
3995do
3996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3997{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008$ac_includes_default
4009
4010#include <$ac_header>
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (ac_try="$ac_compile"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_Header=yes"
4047else
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 eval "$as_ac_Header=no"
4052fi
4053
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055fi
4056ac_res=`eval echo '${'$as_ac_Header'}'`
4057 { echo "$as_me:$LINENO: result: $ac_res" >&5
4058echo "${ECHO_T}$ac_res" >&6; }
4059if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h <<_ACEOF
4061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062_ACEOF
4063
4064fi
4065
4066done
4067
4068
4069{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4070echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4071if test "${ac_cv_c_bigendian+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 # See if sys/param.h defines the BYTE_ORDER macro.
4075cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081#include <sys/types.h>
4082#include <sys/param.h>
4083
4084int
4085main ()
4086{
4087#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4088 bogus endian macros
4089#endif
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 # It does; now see whether it defined to BIG_ENDIAN or not.
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136#include <sys/types.h>
4137#include <sys/param.h>
4138
4139int
4140main ()
4141{
4142#if BYTE_ORDER != BIG_ENDIAN
4143 not big endian
4144#endif
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_bigendian=yes
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_c_bigendian=no
4190fi
4191
4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193else
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 # It does not; compile a test program.
4198if test "$cross_compiling" = yes; then
4199 # try to guess the endianness by grepping values into an object file
4200 ac_cv_c_bigendian=unknown
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4213int
4214main ()
4215{
4216 _ascii (); _ebcdic ();
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4256 ac_cv_c_bigendian=yes
4257fi
4258if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4259 if test "$ac_cv_c_bigendian" = unknown; then
4260 ac_cv_c_bigendian=no
4261 else
4262 # finding both strings is unlikely to happen, but who knows?
4263 ac_cv_c_bigendian=unknown
4264 fi
4265fi
4266else
4267 echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270
4271fi
4272
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281$ac_includes_default
4282int
4283main ()
4284{
4285
4286 /* Are we little or big endian? From Harbison&Steele. */
4287 union
4288 {
4289 long int l;
4290 char c[sizeof (long int)];
4291 } u;
4292 u.l = 1;
4293 return u.c[sizeof (long int) - 1] == 1;
4294
4295 ;
4296 return 0;
4297}
4298_ACEOF
4299rm -f conftest$ac_exeext
4300if { (ac_try="$ac_link"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_c_bigendian=no
4320else
4321 echo "$as_me: program exited with status $ac_status" >&5
4322echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325( exit $ac_status )
4326ac_cv_c_bigendian=yes
4327fi
4328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329fi
4330
4331
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4337echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4338case $ac_cv_c_bigendian in
4339 yes)
4340 ENDIAN=big
4341 ;;
4342 no)
4343 ENDIAN=little
4344 ;;
4345 *)
4346 { { echo "$as_me:$LINENO: error: unknown endianness
4347presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4348echo "$as_me: error: unknown endianness
4349presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4350 { (exit 1); exit 1; }; } ;;
4351esac
4352
4353
4354if test "$cross_compiling" = yes; then
4355 LLVM_CROSS_COMPILING=1
4356
4357
4358{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4359echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4360if test "${ac_cv_build_exeext+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4364 ac_cv_build_exeext=.exe
4365else
4366 ac_build_prefix=${build_alias}-
4367
4368 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4369set dummy ${ac_build_prefix}gcc; ac_word=$2
4370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 if test -n "$BUILD_CC"; then
4376 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389done
4390done
4391IFS=$as_save_IFS
4392
4393fi
4394fi
4395BUILD_CC=$ac_cv_prog_BUILD_CC
4396if test -n "$BUILD_CC"; then
4397 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4398echo "${ECHO_T}$BUILD_CC" >&6; }
4399else
4400 { echo "$as_me:$LINENO: result: no" >&5
4401echo "${ECHO_T}no" >&6; }
4402fi
4403
4404
4405 if test -z "$BUILD_CC"; then
4406 # Extract the first word of "gcc", so it can be a program name with args.
4407set dummy gcc; ac_word=$2
4408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413 if test -n "$BUILD_CC"; then
4414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_BUILD_CC="gcc"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427done
4428done
4429IFS=$as_save_IFS
4430
4431fi
4432fi
4433BUILD_CC=$ac_cv_prog_BUILD_CC
4434if test -n "$BUILD_CC"; then
4435 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4436echo "${ECHO_T}$BUILD_CC" >&6; }
4437else
4438 { echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6; }
4440fi
4441
4442
4443 if test -z "$BUILD_CC"; then
4444 # Extract the first word of "cc", so it can be a program name with args.
4445set dummy cc; ac_word=$2
4446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 if test -n "$BUILD_CC"; then
4452 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453else
4454 ac_prog_rejected=no
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
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4463 ac_prog_rejected=yes
4464 continue
4465 fi
4466 ac_cv_prog_BUILD_CC="cc"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470done
4471done
4472IFS=$as_save_IFS
4473
4474if test $ac_prog_rejected = yes; then
4475 # We found a bogon in the path, so make sure we never use it.
4476 set dummy $ac_cv_prog_BUILD_CC
4477 shift
4478 if test $# != 0; then
4479 # We chose a different compiler from the bogus one.
4480 # However, it has the same basename, so the bogon will be chosen
4481 # first if we set BUILD_CC to just the basename; use the full file name.
4482 shift
4483 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4484 fi
4485fi
4486fi
4487fi
4488BUILD_CC=$ac_cv_prog_BUILD_CC
4489if test -n "$BUILD_CC"; then
4490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491echo "${ECHO_T}$BUILD_CC" >&6; }
4492else
4493 { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
4495fi
4496
4497
4498 fi
4499 fi
4500 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4501echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4502 { (exit 1); exit 1; }; }
4503 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4504 rm -f conftest*
4505 echo 'int main () { return 0; }' > conftest.$ac_ext
4506 ac_cv_build_exeext=
4507 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4508 (eval $ac_build_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 for file in conftest.*; do
4513 case $file in
4514 *.c | *.o | *.obj) ;;
4515 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4516 esac
4517 done
4518 else
4519 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4520echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4521 { (exit 1); exit 1; }; }
4522 fi
4523 rm -f conftest*
4524 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4525fi
4526fi
4527
4528BUILD_EXEEXT=""
4529test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4530{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4531echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4532ac_build_exeext=$BUILD_EXEEXT
4533
4534else
4535 LLVM_CROSS_COMPILING=0
4536
4537fi
4538
Reid Spencer0b1e4662007-04-02 15:41:39 +00004539if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004540 cvsbuild="yes"
4541 optimize="no"
4542 CVSBUILD=CVSBUILD=1
4543
4544else
4545 cvsbuild="no"
4546 optimize="yes"
4547fi
4548
4549
4550# Check whether --enable-optimized was given.
4551if test "${enable_optimized+set}" = set; then
4552 enableval=$enable_optimized;
4553else
4554 enableval=$optimize
4555fi
4556
4557if test ${enableval} = "no" ; then
4558 ENABLE_OPTIMIZED=
4559
4560else
4561 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4562
4563fi
4564
4565# Check whether --enable-assertions was given.
4566if test "${enable_assertions+set}" = set; then
4567 enableval=$enable_assertions;
4568else
4569 enableval="yes"
4570fi
4571
4572if test ${enableval} = "yes" ; then
4573 DISABLE_ASSERTIONS=
4574
4575else
4576 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4577
4578fi
4579
Reid Spencer8b2e1412006-11-17 03:32:33 +00004580# Check whether --enable-debug-runtime was given.
4581if test "${enable_debug_runtime+set}" = set; then
4582 enableval=$enable_debug_runtime;
4583else
4584 enableval=no
4585fi
4586
4587if test ${enableval} = "no" ; then
4588 DEBUG_RUNTIME=
4589
4590else
4591 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4592
4593fi
4594
Reid Spencera773bd52006-08-04 18:18:08 +00004595# Check whether --enable-jit was given.
4596if test "${enable_jit+set}" = set; then
4597 enableval=$enable_jit;
4598else
4599 enableval=default
4600fi
4601
4602if test ${enableval} = "no"
4603then
4604 JIT=
4605
4606else
4607 case "$llvm_cv_target_arch" in
4608 x86) TARGET_HAS_JIT=1
4609 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004610 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004611 ;;
4612 PowerPC) TARGET_HAS_JIT=1
4613 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004614 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004615 ;;
4616 Alpha) TARGET_HAS_JIT=1
4617 ;;
4618 IA64) TARGET_HAS_JIT=0
4619 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004620 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004622 *) TARGET_HAS_JIT=0
4623 ;;
4624 esac
4625fi
4626
4627# Check whether --enable-doxygen was given.
4628if test "${enable_doxygen+set}" = set; then
4629 enableval=$enable_doxygen;
4630else
4631 enableval=default
4632fi
4633
4634case "$enableval" in
4635 yes) ENABLE_DOXYGEN=1
4636 ;;
4637 no) ENABLE_DOXYGEN=0
4638 ;;
4639 default) ENABLE_DOXYGEN=0
4640 ;;
4641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4642echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4644esac
4645
4646# Check whether --enable-threads was given.
4647if test "${enable_threads+set}" = set; then
4648 enableval=$enable_threads;
4649else
Reid Spencer65c5d752006-11-05 17:08:18 +00004650 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004651fi
4652
4653case "$enableval" in
4654 yes) ENABLE_THREADS=1
4655 ;;
4656 no) ENABLE_THREADS=0
4657 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004658 default) ENABLE_THREADS=1
4659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4661echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663esac
4664
4665cat >>confdefs.h <<_ACEOF
4666#define ENABLE_THREADS $ENABLE_THREADS
4667_ACEOF
4668
4669
Reid Spencer89b0d992006-12-16 22:07:52 +00004670# Check whether --enable-pic was given.
4671if test "${enable_pic+set}" = set; then
4672 enableval=$enable_pic;
4673else
4674 enableval=default
4675fi
4676
4677case "$enableval" in
4678 yes) ENABLE_PIC=1
4679 ;;
4680 no) ENABLE_PIC=0
4681 ;;
4682 default) ENABLE_PIC=0
4683 ;;
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4685echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4687esac
4688
4689cat >>confdefs.h <<_ACEOF
4690#define ENABLE_PIC $ENABLE_PIC
4691_ACEOF
4692
4693
Reid Spencera773bd52006-08-04 18:18:08 +00004694TARGETS_TO_BUILD=""
4695# Check whether --enable-targets was given.
4696if test "${enable_targets+set}" = set; then
4697 enableval=$enable_targets;
4698else
4699 enableval=all
4700fi
4701
4702case "$enableval" in
4703 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4704 host-only)
4705 case "$llvm_cv_target_arch" in
4706 x86) TARGETS_TO_BUILD="X86" ;;
4707 x86_64) TARGETS_TO_BUILD="X86" ;;
4708 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4709 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4710 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4711 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004712 ARM) TARGETS_TO_BUILD="ARM" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004713 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4714echo "$as_me: error: Can not set target to build" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4716 esac
4717 ;;
4718 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4719 case "$a_target" in
4720 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4722 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4723 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4724 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4725 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004726 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004727 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4728echo "$as_me: error: Unrecognized target $a_target" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730 esac
4731 done
4732 ;;
4733esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004734TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004735TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4736
4737
Reid Spencer65c5d752006-11-05 17:08:18 +00004738# Check whether --enable-cbe-printf-a was given.
4739if test "${enable_cbe_printf_a+set}" = set; then
4740 enableval=$enable_cbe_printf_a;
4741else
4742 enableval=default
4743fi
4744
4745case "$enableval" in
4746 yes) ENABLE_CBE_PRINTF_A=1
4747 ;;
4748 no) ENABLE_CBE_PRINTF_A=0
4749 ;;
4750 default) ENABLE_CBE_PRINTF_A=1
4751 ;;
4752 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4753echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755esac
4756
4757cat >>confdefs.h <<_ACEOF
4758#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4759_ACEOF
4760
4761
Reid Spencera773bd52006-08-04 18:18:08 +00004762
4763# Check whether --with-llvmgccdir was given.
4764if test "${with_llvmgccdir+set}" = set; then
4765 withval=$with_llvmgccdir;
4766else
4767 withval=default
4768fi
4769
4770case "$withval" in
4771 default) WITH_LLVMGCCDIR=default ;;
4772 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4773 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4774echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4776esac
4777
4778
4779# Check whether --with-extra-options was given.
4780if test "${with_extra_options+set}" = set; then
4781 withval=$with_extra_options;
4782else
4783 withval=default
4784fi
4785
4786case "$withval" in
4787 default) EXTRA_OPTIONS= ;;
4788 *) EXTRA_OPTIONS=$withval ;;
4789esac
4790EXTRA_OPTIONS=$EXTRA_OPTIONS
4791
4792
4793
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4800echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4801# On Suns, sometimes $CPP names a directory.
4802if test -n "$CPP" && test -d "$CPP"; then
4803 CPP=
4804fi
4805if test -z "$CPP"; then
4806 if test "${ac_cv_prog_CPP+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809 # Double quotes because CPP needs to be expanded
4810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811 do
4812 ac_preproc_ok=false
4813for ac_c_preproc_warn_flag in '' yes
4814do
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827#ifdef __STDC__
4828# include <limits.h>
4829#else
4830# include <assert.h>
4831#endif
4832 Syntax error
4833_ACEOF
4834if { (ac_try="$ac_cpp conftest.$ac_ext"
4835case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838esac
4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
4849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850 else
4851 ac_cpp_err=
4852 fi
4853else
4854 ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857 :
4858else
4859 echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 # Broken: fails on valid input.
4863continue
4864fi
4865
4866rm -f conftest.err conftest.$ac_ext
4867
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876#include <ac_nonexistent.h>
4877_ACEOF
4878if { (ac_try="$ac_cpp conftest.$ac_ext"
4879case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_c_preproc_warn_flag
4893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4894 else
4895 ac_cpp_err=
4896 fi
4897else
4898 ac_cpp_err=yes
4899fi
4900if test -z "$ac_cpp_err"; then
4901 # Broken: success on invalid input.
4902continue
4903else
4904 echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 # Passes both tests.
4908ac_preproc_ok=:
4909break
4910fi
4911
4912rm -f conftest.err conftest.$ac_ext
4913
4914done
4915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916rm -f conftest.err conftest.$ac_ext
4917if $ac_preproc_ok; then
4918 break
4919fi
4920
4921 done
4922 ac_cv_prog_CPP=$CPP
4923
4924fi
4925 CPP=$ac_cv_prog_CPP
4926else
4927 ac_cv_prog_CPP=$CPP
4928fi
4929{ echo "$as_me:$LINENO: result: $CPP" >&5
4930echo "${ECHO_T}$CPP" >&6; }
4931ac_preproc_ok=false
4932for ac_c_preproc_warn_flag in '' yes
4933do
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#ifdef __STDC__
4947# include <limits.h>
4948#else
4949# include <assert.h>
4950#endif
4951 Syntax error
4952_ACEOF
4953if { (ac_try="$ac_cpp conftest.$ac_ext"
4954case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957esac
4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null; then
4966 if test -s conftest.err; then
4967 ac_cpp_err=$ac_c_preproc_warn_flag
4968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4969 else
4970 ac_cpp_err=
4971 fi
4972else
4973 ac_cpp_err=yes
4974fi
4975if test -z "$ac_cpp_err"; then
4976 :
4977else
4978 echo "$as_me: failed program was:" >&5
4979sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 # Broken: fails on valid input.
4982continue
4983fi
4984
4985rm -f conftest.err conftest.$ac_ext
4986
4987 # OK, works on sane cases. Now check whether nonexistent headers
4988 # can be detected and how.
4989 cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995#include <ac_nonexistent.h>
4996_ACEOF
4997if { (ac_try="$ac_cpp conftest.$ac_ext"
4998case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001esac
5002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev/null; then
5010 if test -s conftest.err; then
5011 ac_cpp_err=$ac_c_preproc_warn_flag
5012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013 else
5014 ac_cpp_err=
5015 fi
5016else
5017 ac_cpp_err=yes
5018fi
5019if test -z "$ac_cpp_err"; then
5020 # Broken: success on invalid input.
5021continue
5022else
5023 echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030
5031rm -f conftest.err conftest.$ac_ext
5032
5033done
5034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035rm -f conftest.err conftest.$ac_ext
5036if $ac_preproc_ok; then
5037 :
5038else
5039 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5040See \`config.log' for more details." >&5
5041echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5042See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5044fi
5045
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057if test -n "$ac_tool_prefix"; then
5058 for ac_prog in gcc
5059 do
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064if test "${ac_cv_prog_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC="$CC" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082done
5083IFS=$as_save_IFS
5084
5085fi
5086fi
5087CC=$ac_cv_prog_CC
5088if test -n "$CC"; then
5089 { echo "$as_me:$LINENO: result: $CC" >&5
5090echo "${ECHO_T}$CC" >&6; }
5091else
5092 { echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6; }
5094fi
5095
5096
5097 test -n "$CC" && break
5098 done
5099fi
5100if test -z "$CC"; then
5101 ac_ct_CC=$CC
5102 for ac_prog in gcc
5103do
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105set dummy $ac_prog; ac_word=$2
5106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CC="$ac_prog"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125done
5126done
5127IFS=$as_save_IFS
5128
5129fi
5130fi
5131ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132if test -n "$ac_ct_CC"; then
5133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134echo "${ECHO_T}$ac_ct_CC" >&6; }
5135else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6; }
5138fi
5139
5140
5141 test -n "$ac_ct_CC" && break
5142done
5143
5144 if test "x$ac_ct_CC" = x; then
5145 CC=""
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5150whose name does not start with the host triplet. If you think this
5151configuration is useful to you, please write to autoconf@gnu.org." >&5
5152echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5153whose name does not start with the host triplet. If you think this
5154configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5155ac_tool_warned=yes ;;
5156esac
5157 CC=$ac_ct_CC
5158 fi
5159fi
5160
5161
5162test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5163See \`config.log' for more details." >&5
5164echo "$as_me: error: no acceptable C compiler found in \$PATH
5165See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5167
5168# Provide some information about the compiler.
5169echo "$as_me:$LINENO: checking for C compiler version" >&5
5170ac_compiler=`set X $ac_compile; echo $2`
5171{ (ac_try="$ac_compiler --version >&5"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_compiler --version >&5") 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }
5181{ (ac_try="$ac_compiler -v >&5"
5182case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185esac
5186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_compiler -v >&5") 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }
5191{ (ac_try="$ac_compiler -V >&5"
5192case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compiler -V >&5") 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5201
5202{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5203echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5204if test "${ac_cv_c_compiler_gnu+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207 cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h. */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h. */
5213
5214int
5215main ()
5216{
5217#ifndef __GNUC__
5218 choke me
5219#endif
5220
5221 ;
5222 return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230esac
5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_try") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_try") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_compiler_gnu=yes
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 ac_compiler_gnu=no
5265fi
5266
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268ac_cv_c_compiler_gnu=$ac_compiler_gnu
5269
5270fi
5271{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273GCC=`test $ac_compiler_gnu = yes && echo yes`
5274ac_test_CFLAGS=${CFLAGS+set}
5275ac_save_CFLAGS=$CFLAGS
5276{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278if test "${ac_cv_prog_cc_g+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 ac_save_c_werror_flag=$ac_c_werror_flag
5282 ac_c_werror_flag=yes
5283 ac_cv_prog_cc_g=no
5284 CFLAGS="-g"
5285 cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291
5292int
5293main ()
5294{
5295
5296 ;
5297 return 0;
5298}
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (ac_try="$ac_compile"
5302case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315 { (case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318esac
5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_try") 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_try") 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_cv_prog_cc_g=yes
5335else
5336 echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 CFLAGS=""
5340 cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (ac_try="$ac_compile"
5357case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360esac
5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370 { (case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_try") 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383esac
5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_try") 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 :
5390else
5391 echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ac_c_werror_flag=$ac_save_c_werror_flag
5395 CFLAGS="-g"
5396 cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h. */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h. */
5402
5403int
5404main ()
5405{
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (ac_try="$ac_compile"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_prog_cc_g=yes
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450
5451fi
5452
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455
5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5461fi
5462{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5468 CFLAGS="-g -O2"
5469 else
5470 CFLAGS="-g"
5471 fi
5472else
5473 if test "$GCC" = yes; then
5474 CFLAGS="-O2"
5475 else
5476 CFLAGS=
5477 fi
5478fi
5479{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 ac_cv_prog_cc_c89=no
5485ac_save_CC=$CC
5486cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492#include <stdarg.h>
5493#include <stdio.h>
5494#include <sys/types.h>
5495#include <sys/stat.h>
5496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497struct buf { int x; };
5498FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499static char *e (p, i)
5500 char **p;
5501 int i;
5502{
5503 return p[i];
5504}
5505static char *f (char * (*g) (char **, int), char **p, ...)
5506{
5507 char *s;
5508 va_list v;
5509 va_start (v,p);
5510 s = g (p, va_arg (v,int));
5511 va_end (v);
5512 return s;
5513}
5514
5515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5523
5524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5526#define FOO(x) 'x'
5527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5528
5529int test (int i, double x);
5530struct s1 {int (*f) (int a);};
5531struct s2 {int (*f) (double a);};
5532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533int argc;
5534char **argv;
5535int
5536main ()
5537{
5538return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5545do
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_try") 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_prog_cc_c89=$ac_arg
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586
5587fi
5588
5589rm -f core conftest.err conftest.$ac_objext
5590 test "x$ac_cv_prog_cc_c89" != "xno" && break
5591done
5592rm -f conftest.$ac_ext
5593CC=$ac_save_CC
5594
5595fi
5596# AC_CACHE_VAL
5597case "x$ac_cv_prog_cc_c89" in
5598 x)
5599 { echo "$as_me:$LINENO: result: none needed" >&5
5600echo "${ECHO_T}none needed" >&6; } ;;
5601 xno)
5602 { echo "$as_me:$LINENO: result: unsupported" >&5
5603echo "${ECHO_T}unsupported" >&6; } ;;
5604 *)
5605 CC="$CC $ac_cv_prog_cc_c89"
5606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5607echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5608esac
5609
5610
5611ac_ext=c
5612ac_cpp='$CPP $CPPFLAGS'
5613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616
5617ac_ext=cpp
5618ac_cpp='$CXXCPP $CPPFLAGS'
5619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622if test -z "$CXX"; then
5623 if test -n "$CCC"; then
5624 CXX=$CCC
5625 else
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in g++
5628 do
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633if test "${ac_cv_prog_CXX+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 if test -n "$CXX"; then
5637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656CXX=$ac_cv_prog_CXX
5657if test -n "$CXX"; then
5658 { echo "$as_me:$LINENO: result: $CXX" >&5
5659echo "${ECHO_T}$CXX" >&6; }
5660else
5661 { echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6; }
5663fi
5664
5665
5666 test -n "$CXX" && break
5667 done
5668fi
5669if test -z "$CXX"; then
5670 ac_ct_CXX=$CXX
5671 for ac_prog in g++
5672do
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674set dummy $ac_prog; ac_word=$2
5675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 if test -n "$ac_ct_CXX"; then
5681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_ac_ct_CXX="$ac_prog"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5701if test -n "$ac_ct_CXX"; then
5702 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5703echo "${ECHO_T}$ac_ct_CXX" >&6; }
5704else
5705 { echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6; }
5707fi
5708
5709
5710 test -n "$ac_ct_CXX" && break
5711done
5712
5713 if test "x$ac_ct_CXX" = x; then
5714 CXX="g++"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5719whose name does not start with the host triplet. If you think this
5720configuration is useful to you, please write to autoconf@gnu.org." >&5
5721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5722whose name does not start with the host triplet. If you think this
5723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5724ac_tool_warned=yes ;;
5725esac
5726 CXX=$ac_ct_CXX
5727 fi
5728fi
5729
5730 fi
5731fi
5732# Provide some information about the compiler.
5733echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5734ac_compiler=`set X $ac_compile; echo $2`
5735{ (ac_try="$ac_compiler --version >&5"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compiler --version >&5") 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }
5745{ (ac_try="$ac_compiler -v >&5"
5746case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler -v >&5") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
5755{ (ac_try="$ac_compiler -V >&5"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -V >&5") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5765
5766{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5767echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5768if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771 cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h. */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h. */
5777
5778int
5779main ()
5780{
5781#ifndef __GNUC__
5782 choke me
5783#endif
5784
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext
5790if { (ac_try="$ac_compile"
5791case "(($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_compile") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_try") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_compiler_gnu=yes
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_compiler_gnu=no
5829fi
5830
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
5834fi
5835{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837GXX=`test $ac_compiler_gnu = yes && echo yes`
5838ac_test_CXXFLAGS=${CXXFLAGS+set}
5839ac_save_CXXFLAGS=$CXXFLAGS
5840{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842if test "${ac_cv_prog_cxx_g+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag=yes
5847 ac_cv_prog_cxx_g=no
5848 CXXFLAGS="-g"
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855
5856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_prog_cxx_g=yes
5899else
5900 echo "$as_me: failed program was:" >&5
5901sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 CXXFLAGS=""
5904 cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910
5911int
5912main ()
5913{
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (ac_try="$ac_compile"
5921case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924esac
5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5934 { (case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_try") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 :
5954else
5955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5959 CXXFLAGS="-g"
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_prog_cxx_g=yes
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014
6015fi
6016
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
6022
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025fi
6026{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6028if test "$ac_test_CXXFLAGS" = set; then
6029 CXXFLAGS=$ac_save_CXXFLAGS
6030elif test $ac_cv_prog_cxx_g = yes; then
6031 if test "$GXX" = yes; then
6032 CXXFLAGS="-g -O2"
6033 else
6034 CXXFLAGS="-g"
6035 fi
6036else
6037 if test "$GXX" = yes; then
6038 CXXFLAGS="-O2"
6039 else
6040 CXXFLAGS=
6041 fi
6042fi
6043ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049{ echo "$as_me:$LINENO: checking " >&5
6050echo $ECHO_N "checking ... $ECHO_C" >&6; }
6051if test "${ac_cv_has_flex+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054 for ac_prog in flex lex
6055do
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057set dummy $ac_prog; ac_word=$2
6058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060if test "${ac_cv_prog_LEX+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063 if test -n "$LEX"; then
6064 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_LEX="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077done
6078done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083LEX=$ac_cv_prog_LEX
6084if test -n "$LEX"; then
6085 { echo "$as_me:$LINENO: result: $LEX" >&5
6086echo "${ECHO_T}$LEX" >&6; }
6087else
6088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090fi
6091
6092
6093 test -n "$LEX" && break
6094done
6095test -n "$LEX" || LEX=":"
6096
6097if test -z "$LEXLIB"
6098then
6099 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6100echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6101if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 ac_check_lib_save_LIBS=$LIBS
6105LIBS="-lfl $LIBS"
6106cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h. */
6112
6113/* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6116#ifdef __cplusplus
6117extern "C"
6118#endif
6119char yywrap ();
6120int
6121main ()
6122{
6123return yywrap ();
6124 ;
6125 return 0;
6126}
6127_ACEOF
6128rm -f conftest.$ac_objext conftest$ac_exeext
6129if { (ac_try="$ac_link"
6130case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_link") 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_lib_fl_yywrap=yes
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_lib_fl_yywrap=no
6168fi
6169
6170rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172LIBS=$ac_check_lib_save_LIBS
6173fi
6174{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6175echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6176if test $ac_cv_lib_fl_yywrap = yes; then
6177 LEXLIB="-lfl"
6178else
6179 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6180echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6181if test "${ac_cv_lib_l_yywrap+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 ac_check_lib_save_LIBS=$LIBS
6185LIBS="-ll $LIBS"
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
6192
6193/* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199char yywrap ();
6200int
6201main ()
6202{
6203return yywrap ();
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (ac_try="$ac_link"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_link") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_lib_l_yywrap=yes
6243else
6244 echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cv_lib_l_yywrap=no
6248fi
6249
6250rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252LIBS=$ac_check_lib_save_LIBS
6253fi
6254{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6255echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6256if test $ac_cv_lib_l_yywrap = yes; then
6257 LEXLIB="-ll"
6258fi
6259
6260fi
6261
6262fi
6263
6264if test "x$LEX" != "x:"; then
6265 { echo "$as_me:$LINENO: checking lex output file root" >&5
6266echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_lex_root+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270 # The minimal lex program is just a single line: %%. But some broken lexes
6271# (Solaris, I think it was) want two %% lines, so accommodate them.
6272cat >conftest.l <<_ACEOF
6273%%
6274%%
6275_ACEOF
6276{ (ac_try="$LEX conftest.l"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$LEX conftest.l") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286if test -f lex.yy.c; then
6287 ac_cv_prog_lex_root=lex.yy
6288elif test -f lexyy.c; then
6289 ac_cv_prog_lex_root=lexyy
6290else
6291 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6292echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6293 { (exit 1); exit 1; }; }
6294fi
6295fi
6296{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6297echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6298rm -f conftest.l
6299LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6300
6301{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6302echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6303if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 # POSIX says lex can declare yytext either as a pointer or an array; the
6307# default is implementation-dependent. Figure out which it is, since
6308# not all implementations provide the %pointer and %array declarations.
6309ac_cv_prog_lex_yytext_pointer=no
6310echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6311ac_save_LIBS=$LIBS
6312LIBS="$LIBS $LEXLIB"
6313cat >conftest.$ac_ext <<_ACEOF
6314`cat $LEX_OUTPUT_ROOT.c`
6315_ACEOF
6316rm -f conftest.$ac_objext conftest$ac_exeext
6317if { (ac_try="$ac_link"
6318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_link") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6331 { (case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_try") 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try='test -s conftest$ac_exeext'
6341 { (case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_try") 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_prog_lex_yytext_pointer=yes
6351else
6352 echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355
6356fi
6357
6358rm -f core conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6360LIBS=$ac_save_LIBS
6361rm -f "${LEX_OUTPUT_ROOT}.c"
6362
6363fi
6364{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6365echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6366if test $ac_cv_prog_lex_yytext_pointer = yes; then
6367
6368cat >>confdefs.h <<\_ACEOF
6369#define YYTEXT_POINTER 1
6370_ACEOF
6371
6372fi
6373
6374fi
6375
6376fi
6377{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6378echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6379if test "$LEX" != "flex"; then
6380 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6381echo "$as_me: error: flex not found but required" >&2;}
6382 { (exit 1); exit 1; }; }
6383else
6384 FLEX=flex
6385
6386fi
6387
6388{ echo "$as_me:$LINENO: checking " >&5
6389echo $ECHO_N "checking ... $ECHO_C" >&6; }
6390if test "${llvm_cv_has_bison+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393 for ac_prog in 'bison -y' byacc
6394do
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396set dummy $ac_prog; ac_word=$2
6397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_YACC+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402 if test -n "$YACC"; then
6403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_YACC="$ac_prog"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416done
6417done
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422YACC=$ac_cv_prog_YACC
6423if test -n "$YACC"; then
6424 { echo "$as_me:$LINENO: result: $YACC" >&5
6425echo "${ECHO_T}$YACC" >&6; }
6426else
6427 { echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6; }
6429fi
6430
6431
6432 test -n "$YACC" && break
6433done
6434test -n "$YACC" || YACC="yacc"
6435
6436fi
6437{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6438echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6439if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006440
6441 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6442echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006443else
6444 BISON=bison
6445
6446fi
6447
6448{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6449echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6450if test "${lt_cv_path_NM+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453 if test -n "$NM"; then
6454 # Let the user override the test.
6455 lt_cv_path_NM="$NM"
6456else
6457 lt_nm_to_check="${ac_tool_prefix}nm"
6458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6459 lt_nm_to_check="$lt_nm_to_check nm"
6460 fi
6461 for lt_tmp_nm in $lt_nm_to_check; do
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6464 IFS="$lt_save_ifs"
6465 test -z "$ac_dir" && ac_dir=.
6466 tmp_nm="$ac_dir/$lt_tmp_nm"
6467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6468 # Check to see if the nm accepts a BSD-compat flag.
6469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6470 # nm: unknown option "B" ignored
6471 # Tru64's nm complains that /dev/null is an invalid object file
6472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6473 */dev/null* | *'Invalid file or object type'*)
6474 lt_cv_path_NM="$tmp_nm -B"
6475 break
6476 ;;
6477 *)
6478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6479 */dev/null*)
6480 lt_cv_path_NM="$tmp_nm -p"
6481 break
6482 ;;
6483 *)
6484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485 continue # so that we can try to find one that supports BSD flags
6486 ;;
6487 esac
6488 ;;
6489 esac
6490 fi
6491 done
6492 IFS="$lt_save_ifs"
6493 done
6494 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6495fi
6496fi
6497{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6498echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6499NM="$lt_cv_path_NM"
6500
6501
6502
6503{ echo "$as_me:$LINENO: checking for GNU make" >&5
6504echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6505if test "${llvm_cv_gnu_make_command+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 llvm_cv_gnu_make_command=''
6509 for a in "$MAKE" make gmake gnumake ; do
6510 if test -z "$a" ; then continue ; fi ;
6511 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6512 then
6513 llvm_cv_gnu_make_command=$a ;
6514 break;
6515 fi
6516 done
6517fi
6518{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6519echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6520 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6521 ifGNUmake='' ;
6522 else
6523 ifGNUmake='#' ;
6524 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6525echo "${ECHO_T}\"Not found\"" >&6; };
6526 fi
6527
6528
6529{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6530echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6531LN_S=$as_ln_s
6532if test "$LN_S" = "ln -s"; then
6533 { echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6; }
6535else
6536 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6537echo "${ECHO_T}no, using $LN_S" >&6; }
6538fi
6539
6540# Extract the first word of "cmp", so it can be a program name with args.
6541set dummy cmp; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_CMP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 case $CMP in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6568 ;;
6569esac
6570fi
6571CMP=$ac_cv_path_CMP
6572if test -n "$CMP"; then
6573 { echo "$as_me:$LINENO: result: $CMP" >&5
6574echo "${ECHO_T}$CMP" >&6; }
6575else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581# Extract the first word of "cp", so it can be a program name with args.
6582set dummy cp; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_CP+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $CP in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6609 ;;
6610esac
6611fi
6612CP=$ac_cv_path_CP
6613if test -n "$CP"; then
6614 { echo "$as_me:$LINENO: result: $CP" >&5
6615echo "${ECHO_T}$CP" >&6; }
6616else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622# Extract the first word of "date", so it can be a program name with args.
6623set dummy date; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_DATE+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 case $DATE in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6650 ;;
6651esac
6652fi
6653DATE=$ac_cv_path_DATE
6654if test -n "$DATE"; then
6655 { echo "$as_me:$LINENO: result: $DATE" >&5
6656echo "${ECHO_T}$DATE" >&6; }
6657else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663# Extract the first word of "find", so it can be a program name with args.
6664set dummy find; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_path_FIND+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 case $FIND in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6673 ;;
6674 *)
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6691 ;;
6692esac
6693fi
6694FIND=$ac_cv_path_FIND
6695if test -n "$FIND"; then
6696 { echo "$as_me:$LINENO: result: $FIND" >&5
6697echo "${ECHO_T}$FIND" >&6; }
6698else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704# Extract the first word of "grep", so it can be a program name with args.
6705set dummy grep; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_GREP+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 case $GREP in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6732 ;;
6733esac
6734fi
6735GREP=$ac_cv_path_GREP
6736if test -n "$GREP"; then
6737 { echo "$as_me:$LINENO: result: $GREP" >&5
6738echo "${ECHO_T}$GREP" >&6; }
6739else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745# Extract the first word of "mkdir", so it can be a program name with args.
6746set dummy mkdir; ac_word=$2
6747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_MKDIR+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752 case $MKDIR in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769done
6770IFS=$as_save_IFS
6771
6772 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6773 ;;
6774esac
6775fi
6776MKDIR=$ac_cv_path_MKDIR
6777if test -n "$MKDIR"; then
6778 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6779echo "${ECHO_T}$MKDIR" >&6; }
6780else
6781 { echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6; }
6783fi
6784
6785
6786# Extract the first word of "mv", so it can be a program name with args.
6787set dummy mv; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_path_MV+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 case $MV in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6796 ;;
6797 *)
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6814 ;;
6815esac
6816fi
6817MV=$ac_cv_path_MV
6818if test -n "$MV"; then
6819 { echo "$as_me:$LINENO: result: $MV" >&5
6820echo "${ECHO_T}$MV" >&6; }
6821else
6822 { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
6824fi
6825
6826
6827if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6829set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_prog_RANLIB+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 if test -n "$RANLIB"; then
6836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849done
6850done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855RANLIB=$ac_cv_prog_RANLIB
6856if test -n "$RANLIB"; then
6857 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6858echo "${ECHO_T}$RANLIB" >&6; }
6859else
6860 { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
6862fi
6863
6864
6865fi
6866if test -z "$ac_cv_prog_RANLIB"; then
6867 ac_ct_RANLIB=$RANLIB
6868 # Extract the first word of "ranlib", so it can be a program name with args.
6869set dummy ranlib; ac_word=$2
6870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875 if test -n "$ac_ct_RANLIB"; then
6876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_RANLIB="ranlib"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6896if test -n "$ac_ct_RANLIB"; then
6897 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6898echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6899else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904 if test "x$ac_ct_RANLIB" = x; then
6905 RANLIB=":"
6906 else
6907 case $cross_compiling:$ac_tool_warned in
6908yes:)
6909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910whose name does not start with the host triplet. If you think this
6911configuration is useful to you, please write to autoconf@gnu.org." >&5
6912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913whose name does not start with the host triplet. If you think this
6914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 RANLIB=$ac_ct_RANLIB
6918 fi
6919else
6920 RANLIB="$ac_cv_prog_RANLIB"
6921fi
6922
6923# Extract the first word of "rm", so it can be a program name with args.
6924set dummy rm; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_RM+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case $RM in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6951 ;;
6952esac
6953fi
6954RM=$ac_cv_path_RM
6955if test -n "$RM"; then
6956 { echo "$as_me:$LINENO: result: $RM" >&5
6957echo "${ECHO_T}$RM" >&6; }
6958else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "sed", so it can be a program name with args.
6965set dummy sed; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_SED+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 case $SED in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6992 ;;
6993esac
6994fi
6995SED=$ac_cv_path_SED
6996if test -n "$SED"; then
6997 { echo "$as_me:$LINENO: result: $SED" >&5
6998echo "${ECHO_T}$SED" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005# Extract the first word of "tar", so it can be a program name with args.
7006set dummy tar; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_TAR+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $TAR in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7015 ;;
7016 *)
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7033 ;;
7034esac
7035fi
7036TAR=$ac_cv_path_TAR
7037if test -n "$TAR"; then
7038 { echo "$as_me:$LINENO: result: $TAR" >&5
7039echo "${ECHO_T}$TAR" >&6; }
7040else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046# Extract the first word of "pwd", so it can be a program name with args.
7047set dummy pwd; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_BINPWD+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 case $BINPWD in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7074 ;;
7075esac
7076fi
7077BINPWD=$ac_cv_path_BINPWD
7078if test -n "$BINPWD"; then
7079 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7080echo "${ECHO_T}$BINPWD" >&6; }
7081else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
7084fi
7085
7086
7087
7088# Extract the first word of "Graphviz", so it can be a program name with args.
7089set dummy Graphviz; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095 case $GRAPHVIZ in
7096 [\\/]* | ?:[\\/]*)
7097 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7098 ;;
7099 *)
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111done
7112done
7113IFS=$as_save_IFS
7114
7115 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7116 ;;
7117esac
7118fi
7119GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7120if test -n "$GRAPHVIZ"; then
7121 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7122echo "${ECHO_T}$GRAPHVIZ" >&6; }
7123else
7124 { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
7129if test "$GRAPHVIZ" != "echo Graphviz" ; then
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define HAVE_GRAPHVIZ 1
7133_ACEOF
7134
Jeff Cohen28783c32007-01-12 18:22:38 +00007135 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007136 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137 fi
7138
7139cat >>confdefs.h <<_ACEOF
7140#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7141_ACEOF
7142
7143fi
7144# Extract the first word of "dot", so it can be a program name with args.
7145set dummy dot; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_path_DOT+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 case $DOT in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7154 ;;
7155 *)
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7172 ;;
7173esac
7174fi
7175DOT=$ac_cv_path_DOT
7176if test -n "$DOT"; then
7177 { echo "$as_me:$LINENO: result: $DOT" >&5
7178echo "${ECHO_T}$DOT" >&6; }
7179else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
7185if test "$DOT" != "echo dot" ; then
7186
7187cat >>confdefs.h <<\_ACEOF
7188#define HAVE_DOT 1
7189_ACEOF
7190
Jeff Cohen28783c32007-01-12 18:22:38 +00007191 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007192 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7193 fi
7194
7195cat >>confdefs.h <<_ACEOF
7196#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7197_ACEOF
7198
7199fi
7200for ac_prog in gv gsview32
7201do
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203set dummy $ac_prog; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_GV+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $GV in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229 ;;
7230esac
7231fi
7232GV=$ac_cv_path_GV
7233if test -n "$GV"; then
7234 { echo "$as_me:$LINENO: result: $GV" >&5
7235echo "${ECHO_T}$GV" >&6; }
7236else
7237 { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
7239fi
7240
7241
7242 test -n "$GV" && break
7243done
7244test -n "$GV" || GV="echo gv"
7245
7246if test "$GV" != "echo gv" ; then
7247
7248cat >>confdefs.h <<\_ACEOF
7249#define HAVE_GV 1
7250_ACEOF
7251
Jeff Cohen28783c32007-01-12 18:22:38 +00007252 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007253 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7254 fi
7255
7256cat >>confdefs.h <<_ACEOF
7257#define LLVM_PATH_GV "$GV${EXEEXT}"
7258_ACEOF
7259
7260fi
7261# Extract the first word of "dotty", so it can be a program name with args.
7262set dummy dotty; ac_word=$2
7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_DOTTY+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268 case $DOTTY in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7289 ;;
7290esac
7291fi
7292DOTTY=$ac_cv_path_DOTTY
7293if test -n "$DOTTY"; then
7294 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7295echo "${ECHO_T}$DOTTY" >&6; }
7296else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
7302if test "$DOTTY" != "echo dotty" ; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define HAVE_DOTTY 1
7306_ACEOF
7307
Jeff Cohen28783c32007-01-12 18:22:38 +00007308 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007309 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7310 fi
7311
7312cat >>confdefs.h <<_ACEOF
7313#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7314_ACEOF
7315
7316fi
7317
7318
7319# Extract the first word of "perl", so it can be a program name with args.
7320set dummy perl; ac_word=$2
7321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_path_PERL+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 case $PERL in
7327 [\\/]* | ?:[\\/]*)
7328 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7329 ;;
7330 *)
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342done
7343done
7344IFS=$as_save_IFS
7345
7346 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7347 ;;
7348esac
7349fi
7350PERL=$ac_cv_path_PERL
7351if test -n "$PERL"; then
7352 { echo "$as_me:$LINENO: result: $PERL" >&5
7353echo "${ECHO_T}$PERL" >&6; }
7354else
7355 { echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6; }
7357fi
7358
7359
7360if test "$PERL" != "none"; then
7361 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7362echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7363 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7364 { echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6; }
7366 else
7367 PERL=none
7368 { echo "$as_me:$LINENO: result: not found" >&5
7369echo "${ECHO_T}not found" >&6; }
7370 fi
7371fi
7372
7373
7374if test x"$PERL" = xnone; then
7375 HAVE_PERL=0
7376
7377else
7378 HAVE_PERL=1
7379
7380fi
7381
7382# Find a good install program. We prefer a C program (faster),
7383# so one script is as good as another. But avoid the broken or
7384# incompatible versions:
7385# SysV /etc/install, /usr/sbin/install
7386# SunOS /usr/etc/install
7387# IRIX /sbin/install
7388# AIX /bin/install
7389# AmigaOS /C/install, which installs bootblocks on floppy discs
7390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7393# OS/2's system install, which has a completely different semantic
7394# ./install, which can be erroneously created by make from ./install.sh.
7395{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7397if test -z "$INSTALL"; then
7398if test "${ac_cv_path_install+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 # Account for people who put trailing slashes in PATH elements.
7407case $as_dir/ in
7408 ./ | .// | /cC/* | \
7409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7411 /usr/ucb/* ) ;;
7412 *)
7413 # OSF1 and SCO ODT 3.0 have their own names for install.
7414 # Don't use installbsd from OSF since it installs stuff as root
7415 # by default.
7416 for ac_prog in ginstall scoinst install; do
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7419 if test $ac_prog = install &&
7420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7421 # AIX install. It has an incompatible calling convention.
7422 :
7423 elif test $ac_prog = install &&
7424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7425 # program-specific install script used by HP pwplus--don't use.
7426 :
7427 else
7428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7429 break 3
7430 fi
7431 fi
7432 done
7433 done
7434 ;;
7435esac
7436done
7437IFS=$as_save_IFS
7438
7439
7440fi
7441 if test "${ac_cv_path_install+set}" = set; then
7442 INSTALL=$ac_cv_path_install
7443 else
7444 # As a last resort, use the slow shell script. Don't cache a
7445 # value for INSTALL within a source directory, because that will
7446 # break other packages using the cache if that directory is
7447 # removed, or if the value is a relative name.
7448 INSTALL=$ac_install_sh
7449 fi
7450fi
7451{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7452echo "${ECHO_T}$INSTALL" >&6; }
7453
7454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7455# It thinks the first close brace ends the variable substitution.
7456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7457
7458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7459
7460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7461
7462
7463# Extract the first word of "bzip2", so it can be a program name with args.
7464set dummy bzip2; 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_BZIP2+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470 case $BZIP2 in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_BZIP2="$BZIP2" # 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
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7491 ;;
7492esac
7493fi
7494BZIP2=$ac_cv_path_BZIP2
7495if test -n "$BZIP2"; then
7496 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7497echo "${ECHO_T}$BZIP2" >&6; }
7498else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
7504# Extract the first word of "doxygen", so it can be a program name with args.
7505set dummy doxygen; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_DOXYGEN+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $DOXYGEN in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7532 ;;
7533esac
7534fi
7535DOXYGEN=$ac_cv_path_DOXYGEN
7536if test -n "$DOXYGEN"; then
7537 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7538echo "${ECHO_T}$DOXYGEN" >&6; }
7539else
7540 { echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6; }
7542fi
7543
7544
Reid Spencera773bd52006-08-04 18:18:08 +00007545# Extract the first word of "groff", so it can be a program name with args.
7546set dummy groff; ac_word=$2
7547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_GROFF+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 case $GROFF in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7555 ;;
7556 *)
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569done
7570IFS=$as_save_IFS
7571
7572 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7573 ;;
7574esac
7575fi
7576GROFF=$ac_cv_path_GROFF
7577if test -n "$GROFF"; then
7578 { echo "$as_me:$LINENO: result: $GROFF" >&5
7579echo "${ECHO_T}$GROFF" >&6; }
7580else
7581 { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
7583fi
7584
7585
7586# Extract the first word of "gzip", so it can be a program name with args.
7587set dummy gzip; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_GZIP+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 case $GZIP in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7614 ;;
7615esac
7616fi
7617GZIP=$ac_cv_path_GZIP
7618if test -n "$GZIP"; then
7619 { echo "$as_me:$LINENO: result: $GZIP" >&5
7620echo "${ECHO_T}$GZIP" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627# Extract the first word of "pod2html", so it can be a program name with args.
7628set dummy pod2html; ac_word=$2
7629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631if test "${ac_cv_path_POD2HTML+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 case $POD2HTML in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7637 ;;
7638 *)
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650done
7651done
7652IFS=$as_save_IFS
7653
7654 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7655 ;;
7656esac
7657fi
7658POD2HTML=$ac_cv_path_POD2HTML
7659if test -n "$POD2HTML"; then
7660 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7661echo "${ECHO_T}$POD2HTML" >&6; }
7662else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668# Extract the first word of "pod2man", so it can be a program name with args.
7669set dummy pod2man; ac_word=$2
7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_POD2MAN+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 case $POD2MAN in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693IFS=$as_save_IFS
7694
7695 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7696 ;;
7697esac
7698fi
7699POD2MAN=$ac_cv_path_POD2MAN
7700if test -n "$POD2MAN"; then
7701 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7702echo "${ECHO_T}$POD2MAN" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709# Extract the first word of "runtest", so it can be a program name with args.
7710set dummy runtest; ac_word=$2
7711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713if test "${ac_cv_path_RUNTEST+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 case $RUNTEST in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732done
7733done
7734IFS=$as_save_IFS
7735
7736 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7737 ;;
7738esac
7739fi
7740RUNTEST=$ac_cv_path_RUNTEST
7741if test -n "$RUNTEST"; then
7742 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7743echo "${ECHO_T}$RUNTEST" >&6; }
7744else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
7747fi
7748
7749
7750
7751no_itcl=true
7752{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7753echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7754
7755# Check whether --with-tclinclude was given.
7756if test "${with_tclinclude+set}" = set; then
7757 withval=$with_tclinclude; with_tclinclude=${withval}
7758else
7759 with_tclinclude=''
7760fi
7761
7762if test "${ac_cv_path_tclsh+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765
7766if test x"${with_tclinclude}" != x ; then
7767 if test -f ${with_tclinclude}/tclsh ; then
7768 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7769 elif test -f ${with_tclinclude}/src/tclsh ; then
7770 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7771 else
7772 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7773echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7774 { (exit 1); exit 1; }; }
7775 fi
7776fi
7777
7778if test x"${ac_cv_path_tclsh}" = x ; then
7779 { echo "$as_me:$LINENO: result: none" >&5
7780echo "${ECHO_T}none" >&6; }
7781 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
7782do
7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
7784set dummy $ac_prog; ac_word=$2
7785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787if test "${ac_cv_path_TCLSH+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790 case $TCLSH in
7791 [\\/]* | ?:[\\/]*)
7792 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7793 ;;
7794 *)
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806done
7807done
7808IFS=$as_save_IFS
7809
7810 ;;
7811esac
7812fi
7813TCLSH=$ac_cv_path_TCLSH
7814if test -n "$TCLSH"; then
7815 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7816echo "${ECHO_T}$TCLSH" >&6; }
7817else
7818 { echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6; }
7820fi
7821
7822
7823 test -n "$TCLSH" && break
7824done
7825
7826 if test x"${TCLSH}" = x ; then
7827 ac_cv_path_tclsh='';
7828 else
7829 ac_cv_path_tclsh="${TCLSH}";
7830 fi
7831else
7832 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7833echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7834 TCLSH="${ac_cv_path_tclsh}"
7835
7836fi
7837
7838fi
7839
7840# Extract the first word of "zip", so it can be a program name with args.
7841set dummy zip; ac_word=$2
7842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7844if test "${ac_cv_path_ZIP+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 case $ZIP in
7848 [\\/]* | ?:[\\/]*)
7849 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7850 ;;
7851 *)
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863done
7864done
7865IFS=$as_save_IFS
7866
7867 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7868 ;;
7869esac
7870fi
7871ZIP=$ac_cv_path_ZIP
7872if test -n "$ZIP"; then
7873 { echo "$as_me:$LINENO: result: $ZIP" >&5
7874echo "${ECHO_T}$ZIP" >&6; }
7875else
7876 { echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6; }
7878fi
7879
7880
7881
7882{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7883echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7884if test "${llvm_cv_link_use_r+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887 ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893 oldcflags="$CFLAGS"
7894 CFLAGS="$CFLAGS -Wl,-R."
7895 cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h. */
7901
7902int
7903main ()
7904{
7905int main() { return 0; }
7906 ;
7907 return 0;
7908}
7909_ACEOF
7910rm -f conftest.$ac_objext conftest$ac_exeext
7911if { (ac_try="$ac_link"
7912case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915esac
7916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_try") 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 llvm_cv_link_use_r=yes
7945else
7946 echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 llvm_cv_link_use_r=no
7950fi
7951
7952rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954 CFLAGS="$oldcflags"
7955 ac_ext=c
7956ac_cpp='$CPP $CPPFLAGS'
7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961
7962fi
7963{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7964echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7965if test "$llvm_cv_link_use_r" = yes ; then
7966
7967cat >>confdefs.h <<\_ACEOF
7968#define HAVE_LINK_R 1
7969_ACEOF
7970
7971 fi
7972
7973
7974
7975
7976{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7977echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7978if test "${ac_cv_c_const+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981 cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987
7988int
7989main ()
7990{
7991/* FIXME: Include the comments suggested by Paul. */
7992#ifndef __cplusplus
7993 /* Ultrix mips cc rejects this. */
7994 typedef int charset[2];
7995 const charset x;
7996 /* SunOS 4.1.1 cc rejects this. */
7997 char const *const *ccp;
7998 char **p;
7999 /* NEC SVR4.0.2 mips cc rejects this. */
8000 struct point {int x, y;};
8001 static struct point const zero = {0,0};
8002 /* AIX XL C 1.02.0.0 rejects this.
8003 It does not let you subtract one const X* pointer from another in
8004 an arm of an if-expression whose if-part is not a constant
8005 expression */
8006 const char *g = "string";
8007 ccp = &g + (g ? g-g : 0);
8008 /* HPUX 7.0 cc rejects these. */
8009 ++ccp;
8010 p = (char**) ccp;
8011 ccp = (char const *const *) p;
8012 { /* SCO 3.2v4 cc rejects this. */
8013 char *t;
8014 char const *s = 0 ? (char *) 0 : (char const *) 0;
8015
8016 *t++ = 0;
8017 if (s) return 0;
8018 }
8019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8020 int x[] = {25, 17};
8021 const int *foo = &x[0];
8022 ++foo;
8023 }
8024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8025 typedef const int *iptr;
8026 iptr p = 0;
8027 ++p;
8028 }
8029 { /* AIX XL C 1.02.0.0 rejects this saying
8030 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8031 struct s { int j; const int *ap[3]; };
8032 struct s *b; b->j = 5;
8033 }
8034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8035 const int foo = 10;
8036 if (!foo) return 0;
8037 }
8038 return !x[0] && !zero.x;
8039#endif
8040
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext
8046if { (ac_try="$ac_compile"
8047case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073esac
8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_c_const=yes
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_cv_c_const=no
8085fi
8086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088fi
8089{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8090echo "${ECHO_T}$ac_cv_c_const" >&6; }
8091if test $ac_cv_c_const = no; then
8092
8093cat >>confdefs.h <<\_ACEOF
8094#define const
8095_ACEOF
8096
8097fi
8098
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008099
8100
8101
8102
8103
8104ac_header_dirent=no
8105for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8106 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008107{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8108echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112 cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
8118#include <sys/types.h>
8119#include <$ac_hdr>
8120
8121int
8122main ()
8123{
8124if ((DIR *) 0)
8125return 0;
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008131if { (ac_try="$ac_compile"
8132case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 eval "$as_ac_Header=yes"
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
Reid Spencera773bd52006-08-04 18:18:08 +00008169 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008170fi
Reid Spencera773bd52006-08-04 18:18:08 +00008171
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173fi
Reid Spencera773bd52006-08-04 18:18:08 +00008174ac_res=`eval echo '${'$as_ac_Header'}'`
8175 { echo "$as_me:$LINENO: result: $ac_res" >&5
8176echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008177if test `eval echo '${'$as_ac_Header'}'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8180_ACEOF
8181
8182ac_header_dirent=$ac_hdr; break
8183fi
8184
8185done
8186# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8187if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008188 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8189echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008190if test "${ac_cv_search_opendir+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008194cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
8200
Reid Spencera773bd52006-08-04 18:18:08 +00008201/* Override any GCC internal prototype to avoid an error.
8202 Use char because int might match the return type of a GCC
8203 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008204#ifdef __cplusplus
8205extern "C"
8206#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008207char opendir ();
8208int
8209main ()
8210{
Reid Spencera773bd52006-08-04 18:18:08 +00008211return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008212 ;
8213 return 0;
8214}
8215_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008216for ac_lib in '' dir; do
8217 if test -z "$ac_lib"; then
8218 ac_res="none required"
8219 else
8220 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008222 fi
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224if { (ac_try="$ac_link"
8225case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8238 { (case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241esac
8242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251esac
8252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008257 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008258else
8259 echo "$as_me: failed program was:" >&5
8260sed 's/^/| /' conftest.$ac_ext >&5
8261
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008262
8263fi
8264
Reid Spencera773bd52006-08-04 18:18:08 +00008265rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext
8267 if test "${ac_cv_search_opendir+set}" = set; then
8268 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008269fi
John Criswell7a73b802003-06-30 21:59:07 +00008270done
Reid Spencera773bd52006-08-04 18:18:08 +00008271if test "${ac_cv_search_opendir+set}" = set; then
8272 :
8273else
8274 ac_cv_search_opendir=no
8275fi
8276rm conftest.$ac_ext
8277LIBS=$ac_func_search_save_LIBS
8278fi
8279{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8280echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8281ac_res=$ac_cv_search_opendir
8282if test "$ac_res" != no; then
8283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008284
Reid Spencera773bd52006-08-04 18:18:08 +00008285fi
8286
8287else
8288 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8289echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8290if test "${ac_cv_search_opendir+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293 ac_func_search_save_LIBS=$LIBS
8294cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h. */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h. */
8300
8301/* Override any GCC internal prototype to avoid an error.
8302 Use char because int might match the return type of a GCC
8303 builtin and then its argument prototype would still apply. */
8304#ifdef __cplusplus
8305extern "C"
8306#endif
8307char opendir ();
8308int
8309main ()
8310{
8311return opendir ();
8312 ;
8313 return 0;
8314}
8315_ACEOF
8316for ac_lib in '' x; do
8317 if test -z "$ac_lib"; then
8318 ac_res="none required"
8319 else
8320 ac_res=-l$ac_lib
8321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8322 fi
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324if { (ac_try="$ac_link"
8325case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_link") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341esac
8342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_try") 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_search_opendir=$ac_res
8358else
8359 echo "$as_me: failed program was:" >&5
8360sed 's/^/| /' conftest.$ac_ext >&5
8361
8362
8363fi
8364
8365rm -f core conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext
8367 if test "${ac_cv_search_opendir+set}" = set; then
8368 break
8369fi
8370done
8371if test "${ac_cv_search_opendir+set}" = set; then
8372 :
8373else
8374 ac_cv_search_opendir=no
8375fi
8376rm conftest.$ac_ext
8377LIBS=$ac_func_search_save_LIBS
8378fi
8379{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8380echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8381ac_res=$ac_cv_search_opendir
8382if test "$ac_res" != no; then
8383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8384
8385fi
8386
8387fi
John Criswell7a73b802003-06-30 21:59:07 +00008388
8389
8390for ac_header in dlfcn.h
8391do
8392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008397 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008398fi
Reid Spencera773bd52006-08-04 18:18:08 +00008399ac_res=`eval echo '${'$as_ac_Header'}'`
8400 { echo "$as_me:$LINENO: result: $ac_res" >&5
8401echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008402else
Brian Gaeke0a621332004-09-08 20:38:05 +00008403 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008404{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008406cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008407/* confdefs.h. */
8408_ACEOF
8409cat confdefs.h >>conftest.$ac_ext
8410cat >>conftest.$ac_ext <<_ACEOF
8411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008412$ac_includes_default
8413#include <$ac_header>
8414_ACEOF
8415rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008416if { (ac_try="$ac_compile"
8417case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420esac
8421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430 { (case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008449 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008450else
8451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008452sed 's/^/| /' conftest.$ac_ext >&5
8453
Reid Spencera773bd52006-08-04 18:18:08 +00008454 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008455fi
Reid Spencera773bd52006-08-04 18:18:08 +00008456
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8459echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008460
8461# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008462{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008464cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008465/* confdefs.h. */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h. */
8470#include <$ac_header>
8471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008472if { (ac_try="$ac_cpp conftest.$ac_ext"
8473case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev/null; then
8485 if test -s conftest.err; then
8486 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008488 else
8489 ac_cpp_err=
8490 fi
8491else
8492 ac_cpp_err=yes
8493fi
8494if test -z "$ac_cpp_err"; then
8495 ac_header_preproc=yes
8496else
8497 echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_header_preproc=no
8501fi
Reid Spencera773bd52006-08-04 18:18:08 +00008502
Brian Gaeke0a621332004-09-08 20:38:05 +00008503rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008504{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8505echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008506
8507# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8509 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8514 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008515 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008516 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008529 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008530## ----------------------------------- ##
8531## Report this to llvmbugs@cs.uiuc.edu ##
8532## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008533_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008534 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008535 ;;
8536esac
Reid Spencera773bd52006-08-04 18:18:08 +00008537{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008542 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008543fi
Reid Spencera773bd52006-08-04 18:18:08 +00008544ac_res=`eval echo '${'$as_ac_Header'}'`
8545 { echo "$as_me:$LINENO: result: $ac_res" >&5
8546echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008547
8548fi
John Criswell7a73b802003-06-30 21:59:07 +00008549if test `eval echo '${'$as_ac_Header'}'` = yes; then
8550 cat >>confdefs.h <<_ACEOF
8551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552_ACEOF
8553
8554fi
8555
8556done
8557
Reid Spencera773bd52006-08-04 18:18:08 +00008558# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008559if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008560 enableval=$enable_ltdl_install;
8561fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008562
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008563
8564
8565
8566if test x"${enable_ltdl_install-no}" != xno; then
8567 INSTALL_LTDL_TRUE=
8568 INSTALL_LTDL_FALSE='#'
8569else
8570 INSTALL_LTDL_TRUE='#'
8571 INSTALL_LTDL_FALSE=
8572fi
8573
8574
8575
8576if test x"${enable_ltdl_convenience-no}" != xno; then
8577 CONVENIENCE_LTDL_TRUE=
8578 CONVENIENCE_LTDL_FALSE='#'
8579else
8580 CONVENIENCE_LTDL_TRUE='#'
8581 CONVENIENCE_LTDL_FALSE=
8582fi
8583
8584
Reid Spencera773bd52006-08-04 18:18:08 +00008585{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8586echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008587library_names_spec=
8588libname_spec='lib$name'
8589soname_spec=
8590shrext_cmds=".so"
8591postinstall_cmds=
8592postuninstall_cmds=
8593finish_cmds=
8594finish_eval=
8595shlibpath_var=
8596shlibpath_overrides_runpath=unknown
8597version_type=none
8598dynamic_linker="$host_os ld.so"
8599sys_lib_dlsearch_path_spec="/lib /usr/lib"
8600if test "$GCC" = yes; then
8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8603 # if the path contains ";" then we assume it to be the separator
8604 # otherwise default to the standard path separator (i.e. ":") - it is
8605 # assumed that no part of a normal pathname contains ";" but that should
8606 # okay in the real world where ";" in dirpaths is itself problematic.
8607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8608 else
8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8610 fi
8611else
8612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8613fi
8614need_lib_prefix=unknown
8615hardcode_into_libs=no
8616
8617# when you set need_version to no, make sure it does not cause -set_version
8618# flags to be left without arguments
8619need_version=unknown
8620
8621case $host_os in
8622aix3*)
8623 version_type=linux
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8625 shlibpath_var=LIBPATH
8626
8627 # AIX 3 has no versioning support, so we append a major version to the name.
8628 soname_spec='${libname}${release}${shared_ext}$major'
8629 ;;
8630
8631aix4* | aix5*)
8632 version_type=linux
8633 need_lib_prefix=no
8634 need_version=no
8635 hardcode_into_libs=yes
8636 if test "$host_cpu" = ia64; then
8637 # AIX 5 supports IA64
8638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8639 shlibpath_var=LD_LIBRARY_PATH
8640 else
8641 # With GCC up to 2.95.x, collect2 would create an import file
8642 # for dependence libraries. The import file would start with
8643 # the line `#! .'. This would cause the generated library to
8644 # depend on `.', always an invalid library. This was fixed in
8645 # development snapshots of GCC prior to 3.0.
8646 case $host_os in
8647 aix4 | aix4.[01] | aix4.[01].*)
8648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8649 echo ' yes '
8650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8651 :
8652 else
8653 can_build_shared=no
8654 fi
8655 ;;
8656 esac
8657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8658 # soname into executable. Probably we can add versioning support to
8659 # collect2, so additional links can be useful in future.
8660 if test "$aix_use_runtimelinking" = yes; then
8661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8662 # instead of lib<name>.a to let people know that these are not
8663 # typical AIX shared libraries.
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665 else
8666 # We preserve .a as extension for shared libraries through AIX4.2
8667 # and later when we are not doing run time linking.
8668 library_names_spec='${libname}${release}.a $libname.a'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8670 fi
8671 shlibpath_var=LIBPATH
8672 fi
8673 ;;
8674
8675amigaos*)
8676 library_names_spec='$libname.ixlibrary $libname.a'
8677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8678 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'
8679 ;;
8680
8681beos*)
8682 library_names_spec='${libname}${shared_ext}'
8683 dynamic_linker="$host_os ld.so"
8684 shlibpath_var=LIBRARY_PATH
8685 ;;
8686
8687bsdi[45]*)
8688 version_type=linux
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8693 shlibpath_var=LD_LIBRARY_PATH
8694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8696 # the default ld.so.conf also contains /usr/contrib/lib and
8697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8698 # libtool to hard-code these into programs
8699 ;;
8700
8701cygwin* | mingw* | pw32*)
8702 version_type=windows
8703 shrext_cmds=".dll"
8704 need_version=no
8705 need_lib_prefix=no
8706
8707 case $GCC,$host_os in
8708 yes,cygwin* | yes,mingw* | yes,pw32*)
8709 library_names_spec='$libname.dll.a'
8710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8711 postinstall_cmds='base_file=`basename \${file}`~
8712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8713 dldir=$destdir/`dirname \$dlpath`~
8714 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008715 $install_prog $dir/$dlname \$dldir/$dlname~
8716 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8718 dlpath=$dir/\$dldll~
8719 $rm \$dlpath'
8720 shlibpath_overrides_runpath=yes
8721
8722 case $host_os in
8723 cygwin*)
8724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8727 ;;
8728 mingw*)
8729 # MinGW DLLs use traditional 'lib' prefix
8730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8733 # It is most probably a Windows format PATH printed by
8734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8735 # path with ; separators, and with drive letters. We can handle the
8736 # drive letters (cygwin fileutils understands them), so leave them,
8737 # especially as we might pass files found there to a mingw objdump,
8738 # which wouldn't understand a cygwinified path. Ahh.
8739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8740 else
8741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8742 fi
8743 ;;
8744 pw32*)
8745 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008746 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 +00008747 ;;
8748 esac
8749 ;;
8750
8751 *)
8752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8753 ;;
8754 esac
8755 dynamic_linker='Win32 ld.exe'
8756 # FIXME: first we should search . and the directory the executable is in
8757 shlibpath_var=PATH
8758 ;;
8759
8760darwin* | rhapsody*)
8761 dynamic_linker="$host_os dyld"
8762 version_type=darwin
8763 need_lib_prefix=no
8764 need_version=no
8765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8766 soname_spec='${libname}${release}${major}$shared_ext'
8767 shlibpath_overrides_runpath=yes
8768 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008769 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008770 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8771 if test "$GCC" = yes; then
8772 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"`
8773 else
8774 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8775 fi
8776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8777 ;;
8778
8779dgux*)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 ;;
8787
8788freebsd1*)
8789 dynamic_linker=no
8790 ;;
8791
8792kfreebsd*-gnu)
8793 version_type=linux
8794 need_lib_prefix=no
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=no
8800 hardcode_into_libs=yes
8801 dynamic_linker='GNU ld.so'
8802 ;;
8803
Reid Spencera773bd52006-08-04 18:18:08 +00008804freebsd* | dragonfly*)
8805 # DragonFly does not have aout. When/if they implement a new
8806 # versioning mechanism, adjust this.
8807 if test -x /usr/bin/objformat; then
8808 objformat=`/usr/bin/objformat`
8809 else
8810 case $host_os in
8811 freebsd[123]*) objformat=aout ;;
8812 *) objformat=elf ;;
8813 esac
8814 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008815 version_type=freebsd-$objformat
8816 case $version_type in
8817 freebsd-elf*)
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8819 need_version=no
8820 need_lib_prefix=no
8821 ;;
8822 freebsd-*)
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8824 need_version=yes
8825 ;;
8826 esac
8827 shlibpath_var=LD_LIBRARY_PATH
8828 case $host_os in
8829 freebsd2*)
8830 shlibpath_overrides_runpath=yes
8831 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008832 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008833 shlibpath_overrides_runpath=yes
8834 hardcode_into_libs=yes
8835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008838 shlibpath_overrides_runpath=no
8839 hardcode_into_libs=yes
8840 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008841 freebsd*) # from 4.6 on
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8844 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008845 esac
8846 ;;
8847
8848gnu*)
8849 version_type=linux
8850 need_lib_prefix=no
8851 need_version=no
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 hardcode_into_libs=yes
8856 ;;
8857
8858hpux9* | hpux10* | hpux11*)
8859 # Give a soname corresponding to the major version so that dld.sl refuses to
8860 # link against other versions.
8861 version_type=sunos
8862 need_lib_prefix=no
8863 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008864 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865 ia64*)
8866 shrext_cmds='.so'
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.so"
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 if test "X$HPUX_IA64_MODE" = X32; then
8874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8875 else
8876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8877 fi
8878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8879 ;;
8880 hppa*64*)
8881 shrext_cmds='.sl'
8882 hardcode_into_libs=yes
8883 dynamic_linker="$host_os dld.sl"
8884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8890 ;;
8891 *)
8892 shrext_cmds='.sl'
8893 dynamic_linker="$host_os dld.sl"
8894 shlibpath_var=SHLIB_PATH
8895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 ;;
8899 esac
8900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8901 postinstall_cmds='chmod 555 $lib'
8902 ;;
8903
Reid Spencera773bd52006-08-04 18:18:08 +00008904interix3*)
8905 version_type=linux
8906 need_lib_prefix=no
8907 need_version=no
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
8914 ;;
8915
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008916irix5* | irix6* | nonstopux*)
8917 case $host_os in
8918 nonstopux*) version_type=nonstopux ;;
8919 *)
8920 if test "$lt_cv_prog_gnu_ld" = yes; then
8921 version_type=linux
8922 else
8923 version_type=irix
8924 fi ;;
8925 esac
8926 need_lib_prefix=no
8927 need_version=no
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8930 case $host_os in
8931 irix5* | nonstopux*)
8932 libsuff= shlibsuff=
8933 ;;
8934 *)
8935 case $LD in # libtool.m4 will add one of these switches to LD
8936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8937 libsuff= shlibsuff= libmagic=32-bit;;
8938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8939 libsuff=32 shlibsuff=N32 libmagic=N32;;
8940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8942 *) libsuff= shlibsuff= libmagic=never-match;;
8943 esac
8944 ;;
8945 esac
8946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8947 shlibpath_overrides_runpath=no
8948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8950 hardcode_into_libs=yes
8951 ;;
8952
8953# No shared lib support for Linux oldld, aout, or coff.
8954linux*oldld* | linux*aout* | linux*coff*)
8955 dynamic_linker=no
8956 ;;
8957
8958# This must be Linux ELF.
8959linux*)
8960 version_type=linux
8961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 # This implies no fast_install, which is unacceptable.
8969 # Some rework will be needed to allow for fast_install
8970 # before this can be enabled.
8971 hardcode_into_libs=yes
8972
8973 # Append ld.so.conf contents to the search path
8974 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008975 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 +00008976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8977 fi
8978
8979 # We used to test for /lib/ld.so.1 and disable shared libraries on
8980 # powerpc, because MkLinux only supported shared libraries with the
8981 # GNU dynamic linker. Since this was broken with cross compilers,
8982 # most powerpc-linux boxes support dynamic linking these days and
8983 # people can always --disable-shared, the test was removed, and we
8984 # assume the GNU/Linux dynamic linker is in use.
8985 dynamic_linker='GNU/Linux ld.so'
8986 ;;
8987
8988knetbsd*-gnu)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 dynamic_linker='GNU ld.so'
8998 ;;
8999
9000netbsd*)
9001 version_type=sunos
9002 need_lib_prefix=no
9003 need_version=no
9004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9007 dynamic_linker='NetBSD (a.out) ld.so'
9008 else
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 dynamic_linker='NetBSD ld.elf_so'
9012 fi
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 hardcode_into_libs=yes
9016 ;;
9017
9018newsos6)
9019 version_type=linux
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9023 ;;
9024
9025nto-qnx*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9033 ;;
9034
9035openbsd*)
9036 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009037 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009038 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9040 case $host_os in
9041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9042 *) need_version=no ;;
9043 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9048 case $host_os in
9049 openbsd2.[89] | openbsd2.[89].*)
9050 shlibpath_overrides_runpath=no
9051 ;;
9052 *)
9053 shlibpath_overrides_runpath=yes
9054 ;;
9055 esac
9056 else
9057 shlibpath_overrides_runpath=yes
9058 fi
9059 ;;
9060
9061os2*)
9062 libname_spec='$name'
9063 shrext_cmds=".dll"
9064 need_lib_prefix=no
9065 library_names_spec='$libname${shared_ext} $libname.a'
9066 dynamic_linker='OS/2 ld.exe'
9067 shlibpath_var=LIBPATH
9068 ;;
9069
9070osf3* | osf4* | osf5*)
9071 version_type=osf
9072 need_lib_prefix=no
9073 need_version=no
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9079 ;;
9080
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009081solaris*)
9082 version_type=linux
9083 need_lib_prefix=no
9084 need_version=no
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9090 # ldd complains unless libraries are executable
9091 postinstall_cmds='chmod +x $lib'
9092 ;;
9093
9094sunos4*)
9095 version_type=sunos
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes
9100 if test "$with_gnu_ld" = yes; then
9101 need_lib_prefix=no
9102 fi
9103 need_version=yes
9104 ;;
9105
Reid Spencera773bd52006-08-04 18:18:08 +00009106sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107 version_type=linux
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 case $host_vendor in
9112 sni)
9113 shlibpath_overrides_runpath=no
9114 need_lib_prefix=no
9115 export_dynamic_flag_spec='${wl}-Blargedynsym'
9116 runpath_var=LD_RUN_PATH
9117 ;;
9118 siemens)
9119 need_lib_prefix=no
9120 ;;
9121 motorola)
9122 need_lib_prefix=no
9123 need_version=no
9124 shlibpath_overrides_runpath=no
9125 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9126 ;;
9127 esac
9128 ;;
9129
9130sysv4*MP*)
9131 if test -d /usr/nec ;then
9132 version_type=linux
9133 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9134 soname_spec='$libname${shared_ext}.$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 fi
9137 ;;
9138
Reid Spencera773bd52006-08-04 18:18:08 +00009139sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9140 version_type=freebsd-elf
9141 need_lib_prefix=no
9142 need_version=no
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 hardcode_into_libs=yes
9147 if test "$with_gnu_ld" = yes; then
9148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9149 shlibpath_overrides_runpath=no
9150 else
9151 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9152 shlibpath_overrides_runpath=yes
9153 case $host_os in
9154 sco3.2v5*)
9155 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9156 ;;
9157 esac
9158 fi
9159 sys_lib_dlsearch_path_spec='/usr/lib'
9160 ;;
9161
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162uts4*)
9163 version_type=linux
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 ;;
9168
9169*)
9170 dynamic_linker=no
9171 ;;
9172esac
Reid Spencera773bd52006-08-04 18:18:08 +00009173{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9174echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009175test "$dynamic_linker" = no && can_build_shared=no
9176
Reid Spencera773bd52006-08-04 18:18:08 +00009177variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9178if test "$GCC" = yes; then
9179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9180fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009181
Reid Spencera773bd52006-08-04 18:18:08 +00009182
9183{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9184echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009185if test "${libltdl_cv_shlibext+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188
9189module=yes
9190eval libltdl_cv_shlibext=$shrext_cmds
9191
9192fi
Reid Spencera773bd52006-08-04 18:18:08 +00009193{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9194echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195if test -n "$libltdl_cv_shlibext"; then
9196
9197cat >>confdefs.h <<_ACEOF
9198#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9199_ACEOF
9200
9201fi
9202
9203
Reid Spencera773bd52006-08-04 18:18:08 +00009204{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9205echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009206if test "${libltdl_cv_shlibpath_var+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209 libltdl_cv_shlibpath_var="$shlibpath_var"
9210fi
Reid Spencera773bd52006-08-04 18:18:08 +00009211{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9212echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213if test -n "$libltdl_cv_shlibpath_var"; then
9214
9215cat >>confdefs.h <<_ACEOF
9216#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9217_ACEOF
9218
9219fi
9220
9221
Reid Spencera773bd52006-08-04 18:18:08 +00009222{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9223echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224if test "${libltdl_cv_sys_search_path+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9228fi
Reid Spencera773bd52006-08-04 18:18:08 +00009229{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9230echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231if test -n "$libltdl_cv_sys_search_path"; then
9232 sys_search_path=
9233 for dir in $libltdl_cv_sys_search_path; do
9234 if test -z "$sys_search_path"; then
9235 sys_search_path="$dir"
9236 else
9237 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9238 fi
9239 done
9240
9241cat >>confdefs.h <<_ACEOF
9242#define LTDL_SYSSEARCHPATH "$sys_search_path"
9243_ACEOF
9244
9245fi
9246
Reid Spencera773bd52006-08-04 18:18:08 +00009247{ echo "$as_me:$LINENO: checking for objdir" >&5
9248echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009249if test "${libltdl_cv_objdir+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 libltdl_cv_objdir="$objdir"
9253 if test -n "$objdir"; then
9254 :
9255 else
9256 rm -f .libs 2>/dev/null
9257 mkdir .libs 2>/dev/null
9258 if test -d .libs; then
9259 libltdl_cv_objdir=.libs
9260 else
9261 # MS-DOS does not allow filenames that begin with a dot.
9262 libltdl_cv_objdir=_libs
9263 fi
9264 rmdir .libs 2>/dev/null
9265 fi
9266
9267fi
Reid Spencera773bd52006-08-04 18:18:08 +00009268{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9269echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270
9271cat >>confdefs.h <<_ACEOF
9272#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9273_ACEOF
9274
9275
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009276
9277
9278
9279
9280# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009281{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9282echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286
9287# These are sane defaults that work on at least a few old systems.
9288# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9289
9290# Character class describing NM global symbol codes.
9291symcode='[BCDEGRST]'
9292
9293# Regexp to match symbols that can be accessed directly from C.
9294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9295
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296# Transform an extracted symbol line into a proper C declaration
9297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9298
9299# Transform an extracted symbol line into symbol name and symbol address
9300lt_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'"
9301
9302# Define system-specific variables.
9303case $host_os in
9304aix*)
9305 symcode='[BCDT]'
9306 ;;
9307cygwin* | mingw* | pw32*)
9308 symcode='[ABCDGISTW]'
9309 ;;
9310hpux*) # Its linker distinguishes data from code symbols
9311 if test "$host_cpu" = ia64; then
9312 symcode='[ABCDEGRST]'
9313 fi
9314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9315 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'"
9316 ;;
9317linux*)
9318 if test "$host_cpu" = ia64; then
9319 symcode='[ABCDGIRSTW]'
9320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9321 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'"
9322 fi
9323 ;;
9324irix* | nonstopux*)
9325 symcode='[BCDEGRST]'
9326 ;;
9327osf*)
9328 symcode='[BCDEGQRST]'
9329 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009330solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331 symcode='[BDRT]'
9332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009333sco3.2v5*)
9334 symcode='[DT]'
9335 ;;
9336sysv4.2uw2*)
9337 symcode='[DT]'
9338 ;;
9339sysv5* | sco5v6* | unixware* | OpenUNIX*)
9340 symcode='[ABDT]'
9341 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342sysv4)
9343 symcode='[DFNSTU]'
9344 ;;
9345esac
9346
9347# Handle CRLF in mingw tool chain
9348opt_cr=
9349case $build_os in
9350mingw*)
9351 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9352 ;;
9353esac
9354
9355# If we're using GNU nm, then use its standard symbol codes.
9356case `$NM -V 2>&1` in
9357*GNU* | *'with BFD'*)
9358 symcode='[ABCDGIRSTW]' ;;
9359esac
9360
9361# Try without a prefix undercore, then with it.
9362for ac_symprfx in "" "_"; do
9363
Reid Spencera773bd52006-08-04 18:18:08 +00009364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365 symxfrm="\\1 $ac_symprfx\\2 \\2"
9366
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009368 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 +00009369
9370 # Check to see that the pipe works correctly.
9371 pipe_works=no
9372
9373 rm -f conftest*
9374 cat > conftest.$ac_ext <<EOF
9375#ifdef __cplusplus
9376extern "C" {
9377#endif
9378char nm_test_var;
9379void nm_test_func(){}
9380#ifdef __cplusplus
9381}
9382#endif
9383int main(){nm_test_var='a';nm_test_func();return(0);}
9384EOF
9385
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; then
9391 # Now try to grab the symbols.
9392 nlist=conftest.nm
9393 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9394 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && test -s "$nlist"; then
9398 # Try sorting and uniquifying the output.
9399 if sort "$nlist" | uniq > "$nlist"T; then
9400 mv -f "$nlist"T "$nlist"
9401 else
9402 rm -f "$nlist"T
9403 fi
9404
9405 # Make sure that we snagged all the symbols we need.
9406 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9407 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9408 cat <<EOF > conftest.$ac_ext
9409#ifdef __cplusplus
9410extern "C" {
9411#endif
9412
9413EOF
9414 # Now generate the symbol file.
9415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9416
9417 cat <<EOF >> conftest.$ac_ext
9418#if defined (__STDC__) && __STDC__
9419# define lt_ptr_t void *
9420#else
9421# define lt_ptr_t char *
9422# define const
9423#endif
9424
9425/* The mapping between symbol names and symbols. */
9426const struct {
9427 const char *name;
9428 lt_ptr_t address;
9429}
9430lt_preloaded_symbols[] =
9431{
9432EOF
9433 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9434 cat <<\EOF >> conftest.$ac_ext
9435 {0, (lt_ptr_t) 0}
9436};
9437
9438#ifdef __cplusplus
9439}
9440#endif
9441EOF
9442 # Now try linking the two files.
9443 mv conftest.$ac_objext conftstm.$ac_objext
9444 lt_save_LIBS="$LIBS"
9445 lt_save_CFLAGS="$CFLAGS"
9446 LIBS="conftstm.$ac_objext"
9447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9453 pipe_works=yes
9454 fi
9455 LIBS="$lt_save_LIBS"
9456 CFLAGS="$lt_save_CFLAGS"
9457 else
9458 echo "cannot find nm_test_func in $nlist" >&5
9459 fi
9460 else
9461 echo "cannot find nm_test_var in $nlist" >&5
9462 fi
9463 else
9464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9465 fi
9466 else
9467 echo "$progname: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 fi
9470 rm -f conftest* conftst*
9471
9472 # Do not use the global_symbol_pipe unless it works.
9473 if test "$pipe_works" = yes; then
9474 break
9475 else
9476 lt_cv_sys_global_symbol_pipe=
9477 fi
9478done
9479
9480fi
9481
9482if test -z "$lt_cv_sys_global_symbol_pipe"; then
9483 lt_cv_sys_global_symbol_to_cdecl=
9484fi
9485if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009486 { echo "$as_me:$LINENO: result: failed" >&5
9487echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488else
Reid Spencera773bd52006-08-04 18:18:08 +00009489 { echo "$as_me:$LINENO: result: ok" >&5
9490echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491fi
9492
9493
Reid Spencera773bd52006-08-04 18:18:08 +00009494{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9495echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9500 libltdl_cv_preloaded_symbols=yes
9501 else
9502 libltdl_cv_preloaded_symbols=no
9503 fi
9504
9505fi
Reid Spencera773bd52006-08-04 18:18:08 +00009506{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9507echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009508if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9509
9510cat >>confdefs.h <<\_ACEOF
9511#define HAVE_PRELOADED_SYMBOLS 1
9512_ACEOF
9513
9514fi
9515
9516LIBADD_DL=
9517
9518ac_ext=c
9519ac_cpp='$CPP $CPPFLAGS'
9520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9522ac_compiler_gnu=$ac_cv_c_compiler_gnu
9523
9524
Reid Spencera773bd52006-08-04 18:18:08 +00009525{ echo "$as_me:$LINENO: checking for shl_load" >&5
9526echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527if test "${ac_cv_func_shl_load+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
9536/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538#define shl_load innocuous_shl_load
9539
9540/* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char shl_load (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9544
9545#ifdef __STDC__
9546# include <limits.h>
9547#else
9548# include <assert.h>
9549#endif
9550
9551#undef shl_load
9552
Reid Spencera773bd52006-08-04 18:18:08 +00009553/* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009556#ifdef __cplusplus
9557extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009558#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559char shl_load ();
9560/* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009563#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565#endif
9566
9567int
9568main ()
9569{
Reid Spencera773bd52006-08-04 18:18:08 +00009570return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571 ;
9572 return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009576if { (ac_try="$ac_link"
9577case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593esac
9594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_func_shl_load=yes
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
Reid Spencera773bd52006-08-04 18:18:08 +00009614 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615fi
Reid Spencera773bd52006-08-04 18:18:08 +00009616
9617rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618 conftest$ac_exeext conftest.$ac_ext
9619fi
Reid Spencera773bd52006-08-04 18:18:08 +00009620{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9621echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622if test $ac_cv_func_shl_load = yes; then
9623
9624cat >>confdefs.h <<\_ACEOF
9625#define HAVE_SHL_LOAD 1
9626_ACEOF
9627
9628else
Reid Spencera773bd52006-08-04 18:18:08 +00009629 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9630echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634 ac_check_lib_save_LIBS=$LIBS
9635LIBS="-ldld $LIBS"
9636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h. */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h. */
9642
Reid Spencera773bd52006-08-04 18:18:08 +00009643/* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009646#ifdef __cplusplus
9647extern "C"
9648#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649char shl_load ();
9650int
9651main ()
9652{
Reid Spencera773bd52006-08-04 18:18:08 +00009653return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009659if { (ac_try="$ac_link"
9660case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_dld_shl_load=yes
9693else
9694 echo "$as_me: failed program was:" >&5
9695sed 's/^/| /' conftest.$ac_ext >&5
9696
Reid Spencera773bd52006-08-04 18:18:08 +00009697 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698fi
Reid Spencera773bd52006-08-04 18:18:08 +00009699
9700rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701 conftest$ac_exeext conftest.$ac_ext
9702LIBS=$ac_check_lib_save_LIBS
9703fi
Reid Spencera773bd52006-08-04 18:18:08 +00009704{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9705echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009706if test $ac_cv_lib_dld_shl_load = yes; then
9707
9708cat >>confdefs.h <<\_ACEOF
9709#define HAVE_SHL_LOAD 1
9710_ACEOF
9711
9712 LIBADD_DL="$LIBADD_DL -ldld"
9713else
Reid Spencera773bd52006-08-04 18:18:08 +00009714 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719 ac_check_lib_save_LIBS=$LIBS
9720LIBS="-ldl $LIBS"
9721cat >conftest.$ac_ext <<_ACEOF
9722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h. */
9727
Reid Spencera773bd52006-08-04 18:18:08 +00009728/* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009731#ifdef __cplusplus
9732extern "C"
9733#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734char dlopen ();
9735int
9736main ()
9737{
Reid Spencera773bd52006-08-04 18:18:08 +00009738return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009739 ;
9740 return 0;
9741}
9742_ACEOF
9743rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009744if { (ac_try="$ac_link"
9745case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009768 { (case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771esac
9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_lib_dl_dlopen=yes
9778else
9779 echo "$as_me: failed program was:" >&5
9780sed 's/^/| /' conftest.$ac_ext >&5
9781
Reid Spencera773bd52006-08-04 18:18:08 +00009782 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783fi
Reid Spencera773bd52006-08-04 18:18:08 +00009784
9785rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786 conftest$ac_exeext conftest.$ac_ext
9787LIBS=$ac_check_lib_save_LIBS
9788fi
Reid Spencera773bd52006-08-04 18:18:08 +00009789{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9790echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791if test $ac_cv_lib_dl_dlopen = yes; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define HAVE_LIBDL 1
9795_ACEOF
9796
9797 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
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#if HAVE_DLFCN_H
9806# include <dlfcn.h>
9807#endif
9808
9809int
9810main ()
9811{
9812dlopen(0, 0);
9813 ;
9814 return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009818if { (ac_try="$ac_link"
9819case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851
9852cat >>confdefs.h <<\_ACEOF
9853#define HAVE_LIBDL 1
9854_ACEOF
9855 libltdl_cv_func_dlopen="yes"
9856else
9857 echo "$as_me: failed program was:" >&5
9858sed 's/^/| /' conftest.$ac_ext >&5
9859
Reid Spencera773bd52006-08-04 18:18:08 +00009860 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9861echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864else
9865 ac_check_lib_save_LIBS=$LIBS
9866LIBS="-lsvld $LIBS"
9867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
9873
Reid Spencera773bd52006-08-04 18:18:08 +00009874/* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877#ifdef __cplusplus
9878extern "C"
9879#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880char dlopen ();
9881int
9882main ()
9883{
Reid Spencera773bd52006-08-04 18:18:08 +00009884return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885 ;
9886 return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009890if { (ac_try="$ac_link"
9891case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917esac
9918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_lib_svld_dlopen=yes
9924else
9925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
Reid Spencera773bd52006-08-04 18:18:08 +00009928 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929fi
Reid Spencera773bd52006-08-04 18:18:08 +00009930
9931rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932 conftest$ac_exeext conftest.$ac_ext
9933LIBS=$ac_check_lib_save_LIBS
9934fi
Reid Spencera773bd52006-08-04 18:18:08 +00009935{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9936echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937if test $ac_cv_lib_svld_dlopen = yes; then
9938
9939cat >>confdefs.h <<\_ACEOF
9940#define HAVE_LIBDL 1
9941_ACEOF
9942
9943 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9944else
Reid Spencera773bd52006-08-04 18:18:08 +00009945 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9946echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949else
9950 ac_check_lib_save_LIBS=$LIBS
9951LIBS="-ldld $LIBS"
9952cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h. */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h. */
9958
Reid Spencera773bd52006-08-04 18:18:08 +00009959/* Override any GCC internal prototype to avoid an error.
9960 Use char because int might match the return type of a GCC
9961 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962#ifdef __cplusplus
9963extern "C"
9964#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965char dld_link ();
9966int
9967main ()
9968{
Reid Spencera773bd52006-08-04 18:18:08 +00009969return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970 ;
9971 return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009975if { (ac_try="$ac_link"
9976case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_lib_dld_dld_link=yes
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
Reid Spencera773bd52006-08-04 18:18:08 +000010013 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010014fi
Reid Spencera773bd52006-08-04 18:18:08 +000010015
10016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017 conftest$ac_exeext conftest.$ac_ext
10018LIBS=$ac_check_lib_save_LIBS
10019fi
Reid Spencera773bd52006-08-04 18:18:08 +000010020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10021echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022if test $ac_cv_lib_dld_dld_link = yes; then
10023
10024cat >>confdefs.h <<\_ACEOF
10025#define HAVE_DLD 1
10026_ACEOF
10027
10028 LIBADD_DL="$LIBADD_DL -ldld"
10029else
Reid Spencera773bd52006-08-04 18:18:08 +000010030 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10031echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035 cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h. */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h. */
10041/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043#define _dyld_func_lookup innocuous__dyld_func_lookup
10044
10045/* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char _dyld_func_lookup (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10049
10050#ifdef __STDC__
10051# include <limits.h>
10052#else
10053# include <assert.h>
10054#endif
10055
10056#undef _dyld_func_lookup
10057
Reid Spencera773bd52006-08-04 18:18:08 +000010058/* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061#ifdef __cplusplus
10062extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064char _dyld_func_lookup ();
10065/* The GNU C library defines this for functions which it implements
10066 to always fail with ENOSYS. Some functions are actually named
10067 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010068#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070#endif
10071
10072int
10073main ()
10074{
Reid Spencera773bd52006-08-04 18:18:08 +000010075return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 ;
10077 return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010081if { (ac_try="$ac_link"
10082case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010105 { (case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108esac
10109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_func__dyld_func_lookup=yes
10115else
10116 echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
Reid Spencera773bd52006-08-04 18:18:08 +000010119 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120fi
Reid Spencera773bd52006-08-04 18:18:08 +000010121
10122rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123 conftest$ac_exeext conftest.$ac_ext
10124fi
Reid Spencera773bd52006-08-04 18:18:08 +000010125{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10126echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127if test $ac_cv_func__dyld_func_lookup = yes; then
10128
10129cat >>confdefs.h <<\_ACEOF
10130#define HAVE_DYLD 1
10131_ACEOF
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
Reid Spencera773bd52006-08-04 18:18:08 +000010143
10144rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145 conftest$ac_exeext conftest.$ac_ext
10146
10147fi
10148
10149
10150fi
10151
10152
10153fi
10154
10155
10156if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10157then
10158 lt_save_LIBS="$LIBS"
10159 LIBS="$LIBS $LIBADD_DL"
10160
10161for ac_func in dlerror
10162do
10163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169 cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h. */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h. */
10175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10177#define $ac_func innocuous_$ac_func
10178
10179/* System header to define __stub macros and hopefully few prototypes,
10180 which can conflict with char $ac_func (); below.
10181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10182 <limits.h> exists even on freestanding compilers. */
10183
10184#ifdef __STDC__
10185# include <limits.h>
10186#else
10187# include <assert.h>
10188#endif
10189
10190#undef $ac_func
10191
Reid Spencera773bd52006-08-04 18:18:08 +000010192/* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195#ifdef __cplusplus
10196extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198char $ac_func ();
10199/* The GNU C library defines this for functions which it implements
10200 to always fail with ENOSYS. Some functions are actually named
10201 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010202#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204#endif
10205
10206int
10207main ()
10208{
Reid Spencera773bd52006-08-04 18:18:08 +000010209return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210 ;
10211 return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010215if { (ac_try="$ac_link"
10216case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010239 { (case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242esac
10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 eval "$as_ac_var=yes"
10249else
10250 echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
Reid Spencera773bd52006-08-04 18:18:08 +000010253 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254fi
Reid Spencera773bd52006-08-04 18:18:08 +000010255
10256rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010257 conftest$ac_exeext conftest.$ac_ext
10258fi
Reid Spencera773bd52006-08-04 18:18:08 +000010259ac_res=`eval echo '${'$as_ac_var'}'`
10260 { echo "$as_me:$LINENO: result: $ac_res" >&5
10261echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262if test `eval echo '${'$as_ac_var'}'` = yes; then
10263 cat >>confdefs.h <<_ACEOF
10264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10265_ACEOF
10266
10267fi
10268done
10269
10270 LIBS="$lt_save_LIBS"
10271fi
10272ac_ext=c
10273ac_cpp='$CPP $CPPFLAGS'
10274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10276ac_compiler_gnu=$ac_cv_c_compiler_gnu
10277
10278
10279
Reid Spencera773bd52006-08-04 18:18:08 +000010280{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10281echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284else
10285 ac_cv_sys_symbol_underscore=no
10286 cat > conftest.$ac_ext <<EOF
10287void nm_test_func(){}
10288int main(){nm_test_func;return 0;}
10289EOF
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; then
10295 # Now try to grab the symbols.
10296 ac_nlist=conftest.nm
10297 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10298 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && test -s "$ac_nlist"; then
10302 # See whether the symbols have a leading underscore.
10303 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10304 ac_cv_sys_symbol_underscore=yes
10305 else
10306 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10307 :
10308 else
10309 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10310 fi
10311 fi
10312 else
10313 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10314 fi
10315 else
10316 echo "configure: failed program was:" >&5
10317 cat conftest.c >&5
10318 fi
10319 rm -rf conftest*
10320
10321fi
Reid Spencera773bd52006-08-04 18:18:08 +000010322{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10323echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324
10325
10326if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10327 if test x"$libltdl_cv_func_dlopen" = xyes ||
10328 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010329 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10330echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331if test "${libltdl_cv_need_uscore+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 libltdl_cv_need_uscore=unknown
10335 save_LIBS="$LIBS"
10336 LIBS="$LIBS $LIBADD_DL"
10337 if test "$cross_compiling" = yes; then :
10338 libltdl_cv_need_uscore=cross
10339else
10340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10341 lt_status=$lt_dlunknown
10342 cat > conftest.$ac_ext <<EOF
Reid Spencer0d238182007-04-21 21:28:52 +000010343#line 10343 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344#include "confdefs.h"
10345
10346#if HAVE_DLFCN_H
10347#include <dlfcn.h>
10348#endif
10349
10350#include <stdio.h>
10351
10352#ifdef RTLD_GLOBAL
10353# define LT_DLGLOBAL RTLD_GLOBAL
10354#else
10355# ifdef DL_GLOBAL
10356# define LT_DLGLOBAL DL_GLOBAL
10357# else
10358# define LT_DLGLOBAL 0
10359# endif
10360#endif
10361
10362/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10363 find out it does not work in some platform. */
10364#ifndef LT_DLLAZY_OR_NOW
10365# ifdef RTLD_LAZY
10366# define LT_DLLAZY_OR_NOW RTLD_LAZY
10367# else
10368# ifdef DL_LAZY
10369# define LT_DLLAZY_OR_NOW DL_LAZY
10370# else
10371# ifdef RTLD_NOW
10372# define LT_DLLAZY_OR_NOW RTLD_NOW
10373# else
10374# ifdef DL_NOW
10375# define LT_DLLAZY_OR_NOW DL_NOW
10376# else
10377# define LT_DLLAZY_OR_NOW 0
10378# endif
10379# endif
10380# endif
10381# endif
10382#endif
10383
10384#ifdef __cplusplus
10385extern "C" void exit (int);
10386#endif
10387
10388void fnord() { int i=42;}
10389int main ()
10390{
10391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10392 int status = $lt_dlunknown;
10393
10394 if (self)
10395 {
10396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10398 /* dlclose (self); */
10399 }
Reid Spencera773bd52006-08-04 18:18:08 +000010400 else
10401 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402
10403 exit (status);
10404}
10405EOF
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010411 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412 lt_status=$?
10413 case x$lt_status in
10414 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10415 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010416 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 esac
10418 else :
10419 # compilation failed
10420
10421 fi
10422fi
10423rm -fr conftest*
10424
10425 LIBS="$save_LIBS"
10426
10427fi
Reid Spencera773bd52006-08-04 18:18:08 +000010428{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10429echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430 fi
10431fi
10432
10433if test x"$libltdl_cv_need_uscore" = xyes; then
10434
10435cat >>confdefs.h <<\_ACEOF
10436#define NEED_USCORE 1
10437_ACEOF
10438
10439fi
10440
10441
Reid Spencera773bd52006-08-04 18:18:08 +000010442{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10443echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447 # PORTME does your system automatically load deplibs for dlopen?
10448 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10449 # For now, we just catch OSes we know something about -- in the
10450 # future, we'll try test this programmatically.
10451 libltdl_cv_sys_dlopen_deplibs=unknown
10452 case "$host_os" in
10453 aix3*|aix4.1.*|aix4.2.*)
10454 # Unknown whether this is true for these versions of AIX, but
10455 # we want this `case' here to explicitly catch those versions.
10456 libltdl_cv_sys_dlopen_deplibs=unknown
10457 ;;
10458 aix[45]*)
10459 libltdl_cv_sys_dlopen_deplibs=yes
10460 ;;
10461 darwin*)
10462 # Assuming the user has installed a libdl from somewhere, this is true
10463 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10464 libltdl_cv_sys_dlopen_deplibs=yes
10465 ;;
10466 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10467 # GNU and its variants, using gnu ld.so (Glibc)
10468 libltdl_cv_sys_dlopen_deplibs=yes
10469 ;;
10470 hpux10*|hpux11*)
10471 libltdl_cv_sys_dlopen_deplibs=yes
10472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010473 interix*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476 irix[12345]*|irix6.[01]*)
10477 # Catch all versions of IRIX before 6.2, and indicate that we don't
10478 # know how it worked for any of those versions.
10479 libltdl_cv_sys_dlopen_deplibs=unknown
10480 ;;
10481 irix*)
10482 # The case above catches anything before 6.2, and it's known that
10483 # at 6.2 and later dlopen does load deplibs.
10484 libltdl_cv_sys_dlopen_deplibs=yes
10485 ;;
10486 netbsd*)
10487 libltdl_cv_sys_dlopen_deplibs=yes
10488 ;;
10489 openbsd*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10491 ;;
10492 osf[1234]*)
10493 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10494 # it did *not* use an RPATH in a shared library to find objects the
10495 # library depends on, so we explictly say `no'.
10496 libltdl_cv_sys_dlopen_deplibs=no
10497 ;;
10498 osf5.0|osf5.0a|osf5.1)
10499 # dlopen *does* load deplibs and with the right loader patch applied
10500 # it even uses RPATH in a shared library to search for shared objects
10501 # that the library depends on, but there's no easy way to know if that
10502 # patch is installed. Since this is the case, all we can really
10503 # say is unknown -- it depends on the patch being installed. If
10504 # it is, this changes to `yes'. Without it, it would be `no'.
10505 libltdl_cv_sys_dlopen_deplibs=unknown
10506 ;;
10507 osf*)
10508 # the two cases above should catch all versions of osf <= 5.1. Read
10509 # the comments above for what we know about them.
10510 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10511 # is used to find them so we can finally say `yes'.
10512 libltdl_cv_sys_dlopen_deplibs=yes
10513 ;;
10514 solaris*)
10515 libltdl_cv_sys_dlopen_deplibs=yes
10516 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10518 libltdl_cv_sys_dlopen_deplibs=yes
10519 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520 esac
10521
10522fi
Reid Spencera773bd52006-08-04 18:18:08 +000010523{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10524echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10526
10527cat >>confdefs.h <<\_ACEOF
10528#define LTDL_DLOPEN_DEPLIBS 1
10529_ACEOF
10530
10531fi
10532
10533
10534for ac_header in argz.h
10535do
10536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542fi
Reid Spencera773bd52006-08-04 18:18:08 +000010543ac_res=`eval echo '${'$as_ac_Header'}'`
10544 { echo "$as_me:$LINENO: result: $ac_res" >&5
10545echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546else
10547 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h. */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h. */
10556$ac_includes_default
10557#include <$ac_header>
10558_ACEOF
10559rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010560if { (ac_try="$ac_compile"
10561case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10594else
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
Reid Spencera773bd52006-08-04 18:18:08 +000010598 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599fi
Reid Spencera773bd52006-08-04 18:18:08 +000010600
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10603echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010604
10605# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
10614#include <$ac_header>
10615_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010616if { (ac_try="$ac_cpp conftest.$ac_ext"
10617case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } >/dev/null; then
10629 if test -s conftest.err; then
10630 ac_cpp_err=$ac_c_preproc_warn_flag
10631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10632 else
10633 ac_cpp_err=
10634 fi
10635else
10636 ac_cpp_err=yes
10637fi
10638if test -z "$ac_cpp_err"; then
10639 ac_header_preproc=yes
10640else
10641 echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 ac_header_preproc=no
10645fi
Reid Spencera773bd52006-08-04 18:18:08 +000010646
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650
10651# So? What about this header?
10652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 yes:no: )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658 ac_header_preproc=yes
10659 ;;
10660 no:yes:* )
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010673 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674## ----------------------------------- ##
10675## Report this to llvmbugs@cs.uiuc.edu ##
10676## ----------------------------------- ##
10677_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010678 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679 ;;
10680esac
Reid Spencera773bd52006-08-04 18:18:08 +000010681{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
10686 eval "$as_ac_Header=\$ac_header_preproc"
10687fi
Reid Spencera773bd52006-08-04 18:18:08 +000010688ac_res=`eval echo '${'$as_ac_Header'}'`
10689 { echo "$as_me:$LINENO: result: $ac_res" >&5
10690echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691
10692fi
10693if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696_ACEOF
10697
10698fi
10699
10700done
10701
10702
Reid Spencera773bd52006-08-04 18:18:08 +000010703{ echo "$as_me:$LINENO: checking for error_t" >&5
10704echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705if test "${ac_cv_type_error_t+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707else
10708 cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h. */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h. */
10714#if HAVE_ARGZ_H
10715# include <argz.h>
10716#endif
10717
Reid Spencera773bd52006-08-04 18:18:08 +000010718typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719int
10720main ()
10721{
Reid Spencera773bd52006-08-04 18:18:08 +000010722if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010724if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725 return 0;
10726 ;
10727 return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010731if { (ac_try="$ac_compile"
10732case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758esac
10759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_cv_type_error_t=yes
10765else
10766 echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
Reid Spencera773bd52006-08-04 18:18:08 +000010769 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770fi
Reid Spencera773bd52006-08-04 18:18:08 +000010771
10772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773fi
Reid Spencera773bd52006-08-04 18:18:08 +000010774{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10775echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776if test $ac_cv_type_error_t = yes; then
10777
10778cat >>confdefs.h <<_ACEOF
10779#define HAVE_ERROR_T 1
10780_ACEOF
10781
10782
10783else
10784
10785cat >>confdefs.h <<\_ACEOF
10786#define error_t int
10787_ACEOF
10788
10789fi
10790
10791
10792
10793
10794
10795
10796
10797for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10798do
10799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813#define $ac_func innocuous_$ac_func
10814
10815/* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char $ac_func (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10819
10820#ifdef __STDC__
10821# include <limits.h>
10822#else
10823# include <assert.h>
10824#endif
10825
10826#undef $ac_func
10827
Reid Spencera773bd52006-08-04 18:18:08 +000010828/* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831#ifdef __cplusplus
10832extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834char $ac_func ();
10835/* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010838#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840#endif
10841
10842int
10843main ()
10844{
Reid Spencera773bd52006-08-04 18:18:08 +000010845return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 eval "$as_ac_var=yes"
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
Reid Spencera773bd52006-08-04 18:18:08 +000010889 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890fi
Reid Spencera773bd52006-08-04 18:18:08 +000010891
10892rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893 conftest$ac_exeext conftest.$ac_ext
10894fi
Reid Spencera773bd52006-08-04 18:18:08 +000010895ac_res=`eval echo '${'$as_ac_var'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898if test `eval echo '${'$as_ac_var'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901_ACEOF
10902
10903fi
10904done
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10934 stdio.h unistd.h
10935do
10936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942fi
Reid Spencera773bd52006-08-04 18:18:08 +000010943ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946else
10947 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010948{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956$ac_includes_default
10957#include <$ac_header>
10958_ACEOF
10959rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10974 { (case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010984 { (case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_header_compiler=yes
10994else
10995 echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
Reid Spencera773bd52006-08-04 18:18:08 +000010998 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999fi
Reid Spencera773bd52006-08-04 18:18:08 +000011000
11001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11003echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004
11005# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011006{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008cat >conftest.$ac_ext <<_ACEOF
11009/* confdefs.h. */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h. */
11014#include <$ac_header>
11015_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011016if { (ac_try="$ac_cpp conftest.$ac_ext"
11017case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
11031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11032 else
11033 ac_cpp_err=
11034 fi
11035else
11036 ac_cpp_err=yes
11037fi
11038if test -z "$ac_cpp_err"; then
11039 ac_header_preproc=yes
11040else
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 ac_header_preproc=no
11045fi
Reid Spencera773bd52006-08-04 18:18:08 +000011046
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011047rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011048{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11049echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050
11051# So? What about this header?
11052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11053 yes:no: )
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11058 ac_header_preproc=yes
11059 ;;
11060 no:yes:* )
11061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011073 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074## ----------------------------------- ##
11075## Report this to llvmbugs@cs.uiuc.edu ##
11076## ----------------------------------- ##
11077_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011078 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079 ;;
11080esac
Reid Spencera773bd52006-08-04 18:18:08 +000011081{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 eval "$as_ac_Header=\$ac_header_preproc"
11087fi
Reid Spencera773bd52006-08-04 18:18:08 +000011088ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091
11092fi
11093if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11096_ACEOF
11097
11098fi
11099
11100done
11101
11102
11103
11104
11105
11106for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11107do
11108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114fi
Reid Spencera773bd52006-08-04 18:18:08 +000011115ac_res=`eval echo '${'$as_ac_Header'}'`
11116 { echo "$as_me:$LINENO: result: $ac_res" >&5
11117echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118else
11119 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011120{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122cat >conftest.$ac_ext <<_ACEOF
11123/* confdefs.h. */
11124_ACEOF
11125cat confdefs.h >>conftest.$ac_ext
11126cat >>conftest.$ac_ext <<_ACEOF
11127/* end confdefs.h. */
11128$ac_includes_default
11129#include <$ac_header>
11130_ACEOF
11131rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011132if { (ac_try="$ac_compile"
11133case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_header_compiler=yes
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
Reid Spencera773bd52006-08-04 18:18:08 +000011170 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171fi
Reid Spencera773bd52006-08-04 18:18:08 +000011172
11173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11175echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176
11177# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011178{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
11186#include <$ac_header>
11187_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011188if { (ac_try="$ac_cpp conftest.$ac_ext"
11189case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192esac
11193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } >/dev/null; then
11201 if test -s conftest.err; then
11202 ac_cpp_err=$ac_c_preproc_warn_flag
11203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11204 else
11205 ac_cpp_err=
11206 fi
11207else
11208 ac_cpp_err=yes
11209fi
11210if test -z "$ac_cpp_err"; then
11211 ac_header_preproc=yes
11212else
11213 echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ac_header_preproc=no
11217fi
Reid Spencera773bd52006-08-04 18:18:08 +000011218
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011220{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11221echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222
11223# So? What about this header?
11224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11225 yes:no: )
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11227echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11229echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11230 ac_header_preproc=yes
11231 ;;
11232 no:yes:* )
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11234echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11236echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11238echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11240echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11242echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11244echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011245 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246## ----------------------------------- ##
11247## Report this to llvmbugs@cs.uiuc.edu ##
11248## ----------------------------------- ##
11249_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011250 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251 ;;
11252esac
Reid Spencera773bd52006-08-04 18:18:08 +000011253{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257else
11258 eval "$as_ac_Header=\$ac_header_preproc"
11259fi
Reid Spencera773bd52006-08-04 18:18:08 +000011260ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263
11264fi
11265if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268_ACEOF
11269
11270fi
11271
11272done
11273
11274
11275
11276for ac_header in string.h strings.h
11277do
11278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284fi
Reid Spencera773bd52006-08-04 18:18:08 +000011285ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011288else
11289 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292cat >conftest.$ac_ext <<_ACEOF
11293/* confdefs.h. */
11294_ACEOF
11295cat confdefs.h >>conftest.$ac_ext
11296cat >>conftest.$ac_ext <<_ACEOF
11297/* end confdefs.h. */
11298$ac_includes_default
11299#include <$ac_header>
11300_ACEOF
11301rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011302if { (ac_try="$ac_compile"
11303case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_header_compiler=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
Reid Spencera773bd52006-08-04 18:18:08 +000011340 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342
11343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346
11347# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
11356#include <$ac_header>
11357_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011358if { (ac_try="$ac_cpp conftest.$ac_ext"
11359case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362esac
11363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null; then
11371 if test -s conftest.err; then
11372 ac_cpp_err=$ac_c_preproc_warn_flag
11373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11374 else
11375 ac_cpp_err=
11376 fi
11377else
11378 ac_cpp_err=yes
11379fi
11380if test -z "$ac_cpp_err"; then
11381 ac_header_preproc=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 ac_header_preproc=no
11387fi
Reid Spencera773bd52006-08-04 18:18:08 +000011388
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392
11393# So? What about this header?
11394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 yes:no: )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11400 ac_header_preproc=yes
11401 ;;
11402 no:yes:* )
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011415 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011416## ----------------------------------- ##
11417## Report this to llvmbugs@cs.uiuc.edu ##
11418## ----------------------------------- ##
11419_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011420 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421 ;;
11422esac
Reid Spencera773bd52006-08-04 18:18:08 +000011423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428 eval "$as_ac_Header=\$ac_header_preproc"
11429fi
Reid Spencera773bd52006-08-04 18:18:08 +000011430ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011433
11434fi
11435if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438_ACEOF
11439 break
11440fi
11441
11442done
11443
11444
11445
11446
11447for ac_func in strchr index
11448do
11449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011450{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11452if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
11461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11463#define $ac_func innocuous_$ac_func
11464
11465/* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char $ac_func (); below.
11467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468 <limits.h> exists even on freestanding compilers. */
11469
11470#ifdef __STDC__
11471# include <limits.h>
11472#else
11473# include <assert.h>
11474#endif
11475
11476#undef $ac_func
11477
Reid Spencera773bd52006-08-04 18:18:08 +000011478/* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481#ifdef __cplusplus
11482extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484char $ac_func ();
11485/* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011488#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490#endif
11491
11492int
11493main ()
11494{
Reid Spencera773bd52006-08-04 18:18:08 +000011495return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496 ;
11497 return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011501if { (ac_try="$ac_link"
11502case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 eval "$as_ac_var=yes"
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
Reid Spencera773bd52006-08-04 18:18:08 +000011539 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011540fi
Reid Spencera773bd52006-08-04 18:18:08 +000011541
11542rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543 conftest$ac_exeext conftest.$ac_ext
11544fi
Reid Spencera773bd52006-08-04 18:18:08 +000011545ac_res=`eval echo '${'$as_ac_var'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011548if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551_ACEOF
11552 break
11553fi
11554done
11555
11556
11557
11558for ac_func in strrchr rindex
11559do
11560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011561{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
11572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11574#define $ac_func innocuous_$ac_func
11575
11576/* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below.
11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 <limits.h> exists even on freestanding compilers. */
11580
11581#ifdef __STDC__
11582# include <limits.h>
11583#else
11584# include <assert.h>
11585#endif
11586
11587#undef $ac_func
11588
Reid Spencera773bd52006-08-04 18:18:08 +000011589/* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592#ifdef __cplusplus
11593extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595char $ac_func ();
11596/* The GNU C library defines this for functions which it implements
11597 to always fail with ENOSYS. Some functions are actually named
11598 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011599#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601#endif
11602
11603int
11604main ()
11605{
Reid Spencera773bd52006-08-04 18:18:08 +000011606return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607 ;
11608 return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011612if { (ac_try="$ac_link"
11613case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "$as_ac_var=yes"
11646else
11647 echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
Reid Spencera773bd52006-08-04 18:18:08 +000011650 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651fi
Reid Spencera773bd52006-08-04 18:18:08 +000011652
11653rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011654 conftest$ac_exeext conftest.$ac_ext
11655fi
Reid Spencera773bd52006-08-04 18:18:08 +000011656ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662_ACEOF
11663 break
11664fi
11665done
11666
11667
11668
11669for ac_func in memcpy bcopy
11670do
11671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676else
11677 cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11685#define $ac_func innocuous_$ac_func
11686
11687/* System header to define __stub macros and hopefully few prototypes,
11688 which can conflict with char $ac_func (); below.
11689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690 <limits.h> exists even on freestanding compilers. */
11691
11692#ifdef __STDC__
11693# include <limits.h>
11694#else
11695# include <assert.h>
11696#endif
11697
11698#undef $ac_func
11699
Reid Spencera773bd52006-08-04 18:18:08 +000011700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703#ifdef __cplusplus
11704extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706char $ac_func ();
11707/* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011710#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712#endif
11713
11714int
11715main ()
11716{
Reid Spencera773bd52006-08-04 18:18:08 +000011717return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011723if { (ac_try="$ac_link"
11724case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750esac
11751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 eval "$as_ac_var=yes"
11757else
11758 echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
Reid Spencera773bd52006-08-04 18:18:08 +000011761 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762fi
Reid Spencera773bd52006-08-04 18:18:08 +000011763
11764rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765 conftest$ac_exeext conftest.$ac_ext
11766fi
Reid Spencera773bd52006-08-04 18:18:08 +000011767ac_res=`eval echo '${'$as_ac_var'}'`
11768 { echo "$as_me:$LINENO: result: $ac_res" >&5
11769echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770if test `eval echo '${'$as_ac_var'}'` = yes; then
11771 cat >>confdefs.h <<_ACEOF
11772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773_ACEOF
11774 break
11775fi
11776done
11777
11778
11779
11780for ac_func in memmove strcmp
11781do
11782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788 cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
11794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11796#define $ac_func innocuous_$ac_func
11797
11798/* System header to define __stub macros and hopefully few prototypes,
11799 which can conflict with char $ac_func (); below.
11800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801 <limits.h> exists even on freestanding compilers. */
11802
11803#ifdef __STDC__
11804# include <limits.h>
11805#else
11806# include <assert.h>
11807#endif
11808
11809#undef $ac_func
11810
Reid Spencera773bd52006-08-04 18:18:08 +000011811/* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814#ifdef __cplusplus
11815extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817char $ac_func ();
11818/* The GNU C library defines this for functions which it implements
11819 to always fail with ENOSYS. Some functions are actually named
11820 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011821#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823#endif
11824
11825int
11826main ()
11827{
Reid Spencera773bd52006-08-04 18:18:08 +000011828return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011834if { (ac_try="$ac_link"
11835case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 eval "$as_ac_var=yes"
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
Reid Spencera773bd52006-08-04 18:18:08 +000011872 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873fi
Reid Spencera773bd52006-08-04 18:18:08 +000011874
11875rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876 conftest$ac_exeext conftest.$ac_ext
11877fi
Reid Spencera773bd52006-08-04 18:18:08 +000011878ac_res=`eval echo '${'$as_ac_var'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884_ACEOF
11885
11886fi
11887done
11888
11889
11890
11891
11892for ac_func in closedir opendir readdir
11893do
11894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011895{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908#define $ac_func innocuous_$ac_func
11909
11910/* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11914
11915#ifdef __STDC__
11916# include <limits.h>
11917#else
11918# include <assert.h>
11919#endif
11920
11921#undef $ac_func
11922
Reid Spencera773bd52006-08-04 18:18:08 +000011923/* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926#ifdef __cplusplus
11927extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929char $ac_func ();
11930/* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011933#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935#endif
11936
11937int
11938main ()
11939{
Reid Spencera773bd52006-08-04 18:18:08 +000011940return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941 ;
11942 return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011946if { (ac_try="$ac_link"
11947case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950esac
11951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960 { (case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 eval "$as_ac_var=yes"
11980else
11981 echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
Reid Spencera773bd52006-08-04 18:18:08 +000011984 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985fi
Reid Spencera773bd52006-08-04 18:18:08 +000011986
11987rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988 conftest$ac_exeext conftest.$ac_ext
11989fi
Reid Spencera773bd52006-08-04 18:18:08 +000011990ac_res=`eval echo '${'$as_ac_var'}'`
11991 { echo "$as_me:$LINENO: result: $ac_res" >&5
11992echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993if test `eval echo '${'$as_ac_var'}'` = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11996_ACEOF
11997
11998fi
11999done
12000
12001
Reid Spencera773bd52006-08-04 18:18:08 +000012002# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012003if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012004 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 case $enableval in
12006 yes) enable_shared=yes ;;
12007 no) enable_shared=no ;;
12008 *)
12009 enable_shared=no
12010 # Look at the argument we got. We use all the common list separators.
12011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012 for pkg in $enableval; do
12013 IFS="$lt_save_ifs"
12014 if test "X$pkg" = "X$p"; then
12015 enable_shared=yes
12016 fi
12017 done
12018 IFS="$lt_save_ifs"
12019 ;;
12020 esac
12021else
12022 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012023fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012024
Reid Spencera773bd52006-08-04 18:18:08 +000012025
12026# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012028 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029 case $enableval in
12030 yes) enable_static=yes ;;
12031 no) enable_static=no ;;
12032 *)
12033 enable_static=no
12034 # Look at the argument we got. We use all the common list separators.
12035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12036 for pkg in $enableval; do
12037 IFS="$lt_save_ifs"
12038 if test "X$pkg" = "X$p"; then
12039 enable_static=yes
12040 fi
12041 done
12042 IFS="$lt_save_ifs"
12043 ;;
12044 esac
12045else
12046 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012047fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012048
Reid Spencera773bd52006-08-04 18:18:08 +000012049
12050# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012052 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053 case $enableval in
12054 yes) enable_fast_install=yes ;;
12055 no) enable_fast_install=no ;;
12056 *)
12057 enable_fast_install=no
12058 # Look at the argument we got. We use all the common list separators.
12059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12060 for pkg in $enableval; do
12061 IFS="$lt_save_ifs"
12062 if test "X$pkg" = "X$p"; then
12063 enable_fast_install=yes
12064 fi
12065 done
12066 IFS="$lt_save_ifs"
12067 ;;
12068 esac
12069else
12070 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012071fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012072
Reid Spencera773bd52006-08-04 18:18:08 +000012073
12074{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12075echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076if test "${lt_cv_path_SED+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 # Loop through the user's path and test for sed and gsed.
12080# Then use that list of sed's as ones to test for truncation.
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for lt_ac_prog in sed gsed; do
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12089 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12090 fi
12091 done
12092 done
12093done
12094lt_ac_max=0
12095lt_ac_count=0
12096# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12097# along with /bin/sed that truncates output.
12098for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012099 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012100 cat /dev/null > conftest.in
12101 lt_ac_count=0
12102 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12103 # Check for GNU sed and select it if it is found.
12104 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12105 lt_cv_path_SED=$lt_ac_sed
12106 break
12107 fi
12108 while true; do
12109 cat conftest.in conftest.in >conftest.tmp
12110 mv conftest.tmp conftest.in
12111 cp conftest.in conftest.nl
12112 echo >>conftest.nl
12113 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12114 cmp -s conftest.out conftest.nl || break
12115 # 10000 chars as input seems more than enough
12116 test $lt_ac_count -gt 10 && break
12117 lt_ac_count=`expr $lt_ac_count + 1`
12118 if test $lt_ac_count -gt $lt_ac_max; then
12119 lt_ac_max=$lt_ac_count
12120 lt_cv_path_SED=$lt_ac_sed
12121 fi
12122 done
12123done
12124
12125fi
12126
12127SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012128{ echo "$as_me:$LINENO: result: $SED" >&5
12129echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130
12131
Reid Spencera773bd52006-08-04 18:18:08 +000012132# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135else
12136 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012137fi
12138
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139ac_prog=ld
12140if test "$GCC" = yes; then
12141 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012142 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12143echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144 case $host in
12145 *-*-mingw*)
12146 # gcc leaves a trailing carriage return which upsets mingw
12147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12148 *)
12149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12150 esac
12151 case $ac_prog in
12152 # Accept absolute paths.
12153 [\\/]* | ?:[\\/]*)
12154 re_direlt='/[^/][^/]*/\.\./'
12155 # Canonicalize the pathname of ld
12156 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12157 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12158 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12159 done
12160 test -z "$LD" && LD="$ac_prog"
12161 ;;
12162 "")
12163 # If it fails, then pretend we aren't using GCC.
12164 ac_prog=ld
12165 ;;
12166 *)
12167 # If it is relative, then search for the first ld in PATH.
12168 with_gnu_ld=unknown
12169 ;;
12170 esac
12171elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012172 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12173echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174else
Reid Spencera773bd52006-08-04 18:18:08 +000012175 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12176echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012177fi
12178if test "${lt_cv_path_LD+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181 if test -z "$LD"; then
12182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12183 for ac_dir in $PATH; do
12184 IFS="$lt_save_ifs"
12185 test -z "$ac_dir" && ac_dir=.
12186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12187 lt_cv_path_LD="$ac_dir/$ac_prog"
12188 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012189 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012190 # Break only if it was the GNU/non-GNU ld that we prefer.
12191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12192 *GNU* | *'with BFD'*)
12193 test "$with_gnu_ld" != no && break
12194 ;;
12195 *)
12196 test "$with_gnu_ld" != yes && break
12197 ;;
12198 esac
12199 fi
12200 done
12201 IFS="$lt_save_ifs"
12202else
12203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12204fi
12205fi
12206
12207LD="$lt_cv_path_LD"
12208if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012209 { echo "$as_me:$LINENO: result: $LD" >&5
12210echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211else
Reid Spencera773bd52006-08-04 18:18:08 +000012212 { echo "$as_me:$LINENO: result: no" >&5
12213echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012214fi
12215test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12216echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12217 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012218{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12219echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012220if test "${lt_cv_prog_gnu_ld+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222else
Reid Spencera773bd52006-08-04 18:18:08 +000012223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224case `$LD -v 2>&1 </dev/null` in
12225*GNU* | *'with BFD'*)
12226 lt_cv_prog_gnu_ld=yes
12227 ;;
12228*)
12229 lt_cv_prog_gnu_ld=no
12230 ;;
12231esac
12232fi
Reid Spencera773bd52006-08-04 18:18:08 +000012233{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12234echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012235with_gnu_ld=$lt_cv_prog_gnu_ld
12236
12237
Reid Spencera773bd52006-08-04 18:18:08 +000012238{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12239echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240if test "${lt_cv_ld_reload_flag+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243 lt_cv_ld_reload_flag='-r'
12244fi
Reid Spencera773bd52006-08-04 18:18:08 +000012245{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12246echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012247reload_flag=$lt_cv_ld_reload_flag
12248case $reload_flag in
12249"" | " "*) ;;
12250*) reload_flag=" $reload_flag" ;;
12251esac
12252reload_cmds='$LD$reload_flag -o $output$reload_objs'
12253case $host_os in
12254 darwin*)
12255 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257 else
12258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12259 fi
12260 ;;
12261esac
12262
Reid Spencera773bd52006-08-04 18:18:08 +000012263{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12264echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012265if test "${lt_cv_deplibs_check_method+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267else
12268 lt_cv_file_magic_cmd='$MAGIC_CMD'
12269lt_cv_file_magic_test_file=
12270lt_cv_deplibs_check_method='unknown'
12271# Need to set the preceding variable on all platforms that support
12272# interlibrary dependencies.
12273# 'none' -- dependencies not supported.
12274# `unknown' -- same as none, but documents that we really don't know.
12275# 'pass_all' -- all dependencies passed with no checks.
12276# 'test_compile' -- check by making test program.
12277# 'file_magic [[regex]]' -- check by looking for files in library path
12278# which responds to the $file_magic_cmd with a given extended regex.
12279# If you have `file' or equivalent on your system and you're not sure
12280# whether `pass_all' will *always* work, you probably want this one.
12281
12282case $host_os in
12283aix4* | aix5*)
12284 lt_cv_deplibs_check_method=pass_all
12285 ;;
12286
12287beos*)
12288 lt_cv_deplibs_check_method=pass_all
12289 ;;
12290
12291bsdi[45]*)
12292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12293 lt_cv_file_magic_cmd='/usr/bin/file -L'
12294 lt_cv_file_magic_test_file=/shlib/libc.so
12295 ;;
12296
12297cygwin*)
12298 # func_win32_libid is a shell function defined in ltmain.sh
12299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12300 lt_cv_file_magic_cmd='func_win32_libid'
12301 ;;
12302
12303mingw* | pw32*)
12304 # Base MSYS/MinGW do not provide the 'file' command needed by
12305 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12306 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12307 lt_cv_file_magic_cmd='$OBJDUMP -f'
12308 ;;
12309
12310darwin* | rhapsody*)
12311 lt_cv_deplibs_check_method=pass_all
12312 ;;
12313
Reid Spencera773bd52006-08-04 18:18:08 +000012314freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12316 case $host_cpu in
12317 i*86 )
12318 # Not sure whether the presence of OpenBSD here was a mistake.
12319 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012320 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 +000012321 lt_cv_file_magic_cmd=/usr/bin/file
12322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12323 ;;
12324 esac
12325 else
12326 lt_cv_deplibs_check_method=pass_all
12327 fi
12328 ;;
12329
12330gnu*)
12331 lt_cv_deplibs_check_method=pass_all
12332 ;;
12333
12334hpux10.20* | hpux11*)
12335 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012336 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337 ia64*)
12338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12340 ;;
12341 hppa*64*)
12342 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]'
12343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12344 ;;
12345 *)
12346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12348 ;;
12349 esac
12350 ;;
12351
Reid Spencera773bd52006-08-04 18:18:08 +000012352interix3*)
12353 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12355 ;;
12356
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357irix5* | irix6* | nonstopux*)
12358 case $LD in
12359 *-32|*"-32 ") libmagic=32-bit;;
12360 *-n32|*"-n32 ") libmagic=N32;;
12361 *-64|*"-64 ") libmagic=64-bit;;
12362 *) libmagic=never-match;;
12363 esac
12364 lt_cv_deplibs_check_method=pass_all
12365 ;;
12366
12367# This must be Linux ELF.
12368linux*)
12369 lt_cv_deplibs_check_method=pass_all
12370 ;;
12371
12372netbsd*)
12373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12375 else
12376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12377 fi
12378 ;;
12379
12380newos6*)
12381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12382 lt_cv_file_magic_cmd=/usr/bin/file
12383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12384 ;;
12385
12386nto-qnx*)
12387 lt_cv_deplibs_check_method=unknown
12388 ;;
12389
12390openbsd*)
12391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12393 else
12394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12395 fi
12396 ;;
12397
12398osf3* | osf4* | osf5*)
12399 lt_cv_deplibs_check_method=pass_all
12400 ;;
12401
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402solaris*)
12403 lt_cv_deplibs_check_method=pass_all
12404 ;;
12405
Reid Spencera773bd52006-08-04 18:18:08 +000012406sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012407 case $host_vendor in
12408 motorola)
12409 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]'
12410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12411 ;;
12412 ncr)
12413 lt_cv_deplibs_check_method=pass_all
12414 ;;
12415 sequent)
12416 lt_cv_file_magic_cmd='/bin/file'
12417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12418 ;;
12419 sni)
12420 lt_cv_file_magic_cmd='/bin/file'
12421 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12422 lt_cv_file_magic_test_file=/lib/libc.so
12423 ;;
12424 siemens)
12425 lt_cv_deplibs_check_method=pass_all
12426 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012427 pc)
12428 lt_cv_deplibs_check_method=pass_all
12429 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430 esac
12431 ;;
12432
Reid Spencera773bd52006-08-04 18:18:08 +000012433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434 lt_cv_deplibs_check_method=pass_all
12435 ;;
12436esac
12437
12438fi
Reid Spencera773bd52006-08-04 18:18:08 +000012439{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12440echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012441file_magic_cmd=$lt_cv_file_magic_cmd
12442deplibs_check_method=$lt_cv_deplibs_check_method
12443test -z "$deplibs_check_method" && deplibs_check_method=unknown
12444
12445
12446
12447# If no C compiler was specified, use CC.
12448LTCC=${LTCC-"$CC"}
12449
Reid Spencera773bd52006-08-04 18:18:08 +000012450# If no C compiler flags were specified, use CFLAGS.
12451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12452
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012453# Allow CC to be a program name with arguments.
12454compiler=$CC
12455
Reid Spencera773bd52006-08-04 18:18:08 +000012456# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012457if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012458 enableval=$enable_libtool_lock;
12459fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12462
12463# Some flags need to be propagated to the compiler or linker for good
12464# libtool support.
12465case $host in
12466ia64-*-hpux*)
12467 # Find out which ABI we are using.
12468 echo 'int i;' > conftest.$ac_ext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; then
12474 case `/usr/bin/file conftest.$ac_objext` in
12475 *ELF-32*)
12476 HPUX_IA64_MODE="32"
12477 ;;
12478 *ELF-64*)
12479 HPUX_IA64_MODE="64"
12480 ;;
12481 esac
12482 fi
12483 rm -rf conftest*
12484 ;;
12485*-*-irix6*)
12486 # Find out which ABI we are using.
Reid Spencer0d238182007-04-21 21:28:52 +000012487 echo '#line 12487 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489 (eval $ac_compile) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; then
12493 if test "$lt_cv_prog_gnu_ld" = yes; then
12494 case `/usr/bin/file conftest.$ac_objext` in
12495 *32-bit*)
12496 LD="${LD-ld} -melf32bsmip"
12497 ;;
12498 *N32*)
12499 LD="${LD-ld} -melf32bmipn32"
12500 ;;
12501 *64-bit*)
12502 LD="${LD-ld} -melf64bmip"
12503 ;;
12504 esac
12505 else
12506 case `/usr/bin/file conftest.$ac_objext` in
12507 *32-bit*)
12508 LD="${LD-ld} -32"
12509 ;;
12510 *N32*)
12511 LD="${LD-ld} -n32"
12512 ;;
12513 *64-bit*)
12514 LD="${LD-ld} -64"
12515 ;;
12516 esac
12517 fi
12518 fi
12519 rm -rf conftest*
12520 ;;
12521
12522x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12523 # Find out which ABI we are using.
12524 echo 'int i;' > conftest.$ac_ext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012530 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012531 *32-bit*)
12532 case $host in
12533 x86_64-*linux*)
12534 LD="${LD-ld} -m elf_i386"
12535 ;;
12536 ppc64-*linux*|powerpc64-*linux*)
12537 LD="${LD-ld} -m elf32ppclinux"
12538 ;;
12539 s390x-*linux*)
12540 LD="${LD-ld} -m elf_s390"
12541 ;;
12542 sparc64-*linux*)
12543 LD="${LD-ld} -m elf32_sparc"
12544 ;;
12545 esac
12546 ;;
12547 *64-bit*)
12548 case $host in
12549 x86_64-*linux*)
12550 LD="${LD-ld} -m elf_x86_64"
12551 ;;
12552 ppc*-*linux*|powerpc*-*linux*)
12553 LD="${LD-ld} -m elf64ppc"
12554 ;;
12555 s390*-*linux*)
12556 LD="${LD-ld} -m elf64_s390"
12557 ;;
12558 sparc*-*linux*)
12559 LD="${LD-ld} -m elf64_sparc"
12560 ;;
12561 esac
12562 ;;
12563 esac
12564 fi
12565 rm -rf conftest*
12566 ;;
12567
12568*-*-sco3.2v5*)
12569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12570 SAVE_CFLAGS="$CFLAGS"
12571 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012572 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12573echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574if test "${lt_cv_cc_needs_belf+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576else
12577 ac_ext=c
12578ac_cpp='$CPP $CPPFLAGS'
12579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589
Reid Spencera773bd52006-08-04 18:18:08 +000012590int
12591main ()
12592{
12593
12594 ;
12595 return 0;
12596}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597_ACEOF
12598rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 lt_cv_cc_needs_belf=yes
12633else
12634 echo "$as_me: failed program was:" >&5
12635sed 's/^/| /' conftest.$ac_ext >&5
12636
Reid Spencera773bd52006-08-04 18:18:08 +000012637 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012638fi
Reid Spencera773bd52006-08-04 18:18:08 +000012639
12640rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641 conftest$ac_exeext conftest.$ac_ext
12642 ac_ext=c
12643ac_cpp='$CPP $CPPFLAGS'
12644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648fi
Reid Spencera773bd52006-08-04 18:18:08 +000012649{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12650echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012651 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12653 CFLAGS="$SAVE_CFLAGS"
12654 fi
12655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012656sparc*-*solaris*)
12657 # Find out which ABI we are using.
12658 echo 'int i;' > conftest.$ac_ext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; then
12664 case `/usr/bin/file conftest.o` in
12665 *64-bit*)
12666 case $lt_cv_prog_gnu_ld in
12667 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12668 *) LD="${LD-ld} -64" ;;
12669 esac
12670 ;;
12671 esac
12672 fi
12673 rm -rf conftest*
12674 ;;
12675
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012676
12677esac
12678
12679need_locks="$enable_libtool_lock"
12680
12681
Reid Spencer2706f8c2004-09-19 23:53:36 +000012682
12683
12684if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12685 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12686 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012687 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012688ac_cpp='$CXXCPP $CPPFLAGS'
12689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012692{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12693echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012694if test -z "$CXXCPP"; then
12695 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
John Criswell47fdd832003-07-14 16:52:07 +000012698 # Double quotes because CXXCPP needs to be expanded
12699 for CXXCPP in "$CXX -E" "/lib/cpp"
12700 do
12701 ac_preproc_ok=false
12702for ac_cxx_preproc_warn_flag in '' yes
12703do
12704 # Use a header file that comes with gcc, so configuring glibc
12705 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012708 # On the NeXT, cc -E runs the code through the compiler's parser,
12709 # not just through cpp. "Syntax error" is here to catch this case.
12710 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716#ifdef __STDC__
12717# include <limits.h>
12718#else
12719# include <assert.h>
12720#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012721 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012722_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012723if { (ac_try="$ac_cpp conftest.$ac_ext"
12724case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012730 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012731 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } >/dev/null; then
12736 if test -s conftest.err; then
12737 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012738 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012739 else
John Criswell47fdd832003-07-14 16:52:07 +000012740 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012741 fi
John Criswell47fdd832003-07-14 16:52:07 +000012742else
12743 ac_cpp_err=yes
12744fi
12745if test -z "$ac_cpp_err"; then
12746 :
12747else
12748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012749sed 's/^/| /' conftest.$ac_ext >&5
12750
John Criswell47fdd832003-07-14 16:52:07 +000012751 # Broken: fails on valid input.
12752continue
12753fi
Reid Spencera773bd52006-08-04 18:18:08 +000012754
John Criswell47fdd832003-07-14 16:52:07 +000012755rm -f conftest.err conftest.$ac_ext
12756
Reid Spencera773bd52006-08-04 18:18:08 +000012757 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012758 # can be detected and how.
12759 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012765#include <ac_nonexistent.h>
12766_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012767if { (ac_try="$ac_cpp conftest.$ac_ext"
12768case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771esac
12772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012774 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012775 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } >/dev/null; then
12780 if test -s conftest.err; then
12781 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012782 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012783 else
12784 ac_cpp_err=
12785 fi
12786else
12787 ac_cpp_err=yes
12788fi
12789if test -z "$ac_cpp_err"; then
12790 # Broken: success on invalid input.
12791continue
12792else
12793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012794sed 's/^/| /' conftest.$ac_ext >&5
12795
John Criswell47fdd832003-07-14 16:52:07 +000012796 # Passes both tests.
12797ac_preproc_ok=:
12798break
12799fi
Reid Spencera773bd52006-08-04 18:18:08 +000012800
John Criswell47fdd832003-07-14 16:52:07 +000012801rm -f conftest.err conftest.$ac_ext
12802
12803done
12804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12805rm -f conftest.err conftest.$ac_ext
12806if $ac_preproc_ok; then
12807 break
John Criswell7a73b802003-06-30 21:59:07 +000012808fi
12809
John Criswell47fdd832003-07-14 16:52:07 +000012810 done
12811 ac_cv_prog_CXXCPP=$CXXCPP
12812
12813fi
12814 CXXCPP=$ac_cv_prog_CXXCPP
12815else
12816 ac_cv_prog_CXXCPP=$CXXCPP
12817fi
Reid Spencera773bd52006-08-04 18:18:08 +000012818{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12819echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012820ac_preproc_ok=false
12821for ac_cxx_preproc_warn_flag in '' yes
12822do
12823 # Use a header file that comes with gcc, so configuring glibc
12824 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12826 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012827 # On the NeXT, cc -E runs the code through the compiler's parser,
12828 # not just through cpp. "Syntax error" is here to catch this case.
12829 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012830/* confdefs.h. */
12831_ACEOF
12832cat confdefs.h >>conftest.$ac_ext
12833cat >>conftest.$ac_ext <<_ACEOF
12834/* end confdefs.h. */
12835#ifdef __STDC__
12836# include <limits.h>
12837#else
12838# include <assert.h>
12839#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012840 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012841_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012842if { (ac_try="$ac_cpp conftest.$ac_ext"
12843case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012849 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012850 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012858 else
12859 ac_cpp_err=
12860 fi
12861else
12862 ac_cpp_err=yes
12863fi
12864if test -z "$ac_cpp_err"; then
12865 :
12866else
12867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012868sed 's/^/| /' conftest.$ac_ext >&5
12869
John Criswell47fdd832003-07-14 16:52:07 +000012870 # Broken: fails on valid input.
12871continue
12872fi
Reid Spencera773bd52006-08-04 18:18:08 +000012873
John Criswell47fdd832003-07-14 16:52:07 +000012874rm -f conftest.err conftest.$ac_ext
12875
Reid Spencera773bd52006-08-04 18:18:08 +000012876 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012877 # can be detected and how.
12878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012884#include <ac_nonexistent.h>
12885_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012886if { (ac_try="$ac_cpp conftest.$ac_ext"
12887case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890esac
12891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012893 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012894 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } >/dev/null; then
12899 if test -s conftest.err; then
12900 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012902 else
12903 ac_cpp_err=
12904 fi
12905else
12906 ac_cpp_err=yes
12907fi
12908if test -z "$ac_cpp_err"; then
12909 # Broken: success on invalid input.
12910continue
12911else
12912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012913sed 's/^/| /' conftest.$ac_ext >&5
12914
John Criswell47fdd832003-07-14 16:52:07 +000012915 # Passes both tests.
12916ac_preproc_ok=:
12917break
12918fi
Reid Spencera773bd52006-08-04 18:18:08 +000012919
John Criswell47fdd832003-07-14 16:52:07 +000012920rm -f conftest.err conftest.$ac_ext
12921
12922done
12923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12924rm -f conftest.err conftest.$ac_ext
12925if $ac_preproc_ok; then
12926 :
12927else
John Criswell0c38eaf2003-09-10 15:17:25 +000012928 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12929See \`config.log' for more details." >&5
12930echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12931See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012932 { (exit 1); exit 1; }; }
12933fi
12934
Reid Spencera773bd52006-08-04 18:18:08 +000012935ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012936ac_cpp='$CXXCPP $CPPFLAGS'
12937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12940
Reid Spencer2706f8c2004-09-19 23:53:36 +000012941fi
12942
John Criswell47fdd832003-07-14 16:52:07 +000012943
12944ac_ext=f
12945ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12946ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12948if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012949 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 +000012950 do
12951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012955if test "${ac_cv_prog_F77+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957else
12958 if test -n "$F77"; then
12959 ac_cv_prog_F77="$F77" # Let the user override the test.
12960else
12961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $PATH
12963do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012967 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 +000012968 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972done
12973done
Reid Spencera773bd52006-08-04 18:18:08 +000012974IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012975
12976fi
12977fi
12978F77=$ac_cv_prog_F77
12979if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012980 { echo "$as_me:$LINENO: result: $F77" >&5
12981echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012982else
Reid Spencera773bd52006-08-04 18:18:08 +000012983 { echo "$as_me:$LINENO: result: no" >&5
12984echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012985fi
12986
Reid Spencera773bd52006-08-04 18:18:08 +000012987
John Criswell47fdd832003-07-14 16:52:07 +000012988 test -n "$F77" && break
12989 done
12990fi
12991if test -z "$F77"; then
12992 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012993 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 +000012994do
12995 # Extract the first word of "$ac_prog", so it can be a program name with args.
12996set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012999if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001else
13002 if test -n "$ac_ct_F77"; then
13003 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013011 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 +000013012 ac_cv_prog_ac_ct_F77="$ac_prog"
13013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13015 fi
13016done
13017done
Reid Spencera773bd52006-08-04 18:18:08 +000013018IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013019
13020fi
13021fi
13022ac_ct_F77=$ac_cv_prog_ac_ct_F77
13023if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013024 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13025echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013026else
Reid Spencera773bd52006-08-04 18:18:08 +000013027 { echo "$as_me:$LINENO: result: no" >&5
13028echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013029fi
13030
Reid Spencera773bd52006-08-04 18:18:08 +000013031
John Criswell47fdd832003-07-14 16:52:07 +000013032 test -n "$ac_ct_F77" && break
13033done
13034
Reid Spencera773bd52006-08-04 18:18:08 +000013035 if test "x$ac_ct_F77" = x; then
13036 F77=""
13037 else
13038 case $cross_compiling:$ac_tool_warned in
13039yes:)
13040{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13041whose name does not start with the host triplet. If you think this
13042configuration is useful to you, please write to autoconf@gnu.org." >&5
13043echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13044whose name does not start with the host triplet. If you think this
13045configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13046ac_tool_warned=yes ;;
13047esac
13048 F77=$ac_ct_F77
13049 fi
John Criswell47fdd832003-07-14 16:52:07 +000013050fi
13051
13052
13053# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013054echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013055ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013056{ (ac_try="$ac_compiler --version >&5"
13057case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060esac
13061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013066{ (ac_try="$ac_compiler -v >&5"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013076{ (ac_try="$ac_compiler -V >&5"
13077case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013086rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013087
13088# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013089# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013090ac_save_ext=$ac_ext
13091ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013092{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13093echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013094if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096else
13097 cat >conftest.$ac_ext <<_ACEOF
13098 program main
13099#ifndef __GNUC__
13100 choke me
13101#endif
13102
13103 end
13104_ACEOF
13105rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013106if { (ac_try="$ac_compile"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013119 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_compiler_gnu=yes
13140else
13141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013142sed 's/^/| /' conftest.$ac_ext >&5
13143
Reid Spencera773bd52006-08-04 18:18:08 +000013144 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013145fi
Reid Spencera773bd52006-08-04 18:18:08 +000013146
13147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013148ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13149
13150fi
Reid Spencera773bd52006-08-04 18:18:08 +000013151{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13152echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013153ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013154ac_test_FFLAGS=${FFLAGS+set}
13155ac_save_FFLAGS=$FFLAGS
13156FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013157{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13158echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013159if test "${ac_cv_prog_f77_g+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162 FFLAGS=-g
13163cat >conftest.$ac_ext <<_ACEOF
13164 program main
13165
13166 end
13167_ACEOF
13168rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013169if { (ac_try="$ac_compile"
13170case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173esac
13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013177 grep -v '^ *+' conftest.er1 >conftest.err
13178 rm -f conftest.er1
13179 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013182 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13183 { (case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013193 { (case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_prog_f77_g=yes
13203else
13204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013205sed 's/^/| /' conftest.$ac_ext >&5
13206
Reid Spencera773bd52006-08-04 18:18:08 +000013207 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013208fi
Reid Spencera773bd52006-08-04 18:18:08 +000013209
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013211
13212fi
Reid Spencera773bd52006-08-04 18:18:08 +000013213{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13214echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013215if test "$ac_test_FFLAGS" = set; then
13216 FFLAGS=$ac_save_FFLAGS
13217elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013218 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013219 FFLAGS="-g -O2"
13220 else
13221 FFLAGS="-g"
13222 fi
13223else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013224 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013225 FFLAGS="-O2"
13226 else
13227 FFLAGS=
13228 fi
13229fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013230
13231G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013232ac_ext=c
13233ac_cpp='$CPP $CPPFLAGS'
13234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238
13239
13240# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13241
13242# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013243{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13244echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013245if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247else
13248 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013249 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013250
13251 case $build_os in
13252 msdosdjgpp*)
13253 # On DJGPP, this test can blow up pretty badly due to problems in libc
13254 # (any single argument exceeding 2000 bytes causes a buffer overrun
13255 # during glob expansion). Even if it were fixed, the result of this
13256 # check would be larger than it should be.
13257 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13258 ;;
13259
13260 gnu*)
13261 # Under GNU Hurd, this test is not required because there is
13262 # no limit to the length of command line arguments.
13263 # Libtool will interpret -1 as no limit whatsoever
13264 lt_cv_sys_max_cmd_len=-1;
13265 ;;
13266
13267 cygwin* | mingw*)
13268 # On Win9x/ME, this test blows up -- it succeeds, but takes
13269 # about 5 minutes as the teststring grows exponentially.
13270 # Worse, since 9x/ME are not pre-emptively multitasking,
13271 # you end up with a "frozen" computer, even though with patience
13272 # the test eventually succeeds (with a max line length of 256k).
13273 # Instead, let's just punt: use the minimum linelength reported by
13274 # all of the supported platforms: 8192 (on NT/2K/XP).
13275 lt_cv_sys_max_cmd_len=8192;
13276 ;;
13277
Reid Spencer2706f8c2004-09-19 23:53:36 +000013278 amigaos*)
13279 # On AmigaOS with pdksh, this test takes hours, literally.
13280 # So we just punt and use a minimum line length of 8192.
13281 lt_cv_sys_max_cmd_len=8192;
13282 ;;
13283
Reid Spencera773bd52006-08-04 18:18:08 +000013284 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013285 # This has been around since 386BSD, at least. Likely further.
13286 if test -x /sbin/sysctl; then
13287 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13288 elif test -x /usr/sbin/sysctl; then
13289 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13290 else
Reid Spencera773bd52006-08-04 18:18:08 +000013291 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013292 fi
13293 # And add a safety zone
13294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013296 ;;
13297
Reid Spencera773bd52006-08-04 18:18:08 +000013298 interix*)
13299 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13300 lt_cv_sys_max_cmd_len=196608
13301 ;;
13302
13303 osf*)
13304 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13305 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13306 # nice to cause kernel panics so lets avoid the loop below.
13307 # First set a reasonable default.
13308 lt_cv_sys_max_cmd_len=16384
13309 #
13310 if test -x /sbin/sysconfig; then
13311 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13312 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13313 esac
13314 fi
13315 ;;
13316 sco3.2v5*)
13317 lt_cv_sys_max_cmd_len=102400
13318 ;;
13319 sysv5* | sco5v6* | sysv4.2uw2*)
13320 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13321 if test -n "$kargmax"; then
13322 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13323 else
13324 lt_cv_sys_max_cmd_len=32768
13325 fi
13326 ;;
13327 *)
John Criswell47fdd832003-07-14 16:52:07 +000013328 # If test is not a shell built-in, we'll probably end up computing a
13329 # maximum length that is only half of the actual maximum length, but
13330 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13332 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13333 = "XX$teststring") >/dev/null 2>&1 &&
13334 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013335 lt_cv_sys_max_cmd_len=$new_result &&
13336 test $i != 17 # 1/2 MB should be enough
13337 do
13338 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013339 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013340 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013341 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013342 # Add a significant safety factor because C++ compilers can tack on massive
13343 # amounts of additional arguments before passing them to the linker.
13344 # It appears as though 1/2 is a usable value.
13345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13346 ;;
13347 esac
13348
13349fi
13350
13351if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013352 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13353echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013354else
Reid Spencera773bd52006-08-04 18:18:08 +000013355 { echo "$as_me:$LINENO: result: none" >&5
13356echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013357fi
13358
13359
13360
13361
13362# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013363{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13364echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368
13369# These are sane defaults that work on at least a few old systems.
13370# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13371
13372# Character class describing NM global symbol codes.
13373symcode='[BCDEGRST]'
13374
13375# Regexp to match symbols that can be accessed directly from C.
13376sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13377
John Criswell47fdd832003-07-14 16:52:07 +000013378# Transform an extracted symbol line into a proper C declaration
13379lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13380
13381# Transform an extracted symbol line into symbol name and symbol address
13382lt_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'"
13383
13384# Define system-specific variables.
13385case $host_os in
13386aix*)
13387 symcode='[BCDT]'
13388 ;;
13389cygwin* | mingw* | pw32*)
13390 symcode='[ABCDGISTW]'
13391 ;;
13392hpux*) # Its linker distinguishes data from code symbols
13393 if test "$host_cpu" = ia64; then
13394 symcode='[ABCDEGRST]'
13395 fi
13396 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13397 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'"
13398 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013399linux*)
13400 if test "$host_cpu" = ia64; then
13401 symcode='[ABCDGIRSTW]'
13402 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13403 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'"
13404 fi
13405 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013406irix* | nonstopux*)
13407 symcode='[BCDEGRST]'
13408 ;;
13409osf*)
13410 symcode='[BCDEGQRST]'
13411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013412solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013413 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013415sco3.2v5*)
13416 symcode='[DT]'
13417 ;;
13418sysv4.2uw2*)
13419 symcode='[DT]'
13420 ;;
13421sysv5* | sco5v6* | unixware* | OpenUNIX*)
13422 symcode='[ABDT]'
13423 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013424sysv4)
13425 symcode='[DFNSTU]'
13426 ;;
13427esac
13428
13429# Handle CRLF in mingw tool chain
13430opt_cr=
13431case $build_os in
13432mingw*)
13433 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13434 ;;
13435esac
13436
13437# If we're using GNU nm, then use its standard symbol codes.
13438case `$NM -V 2>&1` in
13439*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013440 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013441esac
13442
13443# Try without a prefix undercore, then with it.
13444for ac_symprfx in "" "_"; do
13445
Reid Spencera773bd52006-08-04 18:18:08 +000013446 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13447 symxfrm="\\1 $ac_symprfx\\2 \\2"
13448
John Criswell47fdd832003-07-14 16:52:07 +000013449 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013450 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 +000013451
13452 # Check to see that the pipe works correctly.
13453 pipe_works=no
13454
13455 rm -f conftest*
13456 cat > conftest.$ac_ext <<EOF
13457#ifdef __cplusplus
13458extern "C" {
13459#endif
13460char nm_test_var;
13461void nm_test_func(){}
13462#ifdef __cplusplus
13463}
13464#endif
13465int main(){nm_test_var='a';nm_test_func();return(0);}
13466EOF
13467
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469 (eval $ac_compile) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; then
13473 # Now try to grab the symbols.
13474 nlist=conftest.nm
13475 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13476 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && test -s "$nlist"; then
13480 # Try sorting and uniquifying the output.
13481 if sort "$nlist" | uniq > "$nlist"T; then
13482 mv -f "$nlist"T "$nlist"
13483 else
13484 rm -f "$nlist"T
13485 fi
13486
13487 # Make sure that we snagged all the symbols we need.
13488 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13489 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13490 cat <<EOF > conftest.$ac_ext
13491#ifdef __cplusplus
13492extern "C" {
13493#endif
13494
13495EOF
13496 # Now generate the symbol file.
13497 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13498
13499 cat <<EOF >> conftest.$ac_ext
13500#if defined (__STDC__) && __STDC__
13501# define lt_ptr_t void *
13502#else
13503# define lt_ptr_t char *
13504# define const
13505#endif
13506
13507/* The mapping between symbol names and symbols. */
13508const struct {
13509 const char *name;
13510 lt_ptr_t address;
13511}
13512lt_preloaded_symbols[] =
13513{
13514EOF
13515 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13516 cat <<\EOF >> conftest.$ac_ext
13517 {0, (lt_ptr_t) 0}
13518};
13519
13520#ifdef __cplusplus
13521}
13522#endif
13523EOF
13524 # Now try linking the two files.
13525 mv conftest.$ac_objext conftstm.$ac_objext
13526 lt_save_LIBS="$LIBS"
13527 lt_save_CFLAGS="$CFLAGS"
13528 LIBS="conftstm.$ac_objext"
13529 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531 (eval $ac_link) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13535 pipe_works=yes
13536 fi
13537 LIBS="$lt_save_LIBS"
13538 CFLAGS="$lt_save_CFLAGS"
13539 else
13540 echo "cannot find nm_test_func in $nlist" >&5
13541 fi
13542 else
13543 echo "cannot find nm_test_var in $nlist" >&5
13544 fi
13545 else
13546 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13547 fi
13548 else
13549 echo "$progname: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 fi
13552 rm -f conftest* conftst*
13553
13554 # Do not use the global_symbol_pipe unless it works.
13555 if test "$pipe_works" = yes; then
13556 break
13557 else
13558 lt_cv_sys_global_symbol_pipe=
13559 fi
13560done
13561
13562fi
13563
13564if test -z "$lt_cv_sys_global_symbol_pipe"; then
13565 lt_cv_sys_global_symbol_to_cdecl=
13566fi
13567if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013568 { echo "$as_me:$LINENO: result: failed" >&5
13569echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013570else
Reid Spencera773bd52006-08-04 18:18:08 +000013571 { echo "$as_me:$LINENO: result: ok" >&5
13572echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013573fi
13574
Reid Spencera773bd52006-08-04 18:18:08 +000013575{ echo "$as_me:$LINENO: checking for objdir" >&5
13576echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013577if test "${lt_cv_objdir+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579else
13580 rm -f .libs 2>/dev/null
13581mkdir .libs 2>/dev/null
13582if test -d .libs; then
13583 lt_cv_objdir=.libs
13584else
13585 # MS-DOS does not allow filenames that begin with a dot.
13586 lt_cv_objdir=_libs
13587fi
13588rmdir .libs 2>/dev/null
13589fi
Reid Spencera773bd52006-08-04 18:18:08 +000013590{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13591echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013592objdir=$lt_cv_objdir
13593
13594
13595
13596
13597
13598case $host_os in
13599aix3*)
13600 # AIX sometimes has problems with the GCC collect2 program. For some
13601 # reason, if we set the COLLECT_NAMES environment variable, the problems
13602 # vanish in a puff of smoke.
13603 if test "X${COLLECT_NAMES+set}" != Xset; then
13604 COLLECT_NAMES=
13605 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013606 fi
13607 ;;
13608esac
13609
John Criswell47fdd832003-07-14 16:52:07 +000013610# Sed substitution that helps us do robust quoting. It backslashifies
13611# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013612Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013613sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13614
13615# Same as above, but do not quote variable references.
13616double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13617
13618# Sed substitution to delay expansion of an escaped shell variable in a
13619# double_quote_subst'ed string.
13620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13621
13622# Sed substitution to avoid accidental globbing in evaled expressions
13623no_glob_subst='s/\*/\\\*/g'
13624
13625# Constants:
13626rm="rm -f"
13627
13628# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013629default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013630can_build_shared=yes
13631
Reid Spencera773bd52006-08-04 18:18:08 +000013632# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013633# which needs '.lib').
13634libext=a
13635ltmain="$ac_aux_dir/ltmain.sh"
13636ofile="$default_ofile"
13637with_gnu_ld="$lt_cv_prog_gnu_ld"
13638
13639if test -n "$ac_tool_prefix"; then
13640 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13641set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013644if test "${ac_cv_prog_AR+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646else
13647 if test -n "$AR"; then
13648 ac_cv_prog_AR="$AR" # Let the user override the test.
13649else
13650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $PATH
13652do
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013656 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 +000013657 ac_cv_prog_AR="${ac_tool_prefix}ar"
13658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13660 fi
13661done
13662done
Reid Spencera773bd52006-08-04 18:18:08 +000013663IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013664
13665fi
13666fi
13667AR=$ac_cv_prog_AR
13668if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013669 { echo "$as_me:$LINENO: result: $AR" >&5
13670echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013671else
Reid Spencera773bd52006-08-04 18:18:08 +000013672 { echo "$as_me:$LINENO: result: no" >&5
13673echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013674fi
13675
Reid Spencera773bd52006-08-04 18:18:08 +000013676
John Criswell47fdd832003-07-14 16:52:07 +000013677fi
13678if test -z "$ac_cv_prog_AR"; then
13679 ac_ct_AR=$AR
13680 # Extract the first word of "ar", so it can be a program name with args.
13681set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013684if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686else
13687 if test -n "$ac_ct_AR"; then
13688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13689else
13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691for as_dir in $PATH
13692do
13693 IFS=$as_save_IFS
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013696 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 +000013697 ac_cv_prog_ac_ct_AR="ar"
13698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13699 break 2
13700 fi
13701done
13702done
Reid Spencera773bd52006-08-04 18:18:08 +000013703IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013704
John Criswell47fdd832003-07-14 16:52:07 +000013705fi
13706fi
13707ac_ct_AR=$ac_cv_prog_ac_ct_AR
13708if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013709 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13710echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013711else
Reid Spencera773bd52006-08-04 18:18:08 +000013712 { echo "$as_me:$LINENO: result: no" >&5
13713echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013714fi
13715
Reid Spencera773bd52006-08-04 18:18:08 +000013716 if test "x$ac_ct_AR" = x; then
13717 AR="false"
13718 else
13719 case $cross_compiling:$ac_tool_warned in
13720yes:)
13721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13722whose name does not start with the host triplet. If you think this
13723configuration is useful to you, please write to autoconf@gnu.org." >&5
13724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13725whose name does not start with the host triplet. If you think this
13726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13727ac_tool_warned=yes ;;
13728esac
13729 AR=$ac_ct_AR
13730 fi
John Criswell47fdd832003-07-14 16:52:07 +000013731else
13732 AR="$ac_cv_prog_AR"
13733fi
13734
John Criswell7a73b802003-06-30 21:59:07 +000013735if test -n "$ac_tool_prefix"; then
13736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13737set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013740if test "${ac_cv_prog_RANLIB+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742else
13743 if test -n "$RANLIB"; then
13744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013752 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 +000013753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13756 fi
13757done
13758done
Reid Spencera773bd52006-08-04 18:18:08 +000013759IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013760
13761fi
13762fi
13763RANLIB=$ac_cv_prog_RANLIB
13764if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013765 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13766echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013767else
Reid Spencera773bd52006-08-04 18:18:08 +000013768 { echo "$as_me:$LINENO: result: no" >&5
13769echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013770fi
13771
Reid Spencera773bd52006-08-04 18:18:08 +000013772
John Criswell7a73b802003-06-30 21:59:07 +000013773fi
13774if test -z "$ac_cv_prog_RANLIB"; then
13775 ac_ct_RANLIB=$RANLIB
13776 # Extract the first word of "ranlib", so it can be a program name with args.
13777set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 if test -n "$ac_ct_RANLIB"; then
13784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013792 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 +000013793 ac_cv_prog_ac_ct_RANLIB="ranlib"
13794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13796 fi
13797done
13798done
Reid Spencera773bd52006-08-04 18:18:08 +000013799IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013800
John Criswell7a73b802003-06-30 21:59:07 +000013801fi
13802fi
13803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13804if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013805 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13806echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013807else
Reid Spencera773bd52006-08-04 18:18:08 +000013808 { echo "$as_me:$LINENO: result: no" >&5
13809echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013810fi
13811
Reid Spencera773bd52006-08-04 18:18:08 +000013812 if test "x$ac_ct_RANLIB" = x; then
13813 RANLIB=":"
13814 else
13815 case $cross_compiling:$ac_tool_warned in
13816yes:)
13817{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13818whose name does not start with the host triplet. If you think this
13819configuration is useful to you, please write to autoconf@gnu.org." >&5
13820echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13821whose name does not start with the host triplet. If you think this
13822configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13823ac_tool_warned=yes ;;
13824esac
13825 RANLIB=$ac_ct_RANLIB
13826 fi
John Criswell7a73b802003-06-30 21:59:07 +000013827else
13828 RANLIB="$ac_cv_prog_RANLIB"
13829fi
13830
13831if test -n "$ac_tool_prefix"; then
13832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13833set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013836if test "${ac_cv_prog_STRIP+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839 if test -n "$STRIP"; then
13840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13841else
13842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843for as_dir in $PATH
13844do
13845 IFS=$as_save_IFS
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013848 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 +000013849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13851 break 2
13852 fi
13853done
13854done
Reid Spencera773bd52006-08-04 18:18:08 +000013855IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013856
13857fi
13858fi
13859STRIP=$ac_cv_prog_STRIP
13860if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013861 { echo "$as_me:$LINENO: result: $STRIP" >&5
13862echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013863else
Reid Spencera773bd52006-08-04 18:18:08 +000013864 { echo "$as_me:$LINENO: result: no" >&5
13865echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013866fi
13867
Reid Spencera773bd52006-08-04 18:18:08 +000013868
John Criswell7a73b802003-06-30 21:59:07 +000013869fi
13870if test -z "$ac_cv_prog_STRIP"; then
13871 ac_ct_STRIP=$STRIP
13872 # Extract the first word of "strip", so it can be a program name with args.
13873set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013876if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879 if test -n "$ac_ct_STRIP"; then
13880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13881else
13882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883for as_dir in $PATH
13884do
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013888 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 +000013889 ac_cv_prog_ac_ct_STRIP="strip"
13890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13892 fi
13893done
13894done
Reid Spencera773bd52006-08-04 18:18:08 +000013895IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013896
John Criswell7a73b802003-06-30 21:59:07 +000013897fi
13898fi
13899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13900if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013901 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13902echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013903else
Reid Spencera773bd52006-08-04 18:18:08 +000013904 { echo "$as_me:$LINENO: result: no" >&5
13905echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013906fi
13907
Reid Spencera773bd52006-08-04 18:18:08 +000013908 if test "x$ac_ct_STRIP" = x; then
13909 STRIP=":"
13910 else
13911 case $cross_compiling:$ac_tool_warned in
13912yes:)
13913{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13914whose name does not start with the host triplet. If you think this
13915configuration is useful to you, please write to autoconf@gnu.org." >&5
13916echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13917whose name does not start with the host triplet. If you think this
13918configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13919ac_tool_warned=yes ;;
13920esac
13921 STRIP=$ac_ct_STRIP
13922 fi
John Criswell7a73b802003-06-30 21:59:07 +000013923else
13924 STRIP="$ac_cv_prog_STRIP"
13925fi
13926
13927
John Criswell7a73b802003-06-30 21:59:07 +000013928old_CC="$CC"
13929old_CFLAGS="$CFLAGS"
13930
13931# Set sane defaults for various variables
13932test -z "$AR" && AR=ar
13933test -z "$AR_FLAGS" && AR_FLAGS=cru
13934test -z "$AS" && AS=as
13935test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013936test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013937test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013938test -z "$DLLTOOL" && DLLTOOL=dlltool
13939test -z "$LD" && LD=ld
13940test -z "$LN_S" && LN_S="ln -s"
13941test -z "$MAGIC_CMD" && MAGIC_CMD=file
13942test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013943test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013944test -z "$OBJDUMP" && OBJDUMP=objdump
13945test -z "$RANLIB" && RANLIB=:
13946test -z "$STRIP" && STRIP=:
13947test -z "$ac_objext" && ac_objext=o
13948
John Criswell7a73b802003-06-30 21:59:07 +000013949# Determine commands to create old-style static archives.
13950old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13951old_postinstall_cmds='chmod 644 $oldlib'
13952old_postuninstall_cmds=
13953
13954if test -n "$RANLIB"; then
13955 case $host_os in
13956 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013958 ;;
13959 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013961 ;;
13962 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013964fi
13965
Reid Spencera773bd52006-08-04 18:18:08 +000013966for cc_temp in $compiler""; do
13967 case $cc_temp in
13968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13970 \-*) ;;
13971 *) break;;
13972 esac
13973done
13974cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13975
Reid Spencer2706f8c2004-09-19 23:53:36 +000013976
John Criswell47fdd832003-07-14 16:52:07 +000013977# Only perform the check for file, if the check method requires it
13978case $deplibs_check_method in
13979file_magic*)
13980 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013981 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13982echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013983if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013985else
John Criswell47fdd832003-07-14 16:52:07 +000013986 case $MAGIC_CMD in
13987[\\/*] | ?:[\\/]*)
13988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13989 ;;
13990*)
13991 lt_save_MAGIC_CMD="$MAGIC_CMD"
13992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13994 for ac_dir in $ac_dummy; do
13995 IFS="$lt_save_ifs"
13996 test -z "$ac_dir" && ac_dir=.
13997 if test -f $ac_dir/${ac_tool_prefix}file; then
13998 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13999 if test -n "$file_magic_test_file"; then
14000 case $deplibs_check_method in
14001 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14005 $EGREP "$file_magic_regex" > /dev/null; then
14006 :
14007 else
14008 cat <<EOF 1>&2
14009
14010*** Warning: the command libtool uses to detect shared libraries,
14011*** $file_magic_cmd, produces output that libtool cannot recognize.
14012*** The result is that libtool may fail to recognize shared libraries
14013*** as such. This will affect the creation of libtool libraries that
14014*** depend on shared libraries, but programs linked with such libtool
14015*** libraries will work regardless of this problem. Nevertheless, you
14016*** may want to report the problem to your system manager and/or to
14017*** bug-libtool@gnu.org
14018
14019EOF
14020 fi ;;
14021 esac
14022 fi
14023 break
14024 fi
14025 done
14026 IFS="$lt_save_ifs"
14027 MAGIC_CMD="$lt_save_MAGIC_CMD"
14028 ;;
14029esac
John Criswell7a73b802003-06-30 21:59:07 +000014030fi
John Criswell7a73b802003-06-30 21:59:07 +000014031
John Criswell47fdd832003-07-14 16:52:07 +000014032MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014034 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14035echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014036else
Reid Spencera773bd52006-08-04 18:18:08 +000014037 { echo "$as_me:$LINENO: result: no" >&5
14038echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014039fi
John Criswell7a73b802003-06-30 21:59:07 +000014040
John Criswell47fdd832003-07-14 16:52:07 +000014041if test -z "$lt_cv_path_MAGIC_CMD"; then
14042 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014043 { echo "$as_me:$LINENO: checking for file" >&5
14044echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014045if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 case $MAGIC_CMD in
14049[\\/*] | ?:[\\/]*)
14050 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14051 ;;
14052*)
14053 lt_save_MAGIC_CMD="$MAGIC_CMD"
14054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14055 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14056 for ac_dir in $ac_dummy; do
14057 IFS="$lt_save_ifs"
14058 test -z "$ac_dir" && ac_dir=.
14059 if test -f $ac_dir/file; then
14060 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14061 if test -n "$file_magic_test_file"; then
14062 case $deplibs_check_method in
14063 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014064 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14067 $EGREP "$file_magic_regex" > /dev/null; then
14068 :
14069 else
14070 cat <<EOF 1>&2
14071
14072*** Warning: the command libtool uses to detect shared libraries,
14073*** $file_magic_cmd, produces output that libtool cannot recognize.
14074*** The result is that libtool may fail to recognize shared libraries
14075*** as such. This will affect the creation of libtool libraries that
14076*** depend on shared libraries, but programs linked with such libtool
14077*** libraries will work regardless of this problem. Nevertheless, you
14078*** may want to report the problem to your system manager and/or to
14079*** bug-libtool@gnu.org
14080
14081EOF
14082 fi ;;
14083 esac
14084 fi
14085 break
14086 fi
14087 done
14088 IFS="$lt_save_ifs"
14089 MAGIC_CMD="$lt_save_MAGIC_CMD"
14090 ;;
14091esac
14092fi
14093
14094MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014096 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14097echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014098else
Reid Spencera773bd52006-08-04 18:18:08 +000014099 { echo "$as_me:$LINENO: result: no" >&5
14100echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014101fi
14102
14103 else
14104 MAGIC_CMD=:
14105 fi
14106fi
14107
14108 fi
14109 ;;
14110esac
14111
Reid Spencer17795972004-11-18 09:47:37 +000014112enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014113enable_win32_dll=no
14114
Reid Spencera773bd52006-08-04 18:18:08 +000014115# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014116if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014117 enableval=$enable_libtool_lock;
14118fi
John Criswell47fdd832003-07-14 16:52:07 +000014119
John Criswell47fdd832003-07-14 16:52:07 +000014120test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14121
John Criswell7a73b802003-06-30 21:59:07 +000014122
Reid Spencera773bd52006-08-04 18:18:08 +000014123# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014124if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014125 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014126else
14127 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014128fi
14129
John Criswell7a73b802003-06-30 21:59:07 +000014130test -z "$pic_mode" && pic_mode=default
14131
John Criswell47fdd832003-07-14 16:52:07 +000014132# Use C for the default configuration in the libtool script
14133tagname=
14134lt_save_CC="$CC"
14135ac_ext=c
14136ac_cpp='$CPP $CPPFLAGS'
14137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140
14141
14142# Source file extension for C test sources.
14143ac_ext=c
14144
14145# Object file extension for compiled C test sources.
14146objext=o
14147objext=$objext
14148
14149# Code to be used in simple compile tests
14150lt_simple_compile_test_code="int some_variable = 0;\n"
14151
14152# Code to be used in simple link tests
14153lt_simple_link_test_code='int main(){return(0);}\n'
14154
14155
14156# If no C compiler was specified, use CC.
14157LTCC=${LTCC-"$CC"}
14158
Reid Spencera773bd52006-08-04 18:18:08 +000014159# If no C compiler flags were specified, use CFLAGS.
14160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14161
John Criswell47fdd832003-07-14 16:52:07 +000014162# Allow CC to be a program name with arguments.
14163compiler=$CC
14164
14165
Reid Spencera773bd52006-08-04 18:18:08 +000014166# save warnings/boilerplate of simple test code
14167ac_outfile=conftest.$ac_objext
14168printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14169eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170_lt_compiler_boilerplate=`cat conftest.err`
14171$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014172
Reid Spencera773bd52006-08-04 18:18:08 +000014173ac_outfile=conftest.$ac_objext
14174printf "$lt_simple_link_test_code" >conftest.$ac_ext
14175eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176_lt_linker_boilerplate=`cat conftest.err`
14177$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014178
14179
John Criswell47fdd832003-07-14 16:52:07 +000014180
14181lt_prog_compiler_no_builtin_flag=
14182
14183if test "$GCC" = yes; then
14184 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14185
Reid Spencer2706f8c2004-09-19 23:53:36 +000014186
Reid Spencera773bd52006-08-04 18:18:08 +000014187{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14188echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014189if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192 lt_cv_prog_compiler_rtti_exceptions=no
14193 ac_outfile=conftest.$ac_objext
14194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14195 lt_compiler_flag="-fno-rtti -fno-exceptions"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 # The option is referenced via a variable to avoid confusing sed.
14201 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000014205 (eval echo "\"\$as_me:14205: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014206 (eval "$lt_compile" 2>conftest.err)
14207 ac_status=$?
14208 cat conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000014209 echo "$as_me:14209: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014210 if (exit $ac_status) && test -s "$ac_outfile"; then
14211 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014212 # So say no if there are warnings other than the usual output.
14213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014216 lt_cv_prog_compiler_rtti_exceptions=yes
14217 fi
14218 fi
14219 $rm conftest*
14220
14221fi
Reid Spencera773bd52006-08-04 18:18:08 +000014222{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14223echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014224
14225if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14226 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14227else
14228 :
14229fi
14230
14231fi
14232
14233lt_prog_compiler_wl=
14234lt_prog_compiler_pic=
14235lt_prog_compiler_static=
14236
Reid Spencera773bd52006-08-04 18:18:08 +000014237{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14238echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014239
14240 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014241 lt_prog_compiler_wl='-Wl,'
14242 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014243
14244 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014245 aix*)
14246 # All AIX code is PIC.
14247 if test "$host_cpu" = ia64; then
14248 # AIX 5 now supports IA64 processor
14249 lt_prog_compiler_static='-Bstatic'
14250 fi
John Criswell7a73b802003-06-30 21:59:07 +000014251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014252
John Criswell7a73b802003-06-30 21:59:07 +000014253 amigaos*)
14254 # FIXME: we need at least 68020 code to build shared libraries, but
14255 # adding the `-m68020' flag to GCC prevents building anything better,
14256 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014257 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014258 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014259
14260 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014261 # PIC is the default for these OSes.
14262 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014263
14264 mingw* | pw32* | os2*)
14265 # This hack is so that the source file can tell whether it is being
14266 # built for inclusion in a dll (and should export symbols for example).
14267 lt_prog_compiler_pic='-DDLL_EXPORT'
14268 ;;
14269
John Criswell7a73b802003-06-30 21:59:07 +000014270 darwin* | rhapsody*)
14271 # PIC is the default on this platform
14272 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014273 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014274 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014275
Reid Spencera773bd52006-08-04 18:18:08 +000014276 interix3*)
14277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278 # Instead, we relocate shared libraries at runtime.
14279 ;;
14280
John Criswell47fdd832003-07-14 16:52:07 +000014281 msdosdjgpp*)
14282 # Just because we use GCC doesn't mean we suddenly get shared libraries
14283 # on systems that don't support them.
14284 lt_prog_compiler_can_build_shared=no
14285 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014286 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014287
John Criswell7a73b802003-06-30 21:59:07 +000014288 sysv4*MP*)
14289 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014290 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014291 fi
14292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014293
14294 hpux*)
14295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14296 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014297 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014298 hppa*64*|ia64*)
14299 # +Z the default
14300 ;;
14301 *)
14302 lt_prog_compiler_pic='-fPIC'
14303 ;;
14304 esac
14305 ;;
14306
John Criswell7a73b802003-06-30 21:59:07 +000014307 *)
John Criswell47fdd832003-07-14 16:52:07 +000014308 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014309 ;;
14310 esac
14311 else
John Criswell47fdd832003-07-14 16:52:07 +000014312 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014313 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014314 aix*)
14315 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014316 if test "$host_cpu" = ia64; then
14317 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014318 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014319 else
John Criswell47fdd832003-07-14 16:52:07 +000014320 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014321 fi
14322 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014323 darwin*)
14324 # PIC is the default on this platform
14325 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014326 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014327 xlc*)
14328 lt_prog_compiler_pic='-qnocommon'
14329 lt_prog_compiler_wl='-Wl,'
14330 ;;
14331 esac
14332 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014333
John Criswell47fdd832003-07-14 16:52:07 +000014334 mingw* | pw32* | os2*)
14335 # This hack is so that the source file can tell whether it is being
14336 # built for inclusion in a dll (and should export symbols for example).
14337 lt_prog_compiler_pic='-DDLL_EXPORT'
14338 ;;
14339
John Criswell7a73b802003-06-30 21:59:07 +000014340 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014341 lt_prog_compiler_wl='-Wl,'
14342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14343 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014344 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014345 hppa*64*|ia64*)
14346 # +Z the default
14347 ;;
14348 *)
14349 lt_prog_compiler_pic='+Z'
14350 ;;
14351 esac
14352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14353 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014354 ;;
14355
John Criswell47fdd832003-07-14 16:52:07 +000014356 irix5* | irix6* | nonstopux*)
14357 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014358 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014359 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014360 ;;
14361
14362 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014363 lt_prog_compiler_pic='-KPIC'
14364 lt_prog_compiler_static='-Bstatic'
14365 ;;
14366
14367 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014368 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014369 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014370 lt_prog_compiler_wl='-Wl,'
14371 lt_prog_compiler_pic='-KPIC'
14372 lt_prog_compiler_static='-static'
14373 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014374 pgcc* | pgf77* | pgf90* | pgf95*)
14375 # Portland Group compilers (*not* the Pentium gcc compiler,
14376 # which looks to be a dead project)
14377 lt_prog_compiler_wl='-Wl,'
14378 lt_prog_compiler_pic='-fpic'
14379 lt_prog_compiler_static='-Bstatic'
14380 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014381 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014382 lt_prog_compiler_wl='-Wl,'
14383 # All Alpha code is PIC.
14384 lt_prog_compiler_static='-non_shared'
14385 ;;
14386 esac
John Criswell7a73b802003-06-30 21:59:07 +000014387 ;;
14388
14389 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014390 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014391 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014392 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014393 ;;
14394
John Criswell7a73b802003-06-30 21:59:07 +000014395 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014396 lt_prog_compiler_pic='-KPIC'
14397 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014398 case $cc_basename in
14399 f77* | f90* | f95*)
14400 lt_prog_compiler_wl='-Qoption ld ';;
14401 *)
14402 lt_prog_compiler_wl='-Wl,';;
14403 esac
John Criswell7a73b802003-06-30 21:59:07 +000014404 ;;
14405
14406 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014407 lt_prog_compiler_wl='-Qoption ld '
14408 lt_prog_compiler_pic='-PIC'
14409 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014410 ;;
14411
Reid Spencera773bd52006-08-04 18:18:08 +000014412 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014413 lt_prog_compiler_wl='-Wl,'
14414 lt_prog_compiler_pic='-KPIC'
14415 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014416 ;;
14417
14418 sysv4*MP*)
14419 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014420 lt_prog_compiler_pic='-Kconform_pic'
14421 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014422 fi
14423 ;;
14424
Reid Spencera773bd52006-08-04 18:18:08 +000014425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_pic='-KPIC'
14428 lt_prog_compiler_static='-Bstatic'
14429 ;;
14430
14431 unicos*)
14432 lt_prog_compiler_wl='-Wl,'
14433 lt_prog_compiler_can_build_shared=no
14434 ;;
14435
John Criswell47fdd832003-07-14 16:52:07 +000014436 uts4*)
14437 lt_prog_compiler_pic='-pic'
14438 lt_prog_compiler_static='-Bstatic'
14439 ;;
14440
John Criswell7a73b802003-06-30 21:59:07 +000014441 *)
John Criswell47fdd832003-07-14 16:52:07 +000014442 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014443 ;;
14444 esac
14445 fi
14446
Reid Spencera773bd52006-08-04 18:18:08 +000014447{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14448echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014449
John Criswell47fdd832003-07-14 16:52:07 +000014450#
14451# Check to make sure the PIC flag actually works.
14452#
14453if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014454
Reid Spencera773bd52006-08-04 18:18:08 +000014455{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14456echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014457if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
John Criswell47fdd832003-07-14 16:52:07 +000014460 lt_prog_compiler_pic_works=no
14461 ac_outfile=conftest.$ac_objext
14462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14464 # Insert the option either (1) after the last *FLAGS variable, or
14465 # (2) before a word containing "conftest.", or (3) at the end.
14466 # Note that $ac_compile itself does not contain backslashes and begins
14467 # with a dollar sign (not a hyphen), so the echo should work correctly.
14468 # The option is referenced via a variable to avoid confusing sed.
14469 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000014473 (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014474 (eval "$lt_compile" 2>conftest.err)
14475 ac_status=$?
14476 cat conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000014477 echo "$as_me:14477: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014478 if (exit $ac_status) && test -s "$ac_outfile"; then
14479 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014480 # So say no if there are warnings other than the usual output.
14481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014484 lt_prog_compiler_pic_works=yes
14485 fi
14486 fi
14487 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014488
John Criswell47fdd832003-07-14 16:52:07 +000014489fi
Reid Spencera773bd52006-08-04 18:18:08 +000014490{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14491echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014492
John Criswell47fdd832003-07-14 16:52:07 +000014493if test x"$lt_prog_compiler_pic_works" = xyes; then
14494 case $lt_prog_compiler_pic in
14495 "" | " "*) ;;
14496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14497 esac
John Criswell7a73b802003-06-30 21:59:07 +000014498else
John Criswell47fdd832003-07-14 16:52:07 +000014499 lt_prog_compiler_pic=
14500 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014501fi
14502
John Criswell7a73b802003-06-30 21:59:07 +000014503fi
Reid Spencera773bd52006-08-04 18:18:08 +000014504case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014505 # For platforms which do not support PIC, -DPIC is meaningless:
14506 *djgpp*)
14507 lt_prog_compiler_pic=
14508 ;;
14509 *)
14510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14511 ;;
14512esac
John Criswell7a73b802003-06-30 21:59:07 +000014513
Reid Spencera773bd52006-08-04 18:18:08 +000014514#
14515# Check to make sure the static flag actually works.
14516#
14517wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14518{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14519echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14520if test "${lt_prog_compiler_static_works+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523 lt_prog_compiler_static_works=no
14524 save_LDFLAGS="$LDFLAGS"
14525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528 # The linker can only warn and ignore the option if not recognized
14529 # So say no if there are warnings
14530 if test -s conftest.err; then
14531 # Append any errors to the config.log.
14532 cat conftest.err 1>&5
14533 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535 if diff conftest.exp conftest.er2 >/dev/null; then
14536 lt_prog_compiler_static_works=yes
14537 fi
14538 else
14539 lt_prog_compiler_static_works=yes
14540 fi
14541 fi
14542 $rm conftest*
14543 LDFLAGS="$save_LDFLAGS"
14544
14545fi
14546{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14547echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14548
14549if test x"$lt_prog_compiler_static_works" = xyes; then
14550 :
14551else
14552 lt_prog_compiler_static=
14553fi
14554
14555
14556{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14557echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014558if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
John Criswell47fdd832003-07-14 16:52:07 +000014561 lt_cv_prog_compiler_c_o=no
14562 $rm -r conftest 2>/dev/null
14563 mkdir conftest
14564 cd conftest
14565 mkdir out
14566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014567
John Criswell47fdd832003-07-14 16:52:07 +000014568 lt_compiler_flag="-o out/conftest2.$ac_objext"
14569 # Insert the option either (1) after the last *FLAGS variable, or
14570 # (2) before a word containing "conftest.", or (3) at the end.
14571 # Note that $ac_compile itself does not contain backslashes and begins
14572 # with a dollar sign (not a hyphen), so the echo should work correctly.
14573 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000014577 (eval echo "\"\$as_me:14577: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014578 (eval "$lt_compile" 2>out/conftest.err)
14579 ac_status=$?
14580 cat out/conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000014581 echo "$as_me:14581: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14583 then
14584 # The compiler can only warn and ignore the option if not recognized
14585 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014589 lt_cv_prog_compiler_c_o=yes
14590 fi
14591 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014592 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014593 $rm conftest*
14594 # SGI C++ compiler will create directory out/ii_files/ for
14595 # template instantiation
14596 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14597 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014598 cd ..
14599 rmdir conftest
14600 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014601
14602fi
Reid Spencera773bd52006-08-04 18:18:08 +000014603{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14604echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014605
John Criswell7a73b802003-06-30 21:59:07 +000014606
John Criswell7a73b802003-06-30 21:59:07 +000014607hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014608if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014609 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014610 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14611echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014612 hard_links=yes
14613 $rm conftest*
14614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 touch conftest.a
14616 ln conftest.a conftest.b 2>&5 || hard_links=no
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014618 { echo "$as_me:$LINENO: result: $hard_links" >&5
14619echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014620 if test "$hard_links" = no; then
14621 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14622echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14623 need_locks=warn
14624 fi
14625else
14626 need_locks=no
14627fi
John Criswell7a73b802003-06-30 21:59:07 +000014628
Reid Spencera773bd52006-08-04 18:18:08 +000014629{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14630echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014631
14632 runpath_var=
14633 allow_undefined_flag=
14634 enable_shared_with_static_runtimes=no
14635 archive_cmds=
14636 archive_expsym_cmds=
14637 old_archive_From_new_cmds=
14638 old_archive_from_expsyms_cmds=
14639 export_dynamic_flag_spec=
14640 whole_archive_flag_spec=
14641 thread_safe_flag_spec=
14642 hardcode_libdir_flag_spec=
14643 hardcode_libdir_flag_spec_ld=
14644 hardcode_libdir_separator=
14645 hardcode_direct=no
14646 hardcode_minus_L=no
14647 hardcode_shlibpath_var=unsupported
14648 link_all_deplibs=unknown
14649 hardcode_automatic=no
14650 module_cmds=
14651 module_expsym_cmds=
14652 always_export_symbols=no
14653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14654 # include_expsyms should be a list of space-separated symbols to be *always*
14655 # included in the symbol list
14656 include_expsyms=
14657 # exclude_expsyms can be an extended regexp of symbols to exclude
14658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14660 # as well as any symbol that contains `d'.
14661 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14663 # platforms (ab)use it in PIC code, but their linkers get confused if
14664 # the symbol is explicitly referenced. Since portable code cannot
14665 # rely on this symbol name, it's probably fine to never include it in
14666 # preloaded symbol tables.
14667 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014668 # Just being paranoid about ensuring that cc_basename is set.
14669 for cc_temp in $compiler""; do
14670 case $cc_temp in
14671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14673 \-*) ;;
14674 *) break;;
14675 esac
14676done
14677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014678
14679 case $host_os in
14680 cygwin* | mingw* | pw32*)
14681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14682 # When not using gcc, we currently assume that we are using
14683 # Microsoft Visual C++.
14684 if test "$GCC" != yes; then
14685 with_gnu_ld=no
14686 fi
14687 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014688 interix*)
14689 # we just hope/assume this is gcc and not c89 (= MSVC++)
14690 with_gnu_ld=yes
14691 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014692 openbsd*)
14693 with_gnu_ld=no
14694 ;;
14695 esac
14696
14697 ld_shlibs=yes
14698 if test "$with_gnu_ld" = yes; then
14699 # If archive_cmds runs LD, not CC, wlarc should be empty
14700 wlarc='${wl}'
14701
Reid Spencera773bd52006-08-04 18:18:08 +000014702 # Set some defaults for GNU ld with shared library support. These
14703 # are reset later if shared libraries are not supported. Putting them
14704 # here allows them to be overridden if necessary.
14705 runpath_var=LD_RUN_PATH
14706 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14707 export_dynamic_flag_spec='${wl}--export-dynamic'
14708 # ancient GNU ld didn't support --whole-archive et. al.
14709 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14711 else
14712 whole_archive_flag_spec=
14713 fi
14714 supports_anon_versioning=no
14715 case `$LD -v 2>/dev/null` in
14716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719 *\ 2.11.*) ;; # other 2.11 versions
14720 *) supports_anon_versioning=yes ;;
14721 esac
14722
John Criswell47fdd832003-07-14 16:52:07 +000014723 # See if GNU ld supports shared libraries.
14724 case $host_os in
14725 aix3* | aix4* | aix5*)
14726 # On AIX/PPC, the GNU linker is very broken
14727 if test "$host_cpu" != ia64; then
14728 ld_shlibs=no
14729 cat <<EOF 1>&2
14730
14731*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14732*** to be unable to reliably create shared libraries on AIX.
14733*** Therefore, libtool is disabling shared libraries support. If you
14734*** really care for shared libraries, you may want to modify your PATH
14735*** so that a non-GNU linker is found, and then restart.
14736
14737EOF
14738 fi
14739 ;;
14740
14741 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014742 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 +000014743 hardcode_libdir_flag_spec='-L$libdir'
14744 hardcode_minus_L=yes
14745
14746 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14747 # that the semantics of dynamic libraries on AmigaOS, at least up
14748 # to version 4, is to share data among multiple programs linked
14749 # with the same dynamic library. Since this doesn't match the
14750 # behavior of shared libraries on other platforms, we can't use
14751 # them.
14752 ld_shlibs=no
14753 ;;
14754
14755 beos*)
14756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14757 allow_undefined_flag=unsupported
14758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14759 # support --undefined. This deserves some investigation. FIXME
14760 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14761 else
14762 ld_shlibs=no
14763 fi
14764 ;;
14765
14766 cygwin* | mingw* | pw32*)
14767 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14768 # as there is no search path for DLLs.
14769 hardcode_libdir_flag_spec='-L$libdir'
14770 allow_undefined_flag=unsupported
14771 always_export_symbols=no
14772 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014773 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 +000014774
14775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014776 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 +000014777 # If the export-symbols file already is a .def file (1st line
14778 # is EXPORTS), use it as is; otherwise, prepend...
14779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14780 cp $export_symbols $output_objdir/$soname.def;
14781 else
14782 echo EXPORTS > $output_objdir/$soname.def;
14783 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014784 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14786 else
14787 ld_shlibs=no
14788 fi
14789 ;;
14790
14791 interix3*)
14792 hardcode_direct=no
14793 hardcode_shlibpath_var=no
14794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14795 export_dynamic_flag_spec='${wl}-E'
14796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14797 # Instead, shared libraries are loaded at an image base (0x10000000 by
14798 # default) and relocated if they conflict, which is a slow very memory
14799 # consuming and fragmenting process. To avoid this, we pick a random,
14800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14803 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'
14804 ;;
14805
14806 linux*)
14807 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808 tmp_addflag=
14809 case $cc_basename,$host_cpu in
14810 pgcc*) # Portland Group C compiler
14811 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'
14812 tmp_addflag=' $pic_flag'
14813 ;;
14814 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14815 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'
14816 tmp_addflag=' $pic_flag -Mnomain' ;;
14817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14818 tmp_addflag=' -i_dynamic' ;;
14819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14820 tmp_addflag=' -i_dynamic -nofor_main' ;;
14821 ifc* | ifort*) # Intel Fortran compiler
14822 tmp_addflag=' -nofor_main' ;;
14823 esac
14824 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14825
14826 if test $supports_anon_versioning = yes; then
14827 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14829 $echo "local: *; };" >> $output_objdir/$libname.ver~
14830 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14831 fi
John Criswell47fdd832003-07-14 16:52:07 +000014832 else
14833 ld_shlibs=no
14834 fi
14835 ;;
14836
14837 netbsd*)
14838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14839 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14840 wlarc=
14841 else
14842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844 fi
14845 ;;
14846
Reid Spencera773bd52006-08-04 18:18:08 +000014847 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014848 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14849 ld_shlibs=no
14850 cat <<EOF 1>&2
14851
14852*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14853*** create shared libraries on Solaris systems. Therefore, libtool
14854*** is disabling shared libraries support. We urge you to upgrade GNU
14855*** binutils to release 2.9.1 or newer. Another option is to modify
14856*** your PATH or compiler configuration so that the native linker is
14857*** used, and then restart.
14858
14859EOF
14860 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14863 else
14864 ld_shlibs=no
14865 fi
14866 ;;
14867
Reid Spencera773bd52006-08-04 18:18:08 +000014868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14869 case `$LD -v 2>&1` in
14870 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14871 ld_shlibs=no
14872 cat <<_LT_EOF 1>&2
14873
14874*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14875*** reliably create shared libraries on SCO systems. Therefore, libtool
14876*** is disabling shared libraries support. We urge you to upgrade GNU
14877*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14878*** your PATH or compiler configuration so that the native linker is
14879*** used, and then restart.
14880
14881_LT_EOF
14882 ;;
14883 *)
14884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14885 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14888 else
14889 ld_shlibs=no
14890 fi
14891 ;;
14892 esac
14893 ;;
14894
John Criswell47fdd832003-07-14 16:52:07 +000014895 sunos4*)
14896 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14897 wlarc=
14898 hardcode_direct=yes
14899 hardcode_shlibpath_var=no
14900 ;;
14901
14902 *)
14903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14906 else
14907 ld_shlibs=no
14908 fi
14909 ;;
14910 esac
14911
Reid Spencera773bd52006-08-04 18:18:08 +000014912 if test "$ld_shlibs" = no; then
14913 runpath_var=
14914 hardcode_libdir_flag_spec=
14915 export_dynamic_flag_spec=
14916 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014917 fi
14918 else
14919 # PORTME fill in a description of your system's linker (not GNU ld)
14920 case $host_os in
14921 aix3*)
14922 allow_undefined_flag=unsupported
14923 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014924 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 +000014925 # Note: this linker hardcodes the directories in LIBPATH if there
14926 # are no directories specified by -L.
14927 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014928 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014929 # Neither direct hardcoding nor static linking is supported with a
14930 # broken collect2.
14931 hardcode_direct=unsupported
14932 fi
14933 ;;
14934
14935 aix4* | aix5*)
14936 if test "$host_cpu" = ia64; then
14937 # On IA64, the linker does run time linking by default, so we don't
14938 # have to do anything special.
14939 aix_use_runtimelinking=no
14940 exp_sym_flag='-Bexport'
14941 no_entry_flag=""
14942 else
14943 # If we're using GNU nm, then we don't want the "-C" option.
14944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14945 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14946 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'
14947 else
14948 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'
14949 fi
14950 aix_use_runtimelinking=no
14951
14952 # Test if we are trying to use run time linking or normal
14953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14954 # need to do runtime linking.
14955 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14956 for ld_flag in $LDFLAGS; do
14957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14958 aix_use_runtimelinking=yes
14959 break
14960 fi
14961 done
Reid Spencera773bd52006-08-04 18:18:08 +000014962 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014963 esac
14964
14965 exp_sym_flag='-bexport'
14966 no_entry_flag='-bnoentry'
14967 fi
14968
14969 # When large executables or shared objects are built, AIX ld can
14970 # have problems creating the table of contents. If linking a library
14971 # or program results in "error TOC overflow" add -mminimal-toc to
14972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14974
14975 archive_cmds=''
14976 hardcode_direct=yes
14977 hardcode_libdir_separator=':'
14978 link_all_deplibs=yes
14979
14980 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014981 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014982 # We only want to do this on AIX 4.2 and lower, the check
14983 # below for broken collect2 doesn't work under 4.3+
14984 collect2name=`${CC} -print-prog-name=collect2`
14985 if test -f "$collect2name" && \
14986 strings "$collect2name" | grep resolve_lib_name >/dev/null
14987 then
14988 # We have reworked collect2
14989 hardcode_direct=yes
14990 else
14991 # We have old collect2
14992 hardcode_direct=unsupported
14993 # It fails to find uninstalled libraries when the uninstalled
14994 # path is not listed in the libpath. Setting hardcode_minus_L
14995 # to unsupported forces relinking
14996 hardcode_minus_L=yes
14997 hardcode_libdir_flag_spec='-L$libdir'
14998 hardcode_libdir_separator=
14999 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015000 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015001 esac
15002 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015003 if test "$aix_use_runtimelinking" = yes; then
15004 shared_flag="$shared_flag "'${wl}-G'
15005 fi
John Criswell47fdd832003-07-14 16:52:07 +000015006 else
15007 # not using gcc
15008 if test "$host_cpu" = ia64; then
15009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15010 # chokes on -Wl,-G. The following line is correct:
15011 shared_flag='-G'
15012 else
Reid Spencera773bd52006-08-04 18:18:08 +000015013 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015014 shared_flag='${wl}-G'
15015 else
15016 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015017 fi
John Criswell47fdd832003-07-14 16:52:07 +000015018 fi
15019 fi
15020
15021 # It seems that -bexpall does not export symbols beginning with
15022 # underscore (_), so it is better to generate a list of symbols to export.
15023 always_export_symbols=yes
15024 if test "$aix_use_runtimelinking" = yes; then
15025 # Warning - without using the other runtime loading flags (-brtl),
15026 # -berok will link without error, but may produce a broken library.
15027 allow_undefined_flag='-berok'
15028 # Determine the default libpath from the value encoded in an empty executable.
15029 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015035
John Criswell7a73b802003-06-30 21:59:07 +000015036int
15037main ()
15038{
John Criswell47fdd832003-07-14 16:52:07 +000015039
John Criswell7a73b802003-06-30 21:59:07 +000015040 ;
15041 return 0;
15042}
15043_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015044rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015045if { (ac_try="$ac_link"
15046case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062esac
15063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015078
John Criswell47fdd832003-07-14 16:52:07 +000015079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15080}'`
15081# Check for a 64-bit object if we didn't find anything.
15082if 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; }
15083}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015084else
15085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015086sed 's/^/| /' conftest.$ac_ext >&5
15087
Reid Spencera773bd52006-08-04 18:18:08 +000015088
John Criswell7a73b802003-06-30 21:59:07 +000015089fi
Reid Spencera773bd52006-08-04 18:18:08 +000015090
15091rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015092 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015094
John Criswell47fdd832003-07-14 16:52:07 +000015095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015096 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 +000015097 else
15098 if test "$host_cpu" = ia64; then
15099 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15100 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015101 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 +000015102 else
15103 # Determine the default libpath from the value encoded in an empty executable.
15104 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015110
John Criswell47fdd832003-07-14 16:52:07 +000015111int
15112main ()
15113{
John Criswell7a73b802003-06-30 21:59:07 +000015114
John Criswell47fdd832003-07-14 16:52:07 +000015115 ;
15116 return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015120if { (ac_try="$ac_link"
15121case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124esac
15125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015127 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15134 { (case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015153
John Criswell47fdd832003-07-14 16:52:07 +000015154aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15155}'`
15156# Check for a 64-bit object if we didn't find anything.
15157if 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; }
15158}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015159else
John Criswell47fdd832003-07-14 16:52:07 +000015160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015161sed 's/^/| /' conftest.$ac_ext >&5
15162
Reid Spencera773bd52006-08-04 18:18:08 +000015163
John Criswell47fdd832003-07-14 16:52:07 +000015164fi
Reid Spencera773bd52006-08-04 18:18:08 +000015165
15166rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015167 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015168if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015169
John Criswell47fdd832003-07-14 16:52:07 +000015170 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15171 # Warning - without using the other run time loading flags,
15172 # -berok will link without error, but may produce a broken library.
15173 no_undefined_flag=' ${wl}-bernotok'
15174 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015175 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015176 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015177 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015178 # This is similar to how AIX traditionally builds its shared libraries.
15179 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 +000015180 fi
15181 fi
John Criswell7a73b802003-06-30 21:59:07 +000015182 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015183
15184 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015185 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 +000015186 hardcode_libdir_flag_spec='-L$libdir'
15187 hardcode_minus_L=yes
15188 # see comment about different semantics on the GNU ld section
15189 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015190 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015191
Reid Spencer2706f8c2004-09-19 23:53:36 +000015192 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015193 export_dynamic_flag_spec=-rdynamic
15194 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015195
John Criswell47fdd832003-07-14 16:52:07 +000015196 cygwin* | mingw* | pw32*)
15197 # When not using gcc, we currently assume that we are using
15198 # Microsoft Visual C++.
15199 # hardcode_libdir_flag_spec is actually meaningless, as there is
15200 # no search path for DLLs.
15201 hardcode_libdir_flag_spec=' '
15202 allow_undefined_flag=unsupported
15203 # Tell ltmain to make .lib files, not .a files.
15204 libext=lib
15205 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015206 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015207 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015209 # The linker will automatically build a .lib file if we build a DLL.
15210 old_archive_From_new_cmds='true'
15211 # FIXME: Should let the user specify the lib program.
15212 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15213 fix_srcfile_path='`cygpath -w "$srcfile"`'
15214 enable_shared_with_static_runtimes=yes
15215 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015216
John Criswell47fdd832003-07-14 16:52:07 +000015217 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015218 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015219 rhapsody* | darwin1.[012])
15220 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15221 ;;
15222 *) # Darwin 1.3 on
15223 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15224 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225 else
15226 case ${MACOSX_DEPLOYMENT_TARGET} in
15227 10.[012])
15228 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15229 ;;
15230 10.*)
15231 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15232 ;;
15233 esac
15234 fi
15235 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015236 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015237 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015238 hardcode_direct=no
15239 hardcode_automatic=yes
15240 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015241 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015242 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015243 if test "$GCC" = yes ; then
15244 output_verbose_link_cmd='echo'
15245 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15246 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015247 # 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 +000015248 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}'
15249 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 +000015250 else
Reid Spencera773bd52006-08-04 18:18:08 +000015251 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015252 xlc*)
15253 output_verbose_link_cmd='echo'
15254 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15255 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015256 # 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 +000015257 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}'
15258 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 +000015259 ;;
15260 *)
15261 ld_shlibs=no
15262 ;;
15263 esac
John Criswell7a73b802003-06-30 21:59:07 +000015264 fi
John Criswell47fdd832003-07-14 16:52:07 +000015265 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015266
John Criswell47fdd832003-07-14 16:52:07 +000015267 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015269 hardcode_libdir_flag_spec='-L$libdir'
15270 hardcode_shlibpath_var=no
15271 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015272
John Criswell47fdd832003-07-14 16:52:07 +000015273 freebsd1*)
15274 ld_shlibs=no
15275 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015276
John Criswell47fdd832003-07-14 16:52:07 +000015277 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15278 # support. Future versions do this automatically, but an explicit c++rt0.o
15279 # does not break anything, and helps significantly (at the cost of a little
15280 # extra space).
15281 freebsd2.2*)
15282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15283 hardcode_libdir_flag_spec='-R$libdir'
15284 hardcode_direct=yes
15285 hardcode_shlibpath_var=no
15286 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015287
John Criswell47fdd832003-07-14 16:52:07 +000015288 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15289 freebsd2*)
15290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15291 hardcode_direct=yes
15292 hardcode_minus_L=yes
15293 hardcode_shlibpath_var=no
15294 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015295
John Criswell47fdd832003-07-14 16:52:07 +000015296 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015297 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015298 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15299 hardcode_libdir_flag_spec='-R$libdir'
15300 hardcode_direct=yes
15301 hardcode_shlibpath_var=no
15302 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015303
John Criswell47fdd832003-07-14 16:52:07 +000015304 hpux9*)
15305 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015306 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 +000015307 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015308 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 +000015309 fi
15310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15311 hardcode_libdir_separator=:
15312 hardcode_direct=yes
15313
15314 # hardcode_minus_L: Not really in the search PATH,
15315 # but as the default location of the library.
15316 hardcode_minus_L=yes
15317 export_dynamic_flag_spec='${wl}-E'
15318 ;;
15319
Reid Spencera773bd52006-08-04 18:18:08 +000015320 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015321 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323 else
15324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15325 fi
15326 if test "$with_gnu_ld" = no; then
15327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15328 hardcode_libdir_separator=:
15329
15330 hardcode_direct=yes
15331 export_dynamic_flag_spec='${wl}-E'
15332
15333 # hardcode_minus_L: Not really in the search PATH,
15334 # but as the default location of the library.
15335 hardcode_minus_L=yes
15336 fi
15337 ;;
15338
15339 hpux11*)
15340 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15341 case $host_cpu in
15342 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015343 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015345 ia64*)
15346 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15347 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015348 *)
15349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15350 ;;
15351 esac
15352 else
Reid Spencera773bd52006-08-04 18:18:08 +000015353 case $host_cpu in
15354 hppa*64*)
15355 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 ;;
15357 ia64*)
15358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015359 ;;
15360 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015361 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 +000015362 ;;
15363 esac
15364 fi
15365 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15367 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015368
Reid Spencera773bd52006-08-04 18:18:08 +000015369 case $host_cpu in
15370 hppa*64*|ia64*)
15371 hardcode_libdir_flag_spec_ld='+b $libdir'
15372 hardcode_direct=no
15373 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015374 ;;
15375 *)
John Criswell47fdd832003-07-14 16:52:07 +000015376 hardcode_direct=yes
15377 export_dynamic_flag_spec='${wl}-E'
15378
15379 # hardcode_minus_L: Not really in the search PATH,
15380 # but as the default location of the library.
15381 hardcode_minus_L=yes
15382 ;;
15383 esac
15384 fi
15385 ;;
15386
15387 irix5* | irix6* | nonstopux*)
15388 if test "$GCC" = yes; then
15389 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'
15390 else
15391 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'
15392 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15393 fi
15394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15395 hardcode_libdir_separator=:
15396 link_all_deplibs=yes
15397 ;;
15398
15399 netbsd*)
15400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15402 else
15403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15404 fi
15405 hardcode_libdir_flag_spec='-R$libdir'
15406 hardcode_direct=yes
15407 hardcode_shlibpath_var=no
15408 ;;
15409
15410 newsos6)
15411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct=yes
15413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15414 hardcode_libdir_separator=:
15415 hardcode_shlibpath_var=no
15416 ;;
15417
15418 openbsd*)
15419 hardcode_direct=yes
15420 hardcode_shlibpath_var=no
15421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015423 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 +000015424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15425 export_dynamic_flag_spec='${wl}-E'
15426 else
15427 case $host_os in
15428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_libdir_flag_spec='-R$libdir'
15431 ;;
15432 *)
15433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15435 ;;
15436 esac
15437 fi
15438 ;;
15439
15440 os2*)
15441 hardcode_libdir_flag_spec='-L$libdir'
15442 hardcode_minus_L=yes
15443 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015444 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 +000015445 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15446 ;;
15447
15448 osf3*)
15449 if test "$GCC" = yes; then
15450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15451 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'
15452 else
15453 allow_undefined_flag=' -expect_unresolved \*'
15454 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'
15455 fi
15456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15457 hardcode_libdir_separator=:
15458 ;;
15459
15460 osf4* | osf5*) # as osf3* with the addition of -msym flag
15461 if test "$GCC" = yes; then
15462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15463 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'
15464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465 else
15466 allow_undefined_flag=' -expect_unresolved \*'
15467 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 +000015468 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 +000015469 $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 +000015470
John Criswell47fdd832003-07-14 16:52:07 +000015471 # Both c and cxx compiler support -rpath directly
15472 hardcode_libdir_flag_spec='-rpath $libdir'
15473 fi
15474 hardcode_libdir_separator=:
15475 ;;
15476
John Criswell47fdd832003-07-14 16:52:07 +000015477 solaris*)
15478 no_undefined_flag=' -z text'
15479 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015480 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015481 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15483 $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 +000015484 else
Reid Spencera773bd52006-08-04 18:18:08 +000015485 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015487 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15488 $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 +000015489 fi
15490 hardcode_libdir_flag_spec='-R$libdir'
15491 hardcode_shlibpath_var=no
15492 case $host_os in
15493 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015494 *)
15495 # The compiler driver will combine linker options so we
15496 # cannot just pass the convience library names through
15497 # without $wl, iff we do not link with $LD.
15498 # Luckily, gcc supports the same syntax we need for Sun Studio.
15499 # Supported since Solaris 2.6 (maybe 2.5.1?)
15500 case $wlarc in
15501 '')
15502 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15503 *)
15504 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' ;;
15505 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015506 esac
15507 link_all_deplibs=yes
15508 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015509
John Criswell47fdd832003-07-14 16:52:07 +000015510 sunos4*)
15511 if test "x$host_vendor" = xsequent; then
15512 # Use $CC to link under sequent, because it throws in some extra .o
15513 # files that make .init and .fini sections work.
15514 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15515 else
15516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15517 fi
15518 hardcode_libdir_flag_spec='-L$libdir'
15519 hardcode_direct=yes
15520 hardcode_minus_L=yes
15521 hardcode_shlibpath_var=no
15522 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015523
John Criswell47fdd832003-07-14 16:52:07 +000015524 sysv4)
15525 case $host_vendor in
15526 sni)
15527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct=yes # is this really true???
15529 ;;
15530 siemens)
15531 ## LD is ld it makes a PLAMLIB
15532 ## CC just makes a GrossModule.
15533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15534 reload_cmds='$CC -r -o $output$reload_objs'
15535 hardcode_direct=no
15536 ;;
15537 motorola)
15538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15540 ;;
15541 esac
15542 runpath_var='LD_RUN_PATH'
15543 hardcode_shlibpath_var=no
15544 ;;
15545
15546 sysv4.3*)
15547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_shlibpath_var=no
15549 export_dynamic_flag_spec='-Bexport'
15550 ;;
15551
15552 sysv4*MP*)
15553 if test -d /usr/nec; then
15554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15555 hardcode_shlibpath_var=no
15556 runpath_var=LD_RUN_PATH
15557 hardcode_runpath_var=yes
15558 ld_shlibs=yes
15559 fi
15560 ;;
15561
Reid Spencera773bd52006-08-04 18:18:08 +000015562 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15563 no_undefined_flag='${wl}-z,text'
15564 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015565 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015566 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015567
John Criswell47fdd832003-07-14 16:52:07 +000015568 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015569 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570 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 +000015571 else
Reid Spencera773bd52006-08-04 18:18:08 +000015572 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 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 +000015574 fi
John Criswell47fdd832003-07-14 16:52:07 +000015575 ;;
15576
Reid Spencera773bd52006-08-04 18:18:08 +000015577 sysv5* | sco3.2v5* | sco5v6*)
15578 # Note: We can NOT use -z defs as we might desire, because we do not
15579 # link with -lc, and that would cause any symbols used from libc to
15580 # always be unresolved, which means just about no library would
15581 # ever link correctly. If we're not using GNU ld we use -z text
15582 # though, which does catch some bad symbols but isn't as heavy-handed
15583 # as -z defs.
15584 no_undefined_flag='${wl}-z,text'
15585 allow_undefined_flag='${wl}-z,nodefs'
15586 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015587 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015588 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15589 hardcode_libdir_separator=':'
15590 link_all_deplibs=yes
15591 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015592 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015593
15594 if test "$GCC" = yes; then
15595 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 else
15598 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 fi
John Criswell47fdd832003-07-14 16:52:07 +000015601 ;;
15602
15603 uts4*)
15604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605 hardcode_libdir_flag_spec='-L$libdir'
15606 hardcode_shlibpath_var=no
15607 ;;
15608
15609 *)
15610 ld_shlibs=no
15611 ;;
15612 esac
15613 fi
15614
Reid Spencera773bd52006-08-04 18:18:08 +000015615{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15616echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015617test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015618
John Criswell47fdd832003-07-14 16:52:07 +000015619#
15620# Do we need to explicitly link libc?
15621#
15622case "x$archive_cmds_need_lc" in
15623x|xyes)
15624 # Assume -lc should be added
15625 archive_cmds_need_lc=yes
15626
15627 if test "$enable_shared" = yes && test "$GCC" = yes; then
15628 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015629 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015630 # FIXME: we may have to deal with multi-command sequences.
15631 ;;
15632 '$CC '*)
15633 # Test whether the compiler implicitly links with -lc since on some
15634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15635 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015636 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15637echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015638 $rm conftest*
15639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15640
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } 2>conftest.err; then
15646 soname=conftest
15647 lib=conftest
15648 libobjs=conftest.$ac_objext
15649 deplibs=
15650 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015651 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015652 compiler_flags=-v
15653 linker_flags=-v
15654 verstring=
15655 output_objdir=.
15656 libname=conftest
15657 lt_save_allow_undefined_flag=$allow_undefined_flag
15658 allow_undefined_flag=
15659 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15660 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }
15664 then
15665 archive_cmds_need_lc=no
15666 else
15667 archive_cmds_need_lc=yes
15668 fi
15669 allow_undefined_flag=$lt_save_allow_undefined_flag
15670 else
15671 cat conftest.err 1>&5
15672 fi
15673 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015674 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15675echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015676 ;;
15677 esac
15678 fi
15679 ;;
15680esac
15681
Reid Spencera773bd52006-08-04 18:18:08 +000015682{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15683echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015684library_names_spec=
15685libname_spec='lib$name'
15686soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015687shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015688postinstall_cmds=
15689postuninstall_cmds=
15690finish_cmds=
15691finish_eval=
15692shlibpath_var=
15693shlibpath_overrides_runpath=unknown
15694version_type=none
15695dynamic_linker="$host_os ld.so"
15696sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015697if test "$GCC" = yes; then
15698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15699 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15700 # if the path contains ";" then we assume it to be the separator
15701 # otherwise default to the standard path separator (i.e. ":") - it is
15702 # assumed that no part of a normal pathname contains ";" but that should
15703 # okay in the real world where ";" in dirpaths is itself problematic.
15704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15705 else
15706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15707 fi
15708else
15709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15710fi
15711need_lib_prefix=unknown
15712hardcode_into_libs=no
15713
15714# when you set need_version to no, make sure it does not cause -set_version
15715# flags to be left without arguments
15716need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015717
15718case $host_os in
15719aix3*)
15720 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015722 shlibpath_var=LIBPATH
15723
John Criswell47fdd832003-07-14 16:52:07 +000015724 # AIX 3 has no versioning support, so we append a major version to the name.
15725 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015726 ;;
15727
15728aix4* | aix5*)
15729 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015730 need_lib_prefix=no
15731 need_version=no
15732 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015733 if test "$host_cpu" = ia64; then
15734 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015736 shlibpath_var=LD_LIBRARY_PATH
15737 else
15738 # With GCC up to 2.95.x, collect2 would create an import file
15739 # for dependence libraries. The import file would start with
15740 # the line `#! .'. This would cause the generated library to
15741 # depend on `.', always an invalid library. This was fixed in
15742 # development snapshots of GCC prior to 3.0.
15743 case $host_os in
15744 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15746 echo ' yes '
15747 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15748 :
15749 else
15750 can_build_shared=no
15751 fi
15752 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015753 esac
John Criswell47fdd832003-07-14 16:52:07 +000015754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15755 # soname into executable. Probably we can add versioning support to
15756 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015757 if test "$aix_use_runtimelinking" = yes; then
15758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15759 # instead of lib<name>.a to let people know that these are not
15760 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015762 else
15763 # We preserve .a as extension for shared libraries through AIX4.2
15764 # and later when we are not doing run time linking.
15765 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015766 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015767 fi
15768 shlibpath_var=LIBPATH
15769 fi
15770 ;;
15771
15772amigaos*)
15773 library_names_spec='$libname.ixlibrary $libname.a'
15774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015775 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 +000015776 ;;
15777
15778beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015779 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015780 dynamic_linker="$host_os ld.so"
15781 shlibpath_var=LIBRARY_PATH
15782 ;;
15783
Reid Spencer2706f8c2004-09-19 23:53:36 +000015784bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015785 version_type=linux
15786 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015793 # the default ld.so.conf also contains /usr/contrib/lib and
15794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795 # libtool to hard-code these into programs
15796 ;;
15797
15798cygwin* | mingw* | pw32*)
15799 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015800 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015801 need_version=no
15802 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015803
John Criswell7a73b802003-06-30 21:59:07 +000015804 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015805 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015806 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015808 postinstall_cmds='base_file=`basename \${file}`~
15809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15810 dldir=$destdir/`dirname \$dlpath`~
15811 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015812 $install_prog $dir/$dlname \$dldir/$dlname~
15813 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15815 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015816 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015817 shlibpath_overrides_runpath=yes
15818
15819 case $host_os in
15820 cygwin*)
15821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15822 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 +000015823 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015824 ;;
15825 mingw*)
15826 # MinGW DLLs use traditional 'lib' prefix
15827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15830 # It is most probably a Windows format PATH printed by
15831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15832 # path with ; separators, and with drive letters. We can handle the
15833 # drive letters (cygwin fileutils understands them), so leave them,
15834 # especially as we might pass files found there to a mingw objdump,
15835 # which wouldn't understand a cygwinified path. Ahh.
15836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15837 else
15838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15839 fi
15840 ;;
15841 pw32*)
15842 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015843 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 +000015844 ;;
15845 esac
John Criswell7a73b802003-06-30 21:59:07 +000015846 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015847
John Criswell7a73b802003-06-30 21:59:07 +000015848 *)
John Criswell47fdd832003-07-14 16:52:07 +000015849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015850 ;;
15851 esac
15852 dynamic_linker='Win32 ld.exe'
15853 # FIXME: first we should search . and the directory the executable is in
15854 shlibpath_var=PATH
15855 ;;
15856
15857darwin* | rhapsody*)
15858 dynamic_linker="$host_os dyld"
15859 version_type=darwin
15860 need_lib_prefix=no
15861 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015862 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015863 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015864 shlibpath_overrides_runpath=yes
15865 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015866 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015867 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015868 if test "$GCC" = yes; then
15869 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"`
15870 else
15871 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015872 fi
15873 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15874 ;;
15875
15876dgux*)
15877 version_type=linux
15878 need_lib_prefix=no
15879 need_version=no
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015883 ;;
15884
15885freebsd1*)
15886 dynamic_linker=no
15887 ;;
15888
Reid Spencer2706f8c2004-09-19 23:53:36 +000015889kfreebsd*-gnu)
15890 version_type=linux
15891 need_lib_prefix=no
15892 need_version=no
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=no
15897 hardcode_into_libs=yes
15898 dynamic_linker='GNU ld.so'
15899 ;;
15900
Reid Spencera773bd52006-08-04 18:18:08 +000015901freebsd* | dragonfly*)
15902 # DragonFly does not have aout. When/if they implement a new
15903 # versioning mechanism, adjust this.
15904 if test -x /usr/bin/objformat; then
15905 objformat=`/usr/bin/objformat`
15906 else
15907 case $host_os in
15908 freebsd[123]*) objformat=aout ;;
15909 *) objformat=elf ;;
15910 esac
15911 fi
John Criswell7a73b802003-06-30 21:59:07 +000015912 version_type=freebsd-$objformat
15913 case $version_type in
15914 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015916 need_version=no
15917 need_lib_prefix=no
15918 ;;
15919 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015921 need_version=yes
15922 ;;
15923 esac
15924 shlibpath_var=LD_LIBRARY_PATH
15925 case $host_os in
15926 freebsd2*)
15927 shlibpath_overrides_runpath=yes
15928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015929 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015930 shlibpath_overrides_runpath=yes
15931 hardcode_into_libs=yes
15932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015935 shlibpath_overrides_runpath=no
15936 hardcode_into_libs=yes
15937 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015938 freebsd*) # from 4.6 on
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15941 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015942 esac
15943 ;;
15944
15945gnu*)
15946 version_type=linux
15947 need_lib_prefix=no
15948 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015951 shlibpath_var=LD_LIBRARY_PATH
15952 hardcode_into_libs=yes
15953 ;;
15954
15955hpux9* | hpux10* | hpux11*)
15956 # Give a soname corresponding to the major version so that dld.sl refuses to
15957 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015958 version_type=sunos
15959 need_lib_prefix=no
15960 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015961 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015962 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015963 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015964 hardcode_into_libs=yes
15965 dynamic_linker="$host_os dld.so"
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 if test "X$HPUX_IA64_MODE" = X32; then
15971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15972 else
15973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15974 fi
15975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15976 ;;
15977 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015978 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015979 hardcode_into_libs=yes
15980 dynamic_linker="$host_os dld.sl"
15981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15987 ;;
15988 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015989 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015990 dynamic_linker="$host_os dld.sl"
15991 shlibpath_var=SHLIB_PATH
15992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 ;;
15996 esac
John Criswell7a73b802003-06-30 21:59:07 +000015997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15998 postinstall_cmds='chmod 555 $lib'
15999 ;;
16000
Reid Spencera773bd52006-08-04 18:18:08 +000016001interix3*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 hardcode_into_libs=yes
16011 ;;
16012
John Criswell47fdd832003-07-14 16:52:07 +000016013irix5* | irix6* | nonstopux*)
16014 case $host_os in
16015 nonstopux*) version_type=nonstopux ;;
16016 *)
16017 if test "$lt_cv_prog_gnu_ld" = yes; then
16018 version_type=linux
16019 else
16020 version_type=irix
16021 fi ;;
16022 esac
John Criswell7a73b802003-06-30 21:59:07 +000016023 need_lib_prefix=no
16024 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016025 soname_spec='${libname}${release}${shared_ext}$major'
16026 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 +000016027 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016028 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016029 libsuff= shlibsuff=
16030 ;;
16031 *)
16032 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16034 libsuff= shlibsuff= libmagic=32-bit;;
16035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16036 libsuff=32 shlibsuff=N32 libmagic=N32;;
16037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016039 *) libsuff= shlibsuff= libmagic=never-match;;
16040 esac
16041 ;;
16042 esac
16043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16044 shlibpath_overrides_runpath=no
16045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016047 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016048 ;;
16049
16050# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016051linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016052 dynamic_linker=no
16053 ;;
16054
16055# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016056linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath=no
16065 # This implies no fast_install, which is unacceptable.
16066 # Some rework will be needed to allow for fast_install
16067 # before this can be enabled.
16068 hardcode_into_libs=yes
16069
Reid Spencer2706f8c2004-09-19 23:53:36 +000016070 # Append ld.so.conf contents to the search path
16071 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016072 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 +000016073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16074 fi
16075
John Criswell7a73b802003-06-30 21:59:07 +000016076 # We used to test for /lib/ld.so.1 and disable shared libraries on
16077 # powerpc, because MkLinux only supported shared libraries with the
16078 # GNU dynamic linker. Since this was broken with cross compilers,
16079 # most powerpc-linux boxes support dynamic linking these days and
16080 # people can always --disable-shared, the test was removed, and we
16081 # assume the GNU/Linux dynamic linker is in use.
16082 dynamic_linker='GNU/Linux ld.so'
16083 ;;
16084
Reid Spencer2706f8c2004-09-19 23:53:36 +000016085knetbsd*-gnu)
16086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=no
16093 hardcode_into_libs=yes
16094 dynamic_linker='GNU ld.so'
16095 ;;
16096
John Criswell7a73b802003-06-30 21:59:07 +000016097netbsd*)
16098 version_type=sunos
16099 need_lib_prefix=no
16100 need_version=no
16101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16104 dynamic_linker='NetBSD (a.out) ld.so'
16105 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016107 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016108 dynamic_linker='NetBSD ld.elf_so'
16109 fi
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=yes
16112 hardcode_into_libs=yes
16113 ;;
16114
16115newsos6)
16116 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=yes
16120 ;;
16121
Reid Spencer2706f8c2004-09-19 23:53:36 +000016122nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016123 version_type=linux
16124 need_lib_prefix=no
16125 need_version=no
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=yes
16130 ;;
16131
16132openbsd*)
16133 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016134 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016135 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16137 case $host_os in
16138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16139 *) need_version=no ;;
16140 esac
John Criswell47fdd832003-07-14 16:52:07 +000016141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016144 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 +000016145 case $host_os in
16146 openbsd2.[89] | openbsd2.[89].*)
16147 shlibpath_overrides_runpath=no
16148 ;;
16149 *)
16150 shlibpath_overrides_runpath=yes
16151 ;;
16152 esac
John Criswell7a73b802003-06-30 21:59:07 +000016153 else
16154 shlibpath_overrides_runpath=yes
16155 fi
John Criswell7a73b802003-06-30 21:59:07 +000016156 ;;
16157
16158os2*)
16159 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016160 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016161 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016162 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016163 dynamic_linker='OS/2 ld.exe'
16164 shlibpath_var=LIBPATH
16165 ;;
16166
16167osf3* | osf4* | osf5*)
16168 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016169 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016170 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016171 soname_spec='${libname}${release}${shared_ext}$major'
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016173 shlibpath_var=LD_LIBRARY_PATH
16174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16176 ;;
16177
John Criswell7a73b802003-06-30 21:59:07 +000016178solaris*)
16179 version_type=linux
16180 need_lib_prefix=no
16181 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes
16186 hardcode_into_libs=yes
16187 # ldd complains unless libraries are executable
16188 postinstall_cmds='chmod +x $lib'
16189 ;;
16190
16191sunos4*)
16192 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16197 if test "$with_gnu_ld" = yes; then
16198 need_lib_prefix=no
16199 fi
16200 need_version=yes
16201 ;;
16202
Reid Spencera773bd52006-08-04 18:18:08 +000016203sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016204 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016207 shlibpath_var=LD_LIBRARY_PATH
16208 case $host_vendor in
16209 sni)
16210 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016211 need_lib_prefix=no
16212 export_dynamic_flag_spec='${wl}-Blargedynsym'
16213 runpath_var=LD_RUN_PATH
16214 ;;
16215 siemens)
16216 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016217 ;;
16218 motorola)
16219 need_lib_prefix=no
16220 need_version=no
16221 shlibpath_overrides_runpath=no
16222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16223 ;;
16224 esac
16225 ;;
16226
John Criswell7a73b802003-06-30 21:59:07 +000016227sysv4*MP*)
16228 if test -d /usr/nec ;then
16229 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16231 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016232 shlibpath_var=LD_LIBRARY_PATH
16233 fi
16234 ;;
16235
Reid Spencera773bd52006-08-04 18:18:08 +000016236sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16237 version_type=freebsd-elf
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 hardcode_into_libs=yes
16244 if test "$with_gnu_ld" = yes; then
16245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16246 shlibpath_overrides_runpath=no
16247 else
16248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16249 shlibpath_overrides_runpath=yes
16250 case $host_os in
16251 sco3.2v5*)
16252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16253 ;;
16254 esac
16255 fi
16256 sys_lib_dlsearch_path_spec='/usr/lib'
16257 ;;
16258
John Criswell47fdd832003-07-14 16:52:07 +000016259uts4*)
16260 version_type=linux
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16264 ;;
16265
John Criswell7a73b802003-06-30 21:59:07 +000016266*)
16267 dynamic_linker=no
16268 ;;
16269esac
Reid Spencera773bd52006-08-04 18:18:08 +000016270{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16271echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016272test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016273
Reid Spencera773bd52006-08-04 18:18:08 +000016274variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16275if test "$GCC" = yes; then
16276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16277fi
16278
16279{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16280echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016281hardcode_action=
16282if test -n "$hardcode_libdir_flag_spec" || \
16283 test -n "$runpath_var" || \
16284 test "X$hardcode_automatic" = "Xyes" ; then
16285
16286 # We can hardcode non-existant directories.
16287 if test "$hardcode_direct" != no &&
16288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16289 # have to relink, otherwise we might link with an installed library
16290 # when we should be linking with a yet-to-be-installed one
16291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16292 test "$hardcode_minus_L" != no; then
16293 # Linking always hardcodes the temporary library directory.
16294 hardcode_action=relink
16295 else
16296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16297 hardcode_action=immediate
16298 fi
16299else
16300 # We cannot hardcode anything, or else we can only hardcode existing
16301 # directories.
16302 hardcode_action=unsupported
16303fi
Reid Spencera773bd52006-08-04 18:18:08 +000016304{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16305echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016306
16307if test "$hardcode_action" = relink; then
16308 # Fast installation is not supported
16309 enable_fast_install=no
16310elif test "$shlibpath_overrides_runpath" = yes ||
16311 test "$enable_shared" = no; then
16312 # Fast installation is not necessary
16313 enable_fast_install=needless
16314fi
16315
16316striplib=
16317old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016318{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16319echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016320if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016323 { echo "$as_me:$LINENO: result: yes" >&5
16324echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016325else
16326# FIXME - insert some real tests, host_os isn't really good enough
16327 case $host_os in
16328 darwin*)
16329 if test -n "$STRIP" ; then
16330 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016331 { echo "$as_me:$LINENO: result: yes" >&5
16332echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016333 else
Reid Spencera773bd52006-08-04 18:18:08 +000016334 { echo "$as_me:$LINENO: result: no" >&5
16335echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016336fi
16337 ;;
16338 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016339 { echo "$as_me:$LINENO: result: no" >&5
16340echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016341 ;;
16342 esac
16343fi
16344
John Criswell7a73b802003-06-30 21:59:07 +000016345if test "x$enable_dlopen" != xyes; then
16346 enable_dlopen=unknown
16347 enable_dlopen_self=unknown
16348 enable_dlopen_self_static=unknown
16349else
16350 lt_cv_dlopen=no
16351 lt_cv_dlopen_libs=
16352
16353 case $host_os in
16354 beos*)
16355 lt_cv_dlopen="load_add_on"
16356 lt_cv_dlopen_libs=
16357 lt_cv_dlopen_self=yes
16358 ;;
16359
John Criswell47fdd832003-07-14 16:52:07 +000016360 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016361 lt_cv_dlopen="LoadLibrary"
16362 lt_cv_dlopen_libs=
16363 ;;
16364
John Criswell47fdd832003-07-14 16:52:07 +000016365 cygwin*)
16366 lt_cv_dlopen="dlopen"
16367 lt_cv_dlopen_libs=
16368 ;;
16369
16370 darwin*)
16371 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016372 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16373echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016374if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376else
16377 ac_check_lib_save_LIBS=$LIBS
16378LIBS="-ldl $LIBS"
16379cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016380/* confdefs.h. */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016385
Reid Spencera773bd52006-08-04 18:18:08 +000016386/* Override any GCC internal prototype to avoid an error.
16387 Use char because int might match the return type of a GCC
16388 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016389#ifdef __cplusplus
16390extern "C"
16391#endif
John Criswell47fdd832003-07-14 16:52:07 +000016392char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016393int
16394main ()
16395{
Reid Spencera773bd52006-08-04 18:18:08 +000016396return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016402if { (ac_try="$ac_link"
16403case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419esac
16420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; } &&
16425 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016426 { (case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429esac
16430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_cv_lib_dl_dlopen=yes
16436else
16437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016438sed 's/^/| /' conftest.$ac_ext >&5
16439
Reid Spencera773bd52006-08-04 18:18:08 +000016440 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016441fi
Reid Spencera773bd52006-08-04 18:18:08 +000016442
16443rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016444 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016445LIBS=$ac_check_lib_save_LIBS
16446fi
Reid Spencera773bd52006-08-04 18:18:08 +000016447{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16448echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016449if test $ac_cv_lib_dl_dlopen = yes; then
16450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16451else
16452
16453 lt_cv_dlopen="dyld"
16454 lt_cv_dlopen_libs=
16455 lt_cv_dlopen_self=yes
16456
16457fi
16458
16459 ;;
16460
John Criswell7a73b802003-06-30 21:59:07 +000016461 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016462 { echo "$as_me:$LINENO: checking for shl_load" >&5
16463echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016464if test "${ac_cv_func_shl_load+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016473/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16475#define shl_load innocuous_shl_load
16476
John Criswell7a73b802003-06-30 21:59:07 +000016477/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016478 which can conflict with char shl_load (); below.
16479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016481
John Criswell0c38eaf2003-09-10 15:17:25 +000016482#ifdef __STDC__
16483# include <limits.h>
16484#else
16485# include <assert.h>
16486#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016487
16488#undef shl_load
16489
Reid Spencera773bd52006-08-04 18:18:08 +000016490/* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016493#ifdef __cplusplus
16494extern "C"
16495#endif
John Criswell7a73b802003-06-30 21:59:07 +000016496char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016497/* The GNU C library defines this for functions which it implements
16498 to always fail with ENOSYS. Some functions are actually named
16499 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016500#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016501choke me
John Criswell7a73b802003-06-30 21:59:07 +000016502#endif
16503
John Criswell0c38eaf2003-09-10 15:17:25 +000016504int
16505main ()
16506{
Reid Spencera773bd52006-08-04 18:18:08 +000016507return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016508 ;
16509 return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016513if { (ac_try="$ac_link"
16514case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530esac
16531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016537 { (case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_func_shl_load=yes
16547else
16548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016549sed 's/^/| /' conftest.$ac_ext >&5
16550
Reid Spencera773bd52006-08-04 18:18:08 +000016551 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016552fi
Reid Spencera773bd52006-08-04 18:18:08 +000016553
16554rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016555 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016556fi
Reid Spencera773bd52006-08-04 18:18:08 +000016557{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16558echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016559if test $ac_cv_func_shl_load = yes; then
16560 lt_cv_dlopen="shl_load"
16561else
Reid Spencera773bd52006-08-04 18:18:08 +000016562 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16563echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016564if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566else
16567 ac_check_lib_save_LIBS=$LIBS
16568LIBS="-ldld $LIBS"
16569cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016575
Reid Spencera773bd52006-08-04 18:18:08 +000016576/* Override any GCC internal prototype to avoid an error.
16577 Use char because int might match the return type of a GCC
16578 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016579#ifdef __cplusplus
16580extern "C"
16581#endif
John Criswell7a73b802003-06-30 21:59:07 +000016582char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016583int
16584main ()
16585{
Reid Spencera773bd52006-08-04 18:18:08 +000016586return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016587 ;
16588 return 0;
16589}
16590_ACEOF
16591rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016592if { (ac_try="$ac_link"
16593case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_lib_dld_shl_load=yes
16626else
16627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016628sed 's/^/| /' conftest.$ac_ext >&5
16629
Reid Spencera773bd52006-08-04 18:18:08 +000016630 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016631fi
Reid Spencera773bd52006-08-04 18:18:08 +000016632
16633rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016634 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016635LIBS=$ac_check_lib_save_LIBS
16636fi
Reid Spencera773bd52006-08-04 18:18:08 +000016637{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16638echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016639if test $ac_cv_lib_dld_shl_load = yes; then
16640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16641else
Reid Spencera773bd52006-08-04 18:18:08 +000016642 { echo "$as_me:$LINENO: checking for dlopen" >&5
16643echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016644if test "${ac_cv_func_dlopen+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016648/* confdefs.h. */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016653/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16655#define dlopen innocuous_dlopen
16656
John Criswell7a73b802003-06-30 21:59:07 +000016657/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016658 which can conflict with char dlopen (); below.
16659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016661
John Criswell0c38eaf2003-09-10 15:17:25 +000016662#ifdef __STDC__
16663# include <limits.h>
16664#else
16665# include <assert.h>
16666#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016667
16668#undef dlopen
16669
Reid Spencera773bd52006-08-04 18:18:08 +000016670/* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016673#ifdef __cplusplus
16674extern "C"
16675#endif
John Criswell7a73b802003-06-30 21:59:07 +000016676char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016677/* The GNU C library defines this for functions which it implements
16678 to always fail with ENOSYS. Some functions are actually named
16679 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016680#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016681choke me
John Criswell7a73b802003-06-30 21:59:07 +000016682#endif
16683
John Criswell0c38eaf2003-09-10 15:17:25 +000016684int
16685main ()
16686{
Reid Spencera773bd52006-08-04 18:18:08 +000016687return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016693if { (ac_try="$ac_link"
16694case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_func_dlopen=yes
16727else
16728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016729sed 's/^/| /' conftest.$ac_ext >&5
16730
Reid Spencera773bd52006-08-04 18:18:08 +000016731 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016732fi
Reid Spencera773bd52006-08-04 18:18:08 +000016733
16734rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016735 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016736fi
Reid Spencera773bd52006-08-04 18:18:08 +000016737{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16738echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016739if test $ac_cv_func_dlopen = yes; then
16740 lt_cv_dlopen="dlopen"
16741else
Reid Spencera773bd52006-08-04 18:18:08 +000016742 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16743echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016744if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746else
16747 ac_check_lib_save_LIBS=$LIBS
16748LIBS="-ldl $LIBS"
16749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016755
Reid Spencera773bd52006-08-04 18:18:08 +000016756/* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016759#ifdef __cplusplus
16760extern "C"
16761#endif
John Criswell7a73b802003-06-30 21:59:07 +000016762char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016763int
16764main ()
16765{
Reid Spencera773bd52006-08-04 18:18:08 +000016766return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016772if { (ac_try="$ac_link"
16773case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789esac
16790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016796 { (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
John Criswell7a73b802003-06-30 21:59:07 +000016802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_cv_lib_dl_dlopen=yes
16806else
16807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016808sed 's/^/| /' conftest.$ac_ext >&5
16809
Reid Spencera773bd52006-08-04 18:18:08 +000016810 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016811fi
Reid Spencera773bd52006-08-04 18:18:08 +000016812
16813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016815LIBS=$ac_check_lib_save_LIBS
16816fi
Reid Spencera773bd52006-08-04 18:18:08 +000016817{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16818echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016819if test $ac_cv_lib_dl_dlopen = yes; then
16820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16821else
Reid Spencera773bd52006-08-04 18:18:08 +000016822 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16823echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016824if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827 ac_check_lib_save_LIBS=$LIBS
16828LIBS="-lsvld $LIBS"
16829cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016830/* confdefs.h. */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016835
Reid Spencera773bd52006-08-04 18:18:08 +000016836/* Override any GCC internal prototype to avoid an error.
16837 Use char because int might match the return type of a GCC
16838 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016839#ifdef __cplusplus
16840extern "C"
16841#endif
John Criswell7a73b802003-06-30 21:59:07 +000016842char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016843int
16844main ()
16845{
Reid Spencera773bd52006-08-04 18:18:08 +000016846return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016852if { (ac_try="$ac_link"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_lib_svld_dlopen=yes
16886else
16887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016888sed 's/^/| /' conftest.$ac_ext >&5
16889
Reid Spencera773bd52006-08-04 18:18:08 +000016890 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016891fi
Reid Spencera773bd52006-08-04 18:18:08 +000016892
16893rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016894 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016895LIBS=$ac_check_lib_save_LIBS
16896fi
Reid Spencera773bd52006-08-04 18:18:08 +000016897{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16898echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016899if test $ac_cv_lib_svld_dlopen = yes; then
16900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16901else
Reid Spencera773bd52006-08-04 18:18:08 +000016902 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16903echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016904if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906else
16907 ac_check_lib_save_LIBS=$LIBS
16908LIBS="-ldld $LIBS"
16909cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016915
Reid Spencera773bd52006-08-04 18:18:08 +000016916/* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016919#ifdef __cplusplus
16920extern "C"
16921#endif
John Criswell7a73b802003-06-30 21:59:07 +000016922char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016923int
16924main ()
16925{
Reid Spencera773bd52006-08-04 18:18:08 +000016926return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016932if { (ac_try="$ac_link"
16933case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_lib_dld_dld_link=yes
16966else
16967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016968sed 's/^/| /' conftest.$ac_ext >&5
16969
Reid Spencera773bd52006-08-04 18:18:08 +000016970 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016971fi
Reid Spencera773bd52006-08-04 18:18:08 +000016972
16973rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016975LIBS=$ac_check_lib_save_LIBS
16976fi
Reid Spencera773bd52006-08-04 18:18:08 +000016977{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16978echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016979if test $ac_cv_lib_dld_dld_link = yes; then
16980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16981fi
16982
16983
16984fi
16985
16986
16987fi
16988
16989
16990fi
16991
16992
16993fi
16994
16995
16996fi
16997
16998 ;;
16999 esac
17000
17001 if test "x$lt_cv_dlopen" != xno; then
17002 enable_dlopen=yes
17003 else
17004 enable_dlopen=no
17005 fi
17006
17007 case $lt_cv_dlopen in
17008 dlopen)
17009 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017011
17012 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017014
17015 save_LIBS="$LIBS"
17016 LIBS="$lt_cv_dlopen_libs $LIBS"
17017
Reid Spencera773bd52006-08-04 18:18:08 +000017018 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17019echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017020if test "${lt_cv_dlopen_self+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022else
17023 if test "$cross_compiling" = yes; then :
17024 lt_cv_dlopen_self=cross
17025else
John Criswell47fdd832003-07-14 16:52:07 +000017026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017027 lt_status=$lt_dlunknown
17028 cat > conftest.$ac_ext <<EOF
Reid Spencer0d238182007-04-21 21:28:52 +000017029#line 17029 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017030#include "confdefs.h"
17031
17032#if HAVE_DLFCN_H
17033#include <dlfcn.h>
17034#endif
17035
17036#include <stdio.h>
17037
17038#ifdef RTLD_GLOBAL
17039# define LT_DLGLOBAL RTLD_GLOBAL
17040#else
17041# ifdef DL_GLOBAL
17042# define LT_DLGLOBAL DL_GLOBAL
17043# else
17044# define LT_DLGLOBAL 0
17045# endif
17046#endif
17047
17048/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17049 find out it does not work in some platform. */
17050#ifndef LT_DLLAZY_OR_NOW
17051# ifdef RTLD_LAZY
17052# define LT_DLLAZY_OR_NOW RTLD_LAZY
17053# else
17054# ifdef DL_LAZY
17055# define LT_DLLAZY_OR_NOW DL_LAZY
17056# else
17057# ifdef RTLD_NOW
17058# define LT_DLLAZY_OR_NOW RTLD_NOW
17059# else
17060# ifdef DL_NOW
17061# define LT_DLLAZY_OR_NOW DL_NOW
17062# else
17063# define LT_DLLAZY_OR_NOW 0
17064# endif
17065# endif
17066# endif
17067# endif
17068#endif
17069
17070#ifdef __cplusplus
17071extern "C" void exit (int);
17072#endif
17073
17074void fnord() { int i=42;}
17075int main ()
17076{
17077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17078 int status = $lt_dlunknown;
17079
17080 if (self)
17081 {
17082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17084 /* dlclose (self); */
17085 }
Reid Spencera773bd52006-08-04 18:18:08 +000017086 else
17087 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017088
17089 exit (status);
17090}
17091EOF
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017097 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017098 lt_status=$?
17099 case x$lt_status in
17100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017103 esac
17104 else :
17105 # compilation failed
17106 lt_cv_dlopen_self=no
17107 fi
17108fi
17109rm -fr conftest*
17110
17111
17112fi
Reid Spencera773bd52006-08-04 18:18:08 +000017113{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17114echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017115
17116 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17118 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17119echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017120if test "${lt_cv_dlopen_self_static+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123 if test "$cross_compiling" = yes; then :
17124 lt_cv_dlopen_self_static=cross
17125else
John Criswell47fdd832003-07-14 16:52:07 +000017126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017127 lt_status=$lt_dlunknown
17128 cat > conftest.$ac_ext <<EOF
Reid Spencer0d238182007-04-21 21:28:52 +000017129#line 17129 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017130#include "confdefs.h"
17131
17132#if HAVE_DLFCN_H
17133#include <dlfcn.h>
17134#endif
17135
17136#include <stdio.h>
17137
17138#ifdef RTLD_GLOBAL
17139# define LT_DLGLOBAL RTLD_GLOBAL
17140#else
17141# ifdef DL_GLOBAL
17142# define LT_DLGLOBAL DL_GLOBAL
17143# else
17144# define LT_DLGLOBAL 0
17145# endif
17146#endif
17147
17148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17149 find out it does not work in some platform. */
17150#ifndef LT_DLLAZY_OR_NOW
17151# ifdef RTLD_LAZY
17152# define LT_DLLAZY_OR_NOW RTLD_LAZY
17153# else
17154# ifdef DL_LAZY
17155# define LT_DLLAZY_OR_NOW DL_LAZY
17156# else
17157# ifdef RTLD_NOW
17158# define LT_DLLAZY_OR_NOW RTLD_NOW
17159# else
17160# ifdef DL_NOW
17161# define LT_DLLAZY_OR_NOW DL_NOW
17162# else
17163# define LT_DLLAZY_OR_NOW 0
17164# endif
17165# endif
17166# endif
17167# endif
17168#endif
17169
17170#ifdef __cplusplus
17171extern "C" void exit (int);
17172#endif
17173
17174void fnord() { int i=42;}
17175int main ()
17176{
17177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17178 int status = $lt_dlunknown;
17179
17180 if (self)
17181 {
17182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17184 /* dlclose (self); */
17185 }
Reid Spencera773bd52006-08-04 18:18:08 +000017186 else
17187 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017188
17189 exit (status);
17190}
17191EOF
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017197 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017198 lt_status=$?
17199 case x$lt_status in
17200 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17201 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017202 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017203 esac
17204 else :
17205 # compilation failed
17206 lt_cv_dlopen_self_static=no
17207 fi
17208fi
17209rm -fr conftest*
17210
17211
17212fi
Reid Spencera773bd52006-08-04 18:18:08 +000017213{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17214echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017215 fi
17216
17217 CPPFLAGS="$save_CPPFLAGS"
17218 LDFLAGS="$save_LDFLAGS"
17219 LIBS="$save_LIBS"
17220 ;;
17221 esac
17222
17223 case $lt_cv_dlopen_self in
17224 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17225 *) enable_dlopen_self=unknown ;;
17226 esac
17227
17228 case $lt_cv_dlopen_self_static in
17229 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17230 *) enable_dlopen_self_static=unknown ;;
17231 esac
17232fi
17233
17234
Reid Spencera773bd52006-08-04 18:18:08 +000017235# Report which library types will actually be built
17236{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17237echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17238{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17239echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017240
Reid Spencera773bd52006-08-04 18:18:08 +000017241{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17242echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017243test "$can_build_shared" = "no" && enable_shared=no
17244
17245# On AIX, shared libraries and static libraries use the same namespace, and
17246# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017247case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017248aix3*)
17249 test "$enable_shared" = yes && enable_static=no
17250 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017252 postinstall_cmds='$RANLIB $lib'
17253 fi
17254 ;;
17255
Reid Spencer2706f8c2004-09-19 23:53:36 +000017256aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017257 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17258 test "$enable_shared" = yes && enable_static=no
17259 fi
John Criswell7a73b802003-06-30 21:59:07 +000017260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017261esac
Reid Spencera773bd52006-08-04 18:18:08 +000017262{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17263echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017264
Reid Spencera773bd52006-08-04 18:18:08 +000017265{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17266echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017267# Make sure either enable_shared or enable_static is yes.
17268test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017269{ echo "$as_me:$LINENO: result: $enable_static" >&5
17270echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017271
17272# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017273# libtool distribution, otherwise you forgot to ship ltmain.sh
17274# with your package, and you will get complaints that there are
17275# no rules to generate ltmain.sh.
17276if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017277 # See if we are running on zsh, and set the options which allow our commands through
17278 # without removal of \ escapes.
17279 if test -n "${ZSH_VERSION+set}" ; then
17280 setopt NO_GLOB_SUBST
17281 fi
John Criswell7a73b802003-06-30 21:59:07 +000017282 # Now quote all the things that may contain metacharacters while being
17283 # careful not to overquote the AC_SUBSTed values. We take copies of the
17284 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017285 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 +000017286 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17289 deplibs_check_method reload_flag reload_cmds need_locks \
17290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17291 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017293 old_postinstall_cmds old_postuninstall_cmds \
17294 compiler \
17295 CC \
17296 LD \
17297 lt_prog_compiler_wl \
17298 lt_prog_compiler_pic \
17299 lt_prog_compiler_static \
17300 lt_prog_compiler_no_builtin_flag \
17301 export_dynamic_flag_spec \
17302 thread_safe_flag_spec \
17303 whole_archive_flag_spec \
17304 enable_shared_with_static_runtimes \
17305 old_archive_cmds \
17306 old_archive_from_new_cmds \
17307 predep_objects \
17308 postdep_objects \
17309 predeps \
17310 postdeps \
17311 compiler_lib_search_path \
17312 archive_cmds \
17313 archive_expsym_cmds \
17314 postinstall_cmds \
17315 postuninstall_cmds \
17316 old_archive_from_expsyms_cmds \
17317 allow_undefined_flag \
17318 no_undefined_flag \
17319 export_symbols_cmds \
17320 hardcode_libdir_flag_spec \
17321 hardcode_libdir_flag_spec_ld \
17322 hardcode_libdir_separator \
17323 hardcode_automatic \
17324 module_cmds \
17325 module_expsym_cmds \
17326 lt_cv_prog_compiler_c_o \
17327 exclude_expsyms \
17328 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017329
17330 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017331 old_archive_cmds | \
17332 old_archive_from_new_cmds | \
17333 archive_cmds | \
17334 archive_expsym_cmds | \
17335 module_cmds | \
17336 module_expsym_cmds | \
17337 old_archive_from_expsyms_cmds | \
17338 export_symbols_cmds | \
17339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017340 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017341 old_postinstall_cmds | old_postuninstall_cmds | \
17342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017343 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017344 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 +000017345 ;;
17346 *)
17347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17348 ;;
17349 esac
17350 done
17351
John Criswell47fdd832003-07-14 16:52:07 +000017352 case $lt_echo in
17353 *'\$0 --fallback-echo"')
17354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17355 ;;
17356 esac
17357
17358cfgfile="${ofile}T"
17359 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17360 $rm -f "$cfgfile"
17361 { echo "$as_me:$LINENO: creating $ofile" >&5
17362echo "$as_me: creating $ofile" >&6;}
17363
17364 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017365#! $SHELL
17366
John Criswell47fdd832003-07-14 16:52:07 +000017367# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017368# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17369# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17370#
John Criswell47fdd832003-07-14 16:52:07 +000017371# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17372# Free Software Foundation, Inc.
17373#
17374# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017375# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17376#
17377# This program is free software; you can redistribute it and/or modify
17378# it under the terms of the GNU General Public License as published by
17379# the Free Software Foundation; either version 2 of the License, or
17380# (at your option) any later version.
17381#
17382# This program is distributed in the hope that it will be useful, but
17383# WITHOUT ANY WARRANTY; without even the implied warranty of
17384# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17385# General Public License for more details.
17386#
17387# You should have received a copy of the GNU General Public License
17388# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017389# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017390#
17391# As a special exception to the GNU General Public License, if you
17392# distribute this file as part of a program that contains a
17393# configuration script generated by Autoconf, you may include it under
17394# the same distribution terms that you use for the rest of that program.
17395
John Criswell47fdd832003-07-14 16:52:07 +000017396# A sed program that does not truncate output.
17397SED=$lt_SED
17398
John Criswell7a73b802003-06-30 21:59:07 +000017399# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017400Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017401
17402# The HP-UX ksh and POSIX shell print the target directory to stdout
17403# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017404(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017405
John Criswell47fdd832003-07-14 16:52:07 +000017406# The names of the tagged configurations supported by this script.
17407available_tags=
17408
John Criswell7a73b802003-06-30 21:59:07 +000017409# ### BEGIN LIBTOOL CONFIG
17410
17411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17412
17413# Shell to use when invoking shell scripts.
17414SHELL=$lt_SHELL
17415
17416# Whether or not to build shared libraries.
17417build_libtool_libs=$enable_shared
17418
17419# Whether or not to build static libraries.
17420build_old_libs=$enable_static
17421
17422# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017423build_libtool_need_lc=$archive_cmds_need_lc
17424
17425# Whether or not to disallow shared libs when runtime libs are static
17426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017427
17428# Whether or not to optimize for fast installation.
17429fast_install=$enable_fast_install
17430
17431# The host system.
17432host_alias=$host_alias
17433host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017434host_os=$host_os
17435
17436# The build system.
17437build_alias=$build_alias
17438build=$build
17439build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017440
17441# An echo program that does not interpret backslashes.
17442echo=$lt_echo
17443
17444# The archiver.
17445AR=$lt_AR
17446AR_FLAGS=$lt_AR_FLAGS
17447
John Criswell47fdd832003-07-14 16:52:07 +000017448# A C compiler.
17449LTCC=$lt_LTCC
17450
Reid Spencera773bd52006-08-04 18:18:08 +000017451# LTCC compiler flags.
17452LTCFLAGS=$lt_LTCFLAGS
17453
John Criswell47fdd832003-07-14 16:52:07 +000017454# A language-specific compiler.
17455CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017456
17457# Is the compiler the GNU C compiler?
17458with_gcc=$GCC
17459
John Criswell47fdd832003-07-14 16:52:07 +000017460# An ERE matcher.
17461EGREP=$lt_EGREP
17462
John Criswell7a73b802003-06-30 21:59:07 +000017463# The linker used to build libraries.
17464LD=$lt_LD
17465
17466# Whether we need hard or soft links.
17467LN_S=$lt_LN_S
17468
17469# A BSD-compatible nm program.
17470NM=$lt_NM
17471
17472# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017473STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017474
17475# Used to examine libraries when file_magic_cmd begins "file"
17476MAGIC_CMD=$MAGIC_CMD
17477
17478# Used on cygwin: DLL creation program.
17479DLLTOOL="$DLLTOOL"
17480
17481# Used on cygwin: object dumper.
17482OBJDUMP="$OBJDUMP"
17483
17484# Used on cygwin: assembler.
17485AS="$AS"
17486
17487# The name of the directory that contains temporary libtool files.
17488objdir=$objdir
17489
17490# How to create reloadable object files.
17491reload_flag=$lt_reload_flag
17492reload_cmds=$lt_reload_cmds
17493
17494# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017495wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017496
17497# Object file suffix (normally "o").
17498objext="$ac_objext"
17499
17500# Old archive suffix (normally "a").
17501libext="$libext"
17502
John Criswell47fdd832003-07-14 16:52:07 +000017503# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017504shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017505
John Criswell7a73b802003-06-30 21:59:07 +000017506# Executable file suffix (normally "").
17507exeext="$exeext"
17508
17509# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017510pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017511pic_mode=$pic_mode
17512
John Criswell47fdd832003-07-14 16:52:07 +000017513# What is the maximum length of a command?
17514max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017515
John Criswell47fdd832003-07-14 16:52:07 +000017516# Does compiler simultaneously support -c and -o options?
17517compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017518
Reid Spencera773bd52006-08-04 18:18:08 +000017519# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017520need_locks=$lt_need_locks
17521
17522# Do we need the lib prefix for modules?
17523need_lib_prefix=$need_lib_prefix
17524
17525# Do we need a version for libraries?
17526need_version=$need_version
17527
17528# Whether dlopen is supported.
17529dlopen_support=$enable_dlopen
17530
17531# Whether dlopen of programs is supported.
17532dlopen_self=$enable_dlopen_self
17533
17534# Whether dlopen of statically linked programs is supported.
17535dlopen_self_static=$enable_dlopen_self_static
17536
17537# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017538link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017539
17540# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017542
17543# Compiler flag to allow reflexive dlopens.
17544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17545
17546# Compiler flag to generate shared objects directly from archives.
17547whole_archive_flag_spec=$lt_whole_archive_flag_spec
17548
17549# Compiler flag to generate thread-safe objects.
17550thread_safe_flag_spec=$lt_thread_safe_flag_spec
17551
17552# Library versioning type.
17553version_type=$version_type
17554
17555# Format of library name prefix.
17556libname_spec=$lt_libname_spec
17557
17558# List of archive names. First name is the real one, the rest are links.
17559# The last name is the one that the linker finds with -lNAME.
17560library_names_spec=$lt_library_names_spec
17561
17562# The coded name of the library, if different from the real name.
17563soname_spec=$lt_soname_spec
17564
17565# Commands used to build and install an old-style archive.
17566RANLIB=$lt_RANLIB
17567old_archive_cmds=$lt_old_archive_cmds
17568old_postinstall_cmds=$lt_old_postinstall_cmds
17569old_postuninstall_cmds=$lt_old_postuninstall_cmds
17570
17571# Create an old-style archive from a shared archive.
17572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17573
17574# Create a temporary old-style archive to link instead of a shared archive.
17575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17576
17577# Commands used to build and install a shared archive.
17578archive_cmds=$lt_archive_cmds
17579archive_expsym_cmds=$lt_archive_expsym_cmds
17580postinstall_cmds=$lt_postinstall_cmds
17581postuninstall_cmds=$lt_postuninstall_cmds
17582
John Criswell47fdd832003-07-14 16:52:07 +000017583# Commands used to build a loadable module (assumed same as above if empty)
17584module_cmds=$lt_module_cmds
17585module_expsym_cmds=$lt_module_expsym_cmds
17586
John Criswell7a73b802003-06-30 21:59:07 +000017587# Commands to strip libraries.
17588old_striplib=$lt_old_striplib
17589striplib=$lt_striplib
17590
John Criswell47fdd832003-07-14 16:52:07 +000017591# Dependencies to place before the objects being linked to create a
17592# shared library.
17593predep_objects=$lt_predep_objects
17594
17595# Dependencies to place after the objects being linked to create a
17596# shared library.
17597postdep_objects=$lt_postdep_objects
17598
17599# Dependencies to place before the objects being linked to create a
17600# shared library.
17601predeps=$lt_predeps
17602
17603# Dependencies to place after the objects being linked to create a
17604# shared library.
17605postdeps=$lt_postdeps
17606
17607# The library search path used internally by the compiler when linking
17608# a shared library.
17609compiler_lib_search_path=$lt_compiler_lib_search_path
17610
John Criswell7a73b802003-06-30 21:59:07 +000017611# Method to check whether dependent libraries are shared objects.
17612deplibs_check_method=$lt_deplibs_check_method
17613
17614# Command to use when deplibs_check_method == file_magic.
17615file_magic_cmd=$lt_file_magic_cmd
17616
17617# Flag that allows shared libraries with undefined symbols to be built.
17618allow_undefined_flag=$lt_allow_undefined_flag
17619
17620# Flag that forces no undefined symbols.
17621no_undefined_flag=$lt_no_undefined_flag
17622
17623# Commands used to finish a libtool library installation in a directory.
17624finish_cmds=$lt_finish_cmds
17625
17626# Same as above, but a single script fragment to be evaled but not shown.
17627finish_eval=$lt_finish_eval
17628
17629# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017631
17632# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017634
17635# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017637
17638# This is the shared library runtime path variable.
17639runpath_var=$runpath_var
17640
17641# This is the shared library path variable.
17642shlibpath_var=$shlibpath_var
17643
17644# Is shlibpath searched before the hard-coded library search path?
17645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17646
17647# How to hardcode a shared library path into an executable.
17648hardcode_action=$hardcode_action
17649
17650# Whether we should hardcode library paths into libraries.
17651hardcode_into_libs=$hardcode_into_libs
17652
17653# Flag to hardcode \$libdir into a binary during linking.
17654# This must work even if \$libdir does not exist.
17655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17656
John Criswell47fdd832003-07-14 16:52:07 +000017657# If ld is used when linking, flag to hardcode \$libdir into
17658# a binary during linking. This must work even if \$libdir does
17659# not exist.
17660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17661
John Criswell7a73b802003-06-30 21:59:07 +000017662# Whether we need a single -rpath flag with a separated argument.
17663hardcode_libdir_separator=$lt_hardcode_libdir_separator
17664
John Criswell47fdd832003-07-14 16:52:07 +000017665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017666# resulting binary.
17667hardcode_direct=$hardcode_direct
17668
17669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17670# resulting binary.
17671hardcode_minus_L=$hardcode_minus_L
17672
17673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17674# the resulting binary.
17675hardcode_shlibpath_var=$hardcode_shlibpath_var
17676
John Criswell47fdd832003-07-14 16:52:07 +000017677# Set to yes if building a shared library automatically hardcodes DIR into the library
17678# and all subsequent libraries and executables linked against it.
17679hardcode_automatic=$hardcode_automatic
17680
John Criswell7a73b802003-06-30 21:59:07 +000017681# Variables whose values should be saved in libtool wrapper scripts and
17682# restored at relink time.
17683variables_saved_for_relink="$variables_saved_for_relink"
17684
17685# Whether libtool must link a program against all its dependency libraries.
17686link_all_deplibs=$link_all_deplibs
17687
17688# Compile-time system search path for libraries
17689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17690
17691# Run-time system search path for libraries
17692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17693
17694# Fix the shell variable \$srcfile for the compiler.
17695fix_srcfile_path="$fix_srcfile_path"
17696
17697# Set to yes if exported symbols are required.
17698always_export_symbols=$always_export_symbols
17699
17700# The commands to list exported symbols.
17701export_symbols_cmds=$lt_export_symbols_cmds
17702
17703# The commands to extract the exported symbol list from a shared archive.
17704extract_expsyms_cmds=$lt_extract_expsyms_cmds
17705
17706# Symbols that should not be listed in the preloaded symbols.
17707exclude_expsyms=$lt_exclude_expsyms
17708
17709# Symbols that must always be exported.
17710include_expsyms=$lt_include_expsyms
17711
17712# ### END LIBTOOL CONFIG
17713
17714__EOF__
17715
John Criswell47fdd832003-07-14 16:52:07 +000017716
John Criswell7a73b802003-06-30 21:59:07 +000017717 case $host_os in
17718 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017719 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017720
17721# AIX sometimes has problems with the GCC collect2 program. For some
17722# reason, if we set the COLLECT_NAMES environment variable, the problems
17723# vanish in a puff of smoke.
17724if test "X${COLLECT_NAMES+set}" != Xset; then
17725 COLLECT_NAMES=
17726 export COLLECT_NAMES
17727fi
17728EOF
17729 ;;
17730 esac
17731
John Criswell7a73b802003-06-30 21:59:07 +000017732 # We use sed instead of cat because bash on DJGPP gets confused if
17733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17734 # text mode, it properly converts lines to CR/LF. This bash problem
17735 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017737
John Criswell47fdd832003-07-14 16:52:07 +000017738 mv -f "$cfgfile" "$ofile" || \
17739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017740 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017741
17742else
17743 # If there is no Makefile yet, we rely on a make rule to execute
17744 # `config.status --recheck' to rerun these tests and create the
17745 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17747 if test -f "$ltmain_in"; then
17748 test -f Makefile && make "$ltmain"
17749 fi
John Criswell7a73b802003-06-30 21:59:07 +000017750fi
John Criswell7a73b802003-06-30 21:59:07 +000017751
17752
John Criswell47fdd832003-07-14 16:52:07 +000017753ac_ext=c
17754ac_cpp='$CPP $CPPFLAGS'
17755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17757ac_compiler_gnu=$ac_cv_c_compiler_gnu
17758
17759CC="$lt_save_CC"
17760
17761
Reid Spencera773bd52006-08-04 18:18:08 +000017762# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017763if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017764 withval=$with_tags; tagnames="$withval"
17765fi
17766
John Criswell47fdd832003-07-14 16:52:07 +000017767
17768if test -f "$ltmain" && test -n "$tagnames"; then
17769 if test ! -f "${ofile}"; then
17770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17771echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17772 fi
17773
17774 if test -z "$LTCC"; then
17775 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17776 if test -z "$LTCC"; then
17777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17778echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17779 else
17780 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17781echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17782 fi
17783 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017784 if test -z "$LTCFLAGS"; then
17785 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17786 fi
John Criswell47fdd832003-07-14 16:52:07 +000017787
17788 # Extract list of available tagged configurations in $ofile.
17789 # Note that this assumes the entire list is on one line.
17790 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17791
17792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17793 for tagname in $tagnames; do
17794 IFS="$lt_save_ifs"
17795 # Check whether tagname contains only valid characters
17796 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17797 "") ;;
17798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17799echo "$as_me: error: invalid tag name: $tagname" >&2;}
17800 { (exit 1); exit 1; }; }
17801 ;;
17802 esac
17803
17804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17805 then
17806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17807echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17808 { (exit 1); exit 1; }; }
17809 fi
17810
17811 # Update the list of available tags.
17812 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017813 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017814
17815 case $tagname in
17816 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17819 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017820 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017821ac_cpp='$CXXCPP $CPPFLAGS'
17822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17825
17826
17827
17828
17829archive_cmds_need_lc_CXX=no
17830allow_undefined_flag_CXX=
17831always_export_symbols_CXX=no
17832archive_expsym_cmds_CXX=
17833export_dynamic_flag_spec_CXX=
17834hardcode_direct_CXX=no
17835hardcode_libdir_flag_spec_CXX=
17836hardcode_libdir_flag_spec_ld_CXX=
17837hardcode_libdir_separator_CXX=
17838hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017839hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017840hardcode_automatic_CXX=no
17841module_cmds_CXX=
17842module_expsym_cmds_CXX=
17843link_all_deplibs_CXX=unknown
17844old_archive_cmds_CXX=$old_archive_cmds
17845no_undefined_flag_CXX=
17846whole_archive_flag_spec_CXX=
17847enable_shared_with_static_runtimes_CXX=no
17848
17849# Dependencies to place before and after the object being linked:
17850predep_objects_CXX=
17851postdep_objects_CXX=
17852predeps_CXX=
17853postdeps_CXX=
17854compiler_lib_search_path_CXX=
17855
17856# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017857ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017858
17859# Object file extension for compiled C++ test sources.
17860objext=o
17861objext_CXX=$objext
17862
17863# Code to be used in simple compile tests
17864lt_simple_compile_test_code="int some_variable = 0;\n"
17865
17866# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017867lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017868
17869# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17870
17871# If no C compiler was specified, use CC.
17872LTCC=${LTCC-"$CC"}
17873
Reid Spencera773bd52006-08-04 18:18:08 +000017874# If no C compiler flags were specified, use CFLAGS.
17875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17876
John Criswell47fdd832003-07-14 16:52:07 +000017877# Allow CC to be a program name with arguments.
17878compiler=$CC
17879
17880
Reid Spencera773bd52006-08-04 18:18:08 +000017881# save warnings/boilerplate of simple test code
17882ac_outfile=conftest.$ac_objext
17883printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17884eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17885_lt_compiler_boilerplate=`cat conftest.err`
17886$rm conftest*
17887
17888ac_outfile=conftest.$ac_objext
17889printf "$lt_simple_link_test_code" >conftest.$ac_ext
17890eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17891_lt_linker_boilerplate=`cat conftest.err`
17892$rm conftest*
17893
17894
John Criswell47fdd832003-07-14 16:52:07 +000017895# Allow CC to be a program name with arguments.
17896lt_save_CC=$CC
17897lt_save_LD=$LD
17898lt_save_GCC=$GCC
17899GCC=$GXX
17900lt_save_with_gnu_ld=$with_gnu_ld
17901lt_save_path_LD=$lt_cv_path_LD
17902if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17903 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17904else
Reid Spencera773bd52006-08-04 18:18:08 +000017905 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017906fi
17907if test -n "${lt_cv_path_LDCXX+set}"; then
17908 lt_cv_path_LD=$lt_cv_path_LDCXX
17909else
Reid Spencera773bd52006-08-04 18:18:08 +000017910 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017911fi
17912test -z "${LDCXX+set}" || LD=$LDCXX
17913CC=${CXX-"c++"}
17914compiler=$CC
17915compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017916for cc_temp in $compiler""; do
17917 case $cc_temp in
17918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17920 \-*) ;;
17921 *) break;;
17922 esac
17923done
17924cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17925
John Criswell47fdd832003-07-14 16:52:07 +000017926
17927# We don't want -fno-exception wen compiling C++ code, so set the
17928# no_builtin_flag separately
17929if test "$GXX" = yes; then
17930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17931else
17932 lt_prog_compiler_no_builtin_flag_CXX=
17933fi
17934
17935if test "$GXX" = yes; then
17936 # Set up default GNU C++ configuration
17937
17938
Reid Spencera773bd52006-08-04 18:18:08 +000017939# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017940if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017942else
17943 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017944fi
17945
John Criswell47fdd832003-07-14 16:52:07 +000017946ac_prog=ld
17947if test "$GCC" = yes; then
17948 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017949 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17950echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017951 case $host in
17952 *-*-mingw*)
17953 # gcc leaves a trailing carriage return which upsets mingw
17954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17955 *)
17956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17957 esac
17958 case $ac_prog in
17959 # Accept absolute paths.
17960 [\\/]* | ?:[\\/]*)
17961 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017962 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017963 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17965 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17966 done
17967 test -z "$LD" && LD="$ac_prog"
17968 ;;
17969 "")
17970 # If it fails, then pretend we aren't using GCC.
17971 ac_prog=ld
17972 ;;
17973 *)
17974 # If it is relative, then search for the first ld in PATH.
17975 with_gnu_ld=unknown
17976 ;;
17977 esac
17978elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017979 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17980echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017981else
Reid Spencera773bd52006-08-04 18:18:08 +000017982 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17983echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017984fi
17985if test "${lt_cv_path_LD+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 if test -z "$LD"; then
17989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17990 for ac_dir in $PATH; do
17991 IFS="$lt_save_ifs"
17992 test -z "$ac_dir" && ac_dir=.
17993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17994 lt_cv_path_LD="$ac_dir/$ac_prog"
17995 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017996 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017997 # Break only if it was the GNU/non-GNU ld that we prefer.
17998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17999 *GNU* | *'with BFD'*)
18000 test "$with_gnu_ld" != no && break
18001 ;;
18002 *)
18003 test "$with_gnu_ld" != yes && break
18004 ;;
18005 esac
18006 fi
18007 done
18008 IFS="$lt_save_ifs"
18009else
18010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18011fi
18012fi
18013
18014LD="$lt_cv_path_LD"
18015if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018016 { echo "$as_me:$LINENO: result: $LD" >&5
18017echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018018else
Reid Spencera773bd52006-08-04 18:18:08 +000018019 { echo "$as_me:$LINENO: result: no" >&5
18020echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018021fi
18022test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18023echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18024 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018025{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18026echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018027if test "${lt_cv_prog_gnu_ld+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029else
Reid Spencera773bd52006-08-04 18:18:08 +000018030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018031case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018032*GNU* | *'with BFD'*)
18033 lt_cv_prog_gnu_ld=yes
18034 ;;
18035*)
18036 lt_cv_prog_gnu_ld=no
18037 ;;
18038esac
18039fi
Reid Spencera773bd52006-08-04 18:18:08 +000018040{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18041echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018042with_gnu_ld=$lt_cv_prog_gnu_ld
18043
18044
18045
18046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18047 # archiving commands below assume that GNU ld is being used.
18048 if test "$with_gnu_ld" = yes; then
18049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050 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'
18051
18052 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18054
18055 # If archive_cmds runs LD, not CC, wlarc should be empty
18056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18057 # investigate it a little bit more. (MM)
18058 wlarc='${wl}'
18059
18060 # ancient GNU ld didn't support --whole-archive et. al.
18061 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18062 grep 'no-whole-archive' > /dev/null; then
18063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18064 else
18065 whole_archive_flag_spec_CXX=
18066 fi
18067 else
18068 with_gnu_ld=no
18069 wlarc=
18070
18071 # A generic and very simple default shared library creation
18072 # command for GNU C++ for the case where it uses the native
18073 # linker, instead of GNU ld. If possible, this setting should
18074 # overridden to take advantage of the native linker features on
18075 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018077 fi
18078
18079 # Commands to make compiler produce verbose output that lists
18080 # what "hidden" libraries, object files and flags are used when
18081 # linking a shared library.
18082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18083
18084else
18085 GXX=no
18086 with_gnu_ld=no
18087 wlarc=
18088fi
18089
18090# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018091{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18092echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018093ld_shlibs_CXX=yes
18094case $host_os in
18095 aix3*)
18096 # FIXME: insert proper C++ library support
18097 ld_shlibs_CXX=no
18098 ;;
18099 aix4* | aix5*)
18100 if test "$host_cpu" = ia64; then
18101 # On IA64, the linker does run time linking by default, so we don't
18102 # have to do anything special.
18103 aix_use_runtimelinking=no
18104 exp_sym_flag='-Bexport'
18105 no_entry_flag=""
18106 else
18107 aix_use_runtimelinking=no
18108
18109 # Test if we are trying to use run time linking or normal
18110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18111 # need to do runtime linking.
18112 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18113 for ld_flag in $LDFLAGS; do
18114 case $ld_flag in
18115 *-brtl*)
18116 aix_use_runtimelinking=yes
18117 break
18118 ;;
18119 esac
18120 done
Reid Spencera773bd52006-08-04 18:18:08 +000018121 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018122 esac
18123
18124 exp_sym_flag='-bexport'
18125 no_entry_flag='-bnoentry'
18126 fi
18127
18128 # When large executables or shared objects are built, AIX ld can
18129 # have problems creating the table of contents. If linking a library
18130 # or program results in "error TOC overflow" add -mminimal-toc to
18131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18133
18134 archive_cmds_CXX=''
18135 hardcode_direct_CXX=yes
18136 hardcode_libdir_separator_CXX=':'
18137 link_all_deplibs_CXX=yes
18138
18139 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018140 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018141 # We only want to do this on AIX 4.2 and lower, the check
18142 # below for broken collect2 doesn't work under 4.3+
18143 collect2name=`${CC} -print-prog-name=collect2`
18144 if test -f "$collect2name" && \
18145 strings "$collect2name" | grep resolve_lib_name >/dev/null
18146 then
18147 # We have reworked collect2
18148 hardcode_direct_CXX=yes
18149 else
18150 # We have old collect2
18151 hardcode_direct_CXX=unsupported
18152 # It fails to find uninstalled libraries when the uninstalled
18153 # path is not listed in the libpath. Setting hardcode_minus_L
18154 # to unsupported forces relinking
18155 hardcode_minus_L_CXX=yes
18156 hardcode_libdir_flag_spec_CXX='-L$libdir'
18157 hardcode_libdir_separator_CXX=
18158 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018159 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018160 esac
18161 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018162 if test "$aix_use_runtimelinking" = yes; then
18163 shared_flag="$shared_flag "'${wl}-G'
18164 fi
John Criswell47fdd832003-07-14 16:52:07 +000018165 else
18166 # not using gcc
18167 if test "$host_cpu" = ia64; then
18168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18169 # chokes on -Wl,-G. The following line is correct:
18170 shared_flag='-G'
18171 else
18172 if test "$aix_use_runtimelinking" = yes; then
18173 shared_flag='${wl}-G'
18174 else
18175 shared_flag='${wl}-bM:SRE'
18176 fi
18177 fi
18178 fi
18179
18180 # It seems that -bexpall does not export symbols beginning with
18181 # underscore (_), so it is better to generate a list of symbols to export.
18182 always_export_symbols_CXX=yes
18183 if test "$aix_use_runtimelinking" = yes; then
18184 # Warning - without using the other runtime loading flags (-brtl),
18185 # -berok will link without error, but may produce a broken library.
18186 allow_undefined_flag_CXX='-berok'
18187 # Determine the default libpath from the value encoded in an empty executable.
18188 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018194
John Criswell47fdd832003-07-14 16:52:07 +000018195int
18196main ()
18197{
18198
18199 ;
18200 return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018204if { (ac_try="$ac_link"
18205case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18218 { (case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221esac
18222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231esac
18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237
18238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18239}'`
18240# Check for a 64-bit object if we didn't find anything.
18241if 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; }
18242}'`; fi
18243else
18244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018245sed 's/^/| /' conftest.$ac_ext >&5
18246
Reid Spencera773bd52006-08-04 18:18:08 +000018247
John Criswell47fdd832003-07-14 16:52:07 +000018248fi
Reid Spencera773bd52006-08-04 18:18:08 +000018249
18250rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018251 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18253
18254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18255
Reid Spencera773bd52006-08-04 18:18:08 +000018256 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 +000018257 else
18258 if test "$host_cpu" = ia64; then
18259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18260 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018261 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 +000018262 else
18263 # Determine the default libpath from the value encoded in an empty executable.
18264 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018265/* confdefs.h. */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
18269/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018270
John Criswell47fdd832003-07-14 16:52:07 +000018271int
18272main ()
18273{
18274
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018280if { (ac_try="$ac_link"
18281case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284esac
18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307esac
18308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313
18314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18315}'`
18316# Check for a 64-bit object if we didn't find anything.
18317if 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; }
18318}'`; fi
18319else
18320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018321sed 's/^/| /' conftest.$ac_ext >&5
18322
Reid Spencera773bd52006-08-04 18:18:08 +000018323
John Criswell47fdd832003-07-14 16:52:07 +000018324fi
Reid Spencera773bd52006-08-04 18:18:08 +000018325
18326rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018327 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18329
18330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18331 # Warning - without using the other run time loading flags,
18332 # -berok will link without error, but may produce a broken library.
18333 no_undefined_flag_CXX=' ${wl}-bernotok'
18334 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018335 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018336 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018337 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018338 # This is similar to how AIX traditionally builds its shared libraries.
18339 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 +000018340 fi
18341 fi
18342 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018343
18344 beos*)
18345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18346 allow_undefined_flag_CXX=unsupported
18347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18348 # support --undefined. This deserves some investigation. FIXME
18349 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18350 else
18351 ld_shlibs_CXX=no
18352 fi
18353 ;;
18354
John Criswell47fdd832003-07-14 16:52:07 +000018355 chorus*)
18356 case $cc_basename in
18357 *)
18358 # FIXME: insert proper C++ library support
18359 ld_shlibs_CXX=no
18360 ;;
18361 esac
18362 ;;
18363
18364 cygwin* | mingw* | pw32*)
18365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18366 # as there is no search path for DLLs.
18367 hardcode_libdir_flag_spec_CXX='-L$libdir'
18368 allow_undefined_flag_CXX=unsupported
18369 always_export_symbols_CXX=no
18370 enable_shared_with_static_runtimes_CXX=yes
18371
18372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018373 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 +000018374 # If the export-symbols file already is a .def file (1st line
18375 # is EXPORTS), use it as is; otherwise, prepend...
18376 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18377 cp $export_symbols $output_objdir/$soname.def;
18378 else
18379 echo EXPORTS > $output_objdir/$soname.def;
18380 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018381 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018382 $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 +000018383 else
18384 ld_shlibs_CXX=no
18385 fi
18386 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018387 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018388 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018389 rhapsody* | darwin1.[012])
18390 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18391 ;;
18392 *) # Darwin 1.3 on
18393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18394 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18395 else
18396 case ${MACOSX_DEPLOYMENT_TARGET} in
18397 10.[012])
18398 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18399 ;;
18400 10.*)
18401 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18402 ;;
18403 esac
18404 fi
18405 ;;
18406 esac
18407 archive_cmds_need_lc_CXX=no
18408 hardcode_direct_CXX=no
18409 hardcode_automatic_CXX=yes
18410 hardcode_shlibpath_var_CXX=unsupported
18411 whole_archive_flag_spec_CXX=''
18412 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018413
Reid Spencer2706f8c2004-09-19 23:53:36 +000018414 if test "$GXX" = yes ; then
18415 lt_int_apple_cc_single_mod=no
18416 output_verbose_link_cmd='echo'
18417 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18418 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018419 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018420 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018421 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 +000018422 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018423 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 +000018424 fi
18425 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018426 # 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 +000018427 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018428 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 +000018429 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018430 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 +000018431 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018432 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 +000018433 else
Reid Spencera773bd52006-08-04 18:18:08 +000018434 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018435 xlc*)
18436 output_verbose_link_cmd='echo'
18437 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'
18438 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018439 # 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 +000018440 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}'
18441 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 +000018442 ;;
18443 *)
18444 ld_shlibs_CXX=no
18445 ;;
18446 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018447 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018448 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018449
18450 dgux*)
18451 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018452 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018453 # FIXME: insert proper C++ library support
18454 ld_shlibs_CXX=no
18455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018456 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018457 # Green Hills C++ Compiler
18458 # FIXME: insert proper C++ library support
18459 ld_shlibs_CXX=no
18460 ;;
18461 *)
18462 # FIXME: insert proper C++ library support
18463 ld_shlibs_CXX=no
18464 ;;
18465 esac
18466 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018467 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018468 # C++ shared libraries reported to be fairly broken before switch to ELF
18469 ld_shlibs_CXX=no
18470 ;;
18471 freebsd-elf*)
18472 archive_cmds_need_lc_CXX=no
18473 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018474 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018475 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18476 # conventions
18477 ld_shlibs_CXX=yes
18478 ;;
18479 gnu*)
18480 ;;
18481 hpux9*)
18482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18483 hardcode_libdir_separator_CXX=:
18484 export_dynamic_flag_spec_CXX='${wl}-E'
18485 hardcode_direct_CXX=yes
18486 hardcode_minus_L_CXX=yes # Not in the search PATH,
18487 # but as the default
18488 # location of the library.
18489
18490 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018491 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018492 # FIXME: insert proper C++ library support
18493 ld_shlibs_CXX=no
18494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018495 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018496 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 +000018497 # Commands to make compiler produce verbose output that lists
18498 # what "hidden" libraries, object files and flags are used when
18499 # linking a shared library.
18500 #
18501 # There doesn't appear to be a way to prevent this compiler from
18502 # explicitly linking system object files so we need to strip them
18503 # from the output so that they don't get included in the library
18504 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018505 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 +000018506 ;;
18507 *)
18508 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018509 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 +000018510 else
18511 # FIXME: insert proper C++ library support
18512 ld_shlibs_CXX=no
18513 fi
18514 ;;
18515 esac
18516 ;;
18517 hpux10*|hpux11*)
18518 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18520 hardcode_libdir_separator_CXX=:
18521
18522 case $host_cpu in
18523 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018524 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018525 ;;
18526 *)
John Criswell47fdd832003-07-14 16:52:07 +000018527 export_dynamic_flag_spec_CXX='${wl}-E'
18528 ;;
18529 esac
18530 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018531 case $host_cpu in
18532 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018533 hardcode_direct_CXX=no
18534 hardcode_shlibpath_var_CXX=no
18535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018536 *)
18537 hardcode_direct_CXX=yes
18538 hardcode_minus_L_CXX=yes # Not in the search PATH,
18539 # but as the default
18540 # location of the library.
18541 ;;
18542 esac
18543
18544 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018545 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018546 # FIXME: insert proper C++ library support
18547 ld_shlibs_CXX=no
18548 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018549 aCC*)
18550 case $host_cpu in
18551 hppa*64*)
18552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18553 ;;
18554 ia64*)
18555 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 +000018556 ;;
18557 *)
18558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18559 ;;
18560 esac
18561 # Commands to make compiler produce verbose output that lists
18562 # what "hidden" libraries, object files and flags are used when
18563 # linking a shared library.
18564 #
18565 # There doesn't appear to be a way to prevent this compiler from
18566 # explicitly linking system object files so we need to strip them
18567 # from the output so that they don't get included in the library
18568 # dependencies.
18569 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'
18570 ;;
18571 *)
18572 if test "$GXX" = yes; then
18573 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018574 case $host_cpu in
18575 hppa*64*)
18576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18577 ;;
18578 ia64*)
18579 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 +000018580 ;;
18581 *)
18582 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'
18583 ;;
18584 esac
18585 fi
18586 else
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18589 fi
18590 ;;
18591 esac
18592 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018593 interix3*)
18594 hardcode_direct_CXX=no
18595 hardcode_shlibpath_var_CXX=no
18596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18597 export_dynamic_flag_spec_CXX='${wl}-E'
18598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18599 # Instead, shared libraries are loaded at an image base (0x10000000 by
18600 # default) and relocated if they conflict, which is a slow very memory
18601 # consuming and fragmenting process. To avoid this, we pick a random,
18602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18604 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'
18605 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'
18606 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018607 irix5* | irix6*)
18608 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018609 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018610 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018611 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 +000018612
18613 # Archives containing C++ object files must be created using
18614 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18615 # necessary to make sure instantiated templates are included
18616 # in the archive.
18617 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18618 ;;
18619 *)
18620 if test "$GXX" = yes; then
18621 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018622 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 +000018623 else
18624 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'
18625 fi
18626 fi
18627 link_all_deplibs_CXX=yes
18628 ;;
18629 esac
18630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18631 hardcode_libdir_separator_CXX=:
18632 ;;
18633 linux*)
18634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018635 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018636 # Kuck and Associates, Inc. (KAI) C++ Compiler
18637
18638 # KCC will only create a shared library if the output file
18639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18640 # to its proper name (with version) after linking.
18641 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'
18642 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'
18643 # Commands to make compiler produce verbose output that lists
18644 # what "hidden" libraries, object files and flags are used when
18645 # linking a shared library.
18646 #
18647 # There doesn't appear to be a way to prevent this compiler from
18648 # explicitly linking system object files so we need to strip them
18649 # from the output so that they don't get included in the library
18650 # dependencies.
18651 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'
18652
18653 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18655
18656 # Archives containing C++ object files must be created using
18657 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18658 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018660 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018661 # Intel C++
18662 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018663 # version 8.0 and above of icpc choke on multiply defined symbols
18664 # if we add $predep_objects and $postdep_objects, however 7.1 and
18665 # earlier do not add the objects themselves.
18666 case `$CC -V 2>&1` in
18667 *"Version 7."*)
18668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18669 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'
18670 ;;
18671 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018672 tmp_idyn=
18673 case $host_cpu in
18674 ia64*) tmp_idyn=' -i_dynamic';;
18675 esac
18676 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18677 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 +000018678 ;;
18679 esac
John Criswell47fdd832003-07-14 16:52:07 +000018680 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18683 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018685 pgCC*)
18686 # Portland Group C++ compiler
18687 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18688 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'
18689
18690 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18692 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'
18693 ;;
18694 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018695 # Compaq C++
18696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18697 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'
18698
18699 runpath_var=LD_RUN_PATH
18700 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18701 hardcode_libdir_separator_CXX=:
18702
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18706 #
18707 # There doesn't appear to be a way to prevent this compiler from
18708 # explicitly linking system object files so we need to strip them
18709 # from the output so that they don't get included in the library
18710 # dependencies.
18711 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'
18712 ;;
18713 esac
18714 ;;
18715 lynxos*)
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18718 ;;
18719 m88k*)
18720 # FIXME: insert proper C++ library support
18721 ld_shlibs_CXX=no
18722 ;;
18723 mvs*)
18724 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018725 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018726 # FIXME: insert proper C++ library support
18727 ld_shlibs_CXX=no
18728 ;;
18729 *)
18730 # FIXME: insert proper C++ library support
18731 ld_shlibs_CXX=no
18732 ;;
18733 esac
18734 ;;
18735 netbsd*)
18736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18737 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18738 wlarc=
18739 hardcode_libdir_flag_spec_CXX='-R$libdir'
18740 hardcode_direct_CXX=yes
18741 hardcode_shlibpath_var_CXX=no
18742 fi
18743 # Workaround some broken pre-1.5 toolchains
18744 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18745 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018746 openbsd2*)
18747 # C++ shared libraries are fairly broken
18748 ld_shlibs_CXX=no
18749 ;;
18750 openbsd*)
18751 hardcode_direct_CXX=yes
18752 hardcode_shlibpath_var_CXX=no
18753 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18756 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18757 export_dynamic_flag_spec_CXX='${wl}-E'
18758 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18759 fi
18760 output_verbose_link_cmd='echo'
18761 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018762 osf3*)
18763 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018764 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018765 # Kuck and Associates, Inc. (KAI) C++ Compiler
18766
18767 # KCC will only create a shared library if the output file
18768 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18769 # to its proper name (with version) after linking.
18770 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'
18771
18772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18773 hardcode_libdir_separator_CXX=:
18774
18775 # Archives containing C++ object files must be created using
18776 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18777 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18778
18779 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018780 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018781 # Rational C++ 2.4.1
18782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18784 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018785 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018786 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018787 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 +000018788
18789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18791
18792 # Commands to make compiler produce verbose output that lists
18793 # what "hidden" libraries, object files and flags are used when
18794 # linking a shared library.
18795 #
18796 # There doesn't appear to be a way to prevent this compiler from
18797 # explicitly linking system object files so we need to strip them
18798 # from the output so that they don't get included in the library
18799 # dependencies.
18800 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'
18801 ;;
18802 *)
18803 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18804 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018805 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 +000018806
18807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18808 hardcode_libdir_separator_CXX=:
18809
18810 # Commands to make compiler produce verbose output that lists
18811 # what "hidden" libraries, object files and flags are used when
18812 # linking a shared library.
18813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18814
18815 else
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18818 fi
18819 ;;
18820 esac
18821 ;;
18822 osf4* | osf5*)
18823 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018824 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018825 # Kuck and Associates, Inc. (KAI) C++ Compiler
18826
18827 # KCC will only create a shared library if the output file
18828 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18829 # to its proper name (with version) after linking.
18830 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'
18831
18832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18833 hardcode_libdir_separator_CXX=:
18834
18835 # Archives containing C++ object files must be created using
18836 # the KAI C++ compiler.
18837 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018839 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018840 # Rational C++ 2.4.1
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18843 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018844 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018845 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018846 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 +000018847 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18848 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018849 $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 +000018850 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018851
18852 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18853 hardcode_libdir_separator_CXX=:
18854
18855 # Commands to make compiler produce verbose output that lists
18856 # what "hidden" libraries, object files and flags are used when
18857 # linking a shared library.
18858 #
18859 # There doesn't appear to be a way to prevent this compiler from
18860 # explicitly linking system object files so we need to strip them
18861 # from the output so that they don't get included in the library
18862 # dependencies.
18863 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'
18864 ;;
18865 *)
18866 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18867 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018868 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 +000018869
18870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18871 hardcode_libdir_separator_CXX=:
18872
18873 # Commands to make compiler produce verbose output that lists
18874 # what "hidden" libraries, object files and flags are used when
18875 # linking a shared library.
18876 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18877
18878 else
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18881 fi
18882 ;;
18883 esac
18884 ;;
18885 psos*)
18886 # FIXME: insert proper C++ library support
18887 ld_shlibs_CXX=no
18888 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018889 sunos4*)
18890 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018891 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018892 # Sun C++ 4.x
18893 # FIXME: insert proper C++ library support
18894 ld_shlibs_CXX=no
18895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018896 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018897 # Lucid
18898 # FIXME: insert proper C++ library support
18899 ld_shlibs_CXX=no
18900 ;;
18901 *)
18902 # FIXME: insert proper C++ library support
18903 ld_shlibs_CXX=no
18904 ;;
18905 esac
18906 ;;
18907 solaris*)
18908 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018909 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018910 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018911 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018912 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018913 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 +000018914 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 +000018915 $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 +000018916
18917 hardcode_libdir_flag_spec_CXX='-R$libdir'
18918 hardcode_shlibpath_var_CXX=no
18919 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018920 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018921 *)
18922 # The C++ compiler is used as linker so we must use $wl
18923 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018924 # linker. We must also pass each convience library through
18925 # to the system linker between allextract/defaultextract.
18926 # The C++ compiler will combine linker options so we
18927 # cannot just pass the convience library names through
18928 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018929 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018930 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 +000018931 ;;
18932 esac
18933 link_all_deplibs_CXX=yes
18934
Reid Spencera773bd52006-08-04 18:18:08 +000018935 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018936
18937 # Archives containing C++ object files must be created using
18938 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18939 # necessary to make sure instantiated templates are included
18940 # in the archive.
18941 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18942 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018943 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018944 # Green Hills C++ Compiler
18945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18946
18947 # The C++ compiler must be used to create the archive.
18948 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18949 ;;
18950 *)
18951 # GNU C++ compiler with Solaris linker
18952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18953 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18954 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018955 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 +000018956 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18957 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18958
John Criswell47fdd832003-07-14 16:52:07 +000018959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018962 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018963 else
18964 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18965 # platform.
18966 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 +000018967 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18968 $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 +000018969
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18974 fi
18975
18976 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18977 fi
18978 ;;
18979 esac
18980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18982 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018983 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018984 hardcode_shlibpath_var_CXX=no
18985 runpath_var='LD_RUN_PATH'
18986
18987 case $cc_basename in
18988 CC*)
18989 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18991 ;;
18992 *)
18993 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18995 ;;
18996 esac
18997 ;;
18998 sysv5* | sco3.2v5* | sco5v6*)
18999 # Note: We can NOT use -z defs as we might desire, because we do not
19000 # link with -lc, and that would cause any symbols used from libc to
19001 # always be unresolved, which means just about no library would
19002 # ever link correctly. If we're not using GNU ld we use -z text
19003 # though, which does catch some bad symbols but isn't as heavy-handed
19004 # as -z defs.
19005 # For security reasons, it is highly recommended that you always
19006 # use absolute paths for naming shared libraries, and exclude the
19007 # DT_RUNPATH tag from executables and libraries. But doing so
19008 # requires that you compile everything twice, which is a pain.
19009 # So that behaviour is only enabled if SCOABSPATH is set to a
19010 # non-empty value in the environment. Most likely only useful for
19011 # creating official distributions of packages.
19012 # This is a hack until libtool officially supports absolute path
19013 # names for shared libraries.
19014 no_undefined_flag_CXX='${wl}-z,text'
19015 allow_undefined_flag_CXX='${wl}-z,nodefs'
19016 archive_cmds_need_lc_CXX=no
19017 hardcode_shlibpath_var_CXX=no
19018 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19019 hardcode_libdir_separator_CXX=':'
19020 link_all_deplibs_CXX=yes
19021 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19022 runpath_var='LD_RUN_PATH'
19023
19024 case $cc_basename in
19025 CC*)
19026 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19027 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19028 ;;
19029 *)
19030 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19032 ;;
19033 esac
John Criswell47fdd832003-07-14 16:52:07 +000019034 ;;
19035 tandem*)
19036 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019037 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019038 # NonStop-UX NCC 3.20
19039 # FIXME: insert proper C++ library support
19040 ld_shlibs_CXX=no
19041 ;;
19042 *)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 esac
19047 ;;
19048 vxworks*)
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19051 ;;
19052 *)
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19055 ;;
19056esac
Reid Spencera773bd52006-08-04 18:18:08 +000019057{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19058echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019059test "$ld_shlibs_CXX" = no && can_build_shared=no
19060
19061GCC_CXX="$GXX"
19062LD_CXX="$LD"
19063
John Criswell47fdd832003-07-14 16:52:07 +000019064
19065cat > conftest.$ac_ext <<EOF
19066class Foo
19067{
19068public:
19069 Foo (void) { a = 0; }
19070private:
19071 int a;
19072};
19073EOF
19074
19075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; then
19080 # Parse the compiler output and extract the necessary
19081 # objects, libraries and library flags.
19082
19083 # Sentinel used to keep track of whether or not we are before
19084 # the conftest object file.
19085 pre_test_object_deps_done=no
19086
19087 # The `*' in the case matches for architectures that use `case' in
19088 # $output_verbose_cmd can trigger glob expansion during the loop
19089 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019090 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019091
19092 for p in `eval $output_verbose_link_cmd`; do
19093 case $p in
19094
19095 -L* | -R* | -l*)
19096 # Some compilers place space between "-{L,R}" and the path.
19097 # Remove the space.
19098 if test $p = "-L" \
19099 || test $p = "-R"; then
19100 prev=$p
19101 continue
19102 else
19103 prev=
19104 fi
19105
19106 if test "$pre_test_object_deps_done" = no; then
19107 case $p in
19108 -L* | -R*)
19109 # Internal compiler library paths should come after those
19110 # provided the user. The postdeps already come after the
19111 # user supplied libs so there is no need to process them.
19112 if test -z "$compiler_lib_search_path_CXX"; then
19113 compiler_lib_search_path_CXX="${prev}${p}"
19114 else
19115 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19116 fi
19117 ;;
19118 # The "-l" case would never come before the object being
19119 # linked, so don't bother handling this case.
19120 esac
19121 else
19122 if test -z "$postdeps_CXX"; then
19123 postdeps_CXX="${prev}${p}"
19124 else
19125 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19126 fi
19127 fi
19128 ;;
19129
19130 *.$objext)
19131 # This assumes that the test object file only shows up
19132 # once in the compiler output.
19133 if test "$p" = "conftest.$objext"; then
19134 pre_test_object_deps_done=yes
19135 continue
19136 fi
19137
19138 if test "$pre_test_object_deps_done" = no; then
19139 if test -z "$predep_objects_CXX"; then
19140 predep_objects_CXX="$p"
19141 else
19142 predep_objects_CXX="$predep_objects_CXX $p"
19143 fi
19144 else
19145 if test -z "$postdep_objects_CXX"; then
19146 postdep_objects_CXX="$p"
19147 else
19148 postdep_objects_CXX="$postdep_objects_CXX $p"
19149 fi
19150 fi
19151 ;;
19152
19153 *) ;; # Ignore the rest.
19154
19155 esac
19156 done
19157
19158 # Clean up.
19159 rm -f a.out a.exe
19160else
19161 echo "libtool.m4: error: problem compiling CXX test program"
19162fi
19163
19164$rm -f confest.$objext
19165
Reid Spencera773bd52006-08-04 18:18:08 +000019166# PORTME: override above test on systems where it is broken
19167case $host_os in
19168interix3*)
19169 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19170 # hack all around it, let's just trust "g++" to DTRT.
19171 predep_objects_CXX=
19172 postdep_objects_CXX=
19173 postdeps_CXX=
19174 ;;
19175
19176solaris*)
19177 case $cc_basename in
19178 CC*)
19179 # Adding this requires a known-good setup of shared libraries for
19180 # Sun compiler versions before 5.6, else PIC objects from an old
19181 # archive will be linked into the output, leading to subtle bugs.
19182 postdeps_CXX='-lCstd -lCrun'
19183 ;;
19184 esac
19185 ;;
19186esac
19187
19188
John Criswell47fdd832003-07-14 16:52:07 +000019189case " $postdeps_CXX " in
19190*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19191esac
19192
19193lt_prog_compiler_wl_CXX=
19194lt_prog_compiler_pic_CXX=
19195lt_prog_compiler_static_CXX=
19196
Reid Spencera773bd52006-08-04 18:18:08 +000019197{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19198echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019199
19200 # C++ specific cases for pic, static, wl, etc.
19201 if test "$GXX" = yes; then
19202 lt_prog_compiler_wl_CXX='-Wl,'
19203 lt_prog_compiler_static_CXX='-static'
19204
19205 case $host_os in
19206 aix*)
19207 # All AIX code is PIC.
19208 if test "$host_cpu" = ia64; then
19209 # AIX 5 now supports IA64 processor
19210 lt_prog_compiler_static_CXX='-Bstatic'
19211 fi
19212 ;;
19213 amigaos*)
19214 # FIXME: we need at least 68020 code to build shared libraries, but
19215 # adding the `-m68020' flag to GCC prevents building anything better,
19216 # like `-m68040'.
19217 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19218 ;;
19219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19220 # PIC is the default for these OSes.
19221 ;;
19222 mingw* | os2* | pw32*)
19223 # This hack is so that the source file can tell whether it is being
19224 # built for inclusion in a dll (and should export symbols for example).
19225 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19226 ;;
19227 darwin* | rhapsody*)
19228 # PIC is the default on this platform
19229 # Common symbols not allowed in MH_DYLIB files
19230 lt_prog_compiler_pic_CXX='-fno-common'
19231 ;;
19232 *djgpp*)
19233 # DJGPP does not support shared libraries at all
19234 lt_prog_compiler_pic_CXX=
19235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019236 interix3*)
19237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19238 # Instead, we relocate shared libraries at runtime.
19239 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019240 sysv4*MP*)
19241 if test -d /usr/nec; then
19242 lt_prog_compiler_pic_CXX=-Kconform_pic
19243 fi
19244 ;;
19245 hpux*)
19246 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19247 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019248 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019249 hppa*64*|ia64*)
19250 ;;
19251 *)
19252 lt_prog_compiler_pic_CXX='-fPIC'
19253 ;;
19254 esac
19255 ;;
19256 *)
19257 lt_prog_compiler_pic_CXX='-fPIC'
19258 ;;
19259 esac
19260 else
19261 case $host_os in
19262 aix4* | aix5*)
19263 # All AIX code is PIC.
19264 if test "$host_cpu" = ia64; then
19265 # AIX 5 now supports IA64 processor
19266 lt_prog_compiler_static_CXX='-Bstatic'
19267 else
19268 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19269 fi
19270 ;;
19271 chorus*)
19272 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019273 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019274 # Green Hills C++ Compiler
19275 # _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"
19276 ;;
19277 esac
19278 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019279 darwin*)
19280 # PIC is the default on this platform
19281 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019282 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019283 xlc*)
19284 lt_prog_compiler_pic_CXX='-qnocommon'
19285 lt_prog_compiler_wl_CXX='-Wl,'
19286 ;;
19287 esac
19288 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019289 dgux*)
19290 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019291 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019292 lt_prog_compiler_pic_CXX='-KPIC'
19293 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019294 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019295 # Green Hills C++ Compiler
19296 lt_prog_compiler_pic_CXX='-pic'
19297 ;;
19298 *)
19299 ;;
19300 esac
19301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019302 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019303 # FreeBSD uses GNU C++
19304 ;;
19305 hpux9* | hpux10* | hpux11*)
19306 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019307 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019308 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019309 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019310 if test "$host_cpu" != ia64; then
19311 lt_prog_compiler_pic_CXX='+Z'
19312 fi
19313 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019314 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019315 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019316 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19317 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019318 hppa*64*|ia64*)
19319 # +Z the default
19320 ;;
19321 *)
19322 lt_prog_compiler_pic_CXX='+Z'
19323 ;;
19324 esac
19325 ;;
19326 *)
19327 ;;
19328 esac
19329 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019330 interix*)
19331 # This is c89, which is MS Visual C++ (no shared libs)
19332 # Anyone wants to do a port?
19333 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019334 irix5* | irix6* | nonstopux*)
19335 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019336 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 lt_prog_compiler_wl_CXX='-Wl,'
19338 lt_prog_compiler_static_CXX='-non_shared'
19339 # CC pic flag -KPIC is the default.
19340 ;;
19341 *)
19342 ;;
19343 esac
19344 ;;
19345 linux*)
19346 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019347 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019348 # KAI C++ Compiler
19349 lt_prog_compiler_wl_CXX='--backend -Wl,'
19350 lt_prog_compiler_pic_CXX='-fPIC'
19351 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019352 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019353 # Intel C++
19354 lt_prog_compiler_wl_CXX='-Wl,'
19355 lt_prog_compiler_pic_CXX='-KPIC'
19356 lt_prog_compiler_static_CXX='-static'
19357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019358 pgCC*)
19359 # Portland Group C++ compiler.
19360 lt_prog_compiler_wl_CXX='-Wl,'
19361 lt_prog_compiler_pic_CXX='-fpic'
19362 lt_prog_compiler_static_CXX='-Bstatic'
19363 ;;
19364 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019365 # Compaq C++
19366 # Make sure the PIC flag is empty. It appears that all Alpha
19367 # Linux and Compaq Tru64 Unix objects are PIC.
19368 lt_prog_compiler_pic_CXX=
19369 lt_prog_compiler_static_CXX='-non_shared'
19370 ;;
19371 *)
19372 ;;
19373 esac
19374 ;;
19375 lynxos*)
19376 ;;
19377 m88k*)
19378 ;;
19379 mvs*)
19380 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019381 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019382 lt_prog_compiler_pic_CXX='-W c,exportall'
19383 ;;
19384 *)
19385 ;;
19386 esac
19387 ;;
19388 netbsd*)
19389 ;;
19390 osf3* | osf4* | osf5*)
19391 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019392 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019393 lt_prog_compiler_wl_CXX='--backend -Wl,'
19394 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019395 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019396 # Rational C++ 2.4.1
19397 lt_prog_compiler_pic_CXX='-pic'
19398 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019399 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019400 # Digital/Compaq C++
19401 lt_prog_compiler_wl_CXX='-Wl,'
19402 # Make sure the PIC flag is empty. It appears that all Alpha
19403 # Linux and Compaq Tru64 Unix objects are PIC.
19404 lt_prog_compiler_pic_CXX=
19405 lt_prog_compiler_static_CXX='-non_shared'
19406 ;;
19407 *)
19408 ;;
19409 esac
19410 ;;
19411 psos*)
19412 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019413 solaris*)
19414 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019415 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019416 # Sun C++ 4.2, 5.x and Centerline C++
19417 lt_prog_compiler_pic_CXX='-KPIC'
19418 lt_prog_compiler_static_CXX='-Bstatic'
19419 lt_prog_compiler_wl_CXX='-Qoption ld '
19420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019421 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019422 # Green Hills C++ Compiler
19423 lt_prog_compiler_pic_CXX='-PIC'
19424 ;;
19425 *)
19426 ;;
19427 esac
19428 ;;
19429 sunos4*)
19430 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019431 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019432 # Sun C++ 4.x
19433 lt_prog_compiler_pic_CXX='-pic'
19434 lt_prog_compiler_static_CXX='-Bstatic'
19435 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019436 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019437 # Lucid
19438 lt_prog_compiler_pic_CXX='-pic'
19439 ;;
19440 *)
19441 ;;
19442 esac
19443 ;;
19444 tandem*)
19445 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019446 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019447 # NonStop-UX NCC 3.20
19448 lt_prog_compiler_pic_CXX='-KPIC'
19449 ;;
19450 *)
19451 ;;
19452 esac
19453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19455 case $cc_basename in
19456 CC*)
19457 lt_prog_compiler_wl_CXX='-Wl,'
19458 lt_prog_compiler_pic_CXX='-KPIC'
19459 lt_prog_compiler_static_CXX='-Bstatic'
19460 ;;
19461 esac
John Criswell47fdd832003-07-14 16:52:07 +000019462 ;;
19463 vxworks*)
19464 ;;
19465 *)
19466 lt_prog_compiler_can_build_shared_CXX=no
19467 ;;
19468 esac
19469 fi
19470
Reid Spencera773bd52006-08-04 18:18:08 +000019471{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19472echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019473
19474#
19475# Check to make sure the PIC flag actually works.
19476#
19477if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019478
Reid Spencera773bd52006-08-04 18:18:08 +000019479{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19480echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019481if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483else
19484 lt_prog_compiler_pic_works_CXX=no
19485 ac_outfile=conftest.$ac_objext
19486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19487 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19488 # Insert the option either (1) after the last *FLAGS variable, or
19489 # (2) before a word containing "conftest.", or (3) at the end.
19490 # Note that $ac_compile itself does not contain backslashes and begins
19491 # with a dollar sign (not a hyphen), so the echo should work correctly.
19492 # The option is referenced via a variable to avoid confusing sed.
19493 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19496 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000019497 (eval echo "\"\$as_me:19497: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019498 (eval "$lt_compile" 2>conftest.err)
19499 ac_status=$?
19500 cat conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000019501 echo "$as_me:19501: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019502 if (exit $ac_status) && test -s "$ac_outfile"; then
19503 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019504 # So say no if there are warnings other than the usual output.
19505 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019508 lt_prog_compiler_pic_works_CXX=yes
19509 fi
19510 fi
19511 $rm conftest*
19512
19513fi
Reid Spencera773bd52006-08-04 18:18:08 +000019514{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19515echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019516
19517if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19518 case $lt_prog_compiler_pic_CXX in
19519 "" | " "*) ;;
19520 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19521 esac
19522else
19523 lt_prog_compiler_pic_CXX=
19524 lt_prog_compiler_can_build_shared_CXX=no
19525fi
19526
19527fi
Reid Spencera773bd52006-08-04 18:18:08 +000019528case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019529 # For platforms which do not support PIC, -DPIC is meaningless:
19530 *djgpp*)
19531 lt_prog_compiler_pic_CXX=
19532 ;;
19533 *)
19534 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19535 ;;
19536esac
19537
Reid Spencera773bd52006-08-04 18:18:08 +000019538#
19539# Check to make sure the static flag actually works.
19540#
19541wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19542{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19543echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19544if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546else
19547 lt_prog_compiler_static_works_CXX=no
19548 save_LDFLAGS="$LDFLAGS"
19549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19550 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19552 # The linker can only warn and ignore the option if not recognized
19553 # So say no if there are warnings
19554 if test -s conftest.err; then
19555 # Append any errors to the config.log.
19556 cat conftest.err 1>&5
19557 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19559 if diff conftest.exp conftest.er2 >/dev/null; then
19560 lt_prog_compiler_static_works_CXX=yes
19561 fi
19562 else
19563 lt_prog_compiler_static_works_CXX=yes
19564 fi
19565 fi
19566 $rm conftest*
19567 LDFLAGS="$save_LDFLAGS"
19568
19569fi
19570{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19571echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19572
19573if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19574 :
19575else
19576 lt_prog_compiler_static_CXX=
19577fi
19578
19579
19580{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19581echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019582if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584else
19585 lt_cv_prog_compiler_c_o_CXX=no
19586 $rm -r conftest 2>/dev/null
19587 mkdir conftest
19588 cd conftest
19589 mkdir out
19590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19591
John Criswell47fdd832003-07-14 16:52:07 +000019592 lt_compiler_flag="-o out/conftest2.$ac_objext"
19593 # Insert the option either (1) after the last *FLAGS variable, or
19594 # (2) before a word containing "conftest.", or (3) at the end.
19595 # Note that $ac_compile itself does not contain backslashes and begins
19596 # with a dollar sign (not a hyphen), so the echo should work correctly.
19597 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19600 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000019601 (eval echo "\"\$as_me:19601: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019602 (eval "$lt_compile" 2>out/conftest.err)
19603 ac_status=$?
19604 cat out/conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000019605 echo "$as_me:19605: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19607 then
19608 # The compiler can only warn and ignore the option if not recognized
19609 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019613 lt_cv_prog_compiler_c_o_CXX=yes
19614 fi
19615 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019616 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019617 $rm conftest*
19618 # SGI C++ compiler will create directory out/ii_files/ for
19619 # template instantiation
19620 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19621 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019622 cd ..
19623 rmdir conftest
19624 $rm conftest*
19625
19626fi
Reid Spencera773bd52006-08-04 18:18:08 +000019627{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19628echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019629
19630
19631hard_links="nottested"
19632if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19633 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019634 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19635echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019636 hard_links=yes
19637 $rm conftest*
19638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19639 touch conftest.a
19640 ln conftest.a conftest.b 2>&5 || hard_links=no
19641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019642 { echo "$as_me:$LINENO: result: $hard_links" >&5
19643echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019644 if test "$hard_links" = no; then
19645 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19646echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19647 need_locks=warn
19648 fi
19649else
19650 need_locks=no
19651fi
19652
Reid Spencera773bd52006-08-04 18:18:08 +000019653{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19654echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019655
19656 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19657 case $host_os in
19658 aix4* | aix5*)
19659 # If we're using GNU nm, then we don't want the "-C" option.
19660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19661 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19662 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'
19663 else
19664 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'
19665 fi
19666 ;;
19667 pw32*)
19668 export_symbols_cmds_CXX="$ltdll_cmds"
19669 ;;
19670 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019671 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 +000019672 ;;
19673 *)
19674 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19675 ;;
19676 esac
19677
Reid Spencera773bd52006-08-04 18:18:08 +000019678{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19679echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019680test "$ld_shlibs_CXX" = no && can_build_shared=no
19681
John Criswell47fdd832003-07-14 16:52:07 +000019682#
19683# Do we need to explicitly link libc?
19684#
19685case "x$archive_cmds_need_lc_CXX" in
19686x|xyes)
19687 # Assume -lc should be added
19688 archive_cmds_need_lc_CXX=yes
19689
19690 if test "$enable_shared" = yes && test "$GCC" = yes; then
19691 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019692 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019693 # FIXME: we may have to deal with multi-command sequences.
19694 ;;
19695 '$CC '*)
19696 # Test whether the compiler implicitly links with -lc since on some
19697 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19698 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019699 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19700echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019701 $rm conftest*
19702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19703
19704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } 2>conftest.err; then
19709 soname=conftest
19710 lib=conftest
19711 libobjs=conftest.$ac_objext
19712 deplibs=
19713 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019714 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019715 compiler_flags=-v
19716 linker_flags=-v
19717 verstring=
19718 output_objdir=.
19719 libname=conftest
19720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19721 allow_undefined_flag_CXX=
19722 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19723 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }
19727 then
19728 archive_cmds_need_lc_CXX=no
19729 else
19730 archive_cmds_need_lc_CXX=yes
19731 fi
19732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19733 else
19734 cat conftest.err 1>&5
19735 fi
19736 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019737 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19738echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019739 ;;
19740 esac
19741 fi
19742 ;;
19743esac
19744
Reid Spencera773bd52006-08-04 18:18:08 +000019745{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19746echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019747library_names_spec=
19748libname_spec='lib$name'
19749soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019750shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019751postinstall_cmds=
19752postuninstall_cmds=
19753finish_cmds=
19754finish_eval=
19755shlibpath_var=
19756shlibpath_overrides_runpath=unknown
19757version_type=none
19758dynamic_linker="$host_os ld.so"
19759sys_lib_dlsearch_path_spec="/lib /usr/lib"
19760if test "$GCC" = yes; then
19761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19763 # if the path contains ";" then we assume it to be the separator
19764 # otherwise default to the standard path separator (i.e. ":") - it is
19765 # assumed that no part of a normal pathname contains ";" but that should
19766 # okay in the real world where ";" in dirpaths is itself problematic.
19767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19768 else
19769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19770 fi
19771else
19772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19773fi
19774need_lib_prefix=unknown
19775hardcode_into_libs=no
19776
19777# when you set need_version to no, make sure it does not cause -set_version
19778# flags to be left without arguments
19779need_version=unknown
19780
19781case $host_os in
19782aix3*)
19783 version_type=linux
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var=LIBPATH
19786
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 ;;
19790
19791aix4* | aix5*)
19792 version_type=linux
19793 need_lib_prefix=no
19794 need_version=no
19795 hardcode_into_libs=yes
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 supports IA64
19798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 else
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19806 case $host_os in
19807 aix4 | aix4.[01] | aix4.[01].*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo ' yes '
19810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19811 :
19812 else
19813 can_build_shared=no
19814 fi
19815 ;;
19816 esac
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 else
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec='${libname}${release}.a $libname.a'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 fi
19831 shlibpath_var=LIBPATH
19832 fi
19833 ;;
19834
19835amigaos*)
19836 library_names_spec='$libname.ixlibrary $libname.a'
19837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019838 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 +000019839 ;;
19840
19841beos*)
19842 library_names_spec='${libname}${shared_ext}'
19843 dynamic_linker="$host_os ld.so"
19844 shlibpath_var=LIBRARY_PATH
19845 ;;
19846
Reid Spencer2706f8c2004-09-19 23:53:36 +000019847bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019848 version_type=linux
19849 need_version=no
19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851 soname_spec='${libname}${release}${shared_ext}$major'
19852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19853 shlibpath_var=LD_LIBRARY_PATH
19854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19856 # the default ld.so.conf also contains /usr/contrib/lib and
19857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19858 # libtool to hard-code these into programs
19859 ;;
19860
19861cygwin* | mingw* | pw32*)
19862 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019863 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019864 need_version=no
19865 need_lib_prefix=no
19866
19867 case $GCC,$host_os in
19868 yes,cygwin* | yes,mingw* | yes,pw32*)
19869 library_names_spec='$libname.dll.a'
19870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019871 postinstall_cmds='base_file=`basename \${file}`~
19872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19873 dldir=$destdir/`dirname \$dlpath`~
19874 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019875 $install_prog $dir/$dlname \$dldir/$dlname~
19876 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19878 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019879 $rm \$dlpath'
19880 shlibpath_overrides_runpath=yes
19881
19882 case $host_os in
19883 cygwin*)
19884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19885 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 +000019886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019887 ;;
19888 mingw*)
19889 # MinGW DLLs use traditional 'lib' prefix
19890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19893 # It is most probably a Windows format PATH printed by
19894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19895 # path with ; separators, and with drive letters. We can handle the
19896 # drive letters (cygwin fileutils understands them), so leave them,
19897 # especially as we might pass files found there to a mingw objdump,
19898 # which wouldn't understand a cygwinified path. Ahh.
19899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19900 else
19901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19902 fi
19903 ;;
19904 pw32*)
19905 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019906 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 +000019907 ;;
19908 esac
19909 ;;
19910
19911 *)
19912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19913 ;;
19914 esac
19915 dynamic_linker='Win32 ld.exe'
19916 # FIXME: first we should search . and the directory the executable is in
19917 shlibpath_var=PATH
19918 ;;
19919
19920darwin* | rhapsody*)
19921 dynamic_linker="$host_os dyld"
19922 version_type=darwin
19923 need_lib_prefix=no
19924 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019926 soname_spec='${libname}${release}${major}$shared_ext'
19927 shlibpath_overrides_runpath=yes
19928 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019929 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019931 if test "$GCC" = yes; then
19932 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"`
19933 else
19934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019935 fi
19936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19937 ;;
19938
19939dgux*)
19940 version_type=linux
19941 need_lib_prefix=no
19942 need_version=no
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 shlibpath_var=LD_LIBRARY_PATH
19946 ;;
19947
19948freebsd1*)
19949 dynamic_linker=no
19950 ;;
19951
Reid Spencer2706f8c2004-09-19 23:53:36 +000019952kfreebsd*-gnu)
19953 version_type=linux
19954 need_lib_prefix=no
19955 need_version=no
19956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19957 soname_spec='${libname}${release}${shared_ext}$major'
19958 shlibpath_var=LD_LIBRARY_PATH
19959 shlibpath_overrides_runpath=no
19960 hardcode_into_libs=yes
19961 dynamic_linker='GNU ld.so'
19962 ;;
19963
Reid Spencera773bd52006-08-04 18:18:08 +000019964freebsd* | dragonfly*)
19965 # DragonFly does not have aout. When/if they implement a new
19966 # versioning mechanism, adjust this.
19967 if test -x /usr/bin/objformat; then
19968 objformat=`/usr/bin/objformat`
19969 else
19970 case $host_os in
19971 freebsd[123]*) objformat=aout ;;
19972 *) objformat=elf ;;
19973 esac
19974 fi
John Criswell47fdd832003-07-14 16:52:07 +000019975 version_type=freebsd-$objformat
19976 case $version_type in
19977 freebsd-elf*)
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19979 need_version=no
19980 need_lib_prefix=no
19981 ;;
19982 freebsd-*)
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19984 need_version=yes
19985 ;;
19986 esac
19987 shlibpath_var=LD_LIBRARY_PATH
19988 case $host_os in
19989 freebsd2*)
19990 shlibpath_overrides_runpath=yes
19991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019992 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019993 shlibpath_overrides_runpath=yes
19994 hardcode_into_libs=yes
19995 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019998 shlibpath_overrides_runpath=no
19999 hardcode_into_libs=yes
20000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020001 freebsd*) # from 4.6 on
20002 shlibpath_overrides_runpath=yes
20003 hardcode_into_libs=yes
20004 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020005 esac
20006 ;;
20007
20008gnu*)
20009 version_type=linux
20010 need_lib_prefix=no
20011 need_version=no
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20013 soname_spec='${libname}${release}${shared_ext}$major'
20014 shlibpath_var=LD_LIBRARY_PATH
20015 hardcode_into_libs=yes
20016 ;;
20017
20018hpux9* | hpux10* | hpux11*)
20019 # Give a soname corresponding to the major version so that dld.sl refuses to
20020 # link against other versions.
20021 version_type=sunos
20022 need_lib_prefix=no
20023 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020024 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020025 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020026 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020027 hardcode_into_libs=yes
20028 dynamic_linker="$host_os dld.so"
20029 shlibpath_var=LD_LIBRARY_PATH
20030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 if test "X$HPUX_IA64_MODE" = X32; then
20034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20035 else
20036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20037 fi
20038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039 ;;
20040 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020041 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020042 hardcode_into_libs=yes
20043 dynamic_linker="$host_os dld.sl"
20044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20050 ;;
20051 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020052 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020053 dynamic_linker="$host_os dld.sl"
20054 shlibpath_var=SHLIB_PATH
20055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20057 soname_spec='${libname}${release}${shared_ext}$major'
20058 ;;
20059 esac
20060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20061 postinstall_cmds='chmod 555 $lib'
20062 ;;
20063
Reid Spencera773bd52006-08-04 18:18:08 +000020064interix3*)
20065 version_type=linux
20066 need_lib_prefix=no
20067 need_version=no
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20071 shlibpath_var=LD_LIBRARY_PATH
20072 shlibpath_overrides_runpath=no
20073 hardcode_into_libs=yes
20074 ;;
20075
John Criswell47fdd832003-07-14 16:52:07 +000020076irix5* | irix6* | nonstopux*)
20077 case $host_os in
20078 nonstopux*) version_type=nonstopux ;;
20079 *)
20080 if test "$lt_cv_prog_gnu_ld" = yes; then
20081 version_type=linux
20082 else
20083 version_type=irix
20084 fi ;;
20085 esac
20086 need_lib_prefix=no
20087 need_version=no
20088 soname_spec='${libname}${release}${shared_ext}$major'
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20090 case $host_os in
20091 irix5* | nonstopux*)
20092 libsuff= shlibsuff=
20093 ;;
20094 *)
20095 case $LD in # libtool.m4 will add one of these switches to LD
20096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20097 libsuff= shlibsuff= libmagic=32-bit;;
20098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20099 libsuff=32 shlibsuff=N32 libmagic=N32;;
20100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20102 *) libsuff= shlibsuff= libmagic=never-match;;
20103 esac
20104 ;;
20105 esac
20106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20107 shlibpath_overrides_runpath=no
20108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20110 hardcode_into_libs=yes
20111 ;;
20112
20113# No shared lib support for Linux oldld, aout, or coff.
20114linux*oldld* | linux*aout* | linux*coff*)
20115 dynamic_linker=no
20116 ;;
20117
20118# This must be Linux ELF.
20119linux*)
20120 version_type=linux
20121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20126 shlibpath_var=LD_LIBRARY_PATH
20127 shlibpath_overrides_runpath=no
20128 # This implies no fast_install, which is unacceptable.
20129 # Some rework will be needed to allow for fast_install
20130 # before this can be enabled.
20131 hardcode_into_libs=yes
20132
Reid Spencer2706f8c2004-09-19 23:53:36 +000020133 # Append ld.so.conf contents to the search path
20134 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020135 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 +000020136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20137 fi
20138
John Criswell47fdd832003-07-14 16:52:07 +000020139 # We used to test for /lib/ld.so.1 and disable shared libraries on
20140 # powerpc, because MkLinux only supported shared libraries with the
20141 # GNU dynamic linker. Since this was broken with cross compilers,
20142 # most powerpc-linux boxes support dynamic linking these days and
20143 # people can always --disable-shared, the test was removed, and we
20144 # assume the GNU/Linux dynamic linker is in use.
20145 dynamic_linker='GNU/Linux ld.so'
20146 ;;
20147
Reid Spencer2706f8c2004-09-19 23:53:36 +000020148knetbsd*-gnu)
20149 version_type=linux
20150 need_lib_prefix=no
20151 need_version=no
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20153 soname_spec='${libname}${release}${shared_ext}$major'
20154 shlibpath_var=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath=no
20156 hardcode_into_libs=yes
20157 dynamic_linker='GNU ld.so'
20158 ;;
20159
John Criswell47fdd832003-07-14 16:52:07 +000020160netbsd*)
20161 version_type=sunos
20162 need_lib_prefix=no
20163 need_version=no
20164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20167 dynamic_linker='NetBSD (a.out) ld.so'
20168 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020170 soname_spec='${libname}${release}${shared_ext}$major'
20171 dynamic_linker='NetBSD ld.elf_so'
20172 fi
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=yes
20175 hardcode_into_libs=yes
20176 ;;
20177
20178newsos6)
20179 version_type=linux
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath=yes
20183 ;;
20184
Reid Spencer2706f8c2004-09-19 23:53:36 +000020185nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020186 version_type=linux
20187 need_lib_prefix=no
20188 need_version=no
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 soname_spec='${libname}${release}${shared_ext}$major'
20191 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20193 ;;
20194
20195openbsd*)
20196 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020197 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020198 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20200 case $host_os in
20201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20202 *) need_version=no ;;
20203 esac
John Criswell47fdd832003-07-14 16:52:07 +000020204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20206 shlibpath_var=LD_LIBRARY_PATH
20207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20208 case $host_os in
20209 openbsd2.[89] | openbsd2.[89].*)
20210 shlibpath_overrides_runpath=no
20211 ;;
20212 *)
20213 shlibpath_overrides_runpath=yes
20214 ;;
20215 esac
20216 else
20217 shlibpath_overrides_runpath=yes
20218 fi
20219 ;;
20220
20221os2*)
20222 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020223 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020224 need_lib_prefix=no
20225 library_names_spec='$libname${shared_ext} $libname.a'
20226 dynamic_linker='OS/2 ld.exe'
20227 shlibpath_var=LIBPATH
20228 ;;
20229
20230osf3* | osf4* | osf5*)
20231 version_type=osf
20232 need_lib_prefix=no
20233 need_version=no
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20239 ;;
20240
John Criswell47fdd832003-07-14 16:52:07 +000020241solaris*)
20242 version_type=linux
20243 need_lib_prefix=no
20244 need_version=no
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246 soname_spec='${libname}${release}${shared_ext}$major'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=yes
20249 hardcode_into_libs=yes
20250 # ldd complains unless libraries are executable
20251 postinstall_cmds='chmod +x $lib'
20252 ;;
20253
20254sunos4*)
20255 version_type=sunos
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath=yes
20260 if test "$with_gnu_ld" = yes; then
20261 need_lib_prefix=no
20262 fi
20263 need_version=yes
20264 ;;
20265
Reid Spencera773bd52006-08-04 18:18:08 +000020266sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020267 version_type=linux
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 case $host_vendor in
20272 sni)
20273 shlibpath_overrides_runpath=no
20274 need_lib_prefix=no
20275 export_dynamic_flag_spec='${wl}-Blargedynsym'
20276 runpath_var=LD_RUN_PATH
20277 ;;
20278 siemens)
20279 need_lib_prefix=no
20280 ;;
20281 motorola)
20282 need_lib_prefix=no
20283 need_version=no
20284 shlibpath_overrides_runpath=no
20285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20286 ;;
20287 esac
20288 ;;
20289
20290sysv4*MP*)
20291 if test -d /usr/nec ;then
20292 version_type=linux
20293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20294 soname_spec='$libname${shared_ext}.$major'
20295 shlibpath_var=LD_LIBRARY_PATH
20296 fi
20297 ;;
20298
Reid Spencera773bd52006-08-04 18:18:08 +000020299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20300 version_type=freebsd-elf
20301 need_lib_prefix=no
20302 need_version=no
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 hardcode_into_libs=yes
20307 if test "$with_gnu_ld" = yes; then
20308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20309 shlibpath_overrides_runpath=no
20310 else
20311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20312 shlibpath_overrides_runpath=yes
20313 case $host_os in
20314 sco3.2v5*)
20315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20316 ;;
20317 esac
20318 fi
20319 sys_lib_dlsearch_path_spec='/usr/lib'
20320 ;;
20321
John Criswell47fdd832003-07-14 16:52:07 +000020322uts4*)
20323 version_type=linux
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 shlibpath_var=LD_LIBRARY_PATH
20327 ;;
20328
20329*)
20330 dynamic_linker=no
20331 ;;
20332esac
Reid Spencera773bd52006-08-04 18:18:08 +000020333{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20334echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020335test "$dynamic_linker" = no && can_build_shared=no
20336
Reid Spencera773bd52006-08-04 18:18:08 +000020337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20338if test "$GCC" = yes; then
20339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20340fi
20341
20342{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20343echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020344hardcode_action_CXX=
20345if test -n "$hardcode_libdir_flag_spec_CXX" || \
20346 test -n "$runpath_var_CXX" || \
20347 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20348
20349 # We can hardcode non-existant directories.
20350 if test "$hardcode_direct_CXX" != no &&
20351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20352 # have to relink, otherwise we might link with an installed library
20353 # when we should be linking with a yet-to-be-installed one
20354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20355 test "$hardcode_minus_L_CXX" != no; then
20356 # Linking always hardcodes the temporary library directory.
20357 hardcode_action_CXX=relink
20358 else
20359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20360 hardcode_action_CXX=immediate
20361 fi
20362else
20363 # We cannot hardcode anything, or else we can only hardcode existing
20364 # directories.
20365 hardcode_action_CXX=unsupported
20366fi
Reid Spencera773bd52006-08-04 18:18:08 +000020367{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20368echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369
20370if test "$hardcode_action_CXX" = relink; then
20371 # Fast installation is not supported
20372 enable_fast_install=no
20373elif test "$shlibpath_overrides_runpath" = yes ||
20374 test "$enable_shared" = no; then
20375 # Fast installation is not necessary
20376 enable_fast_install=needless
20377fi
20378
John Criswell47fdd832003-07-14 16:52:07 +000020379
20380# The else clause should only fire when bootstrapping the
20381# libtool distribution, otherwise you forgot to ship ltmain.sh
20382# with your package, and you will get complaints that there are
20383# no rules to generate ltmain.sh.
20384if test -f "$ltmain"; then
20385 # See if we are running on zsh, and set the options which allow our commands through
20386 # without removal of \ escapes.
20387 if test -n "${ZSH_VERSION+set}" ; then
20388 setopt NO_GLOB_SUBST
20389 fi
20390 # Now quote all the things that may contain metacharacters while being
20391 # careful not to overquote the AC_SUBSTed values. We take copies of the
20392 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020393 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 +000020394 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20397 deplibs_check_method reload_flag reload_cmds need_locks \
20398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20399 lt_cv_sys_global_symbol_to_c_name_address \
20400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20401 old_postinstall_cmds old_postuninstall_cmds \
20402 compiler_CXX \
20403 CC_CXX \
20404 LD_CXX \
20405 lt_prog_compiler_wl_CXX \
20406 lt_prog_compiler_pic_CXX \
20407 lt_prog_compiler_static_CXX \
20408 lt_prog_compiler_no_builtin_flag_CXX \
20409 export_dynamic_flag_spec_CXX \
20410 thread_safe_flag_spec_CXX \
20411 whole_archive_flag_spec_CXX \
20412 enable_shared_with_static_runtimes_CXX \
20413 old_archive_cmds_CXX \
20414 old_archive_from_new_cmds_CXX \
20415 predep_objects_CXX \
20416 postdep_objects_CXX \
20417 predeps_CXX \
20418 postdeps_CXX \
20419 compiler_lib_search_path_CXX \
20420 archive_cmds_CXX \
20421 archive_expsym_cmds_CXX \
20422 postinstall_cmds_CXX \
20423 postuninstall_cmds_CXX \
20424 old_archive_from_expsyms_cmds_CXX \
20425 allow_undefined_flag_CXX \
20426 no_undefined_flag_CXX \
20427 export_symbols_cmds_CXX \
20428 hardcode_libdir_flag_spec_CXX \
20429 hardcode_libdir_flag_spec_ld_CXX \
20430 hardcode_libdir_separator_CXX \
20431 hardcode_automatic_CXX \
20432 module_cmds_CXX \
20433 module_expsym_cmds_CXX \
20434 lt_cv_prog_compiler_c_o_CXX \
20435 exclude_expsyms_CXX \
20436 include_expsyms_CXX; do
20437
20438 case $var in
20439 old_archive_cmds_CXX | \
20440 old_archive_from_new_cmds_CXX | \
20441 archive_cmds_CXX | \
20442 archive_expsym_cmds_CXX | \
20443 module_cmds_CXX | \
20444 module_expsym_cmds_CXX | \
20445 old_archive_from_expsyms_cmds_CXX | \
20446 export_symbols_cmds_CXX | \
20447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20448 postinstall_cmds | postuninstall_cmds | \
20449 old_postinstall_cmds | old_postuninstall_cmds | \
20450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20451 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020452 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 +000020453 ;;
20454 *)
20455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20456 ;;
20457 esac
20458 done
20459
20460 case $lt_echo in
20461 *'\$0 --fallback-echo"')
20462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20463 ;;
20464 esac
20465
20466cfgfile="$ofile"
20467
20468 cat <<__EOF__ >> "$cfgfile"
20469# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20470
20471# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20472
20473# Shell to use when invoking shell scripts.
20474SHELL=$lt_SHELL
20475
20476# Whether or not to build shared libraries.
20477build_libtool_libs=$enable_shared
20478
20479# Whether or not to build static libraries.
20480build_old_libs=$enable_static
20481
20482# Whether or not to add -lc for building shared libraries.
20483build_libtool_need_lc=$archive_cmds_need_lc_CXX
20484
20485# Whether or not to disallow shared libs when runtime libs are static
20486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20487
20488# Whether or not to optimize for fast installation.
20489fast_install=$enable_fast_install
20490
20491# The host system.
20492host_alias=$host_alias
20493host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020494host_os=$host_os
20495
20496# The build system.
20497build_alias=$build_alias
20498build=$build
20499build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020500
20501# An echo program that does not interpret backslashes.
20502echo=$lt_echo
20503
20504# The archiver.
20505AR=$lt_AR
20506AR_FLAGS=$lt_AR_FLAGS
20507
20508# A C compiler.
20509LTCC=$lt_LTCC
20510
Reid Spencera773bd52006-08-04 18:18:08 +000020511# LTCC compiler flags.
20512LTCFLAGS=$lt_LTCFLAGS
20513
John Criswell47fdd832003-07-14 16:52:07 +000020514# A language-specific compiler.
20515CC=$lt_compiler_CXX
20516
20517# Is the compiler the GNU C compiler?
20518with_gcc=$GCC_CXX
20519
20520# An ERE matcher.
20521EGREP=$lt_EGREP
20522
20523# The linker used to build libraries.
20524LD=$lt_LD_CXX
20525
20526# Whether we need hard or soft links.
20527LN_S=$lt_LN_S
20528
20529# A BSD-compatible nm program.
20530NM=$lt_NM
20531
20532# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020533STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020534
20535# Used to examine libraries when file_magic_cmd begins "file"
20536MAGIC_CMD=$MAGIC_CMD
20537
20538# Used on cygwin: DLL creation program.
20539DLLTOOL="$DLLTOOL"
20540
20541# Used on cygwin: object dumper.
20542OBJDUMP="$OBJDUMP"
20543
20544# Used on cygwin: assembler.
20545AS="$AS"
20546
20547# The name of the directory that contains temporary libtool files.
20548objdir=$objdir
20549
20550# How to create reloadable object files.
20551reload_flag=$lt_reload_flag
20552reload_cmds=$lt_reload_cmds
20553
20554# How to pass a linker flag through the compiler.
20555wl=$lt_lt_prog_compiler_wl_CXX
20556
20557# Object file suffix (normally "o").
20558objext="$ac_objext"
20559
20560# Old archive suffix (normally "a").
20561libext="$libext"
20562
20563# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020564shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020565
20566# Executable file suffix (normally "").
20567exeext="$exeext"
20568
20569# Additional compiler flags for building library objects.
20570pic_flag=$lt_lt_prog_compiler_pic_CXX
20571pic_mode=$pic_mode
20572
20573# What is the maximum length of a command?
20574max_cmd_len=$lt_cv_sys_max_cmd_len
20575
20576# Does compiler simultaneously support -c and -o options?
20577compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20578
Reid Spencera773bd52006-08-04 18:18:08 +000020579# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020580need_locks=$lt_need_locks
20581
20582# Do we need the lib prefix for modules?
20583need_lib_prefix=$need_lib_prefix
20584
20585# Do we need a version for libraries?
20586need_version=$need_version
20587
20588# Whether dlopen is supported.
20589dlopen_support=$enable_dlopen
20590
20591# Whether dlopen of programs is supported.
20592dlopen_self=$enable_dlopen_self
20593
20594# Whether dlopen of statically linked programs is supported.
20595dlopen_self_static=$enable_dlopen_self_static
20596
20597# Compiler flag to prevent dynamic linking.
20598link_static_flag=$lt_lt_prog_compiler_static_CXX
20599
20600# Compiler flag to turn off builtin functions.
20601no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20602
20603# Compiler flag to allow reflexive dlopens.
20604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20605
20606# Compiler flag to generate shared objects directly from archives.
20607whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20608
20609# Compiler flag to generate thread-safe objects.
20610thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20611
20612# Library versioning type.
20613version_type=$version_type
20614
20615# Format of library name prefix.
20616libname_spec=$lt_libname_spec
20617
20618# List of archive names. First name is the real one, the rest are links.
20619# The last name is the one that the linker finds with -lNAME.
20620library_names_spec=$lt_library_names_spec
20621
20622# The coded name of the library, if different from the real name.
20623soname_spec=$lt_soname_spec
20624
20625# Commands used to build and install an old-style archive.
20626RANLIB=$lt_RANLIB
20627old_archive_cmds=$lt_old_archive_cmds_CXX
20628old_postinstall_cmds=$lt_old_postinstall_cmds
20629old_postuninstall_cmds=$lt_old_postuninstall_cmds
20630
20631# Create an old-style archive from a shared archive.
20632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20633
20634# Create a temporary old-style archive to link instead of a shared archive.
20635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20636
20637# Commands used to build and install a shared archive.
20638archive_cmds=$lt_archive_cmds_CXX
20639archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20640postinstall_cmds=$lt_postinstall_cmds
20641postuninstall_cmds=$lt_postuninstall_cmds
20642
20643# Commands used to build a loadable module (assumed same as above if empty)
20644module_cmds=$lt_module_cmds_CXX
20645module_expsym_cmds=$lt_module_expsym_cmds_CXX
20646
20647# Commands to strip libraries.
20648old_striplib=$lt_old_striplib
20649striplib=$lt_striplib
20650
20651# Dependencies to place before the objects being linked to create a
20652# shared library.
20653predep_objects=$lt_predep_objects_CXX
20654
20655# Dependencies to place after the objects being linked to create a
20656# shared library.
20657postdep_objects=$lt_postdep_objects_CXX
20658
20659# Dependencies to place before the objects being linked to create a
20660# shared library.
20661predeps=$lt_predeps_CXX
20662
20663# Dependencies to place after the objects being linked to create a
20664# shared library.
20665postdeps=$lt_postdeps_CXX
20666
20667# The library search path used internally by the compiler when linking
20668# a shared library.
20669compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20670
20671# Method to check whether dependent libraries are shared objects.
20672deplibs_check_method=$lt_deplibs_check_method
20673
20674# Command to use when deplibs_check_method == file_magic.
20675file_magic_cmd=$lt_file_magic_cmd
20676
20677# Flag that allows shared libraries with undefined symbols to be built.
20678allow_undefined_flag=$lt_allow_undefined_flag_CXX
20679
20680# Flag that forces no undefined symbols.
20681no_undefined_flag=$lt_no_undefined_flag_CXX
20682
20683# Commands used to finish a libtool library installation in a directory.
20684finish_cmds=$lt_finish_cmds
20685
20686# Same as above, but a single script fragment to be evaled but not shown.
20687finish_eval=$lt_finish_eval
20688
20689# Take the output of nm and produce a listing of raw symbols and C names.
20690global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20691
20692# Transform the output of nm in a proper C declaration
20693global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20694
20695# Transform the output of nm in a C name address pair
20696global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20697
20698# This is the shared library runtime path variable.
20699runpath_var=$runpath_var
20700
20701# This is the shared library path variable.
20702shlibpath_var=$shlibpath_var
20703
20704# Is shlibpath searched before the hard-coded library search path?
20705shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20706
20707# How to hardcode a shared library path into an executable.
20708hardcode_action=$hardcode_action_CXX
20709
20710# Whether we should hardcode library paths into libraries.
20711hardcode_into_libs=$hardcode_into_libs
20712
20713# Flag to hardcode \$libdir into a binary during linking.
20714# This must work even if \$libdir does not exist.
20715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20716
20717# If ld is used when linking, flag to hardcode \$libdir into
20718# a binary during linking. This must work even if \$libdir does
20719# not exist.
20720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20721
20722# Whether we need a single -rpath flag with a separated argument.
20723hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20724
20725# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20726# resulting binary.
20727hardcode_direct=$hardcode_direct_CXX
20728
20729# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20730# resulting binary.
20731hardcode_minus_L=$hardcode_minus_L_CXX
20732
20733# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20734# the resulting binary.
20735hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20736
20737# Set to yes if building a shared library automatically hardcodes DIR into the library
20738# and all subsequent libraries and executables linked against it.
20739hardcode_automatic=$hardcode_automatic_CXX
20740
20741# Variables whose values should be saved in libtool wrapper scripts and
20742# restored at relink time.
20743variables_saved_for_relink="$variables_saved_for_relink"
20744
20745# Whether libtool must link a program against all its dependency libraries.
20746link_all_deplibs=$link_all_deplibs_CXX
20747
20748# Compile-time system search path for libraries
20749sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20750
20751# Run-time system search path for libraries
20752sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20753
20754# Fix the shell variable \$srcfile for the compiler.
20755fix_srcfile_path="$fix_srcfile_path_CXX"
20756
20757# Set to yes if exported symbols are required.
20758always_export_symbols=$always_export_symbols_CXX
20759
20760# The commands to list exported symbols.
20761export_symbols_cmds=$lt_export_symbols_cmds_CXX
20762
20763# The commands to extract the exported symbol list from a shared archive.
20764extract_expsyms_cmds=$lt_extract_expsyms_cmds
20765
20766# Symbols that should not be listed in the preloaded symbols.
20767exclude_expsyms=$lt_exclude_expsyms_CXX
20768
20769# Symbols that must always be exported.
20770include_expsyms=$lt_include_expsyms_CXX
20771
20772# ### END LIBTOOL TAG CONFIG: $tagname
20773
20774__EOF__
20775
20776
20777else
20778 # If there is no Makefile yet, we rely on a make rule to execute
20779 # `config.status --recheck' to rerun these tests and create the
20780 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20782 if test -f "$ltmain_in"; then
20783 test -f Makefile && make "$ltmain"
20784 fi
John Criswell47fdd832003-07-14 16:52:07 +000020785fi
20786
20787
20788ac_ext=c
20789ac_cpp='$CPP $CPPFLAGS'
20790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792ac_compiler_gnu=$ac_cv_c_compiler_gnu
20793
20794CC=$lt_save_CC
20795LDCXX=$LD
20796LD=$lt_save_LD
20797GCC=$lt_save_GCC
20798with_gnu_ldcxx=$with_gnu_ld
20799with_gnu_ld=$lt_save_with_gnu_ld
20800lt_cv_path_LDCXX=$lt_cv_path_LD
20801lt_cv_path_LD=$lt_save_path_LD
20802lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20803lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20804
20805 else
20806 tagname=""
20807 fi
20808 ;;
20809
20810 F77)
20811 if test -n "$F77" && test "X$F77" != "Xno"; then
20812
20813ac_ext=f
20814ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20815ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20817
20818
20819archive_cmds_need_lc_F77=no
20820allow_undefined_flag_F77=
20821always_export_symbols_F77=no
20822archive_expsym_cmds_F77=
20823export_dynamic_flag_spec_F77=
20824hardcode_direct_F77=no
20825hardcode_libdir_flag_spec_F77=
20826hardcode_libdir_flag_spec_ld_F77=
20827hardcode_libdir_separator_F77=
20828hardcode_minus_L_F77=no
20829hardcode_automatic_F77=no
20830module_cmds_F77=
20831module_expsym_cmds_F77=
20832link_all_deplibs_F77=unknown
20833old_archive_cmds_F77=$old_archive_cmds
20834no_undefined_flag_F77=
20835whole_archive_flag_spec_F77=
20836enable_shared_with_static_runtimes_F77=no
20837
20838# Source file extension for f77 test sources.
20839ac_ext=f
20840
20841# Object file extension for compiled f77 test sources.
20842objext=o
20843objext_F77=$objext
20844
20845# Code to be used in simple compile tests
20846lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20847
20848# Code to be used in simple link tests
20849lt_simple_link_test_code=" program t\n end\n"
20850
20851# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20852
20853# If no C compiler was specified, use CC.
20854LTCC=${LTCC-"$CC"}
20855
Reid Spencera773bd52006-08-04 18:18:08 +000020856# If no C compiler flags were specified, use CFLAGS.
20857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20858
John Criswell47fdd832003-07-14 16:52:07 +000020859# Allow CC to be a program name with arguments.
20860compiler=$CC
20861
20862
Reid Spencera773bd52006-08-04 18:18:08 +000020863# save warnings/boilerplate of simple test code
20864ac_outfile=conftest.$ac_objext
20865printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20866eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20867_lt_compiler_boilerplate=`cat conftest.err`
20868$rm conftest*
20869
20870ac_outfile=conftest.$ac_objext
20871printf "$lt_simple_link_test_code" >conftest.$ac_ext
20872eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20873_lt_linker_boilerplate=`cat conftest.err`
20874$rm conftest*
20875
20876
John Criswell47fdd832003-07-14 16:52:07 +000020877# Allow CC to be a program name with arguments.
20878lt_save_CC="$CC"
20879CC=${F77-"f77"}
20880compiler=$CC
20881compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020882for cc_temp in $compiler""; do
20883 case $cc_temp in
20884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20886 \-*) ;;
20887 *) break;;
20888 esac
20889done
20890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020891
John Criswell47fdd832003-07-14 16:52:07 +000020892
Reid Spencera773bd52006-08-04 18:18:08 +000020893{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20894echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20895{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20896echo "${ECHO_T}$can_build_shared" >&6; }
20897
20898{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20899echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020900test "$can_build_shared" = "no" && enable_shared=no
20901
20902# On AIX, shared libraries and static libraries use the same namespace, and
20903# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020904case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020905aix3*)
20906 test "$enable_shared" = yes && enable_static=no
20907 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020908 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020909 postinstall_cmds='$RANLIB $lib'
20910 fi
20911 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020912aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020913 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20914 test "$enable_shared" = yes && enable_static=no
20915 fi
John Criswell47fdd832003-07-14 16:52:07 +000020916 ;;
20917esac
Reid Spencera773bd52006-08-04 18:18:08 +000020918{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20919echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020920
Reid Spencera773bd52006-08-04 18:18:08 +000020921{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20922echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020923# Make sure either enable_shared or enable_static is yes.
20924test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020925{ echo "$as_me:$LINENO: result: $enable_static" >&5
20926echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020927
20928GCC_F77="$G77"
20929LD_F77="$LD"
20930
20931lt_prog_compiler_wl_F77=
20932lt_prog_compiler_pic_F77=
20933lt_prog_compiler_static_F77=
20934
Reid Spencera773bd52006-08-04 18:18:08 +000020935{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20936echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020937
20938 if test "$GCC" = yes; then
20939 lt_prog_compiler_wl_F77='-Wl,'
20940 lt_prog_compiler_static_F77='-static'
20941
20942 case $host_os in
20943 aix*)
20944 # All AIX code is PIC.
20945 if test "$host_cpu" = ia64; then
20946 # AIX 5 now supports IA64 processor
20947 lt_prog_compiler_static_F77='-Bstatic'
20948 fi
20949 ;;
20950
20951 amigaos*)
20952 # FIXME: we need at least 68020 code to build shared libraries, but
20953 # adding the `-m68020' flag to GCC prevents building anything better,
20954 # like `-m68040'.
20955 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20956 ;;
20957
20958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20959 # PIC is the default for these OSes.
20960 ;;
20961
20962 mingw* | pw32* | os2*)
20963 # This hack is so that the source file can tell whether it is being
20964 # built for inclusion in a dll (and should export symbols for example).
20965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20966 ;;
20967
20968 darwin* | rhapsody*)
20969 # PIC is the default on this platform
20970 # Common symbols not allowed in MH_DYLIB files
20971 lt_prog_compiler_pic_F77='-fno-common'
20972 ;;
20973
Reid Spencera773bd52006-08-04 18:18:08 +000020974 interix3*)
20975 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20976 # Instead, we relocate shared libraries at runtime.
20977 ;;
20978
John Criswell47fdd832003-07-14 16:52:07 +000020979 msdosdjgpp*)
20980 # Just because we use GCC doesn't mean we suddenly get shared libraries
20981 # on systems that don't support them.
20982 lt_prog_compiler_can_build_shared_F77=no
20983 enable_shared=no
20984 ;;
20985
20986 sysv4*MP*)
20987 if test -d /usr/nec; then
20988 lt_prog_compiler_pic_F77=-Kconform_pic
20989 fi
20990 ;;
20991
20992 hpux*)
20993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20994 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020995 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020996 hppa*64*|ia64*)
20997 # +Z the default
20998 ;;
20999 *)
21000 lt_prog_compiler_pic_F77='-fPIC'
21001 ;;
21002 esac
21003 ;;
21004
21005 *)
21006 lt_prog_compiler_pic_F77='-fPIC'
21007 ;;
21008 esac
21009 else
21010 # PORTME Check for flag to pass linker flags through the system compiler.
21011 case $host_os in
21012 aix*)
21013 lt_prog_compiler_wl_F77='-Wl,'
21014 if test "$host_cpu" = ia64; then
21015 # AIX 5 now supports IA64 processor
21016 lt_prog_compiler_static_F77='-Bstatic'
21017 else
21018 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21019 fi
21020 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021021 darwin*)
21022 # PIC is the default on this platform
21023 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021024 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025 xlc*)
21026 lt_prog_compiler_pic_F77='-qnocommon'
21027 lt_prog_compiler_wl_F77='-Wl,'
21028 ;;
21029 esac
21030 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021031
21032 mingw* | pw32* | os2*)
21033 # This hack is so that the source file can tell whether it is being
21034 # built for inclusion in a dll (and should export symbols for example).
21035 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21036 ;;
21037
21038 hpux9* | hpux10* | hpux11*)
21039 lt_prog_compiler_wl_F77='-Wl,'
21040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021042 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021043 hppa*64*|ia64*)
21044 # +Z the default
21045 ;;
21046 *)
21047 lt_prog_compiler_pic_F77='+Z'
21048 ;;
21049 esac
21050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21051 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21052 ;;
21053
21054 irix5* | irix6* | nonstopux*)
21055 lt_prog_compiler_wl_F77='-Wl,'
21056 # PIC (with -KPIC) is the default.
21057 lt_prog_compiler_static_F77='-non_shared'
21058 ;;
21059
21060 newsos6)
21061 lt_prog_compiler_pic_F77='-KPIC'
21062 lt_prog_compiler_static_F77='-Bstatic'
21063 ;;
21064
21065 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021066 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021067 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021068 lt_prog_compiler_wl_F77='-Wl,'
21069 lt_prog_compiler_pic_F77='-KPIC'
21070 lt_prog_compiler_static_F77='-static'
21071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021072 pgcc* | pgf77* | pgf90* | pgf95*)
21073 # Portland Group compilers (*not* the Pentium gcc compiler,
21074 # which looks to be a dead project)
21075 lt_prog_compiler_wl_F77='-Wl,'
21076 lt_prog_compiler_pic_F77='-fpic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21078 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021079 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021080 lt_prog_compiler_wl_F77='-Wl,'
21081 # All Alpha code is PIC.
21082 lt_prog_compiler_static_F77='-non_shared'
21083 ;;
21084 esac
21085 ;;
21086
21087 osf3* | osf4* | osf5*)
21088 lt_prog_compiler_wl_F77='-Wl,'
21089 # All OSF/1 code is PIC.
21090 lt_prog_compiler_static_F77='-non_shared'
21091 ;;
21092
John Criswell47fdd832003-07-14 16:52:07 +000021093 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021094 lt_prog_compiler_pic_F77='-KPIC'
21095 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021096 case $cc_basename in
21097 f77* | f90* | f95*)
21098 lt_prog_compiler_wl_F77='-Qoption ld ';;
21099 *)
21100 lt_prog_compiler_wl_F77='-Wl,';;
21101 esac
John Criswell47fdd832003-07-14 16:52:07 +000021102 ;;
21103
21104 sunos4*)
21105 lt_prog_compiler_wl_F77='-Qoption ld '
21106 lt_prog_compiler_pic_F77='-PIC'
21107 lt_prog_compiler_static_F77='-Bstatic'
21108 ;;
21109
Reid Spencera773bd52006-08-04 18:18:08 +000021110 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021111 lt_prog_compiler_wl_F77='-Wl,'
21112 lt_prog_compiler_pic_F77='-KPIC'
21113 lt_prog_compiler_static_F77='-Bstatic'
21114 ;;
21115
21116 sysv4*MP*)
21117 if test -d /usr/nec ;then
21118 lt_prog_compiler_pic_F77='-Kconform_pic'
21119 lt_prog_compiler_static_F77='-Bstatic'
21120 fi
21121 ;;
21122
Reid Spencera773bd52006-08-04 18:18:08 +000021123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21124 lt_prog_compiler_wl_F77='-Wl,'
21125 lt_prog_compiler_pic_F77='-KPIC'
21126 lt_prog_compiler_static_F77='-Bstatic'
21127 ;;
21128
21129 unicos*)
21130 lt_prog_compiler_wl_F77='-Wl,'
21131 lt_prog_compiler_can_build_shared_F77=no
21132 ;;
21133
John Criswell47fdd832003-07-14 16:52:07 +000021134 uts4*)
21135 lt_prog_compiler_pic_F77='-pic'
21136 lt_prog_compiler_static_F77='-Bstatic'
21137 ;;
21138
21139 *)
21140 lt_prog_compiler_can_build_shared_F77=no
21141 ;;
21142 esac
21143 fi
21144
Reid Spencera773bd52006-08-04 18:18:08 +000021145{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21146echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021147
21148#
21149# Check to make sure the PIC flag actually works.
21150#
21151if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021152
Reid Spencera773bd52006-08-04 18:18:08 +000021153{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21154echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021155if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158 lt_prog_compiler_pic_works_F77=no
21159 ac_outfile=conftest.$ac_objext
21160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21161 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21162 # Insert the option either (1) after the last *FLAGS variable, or
21163 # (2) before a word containing "conftest.", or (3) at the end.
21164 # Note that $ac_compile itself does not contain backslashes and begins
21165 # with a dollar sign (not a hyphen), so the echo should work correctly.
21166 # The option is referenced via a variable to avoid confusing sed.
21167 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21170 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000021171 (eval echo "\"\$as_me:21171: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021172 (eval "$lt_compile" 2>conftest.err)
21173 ac_status=$?
21174 cat conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000021175 echo "$as_me:21175: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021176 if (exit $ac_status) && test -s "$ac_outfile"; then
21177 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021178 # So say no if there are warnings other than the usual output.
21179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021182 lt_prog_compiler_pic_works_F77=yes
21183 fi
21184 fi
21185 $rm conftest*
21186
21187fi
Reid Spencera773bd52006-08-04 18:18:08 +000021188{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21189echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021190
21191if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21192 case $lt_prog_compiler_pic_F77 in
21193 "" | " "*) ;;
21194 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21195 esac
21196else
21197 lt_prog_compiler_pic_F77=
21198 lt_prog_compiler_can_build_shared_F77=no
21199fi
21200
21201fi
Reid Spencera773bd52006-08-04 18:18:08 +000021202case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021203 # For platforms which do not support PIC, -DPIC is meaningless:
21204 *djgpp*)
21205 lt_prog_compiler_pic_F77=
21206 ;;
21207 *)
21208 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21209 ;;
21210esac
21211
Reid Spencera773bd52006-08-04 18:18:08 +000021212#
21213# Check to make sure the static flag actually works.
21214#
21215wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21216{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21217echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21218if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220else
21221 lt_prog_compiler_static_works_F77=no
21222 save_LDFLAGS="$LDFLAGS"
21223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21224 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21226 # The linker can only warn and ignore the option if not recognized
21227 # So say no if there are warnings
21228 if test -s conftest.err; then
21229 # Append any errors to the config.log.
21230 cat conftest.err 1>&5
21231 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21233 if diff conftest.exp conftest.er2 >/dev/null; then
21234 lt_prog_compiler_static_works_F77=yes
21235 fi
21236 else
21237 lt_prog_compiler_static_works_F77=yes
21238 fi
21239 fi
21240 $rm conftest*
21241 LDFLAGS="$save_LDFLAGS"
21242
21243fi
21244{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21245echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21246
21247if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21248 :
21249else
21250 lt_prog_compiler_static_F77=
21251fi
21252
21253
21254{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21255echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021256if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21258else
21259 lt_cv_prog_compiler_c_o_F77=no
21260 $rm -r conftest 2>/dev/null
21261 mkdir conftest
21262 cd conftest
21263 mkdir out
21264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21265
John Criswell47fdd832003-07-14 16:52:07 +000021266 lt_compiler_flag="-o out/conftest2.$ac_objext"
21267 # Insert the option either (1) after the last *FLAGS variable, or
21268 # (2) before a word containing "conftest.", or (3) at the end.
21269 # Note that $ac_compile itself does not contain backslashes and begins
21270 # with a dollar sign (not a hyphen), so the echo should work correctly.
21271 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21274 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000021275 (eval echo "\"\$as_me:21275: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021276 (eval "$lt_compile" 2>out/conftest.err)
21277 ac_status=$?
21278 cat out/conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000021279 echo "$as_me:21279: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21281 then
21282 # The compiler can only warn and ignore the option if not recognized
21283 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021284 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021287 lt_cv_prog_compiler_c_o_F77=yes
21288 fi
21289 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021290 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021291 $rm conftest*
21292 # SGI C++ compiler will create directory out/ii_files/ for
21293 # template instantiation
21294 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21295 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021296 cd ..
21297 rmdir conftest
21298 $rm conftest*
21299
21300fi
Reid Spencera773bd52006-08-04 18:18:08 +000021301{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21302echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021303
21304
21305hard_links="nottested"
21306if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21307 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021308 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21309echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021310 hard_links=yes
21311 $rm conftest*
21312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21313 touch conftest.a
21314 ln conftest.a conftest.b 2>&5 || hard_links=no
21315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021316 { echo "$as_me:$LINENO: result: $hard_links" >&5
21317echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021318 if test "$hard_links" = no; then
21319 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21320echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21321 need_locks=warn
21322 fi
21323else
21324 need_locks=no
21325fi
21326
Reid Spencera773bd52006-08-04 18:18:08 +000021327{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21328echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021329
21330 runpath_var=
21331 allow_undefined_flag_F77=
21332 enable_shared_with_static_runtimes_F77=no
21333 archive_cmds_F77=
21334 archive_expsym_cmds_F77=
21335 old_archive_From_new_cmds_F77=
21336 old_archive_from_expsyms_cmds_F77=
21337 export_dynamic_flag_spec_F77=
21338 whole_archive_flag_spec_F77=
21339 thread_safe_flag_spec_F77=
21340 hardcode_libdir_flag_spec_F77=
21341 hardcode_libdir_flag_spec_ld_F77=
21342 hardcode_libdir_separator_F77=
21343 hardcode_direct_F77=no
21344 hardcode_minus_L_F77=no
21345 hardcode_shlibpath_var_F77=unsupported
21346 link_all_deplibs_F77=unknown
21347 hardcode_automatic_F77=no
21348 module_cmds_F77=
21349 module_expsym_cmds_F77=
21350 always_export_symbols_F77=no
21351 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21352 # include_expsyms should be a list of space-separated symbols to be *always*
21353 # included in the symbol list
21354 include_expsyms_F77=
21355 # exclude_expsyms can be an extended regexp of symbols to exclude
21356 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21357 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21358 # as well as any symbol that contains `d'.
21359 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21360 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21361 # platforms (ab)use it in PIC code, but their linkers get confused if
21362 # the symbol is explicitly referenced. Since portable code cannot
21363 # rely on this symbol name, it's probably fine to never include it in
21364 # preloaded symbol tables.
21365 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021366 # Just being paranoid about ensuring that cc_basename is set.
21367 for cc_temp in $compiler""; do
21368 case $cc_temp in
21369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21371 \-*) ;;
21372 *) break;;
21373 esac
21374done
21375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021376
21377 case $host_os in
21378 cygwin* | mingw* | pw32*)
21379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21380 # When not using gcc, we currently assume that we are using
21381 # Microsoft Visual C++.
21382 if test "$GCC" != yes; then
21383 with_gnu_ld=no
21384 fi
21385 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021386 interix*)
21387 # we just hope/assume this is gcc and not c89 (= MSVC++)
21388 with_gnu_ld=yes
21389 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021390 openbsd*)
21391 with_gnu_ld=no
21392 ;;
21393 esac
21394
21395 ld_shlibs_F77=yes
21396 if test "$with_gnu_ld" = yes; then
21397 # If archive_cmds runs LD, not CC, wlarc should be empty
21398 wlarc='${wl}'
21399
Reid Spencera773bd52006-08-04 18:18:08 +000021400 # Set some defaults for GNU ld with shared library support. These
21401 # are reset later if shared libraries are not supported. Putting them
21402 # here allows them to be overridden if necessary.
21403 runpath_var=LD_RUN_PATH
21404 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21405 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21406 # ancient GNU ld didn't support --whole-archive et. al.
21407 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21408 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21409 else
21410 whole_archive_flag_spec_F77=
21411 fi
21412 supports_anon_versioning=no
21413 case `$LD -v 2>/dev/null` in
21414 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21417 *\ 2.11.*) ;; # other 2.11 versions
21418 *) supports_anon_versioning=yes ;;
21419 esac
21420
John Criswell47fdd832003-07-14 16:52:07 +000021421 # See if GNU ld supports shared libraries.
21422 case $host_os in
21423 aix3* | aix4* | aix5*)
21424 # On AIX/PPC, the GNU linker is very broken
21425 if test "$host_cpu" != ia64; then
21426 ld_shlibs_F77=no
21427 cat <<EOF 1>&2
21428
21429*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21430*** to be unable to reliably create shared libraries on AIX.
21431*** Therefore, libtool is disabling shared libraries support. If you
21432*** really care for shared libraries, you may want to modify your PATH
21433*** so that a non-GNU linker is found, and then restart.
21434
21435EOF
21436 fi
21437 ;;
21438
21439 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021440 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 +000021441 hardcode_libdir_flag_spec_F77='-L$libdir'
21442 hardcode_minus_L_F77=yes
21443
21444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21445 # that the semantics of dynamic libraries on AmigaOS, at least up
21446 # to version 4, is to share data among multiple programs linked
21447 # with the same dynamic library. Since this doesn't match the
21448 # behavior of shared libraries on other platforms, we can't use
21449 # them.
21450 ld_shlibs_F77=no
21451 ;;
21452
21453 beos*)
21454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21455 allow_undefined_flag_F77=unsupported
21456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21457 # support --undefined. This deserves some investigation. FIXME
21458 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21459 else
21460 ld_shlibs_F77=no
21461 fi
21462 ;;
21463
21464 cygwin* | mingw* | pw32*)
21465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21466 # as there is no search path for DLLs.
21467 hardcode_libdir_flag_spec_F77='-L$libdir'
21468 allow_undefined_flag_F77=unsupported
21469 always_export_symbols_F77=no
21470 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021471 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 +000021472
21473 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021474 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 +000021475 # If the export-symbols file already is a .def file (1st line
21476 # is EXPORTS), use it as is; otherwise, prepend...
21477 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21478 cp $export_symbols $output_objdir/$soname.def;
21479 else
21480 echo EXPORTS > $output_objdir/$soname.def;
21481 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021482 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021483 $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 +000021484 else
Reid Spencera773bd52006-08-04 18:18:08 +000021485 ld_shlibs_F77=no
21486 fi
21487 ;;
21488
21489 interix3*)
21490 hardcode_direct_F77=no
21491 hardcode_shlibpath_var_F77=no
21492 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21493 export_dynamic_flag_spec_F77='${wl}-E'
21494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21495 # Instead, shared libraries are loaded at an image base (0x10000000 by
21496 # default) and relocated if they conflict, which is a slow very memory
21497 # consuming and fragmenting process. To avoid this, we pick a random,
21498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21500 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'
21501 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'
21502 ;;
21503
21504 linux*)
21505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506 tmp_addflag=
21507 case $cc_basename,$host_cpu in
21508 pgcc*) # Portland Group C compiler
21509 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'
21510 tmp_addflag=' $pic_flag'
21511 ;;
21512 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21513 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'
21514 tmp_addflag=' $pic_flag -Mnomain' ;;
21515 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21516 tmp_addflag=' -i_dynamic' ;;
21517 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21518 tmp_addflag=' -i_dynamic -nofor_main' ;;
21519 ifc* | ifort*) # Intel Fortran compiler
21520 tmp_addflag=' -nofor_main' ;;
21521 esac
21522 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21523
21524 if test $supports_anon_versioning = yes; then
21525 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21527 $echo "local: *; };" >> $output_objdir/$libname.ver~
21528 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21529 fi
21530 else
21531 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021532 fi
21533 ;;
21534
21535 netbsd*)
21536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21537 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21538 wlarc=
21539 else
21540 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21541 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21542 fi
21543 ;;
21544
Reid Spencera773bd52006-08-04 18:18:08 +000021545 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021546 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21547 ld_shlibs_F77=no
21548 cat <<EOF 1>&2
21549
21550*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21551*** create shared libraries on Solaris systems. Therefore, libtool
21552*** is disabling shared libraries support. We urge you to upgrade GNU
21553*** binutils to release 2.9.1 or newer. Another option is to modify
21554*** your PATH or compiler configuration so that the native linker is
21555*** used, and then restart.
21556
21557EOF
21558 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21560 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21561 else
21562 ld_shlibs_F77=no
21563 fi
21564 ;;
21565
Reid Spencera773bd52006-08-04 18:18:08 +000021566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21567 case `$LD -v 2>&1` in
21568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21569 ld_shlibs_F77=no
21570 cat <<_LT_EOF 1>&2
21571
21572*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21573*** reliably create shared libraries on SCO systems. Therefore, libtool
21574*** is disabling shared libraries support. We urge you to upgrade GNU
21575*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21576*** your PATH or compiler configuration so that the native linker is
21577*** used, and then restart.
21578
21579_LT_EOF
21580 ;;
21581 *)
21582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21583 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21586 else
21587 ld_shlibs_F77=no
21588 fi
21589 ;;
21590 esac
21591 ;;
21592
John Criswell47fdd832003-07-14 16:52:07 +000021593 sunos4*)
21594 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21595 wlarc=
21596 hardcode_direct_F77=yes
21597 hardcode_shlibpath_var_F77=no
21598 ;;
21599
21600 *)
21601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21602 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21603 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21604 else
21605 ld_shlibs_F77=no
21606 fi
21607 ;;
21608 esac
21609
Reid Spencera773bd52006-08-04 18:18:08 +000021610 if test "$ld_shlibs_F77" = no; then
21611 runpath_var=
21612 hardcode_libdir_flag_spec_F77=
21613 export_dynamic_flag_spec_F77=
21614 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021615 fi
21616 else
21617 # PORTME fill in a description of your system's linker (not GNU ld)
21618 case $host_os in
21619 aix3*)
21620 allow_undefined_flag_F77=unsupported
21621 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021622 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 +000021623 # Note: this linker hardcodes the directories in LIBPATH if there
21624 # are no directories specified by -L.
21625 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021627 # Neither direct hardcoding nor static linking is supported with a
21628 # broken collect2.
21629 hardcode_direct_F77=unsupported
21630 fi
21631 ;;
21632
21633 aix4* | aix5*)
21634 if test "$host_cpu" = ia64; then
21635 # On IA64, the linker does run time linking by default, so we don't
21636 # have to do anything special.
21637 aix_use_runtimelinking=no
21638 exp_sym_flag='-Bexport'
21639 no_entry_flag=""
21640 else
21641 # If we're using GNU nm, then we don't want the "-C" option.
21642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21643 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21644 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'
21645 else
21646 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'
21647 fi
21648 aix_use_runtimelinking=no
21649
21650 # Test if we are trying to use run time linking or normal
21651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21652 # need to do runtime linking.
21653 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21654 for ld_flag in $LDFLAGS; do
21655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21656 aix_use_runtimelinking=yes
21657 break
21658 fi
21659 done
Reid Spencera773bd52006-08-04 18:18:08 +000021660 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021661 esac
21662
21663 exp_sym_flag='-bexport'
21664 no_entry_flag='-bnoentry'
21665 fi
21666
21667 # When large executables or shared objects are built, AIX ld can
21668 # have problems creating the table of contents. If linking a library
21669 # or program results in "error TOC overflow" add -mminimal-toc to
21670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21672
21673 archive_cmds_F77=''
21674 hardcode_direct_F77=yes
21675 hardcode_libdir_separator_F77=':'
21676 link_all_deplibs_F77=yes
21677
21678 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021679 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021680 # We only want to do this on AIX 4.2 and lower, the check
21681 # below for broken collect2 doesn't work under 4.3+
21682 collect2name=`${CC} -print-prog-name=collect2`
21683 if test -f "$collect2name" && \
21684 strings "$collect2name" | grep resolve_lib_name >/dev/null
21685 then
21686 # We have reworked collect2
21687 hardcode_direct_F77=yes
21688 else
21689 # We have old collect2
21690 hardcode_direct_F77=unsupported
21691 # It fails to find uninstalled libraries when the uninstalled
21692 # path is not listed in the libpath. Setting hardcode_minus_L
21693 # to unsupported forces relinking
21694 hardcode_minus_L_F77=yes
21695 hardcode_libdir_flag_spec_F77='-L$libdir'
21696 hardcode_libdir_separator_F77=
21697 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021698 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021699 esac
21700 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021701 if test "$aix_use_runtimelinking" = yes; then
21702 shared_flag="$shared_flag "'${wl}-G'
21703 fi
John Criswell47fdd832003-07-14 16:52:07 +000021704 else
21705 # not using gcc
21706 if test "$host_cpu" = ia64; then
21707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21708 # chokes on -Wl,-G. The following line is correct:
21709 shared_flag='-G'
21710 else
Reid Spencera773bd52006-08-04 18:18:08 +000021711 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021712 shared_flag='${wl}-G'
21713 else
21714 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021715 fi
John Criswell47fdd832003-07-14 16:52:07 +000021716 fi
21717 fi
21718
21719 # It seems that -bexpall does not export symbols beginning with
21720 # underscore (_), so it is better to generate a list of symbols to export.
21721 always_export_symbols_F77=yes
21722 if test "$aix_use_runtimelinking" = yes; then
21723 # Warning - without using the other runtime loading flags (-brtl),
21724 # -berok will link without error, but may produce a broken library.
21725 allow_undefined_flag_F77='-berok'
21726 # Determine the default libpath from the value encoded in an empty executable.
21727 cat >conftest.$ac_ext <<_ACEOF
21728 program main
21729
21730 end
21731_ACEOF
21732rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021733if { (ac_try="$ac_link"
21734case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737esac
21738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021746 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21747 { (case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750esac
21751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } &&
21756 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021757 { (case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760esac
21761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766
21767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21768}'`
21769# Check for a 64-bit object if we didn't find anything.
21770if 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; }
21771}'`; fi
21772else
21773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021774sed 's/^/| /' conftest.$ac_ext >&5
21775
Reid Spencera773bd52006-08-04 18:18:08 +000021776
John Criswell47fdd832003-07-14 16:52:07 +000021777fi
Reid Spencera773bd52006-08-04 18:18:08 +000021778
21779rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021780 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21782
21783 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021784 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 +000021785 else
21786 if test "$host_cpu" = ia64; then
21787 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21788 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021789 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 +000021790 else
21791 # Determine the default libpath from the value encoded in an empty executable.
21792 cat >conftest.$ac_ext <<_ACEOF
21793 program main
21794
21795 end
21796_ACEOF
21797rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021798if { (ac_try="$ac_link"
21799case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802esac
21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021805 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021811 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815esac
21816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021822 { (case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825esac
21826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831
21832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21833}'`
21834# Check for a 64-bit object if we didn't find anything.
21835if 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; }
21836}'`; fi
21837else
21838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021839sed 's/^/| /' conftest.$ac_ext >&5
21840
Reid Spencera773bd52006-08-04 18:18:08 +000021841
John Criswell47fdd832003-07-14 16:52:07 +000021842fi
Reid Spencera773bd52006-08-04 18:18:08 +000021843
21844rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021845 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21847
21848 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21849 # Warning - without using the other run time loading flags,
21850 # -berok will link without error, but may produce a broken library.
21851 no_undefined_flag_F77=' ${wl}-bernotok'
21852 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021853 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021854 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021855 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021856 # This is similar to how AIX traditionally builds its shared libraries.
21857 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 +000021858 fi
21859 fi
21860 ;;
21861
21862 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021863 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 +000021864 hardcode_libdir_flag_spec_F77='-L$libdir'
21865 hardcode_minus_L_F77=yes
21866 # see comment about different semantics on the GNU ld section
21867 ld_shlibs_F77=no
21868 ;;
21869
Reid Spencer2706f8c2004-09-19 23:53:36 +000021870 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021871 export_dynamic_flag_spec_F77=-rdynamic
21872 ;;
21873
21874 cygwin* | mingw* | pw32*)
21875 # When not using gcc, we currently assume that we are using
21876 # Microsoft Visual C++.
21877 # hardcode_libdir_flag_spec is actually meaningless, as there is
21878 # no search path for DLLs.
21879 hardcode_libdir_flag_spec_F77=' '
21880 allow_undefined_flag_F77=unsupported
21881 # Tell ltmain to make .lib files, not .a files.
21882 libext=lib
21883 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021884 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021885 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021886 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 +000021887 # The linker will automatically build a .lib file if we build a DLL.
21888 old_archive_From_new_cmds_F77='true'
21889 # FIXME: Should let the user specify the lib program.
21890 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021891 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021892 enable_shared_with_static_runtimes_F77=yes
21893 ;;
21894
21895 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021896 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021897 rhapsody* | darwin1.[012])
21898 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21899 ;;
21900 *) # Darwin 1.3 on
21901 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21902 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21903 else
21904 case ${MACOSX_DEPLOYMENT_TARGET} in
21905 10.[012])
21906 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21907 ;;
21908 10.*)
21909 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21910 ;;
21911 esac
21912 fi
21913 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021914 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021915 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021916 hardcode_direct_F77=no
21917 hardcode_automatic_F77=yes
21918 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021919 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021920 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021921 if test "$GCC" = yes ; then
21922 output_verbose_link_cmd='echo'
21923 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21924 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021925 # 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 +000021926 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}'
21927 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 +000021928 else
Reid Spencera773bd52006-08-04 18:18:08 +000021929 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021930 xlc*)
21931 output_verbose_link_cmd='echo'
21932 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21933 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021934 # 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 +000021935 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}'
21936 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 +000021937 ;;
21938 *)
21939 ld_shlibs_F77=no
21940 ;;
21941 esac
John Criswell47fdd832003-07-14 16:52:07 +000021942 fi
21943 ;;
21944
21945 dgux*)
21946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21947 hardcode_libdir_flag_spec_F77='-L$libdir'
21948 hardcode_shlibpath_var_F77=no
21949 ;;
21950
21951 freebsd1*)
21952 ld_shlibs_F77=no
21953 ;;
21954
21955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21956 # support. Future versions do this automatically, but an explicit c++rt0.o
21957 # does not break anything, and helps significantly (at the cost of a little
21958 # extra space).
21959 freebsd2.2*)
21960 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21961 hardcode_libdir_flag_spec_F77='-R$libdir'
21962 hardcode_direct_F77=yes
21963 hardcode_shlibpath_var_F77=no
21964 ;;
21965
21966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21967 freebsd2*)
21968 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21969 hardcode_direct_F77=yes
21970 hardcode_minus_L_F77=yes
21971 hardcode_shlibpath_var_F77=no
21972 ;;
21973
21974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021975 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021976 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21977 hardcode_libdir_flag_spec_F77='-R$libdir'
21978 hardcode_direct_F77=yes
21979 hardcode_shlibpath_var_F77=no
21980 ;;
21981
21982 hpux9*)
21983 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021984 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 +000021985 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021986 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 +000021987 fi
21988 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21989 hardcode_libdir_separator_F77=:
21990 hardcode_direct_F77=yes
21991
21992 # hardcode_minus_L: Not really in the search PATH,
21993 # but as the default location of the library.
21994 hardcode_minus_L_F77=yes
21995 export_dynamic_flag_spec_F77='${wl}-E'
21996 ;;
21997
Reid Spencera773bd52006-08-04 18:18:08 +000021998 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022000 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22001 else
22002 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22003 fi
22004 if test "$with_gnu_ld" = no; then
22005 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22006 hardcode_libdir_separator_F77=:
22007
22008 hardcode_direct_F77=yes
22009 export_dynamic_flag_spec_F77='${wl}-E'
22010
22011 # hardcode_minus_L: Not really in the search PATH,
22012 # but as the default location of the library.
22013 hardcode_minus_L_F77=yes
22014 fi
22015 ;;
22016
22017 hpux11*)
22018 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22019 case $host_cpu in
22020 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022021 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22022 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022023 ia64*)
22024 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22025 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022026 *)
22027 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22028 ;;
22029 esac
22030 else
Reid Spencera773bd52006-08-04 18:18:08 +000022031 case $host_cpu in
22032 hppa*64*)
22033 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22034 ;;
22035 ia64*)
22036 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022037 ;;
22038 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022039 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 +000022040 ;;
22041 esac
22042 fi
22043 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022044 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22045 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022046
Reid Spencera773bd52006-08-04 18:18:08 +000022047 case $host_cpu in
22048 hppa*64*|ia64*)
22049 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22050 hardcode_direct_F77=no
22051 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022052 ;;
22053 *)
John Criswell47fdd832003-07-14 16:52:07 +000022054 hardcode_direct_F77=yes
22055 export_dynamic_flag_spec_F77='${wl}-E'
22056
22057 # hardcode_minus_L: Not really in the search PATH,
22058 # but as the default location of the library.
22059 hardcode_minus_L_F77=yes
22060 ;;
22061 esac
22062 fi
22063 ;;
22064
22065 irix5* | irix6* | nonstopux*)
22066 if test "$GCC" = yes; then
22067 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'
22068 else
22069 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'
22070 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22071 fi
22072 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22073 hardcode_libdir_separator_F77=:
22074 link_all_deplibs_F77=yes
22075 ;;
22076
22077 netbsd*)
22078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22080 else
22081 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22082 fi
22083 hardcode_libdir_flag_spec_F77='-R$libdir'
22084 hardcode_direct_F77=yes
22085 hardcode_shlibpath_var_F77=no
22086 ;;
22087
22088 newsos6)
22089 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22090 hardcode_direct_F77=yes
22091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22092 hardcode_libdir_separator_F77=:
22093 hardcode_shlibpath_var_F77=no
22094 ;;
22095
22096 openbsd*)
22097 hardcode_direct_F77=yes
22098 hardcode_shlibpath_var_F77=no
22099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22100 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022101 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 +000022102 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22103 export_dynamic_flag_spec_F77='${wl}-E'
22104 else
22105 case $host_os in
22106 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22107 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22108 hardcode_libdir_flag_spec_F77='-R$libdir'
22109 ;;
22110 *)
22111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22112 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22113 ;;
22114 esac
22115 fi
22116 ;;
22117
22118 os2*)
22119 hardcode_libdir_flag_spec_F77='-L$libdir'
22120 hardcode_minus_L_F77=yes
22121 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022122 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 +000022123 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22124 ;;
22125
22126 osf3*)
22127 if test "$GCC" = yes; then
22128 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22129 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'
22130 else
22131 allow_undefined_flag_F77=' -expect_unresolved \*'
22132 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'
22133 fi
22134 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22135 hardcode_libdir_separator_F77=:
22136 ;;
22137
22138 osf4* | osf5*) # as osf3* with the addition of -msym flag
22139 if test "$GCC" = yes; then
22140 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22141 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'
22142 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22143 else
22144 allow_undefined_flag_F77=' -expect_unresolved \*'
22145 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 +000022146 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 +000022147 $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 +000022148
John Criswell47fdd832003-07-14 16:52:07 +000022149 # Both c and cxx compiler support -rpath directly
22150 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22151 fi
22152 hardcode_libdir_separator_F77=:
22153 ;;
22154
John Criswell47fdd832003-07-14 16:52:07 +000022155 solaris*)
22156 no_undefined_flag_F77=' -z text'
22157 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022158 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022159 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022160 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22161 $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 +000022162 else
Reid Spencera773bd52006-08-04 18:18:08 +000022163 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022164 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022165 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22166 $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 +000022167 fi
22168 hardcode_libdir_flag_spec_F77='-R$libdir'
22169 hardcode_shlibpath_var_F77=no
22170 case $host_os in
22171 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022172 *)
22173 # The compiler driver will combine linker options so we
22174 # cannot just pass the convience library names through
22175 # without $wl, iff we do not link with $LD.
22176 # Luckily, gcc supports the same syntax we need for Sun Studio.
22177 # Supported since Solaris 2.6 (maybe 2.5.1?)
22178 case $wlarc in
22179 '')
22180 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22181 *)
22182 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' ;;
22183 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022184 esac
22185 link_all_deplibs_F77=yes
22186 ;;
22187
22188 sunos4*)
22189 if test "x$host_vendor" = xsequent; then
22190 # Use $CC to link under sequent, because it throws in some extra .o
22191 # files that make .init and .fini sections work.
22192 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22193 else
22194 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22195 fi
22196 hardcode_libdir_flag_spec_F77='-L$libdir'
22197 hardcode_direct_F77=yes
22198 hardcode_minus_L_F77=yes
22199 hardcode_shlibpath_var_F77=no
22200 ;;
22201
22202 sysv4)
22203 case $host_vendor in
22204 sni)
22205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77=yes # is this really true???
22207 ;;
22208 siemens)
22209 ## LD is ld it makes a PLAMLIB
22210 ## CC just makes a GrossModule.
22211 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22212 reload_cmds_F77='$CC -r -o $output$reload_objs'
22213 hardcode_direct_F77=no
22214 ;;
22215 motorola)
22216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22217 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22218 ;;
22219 esac
22220 runpath_var='LD_RUN_PATH'
22221 hardcode_shlibpath_var_F77=no
22222 ;;
22223
22224 sysv4.3*)
22225 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_shlibpath_var_F77=no
22227 export_dynamic_flag_spec_F77='-Bexport'
22228 ;;
22229
22230 sysv4*MP*)
22231 if test -d /usr/nec; then
22232 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22233 hardcode_shlibpath_var_F77=no
22234 runpath_var=LD_RUN_PATH
22235 hardcode_runpath_var=yes
22236 ld_shlibs_F77=yes
22237 fi
22238 ;;
22239
Reid Spencera773bd52006-08-04 18:18:08 +000022240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22241 no_undefined_flag_F77='${wl}-z,text'
22242 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022243 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022244 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022245
John Criswell47fdd832003-07-14 16:52:07 +000022246 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022247 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22248 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 +000022249 else
Reid Spencera773bd52006-08-04 18:18:08 +000022250 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22251 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 +000022252 fi
John Criswell47fdd832003-07-14 16:52:07 +000022253 ;;
22254
Reid Spencera773bd52006-08-04 18:18:08 +000022255 sysv5* | sco3.2v5* | sco5v6*)
22256 # Note: We can NOT use -z defs as we might desire, because we do not
22257 # link with -lc, and that would cause any symbols used from libc to
22258 # always be unresolved, which means just about no library would
22259 # ever link correctly. If we're not using GNU ld we use -z text
22260 # though, which does catch some bad symbols but isn't as heavy-handed
22261 # as -z defs.
22262 no_undefined_flag_F77='${wl}-z,text'
22263 allow_undefined_flag_F77='${wl}-z,nodefs'
22264 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022265 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022266 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22267 hardcode_libdir_separator_F77=':'
22268 link_all_deplibs_F77=yes
22269 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022270 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022271
22272 if test "$GCC" = yes; then
22273 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22275 else
22276 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278 fi
John Criswell47fdd832003-07-14 16:52:07 +000022279 ;;
22280
22281 uts4*)
22282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283 hardcode_libdir_flag_spec_F77='-L$libdir'
22284 hardcode_shlibpath_var_F77=no
22285 ;;
22286
22287 *)
22288 ld_shlibs_F77=no
22289 ;;
22290 esac
22291 fi
22292
Reid Spencera773bd52006-08-04 18:18:08 +000022293{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22294echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022295test "$ld_shlibs_F77" = no && can_build_shared=no
22296
John Criswell47fdd832003-07-14 16:52:07 +000022297#
22298# Do we need to explicitly link libc?
22299#
22300case "x$archive_cmds_need_lc_F77" in
22301x|xyes)
22302 # Assume -lc should be added
22303 archive_cmds_need_lc_F77=yes
22304
22305 if test "$enable_shared" = yes && test "$GCC" = yes; then
22306 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022307 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022308 # FIXME: we may have to deal with multi-command sequences.
22309 ;;
22310 '$CC '*)
22311 # Test whether the compiler implicitly links with -lc since on some
22312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22313 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022314 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22315echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022316 $rm conftest*
22317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22318
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } 2>conftest.err; then
22324 soname=conftest
22325 lib=conftest
22326 libobjs=conftest.$ac_objext
22327 deplibs=
22328 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022329 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022330 compiler_flags=-v
22331 linker_flags=-v
22332 verstring=
22333 output_objdir=.
22334 libname=conftest
22335 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22336 allow_undefined_flag_F77=
22337 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22338 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }
22342 then
22343 archive_cmds_need_lc_F77=no
22344 else
22345 archive_cmds_need_lc_F77=yes
22346 fi
22347 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22348 else
22349 cat conftest.err 1>&5
22350 fi
22351 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022352 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22353echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022354 ;;
22355 esac
22356 fi
22357 ;;
22358esac
22359
Reid Spencera773bd52006-08-04 18:18:08 +000022360{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22361echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022362library_names_spec=
22363libname_spec='lib$name'
22364soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022365shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022366postinstall_cmds=
22367postuninstall_cmds=
22368finish_cmds=
22369finish_eval=
22370shlibpath_var=
22371shlibpath_overrides_runpath=unknown
22372version_type=none
22373dynamic_linker="$host_os ld.so"
22374sys_lib_dlsearch_path_spec="/lib /usr/lib"
22375if test "$GCC" = yes; then
22376 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22377 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22378 # if the path contains ";" then we assume it to be the separator
22379 # otherwise default to the standard path separator (i.e. ":") - it is
22380 # assumed that no part of a normal pathname contains ";" but that should
22381 # okay in the real world where ";" in dirpaths is itself problematic.
22382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22383 else
22384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22385 fi
22386else
22387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22388fi
22389need_lib_prefix=unknown
22390hardcode_into_libs=no
22391
22392# when you set need_version to no, make sure it does not cause -set_version
22393# flags to be left without arguments
22394need_version=unknown
22395
22396case $host_os in
22397aix3*)
22398 version_type=linux
22399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22400 shlibpath_var=LIBPATH
22401
22402 # AIX 3 has no versioning support, so we append a major version to the name.
22403 soname_spec='${libname}${release}${shared_ext}$major'
22404 ;;
22405
22406aix4* | aix5*)
22407 version_type=linux
22408 need_lib_prefix=no
22409 need_version=no
22410 hardcode_into_libs=yes
22411 if test "$host_cpu" = ia64; then
22412 # AIX 5 supports IA64
22413 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22414 shlibpath_var=LD_LIBRARY_PATH
22415 else
22416 # With GCC up to 2.95.x, collect2 would create an import file
22417 # for dependence libraries. The import file would start with
22418 # the line `#! .'. This would cause the generated library to
22419 # depend on `.', always an invalid library. This was fixed in
22420 # development snapshots of GCC prior to 3.0.
22421 case $host_os in
22422 aix4 | aix4.[01] | aix4.[01].*)
22423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22424 echo ' yes '
22425 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22426 :
22427 else
22428 can_build_shared=no
22429 fi
22430 ;;
22431 esac
22432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22433 # soname into executable. Probably we can add versioning support to
22434 # collect2, so additional links can be useful in future.
22435 if test "$aix_use_runtimelinking" = yes; then
22436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22437 # instead of lib<name>.a to let people know that these are not
22438 # typical AIX shared libraries.
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440 else
22441 # We preserve .a as extension for shared libraries through AIX4.2
22442 # and later when we are not doing run time linking.
22443 library_names_spec='${libname}${release}.a $libname.a'
22444 soname_spec='${libname}${release}${shared_ext}$major'
22445 fi
22446 shlibpath_var=LIBPATH
22447 fi
22448 ;;
22449
22450amigaos*)
22451 library_names_spec='$libname.ixlibrary $libname.a'
22452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022453 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 +000022454 ;;
22455
22456beos*)
22457 library_names_spec='${libname}${shared_ext}'
22458 dynamic_linker="$host_os ld.so"
22459 shlibpath_var=LIBRARY_PATH
22460 ;;
22461
Reid Spencer2706f8c2004-09-19 23:53:36 +000022462bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022463 version_type=linux
22464 need_version=no
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 soname_spec='${libname}${release}${shared_ext}$major'
22467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22468 shlibpath_var=LD_LIBRARY_PATH
22469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22471 # the default ld.so.conf also contains /usr/contrib/lib and
22472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22473 # libtool to hard-code these into programs
22474 ;;
22475
22476cygwin* | mingw* | pw32*)
22477 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022478 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022479 need_version=no
22480 need_lib_prefix=no
22481
22482 case $GCC,$host_os in
22483 yes,cygwin* | yes,mingw* | yes,pw32*)
22484 library_names_spec='$libname.dll.a'
22485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022486 postinstall_cmds='base_file=`basename \${file}`~
22487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22488 dldir=$destdir/`dirname \$dlpath`~
22489 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022490 $install_prog $dir/$dlname \$dldir/$dlname~
22491 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22493 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022494 $rm \$dlpath'
22495 shlibpath_overrides_runpath=yes
22496
22497 case $host_os in
22498 cygwin*)
22499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22500 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 +000022501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022502 ;;
22503 mingw*)
22504 # MinGW DLLs use traditional 'lib' prefix
22505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22508 # It is most probably a Windows format PATH printed by
22509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22510 # path with ; separators, and with drive letters. We can handle the
22511 # drive letters (cygwin fileutils understands them), so leave them,
22512 # especially as we might pass files found there to a mingw objdump,
22513 # which wouldn't understand a cygwinified path. Ahh.
22514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22515 else
22516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22517 fi
22518 ;;
22519 pw32*)
22520 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022521 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 +000022522 ;;
22523 esac
22524 ;;
22525
22526 *)
22527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22528 ;;
22529 esac
22530 dynamic_linker='Win32 ld.exe'
22531 # FIXME: first we should search . and the directory the executable is in
22532 shlibpath_var=PATH
22533 ;;
22534
22535darwin* | rhapsody*)
22536 dynamic_linker="$host_os dyld"
22537 version_type=darwin
22538 need_lib_prefix=no
22539 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022541 soname_spec='${libname}${release}${major}$shared_ext'
22542 shlibpath_overrides_runpath=yes
22543 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022544 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022545 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022546 if test "$GCC" = yes; then
22547 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"`
22548 else
22549 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022550 fi
22551 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22552 ;;
22553
22554dgux*)
22555 version_type=linux
22556 need_lib_prefix=no
22557 need_version=no
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22559 soname_spec='${libname}${release}${shared_ext}$major'
22560 shlibpath_var=LD_LIBRARY_PATH
22561 ;;
22562
22563freebsd1*)
22564 dynamic_linker=no
22565 ;;
22566
Reid Spencer2706f8c2004-09-19 23:53:36 +000022567kfreebsd*-gnu)
22568 version_type=linux
22569 need_lib_prefix=no
22570 need_version=no
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 shlibpath_var=LD_LIBRARY_PATH
22574 shlibpath_overrides_runpath=no
22575 hardcode_into_libs=yes
22576 dynamic_linker='GNU ld.so'
22577 ;;
22578
Reid Spencera773bd52006-08-04 18:18:08 +000022579freebsd* | dragonfly*)
22580 # DragonFly does not have aout. When/if they implement a new
22581 # versioning mechanism, adjust this.
22582 if test -x /usr/bin/objformat; then
22583 objformat=`/usr/bin/objformat`
22584 else
22585 case $host_os in
22586 freebsd[123]*) objformat=aout ;;
22587 *) objformat=elf ;;
22588 esac
22589 fi
John Criswell47fdd832003-07-14 16:52:07 +000022590 version_type=freebsd-$objformat
22591 case $version_type in
22592 freebsd-elf*)
22593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22594 need_version=no
22595 need_lib_prefix=no
22596 ;;
22597 freebsd-*)
22598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22599 need_version=yes
22600 ;;
22601 esac
22602 shlibpath_var=LD_LIBRARY_PATH
22603 case $host_os in
22604 freebsd2*)
22605 shlibpath_overrides_runpath=yes
22606 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022607 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022608 shlibpath_overrides_runpath=yes
22609 hardcode_into_libs=yes
22610 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022613 shlibpath_overrides_runpath=no
22614 hardcode_into_libs=yes
22615 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022616 freebsd*) # from 4.6 on
22617 shlibpath_overrides_runpath=yes
22618 hardcode_into_libs=yes
22619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022620 esac
22621 ;;
22622
22623gnu*)
22624 version_type=linux
22625 need_lib_prefix=no
22626 need_version=no
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 hardcode_into_libs=yes
22631 ;;
22632
22633hpux9* | hpux10* | hpux11*)
22634 # Give a soname corresponding to the major version so that dld.sl refuses to
22635 # link against other versions.
22636 version_type=sunos
22637 need_lib_prefix=no
22638 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022639 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022640 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022641 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022642 hardcode_into_libs=yes
22643 dynamic_linker="$host_os dld.so"
22644 shlibpath_var=LD_LIBRARY_PATH
22645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 if test "X$HPUX_IA64_MODE" = X32; then
22649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22650 else
22651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22652 fi
22653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22654 ;;
22655 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022656 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022657 hardcode_into_libs=yes
22658 dynamic_linker="$host_os dld.sl"
22659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22665 ;;
22666 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022667 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022668 dynamic_linker="$host_os dld.sl"
22669 shlibpath_var=SHLIB_PATH
22670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 soname_spec='${libname}${release}${shared_ext}$major'
22673 ;;
22674 esac
22675 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22676 postinstall_cmds='chmod 555 $lib'
22677 ;;
22678
Reid Spencera773bd52006-08-04 18:18:08 +000022679interix3*)
22680 version_type=linux
22681 need_lib_prefix=no
22682 need_version=no
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22684 soname_spec='${libname}${release}${shared_ext}$major'
22685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22686 shlibpath_var=LD_LIBRARY_PATH
22687 shlibpath_overrides_runpath=no
22688 hardcode_into_libs=yes
22689 ;;
22690
John Criswell47fdd832003-07-14 16:52:07 +000022691irix5* | irix6* | nonstopux*)
22692 case $host_os in
22693 nonstopux*) version_type=nonstopux ;;
22694 *)
22695 if test "$lt_cv_prog_gnu_ld" = yes; then
22696 version_type=linux
22697 else
22698 version_type=irix
22699 fi ;;
22700 esac
22701 need_lib_prefix=no
22702 need_version=no
22703 soname_spec='${libname}${release}${shared_ext}$major'
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22705 case $host_os in
22706 irix5* | nonstopux*)
22707 libsuff= shlibsuff=
22708 ;;
22709 *)
22710 case $LD in # libtool.m4 will add one of these switches to LD
22711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22712 libsuff= shlibsuff= libmagic=32-bit;;
22713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22714 libsuff=32 shlibsuff=N32 libmagic=N32;;
22715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22716 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22717 *) libsuff= shlibsuff= libmagic=never-match;;
22718 esac
22719 ;;
22720 esac
22721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22722 shlibpath_overrides_runpath=no
22723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22725 hardcode_into_libs=yes
22726 ;;
22727
22728# No shared lib support for Linux oldld, aout, or coff.
22729linux*oldld* | linux*aout* | linux*coff*)
22730 dynamic_linker=no
22731 ;;
22732
22733# This must be Linux ELF.
22734linux*)
22735 version_type=linux
22736 need_lib_prefix=no
22737 need_version=no
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 soname_spec='${libname}${release}${shared_ext}$major'
22740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22741 shlibpath_var=LD_LIBRARY_PATH
22742 shlibpath_overrides_runpath=no
22743 # This implies no fast_install, which is unacceptable.
22744 # Some rework will be needed to allow for fast_install
22745 # before this can be enabled.
22746 hardcode_into_libs=yes
22747
Reid Spencer2706f8c2004-09-19 23:53:36 +000022748 # Append ld.so.conf contents to the search path
22749 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022750 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 +000022751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22752 fi
22753
John Criswell47fdd832003-07-14 16:52:07 +000022754 # We used to test for /lib/ld.so.1 and disable shared libraries on
22755 # powerpc, because MkLinux only supported shared libraries with the
22756 # GNU dynamic linker. Since this was broken with cross compilers,
22757 # most powerpc-linux boxes support dynamic linking these days and
22758 # people can always --disable-shared, the test was removed, and we
22759 # assume the GNU/Linux dynamic linker is in use.
22760 dynamic_linker='GNU/Linux ld.so'
22761 ;;
22762
Reid Spencer2706f8c2004-09-19 23:53:36 +000022763knetbsd*-gnu)
22764 version_type=linux
22765 need_lib_prefix=no
22766 need_version=no
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22768 soname_spec='${libname}${release}${shared_ext}$major'
22769 shlibpath_var=LD_LIBRARY_PATH
22770 shlibpath_overrides_runpath=no
22771 hardcode_into_libs=yes
22772 dynamic_linker='GNU ld.so'
22773 ;;
22774
John Criswell47fdd832003-07-14 16:52:07 +000022775netbsd*)
22776 version_type=sunos
22777 need_lib_prefix=no
22778 need_version=no
22779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22782 dynamic_linker='NetBSD (a.out) ld.so'
22783 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022785 soname_spec='${libname}${release}${shared_ext}$major'
22786 dynamic_linker='NetBSD ld.elf_so'
22787 fi
22788 shlibpath_var=LD_LIBRARY_PATH
22789 shlibpath_overrides_runpath=yes
22790 hardcode_into_libs=yes
22791 ;;
22792
22793newsos6)
22794 version_type=linux
22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=yes
22798 ;;
22799
Reid Spencer2706f8c2004-09-19 23:53:36 +000022800nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022801 version_type=linux
22802 need_lib_prefix=no
22803 need_version=no
22804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805 soname_spec='${libname}${release}${shared_ext}$major'
22806 shlibpath_var=LD_LIBRARY_PATH
22807 shlibpath_overrides_runpath=yes
22808 ;;
22809
22810openbsd*)
22811 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022812 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022813 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22815 case $host_os in
22816 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22817 *) need_version=no ;;
22818 esac
John Criswell47fdd832003-07-14 16:52:07 +000022819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22821 shlibpath_var=LD_LIBRARY_PATH
22822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22823 case $host_os in
22824 openbsd2.[89] | openbsd2.[89].*)
22825 shlibpath_overrides_runpath=no
22826 ;;
22827 *)
22828 shlibpath_overrides_runpath=yes
22829 ;;
22830 esac
22831 else
22832 shlibpath_overrides_runpath=yes
22833 fi
22834 ;;
22835
22836os2*)
22837 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022838 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022839 need_lib_prefix=no
22840 library_names_spec='$libname${shared_ext} $libname.a'
22841 dynamic_linker='OS/2 ld.exe'
22842 shlibpath_var=LIBPATH
22843 ;;
22844
22845osf3* | osf4* | osf5*)
22846 version_type=osf
22847 need_lib_prefix=no
22848 need_version=no
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22854 ;;
22855
John Criswell47fdd832003-07-14 16:52:07 +000022856solaris*)
22857 version_type=linux
22858 need_lib_prefix=no
22859 need_version=no
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=yes
22864 hardcode_into_libs=yes
22865 # ldd complains unless libraries are executable
22866 postinstall_cmds='chmod +x $lib'
22867 ;;
22868
22869sunos4*)
22870 version_type=sunos
22871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22873 shlibpath_var=LD_LIBRARY_PATH
22874 shlibpath_overrides_runpath=yes
22875 if test "$with_gnu_ld" = yes; then
22876 need_lib_prefix=no
22877 fi
22878 need_version=yes
22879 ;;
22880
Reid Spencera773bd52006-08-04 18:18:08 +000022881sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022882 version_type=linux
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884 soname_spec='${libname}${release}${shared_ext}$major'
22885 shlibpath_var=LD_LIBRARY_PATH
22886 case $host_vendor in
22887 sni)
22888 shlibpath_overrides_runpath=no
22889 need_lib_prefix=no
22890 export_dynamic_flag_spec='${wl}-Blargedynsym'
22891 runpath_var=LD_RUN_PATH
22892 ;;
22893 siemens)
22894 need_lib_prefix=no
22895 ;;
22896 motorola)
22897 need_lib_prefix=no
22898 need_version=no
22899 shlibpath_overrides_runpath=no
22900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22901 ;;
22902 esac
22903 ;;
22904
22905sysv4*MP*)
22906 if test -d /usr/nec ;then
22907 version_type=linux
22908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22909 soname_spec='$libname${shared_ext}.$major'
22910 shlibpath_var=LD_LIBRARY_PATH
22911 fi
22912 ;;
22913
Reid Spencera773bd52006-08-04 18:18:08 +000022914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22915 version_type=freebsd-elf
22916 need_lib_prefix=no
22917 need_version=no
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 hardcode_into_libs=yes
22922 if test "$with_gnu_ld" = yes; then
22923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22924 shlibpath_overrides_runpath=no
22925 else
22926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22927 shlibpath_overrides_runpath=yes
22928 case $host_os in
22929 sco3.2v5*)
22930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22931 ;;
22932 esac
22933 fi
22934 sys_lib_dlsearch_path_spec='/usr/lib'
22935 ;;
22936
John Criswell47fdd832003-07-14 16:52:07 +000022937uts4*)
22938 version_type=linux
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 shlibpath_var=LD_LIBRARY_PATH
22942 ;;
22943
22944*)
22945 dynamic_linker=no
22946 ;;
22947esac
Reid Spencera773bd52006-08-04 18:18:08 +000022948{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22949echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022950test "$dynamic_linker" = no && can_build_shared=no
22951
Reid Spencera773bd52006-08-04 18:18:08 +000022952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22953if test "$GCC" = yes; then
22954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22955fi
22956
22957{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22958echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022959hardcode_action_F77=
22960if test -n "$hardcode_libdir_flag_spec_F77" || \
22961 test -n "$runpath_var_F77" || \
22962 test "X$hardcode_automatic_F77" = "Xyes" ; then
22963
22964 # We can hardcode non-existant directories.
22965 if test "$hardcode_direct_F77" != no &&
22966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22967 # have to relink, otherwise we might link with an installed library
22968 # when we should be linking with a yet-to-be-installed one
22969 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22970 test "$hardcode_minus_L_F77" != no; then
22971 # Linking always hardcodes the temporary library directory.
22972 hardcode_action_F77=relink
22973 else
22974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22975 hardcode_action_F77=immediate
22976 fi
22977else
22978 # We cannot hardcode anything, or else we can only hardcode existing
22979 # directories.
22980 hardcode_action_F77=unsupported
22981fi
Reid Spencera773bd52006-08-04 18:18:08 +000022982{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22983echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022984
22985if test "$hardcode_action_F77" = relink; then
22986 # Fast installation is not supported
22987 enable_fast_install=no
22988elif test "$shlibpath_overrides_runpath" = yes ||
22989 test "$enable_shared" = no; then
22990 # Fast installation is not necessary
22991 enable_fast_install=needless
22992fi
22993
John Criswell47fdd832003-07-14 16:52:07 +000022994
22995# The else clause should only fire when bootstrapping the
22996# libtool distribution, otherwise you forgot to ship ltmain.sh
22997# with your package, and you will get complaints that there are
22998# no rules to generate ltmain.sh.
22999if test -f "$ltmain"; then
23000 # See if we are running on zsh, and set the options which allow our commands through
23001 # without removal of \ escapes.
23002 if test -n "${ZSH_VERSION+set}" ; then
23003 setopt NO_GLOB_SUBST
23004 fi
23005 # Now quote all the things that may contain metacharacters while being
23006 # careful not to overquote the AC_SUBSTed values. We take copies of the
23007 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023008 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 +000023009 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23012 deplibs_check_method reload_flag reload_cmds need_locks \
23013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23014 lt_cv_sys_global_symbol_to_c_name_address \
23015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23016 old_postinstall_cmds old_postuninstall_cmds \
23017 compiler_F77 \
23018 CC_F77 \
23019 LD_F77 \
23020 lt_prog_compiler_wl_F77 \
23021 lt_prog_compiler_pic_F77 \
23022 lt_prog_compiler_static_F77 \
23023 lt_prog_compiler_no_builtin_flag_F77 \
23024 export_dynamic_flag_spec_F77 \
23025 thread_safe_flag_spec_F77 \
23026 whole_archive_flag_spec_F77 \
23027 enable_shared_with_static_runtimes_F77 \
23028 old_archive_cmds_F77 \
23029 old_archive_from_new_cmds_F77 \
23030 predep_objects_F77 \
23031 postdep_objects_F77 \
23032 predeps_F77 \
23033 postdeps_F77 \
23034 compiler_lib_search_path_F77 \
23035 archive_cmds_F77 \
23036 archive_expsym_cmds_F77 \
23037 postinstall_cmds_F77 \
23038 postuninstall_cmds_F77 \
23039 old_archive_from_expsyms_cmds_F77 \
23040 allow_undefined_flag_F77 \
23041 no_undefined_flag_F77 \
23042 export_symbols_cmds_F77 \
23043 hardcode_libdir_flag_spec_F77 \
23044 hardcode_libdir_flag_spec_ld_F77 \
23045 hardcode_libdir_separator_F77 \
23046 hardcode_automatic_F77 \
23047 module_cmds_F77 \
23048 module_expsym_cmds_F77 \
23049 lt_cv_prog_compiler_c_o_F77 \
23050 exclude_expsyms_F77 \
23051 include_expsyms_F77; do
23052
23053 case $var in
23054 old_archive_cmds_F77 | \
23055 old_archive_from_new_cmds_F77 | \
23056 archive_cmds_F77 | \
23057 archive_expsym_cmds_F77 | \
23058 module_cmds_F77 | \
23059 module_expsym_cmds_F77 | \
23060 old_archive_from_expsyms_cmds_F77 | \
23061 export_symbols_cmds_F77 | \
23062 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23063 postinstall_cmds | postuninstall_cmds | \
23064 old_postinstall_cmds | old_postuninstall_cmds | \
23065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23066 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067 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 +000023068 ;;
23069 *)
23070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23071 ;;
23072 esac
23073 done
23074
23075 case $lt_echo in
23076 *'\$0 --fallback-echo"')
23077 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23078 ;;
23079 esac
23080
23081cfgfile="$ofile"
23082
23083 cat <<__EOF__ >> "$cfgfile"
23084# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23085
23086# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23087
23088# Shell to use when invoking shell scripts.
23089SHELL=$lt_SHELL
23090
23091# Whether or not to build shared libraries.
23092build_libtool_libs=$enable_shared
23093
23094# Whether or not to build static libraries.
23095build_old_libs=$enable_static
23096
23097# Whether or not to add -lc for building shared libraries.
23098build_libtool_need_lc=$archive_cmds_need_lc_F77
23099
23100# Whether or not to disallow shared libs when runtime libs are static
23101allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23102
23103# Whether or not to optimize for fast installation.
23104fast_install=$enable_fast_install
23105
23106# The host system.
23107host_alias=$host_alias
23108host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023109host_os=$host_os
23110
23111# The build system.
23112build_alias=$build_alias
23113build=$build
23114build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023115
23116# An echo program that does not interpret backslashes.
23117echo=$lt_echo
23118
23119# The archiver.
23120AR=$lt_AR
23121AR_FLAGS=$lt_AR_FLAGS
23122
23123# A C compiler.
23124LTCC=$lt_LTCC
23125
Reid Spencera773bd52006-08-04 18:18:08 +000023126# LTCC compiler flags.
23127LTCFLAGS=$lt_LTCFLAGS
23128
John Criswell47fdd832003-07-14 16:52:07 +000023129# A language-specific compiler.
23130CC=$lt_compiler_F77
23131
23132# Is the compiler the GNU C compiler?
23133with_gcc=$GCC_F77
23134
23135# An ERE matcher.
23136EGREP=$lt_EGREP
23137
23138# The linker used to build libraries.
23139LD=$lt_LD_F77
23140
23141# Whether we need hard or soft links.
23142LN_S=$lt_LN_S
23143
23144# A BSD-compatible nm program.
23145NM=$lt_NM
23146
23147# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023148STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023149
23150# Used to examine libraries when file_magic_cmd begins "file"
23151MAGIC_CMD=$MAGIC_CMD
23152
23153# Used on cygwin: DLL creation program.
23154DLLTOOL="$DLLTOOL"
23155
23156# Used on cygwin: object dumper.
23157OBJDUMP="$OBJDUMP"
23158
23159# Used on cygwin: assembler.
23160AS="$AS"
23161
23162# The name of the directory that contains temporary libtool files.
23163objdir=$objdir
23164
23165# How to create reloadable object files.
23166reload_flag=$lt_reload_flag
23167reload_cmds=$lt_reload_cmds
23168
23169# How to pass a linker flag through the compiler.
23170wl=$lt_lt_prog_compiler_wl_F77
23171
23172# Object file suffix (normally "o").
23173objext="$ac_objext"
23174
23175# Old archive suffix (normally "a").
23176libext="$libext"
23177
23178# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023179shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023180
23181# Executable file suffix (normally "").
23182exeext="$exeext"
23183
23184# Additional compiler flags for building library objects.
23185pic_flag=$lt_lt_prog_compiler_pic_F77
23186pic_mode=$pic_mode
23187
23188# What is the maximum length of a command?
23189max_cmd_len=$lt_cv_sys_max_cmd_len
23190
23191# Does compiler simultaneously support -c and -o options?
23192compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23193
Reid Spencera773bd52006-08-04 18:18:08 +000023194# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023195need_locks=$lt_need_locks
23196
23197# Do we need the lib prefix for modules?
23198need_lib_prefix=$need_lib_prefix
23199
23200# Do we need a version for libraries?
23201need_version=$need_version
23202
23203# Whether dlopen is supported.
23204dlopen_support=$enable_dlopen
23205
23206# Whether dlopen of programs is supported.
23207dlopen_self=$enable_dlopen_self
23208
23209# Whether dlopen of statically linked programs is supported.
23210dlopen_self_static=$enable_dlopen_self_static
23211
23212# Compiler flag to prevent dynamic linking.
23213link_static_flag=$lt_lt_prog_compiler_static_F77
23214
23215# Compiler flag to turn off builtin functions.
23216no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23217
23218# Compiler flag to allow reflexive dlopens.
23219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23220
23221# Compiler flag to generate shared objects directly from archives.
23222whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23223
23224# Compiler flag to generate thread-safe objects.
23225thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23226
23227# Library versioning type.
23228version_type=$version_type
23229
23230# Format of library name prefix.
23231libname_spec=$lt_libname_spec
23232
23233# List of archive names. First name is the real one, the rest are links.
23234# The last name is the one that the linker finds with -lNAME.
23235library_names_spec=$lt_library_names_spec
23236
23237# The coded name of the library, if different from the real name.
23238soname_spec=$lt_soname_spec
23239
23240# Commands used to build and install an old-style archive.
23241RANLIB=$lt_RANLIB
23242old_archive_cmds=$lt_old_archive_cmds_F77
23243old_postinstall_cmds=$lt_old_postinstall_cmds
23244old_postuninstall_cmds=$lt_old_postuninstall_cmds
23245
23246# Create an old-style archive from a shared archive.
23247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23248
23249# Create a temporary old-style archive to link instead of a shared archive.
23250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23251
23252# Commands used to build and install a shared archive.
23253archive_cmds=$lt_archive_cmds_F77
23254archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23255postinstall_cmds=$lt_postinstall_cmds
23256postuninstall_cmds=$lt_postuninstall_cmds
23257
23258# Commands used to build a loadable module (assumed same as above if empty)
23259module_cmds=$lt_module_cmds_F77
23260module_expsym_cmds=$lt_module_expsym_cmds_F77
23261
23262# Commands to strip libraries.
23263old_striplib=$lt_old_striplib
23264striplib=$lt_striplib
23265
23266# Dependencies to place before the objects being linked to create a
23267# shared library.
23268predep_objects=$lt_predep_objects_F77
23269
23270# Dependencies to place after the objects being linked to create a
23271# shared library.
23272postdep_objects=$lt_postdep_objects_F77
23273
23274# Dependencies to place before the objects being linked to create a
23275# shared library.
23276predeps=$lt_predeps_F77
23277
23278# Dependencies to place after the objects being linked to create a
23279# shared library.
23280postdeps=$lt_postdeps_F77
23281
23282# The library search path used internally by the compiler when linking
23283# a shared library.
23284compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23285
23286# Method to check whether dependent libraries are shared objects.
23287deplibs_check_method=$lt_deplibs_check_method
23288
23289# Command to use when deplibs_check_method == file_magic.
23290file_magic_cmd=$lt_file_magic_cmd
23291
23292# Flag that allows shared libraries with undefined symbols to be built.
23293allow_undefined_flag=$lt_allow_undefined_flag_F77
23294
23295# Flag that forces no undefined symbols.
23296no_undefined_flag=$lt_no_undefined_flag_F77
23297
23298# Commands used to finish a libtool library installation in a directory.
23299finish_cmds=$lt_finish_cmds
23300
23301# Same as above, but a single script fragment to be evaled but not shown.
23302finish_eval=$lt_finish_eval
23303
23304# Take the output of nm and produce a listing of raw symbols and C names.
23305global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23306
23307# Transform the output of nm in a proper C declaration
23308global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23309
23310# Transform the output of nm in a C name address pair
23311global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23312
23313# This is the shared library runtime path variable.
23314runpath_var=$runpath_var
23315
23316# This is the shared library path variable.
23317shlibpath_var=$shlibpath_var
23318
23319# Is shlibpath searched before the hard-coded library search path?
23320shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23321
23322# How to hardcode a shared library path into an executable.
23323hardcode_action=$hardcode_action_F77
23324
23325# Whether we should hardcode library paths into libraries.
23326hardcode_into_libs=$hardcode_into_libs
23327
23328# Flag to hardcode \$libdir into a binary during linking.
23329# This must work even if \$libdir does not exist.
23330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23331
23332# If ld is used when linking, flag to hardcode \$libdir into
23333# a binary during linking. This must work even if \$libdir does
23334# not exist.
23335hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23336
23337# Whether we need a single -rpath flag with a separated argument.
23338hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23339
23340# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23341# resulting binary.
23342hardcode_direct=$hardcode_direct_F77
23343
23344# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23345# resulting binary.
23346hardcode_minus_L=$hardcode_minus_L_F77
23347
23348# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23349# the resulting binary.
23350hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23351
23352# Set to yes if building a shared library automatically hardcodes DIR into the library
23353# and all subsequent libraries and executables linked against it.
23354hardcode_automatic=$hardcode_automatic_F77
23355
23356# Variables whose values should be saved in libtool wrapper scripts and
23357# restored at relink time.
23358variables_saved_for_relink="$variables_saved_for_relink"
23359
23360# Whether libtool must link a program against all its dependency libraries.
23361link_all_deplibs=$link_all_deplibs_F77
23362
23363# Compile-time system search path for libraries
23364sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23365
23366# Run-time system search path for libraries
23367sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23368
23369# Fix the shell variable \$srcfile for the compiler.
23370fix_srcfile_path="$fix_srcfile_path_F77"
23371
23372# Set to yes if exported symbols are required.
23373always_export_symbols=$always_export_symbols_F77
23374
23375# The commands to list exported symbols.
23376export_symbols_cmds=$lt_export_symbols_cmds_F77
23377
23378# The commands to extract the exported symbol list from a shared archive.
23379extract_expsyms_cmds=$lt_extract_expsyms_cmds
23380
23381# Symbols that should not be listed in the preloaded symbols.
23382exclude_expsyms=$lt_exclude_expsyms_F77
23383
23384# Symbols that must always be exported.
23385include_expsyms=$lt_include_expsyms_F77
23386
23387# ### END LIBTOOL TAG CONFIG: $tagname
23388
23389__EOF__
23390
23391
23392else
23393 # If there is no Makefile yet, we rely on a make rule to execute
23394 # `config.status --recheck' to rerun these tests and create the
23395 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023396 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23397 if test -f "$ltmain_in"; then
23398 test -f Makefile && make "$ltmain"
23399 fi
John Criswell47fdd832003-07-14 16:52:07 +000023400fi
23401
23402
23403ac_ext=c
23404ac_cpp='$CPP $CPPFLAGS'
23405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407ac_compiler_gnu=$ac_cv_c_compiler_gnu
23408
23409CC="$lt_save_CC"
23410
23411 else
23412 tagname=""
23413 fi
23414 ;;
23415
23416 GCJ)
23417 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023418 ac_ext=c
23419ac_cpp='$CPP $CPPFLAGS'
23420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023423
23424
23425# Source file extension for Java test sources.
23426ac_ext=java
23427
23428# Object file extension for compiled Java test sources.
23429objext=o
23430objext_GCJ=$objext
23431
23432# Code to be used in simple compile tests
23433lt_simple_compile_test_code="class foo {}\n"
23434
23435# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023436lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023437
23438# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23439
23440# If no C compiler was specified, use CC.
23441LTCC=${LTCC-"$CC"}
23442
Reid Spencera773bd52006-08-04 18:18:08 +000023443# If no C compiler flags were specified, use CFLAGS.
23444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23445
John Criswell47fdd832003-07-14 16:52:07 +000023446# Allow CC to be a program name with arguments.
23447compiler=$CC
23448
23449
Reid Spencera773bd52006-08-04 18:18:08 +000023450# save warnings/boilerplate of simple test code
23451ac_outfile=conftest.$ac_objext
23452printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23453eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23454_lt_compiler_boilerplate=`cat conftest.err`
23455$rm conftest*
23456
23457ac_outfile=conftest.$ac_objext
23458printf "$lt_simple_link_test_code" >conftest.$ac_ext
23459eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23460_lt_linker_boilerplate=`cat conftest.err`
23461$rm conftest*
23462
23463
John Criswell47fdd832003-07-14 16:52:07 +000023464# Allow CC to be a program name with arguments.
23465lt_save_CC="$CC"
23466CC=${GCJ-"gcj"}
23467compiler=$CC
23468compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023469for cc_temp in $compiler""; do
23470 case $cc_temp in
23471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23473 \-*) ;;
23474 *) break;;
23475 esac
23476done
23477cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23478
John Criswell47fdd832003-07-14 16:52:07 +000023479
23480# GCJ did not exist at the time GCC didn't implicitly link libc in.
23481archive_cmds_need_lc_GCJ=no
23482
Reid Spencera773bd52006-08-04 18:18:08 +000023483old_archive_cmds_GCJ=$old_archive_cmds
23484
John Criswell47fdd832003-07-14 16:52:07 +000023485
23486lt_prog_compiler_no_builtin_flag_GCJ=
23487
23488if test "$GCC" = yes; then
23489 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23490
Reid Spencer2706f8c2004-09-19 23:53:36 +000023491
Reid Spencera773bd52006-08-04 18:18:08 +000023492{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23493echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023494if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23496else
23497 lt_cv_prog_compiler_rtti_exceptions=no
23498 ac_outfile=conftest.$ac_objext
23499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23500 lt_compiler_flag="-fno-rtti -fno-exceptions"
23501 # Insert the option either (1) after the last *FLAGS variable, or
23502 # (2) before a word containing "conftest.", or (3) at the end.
23503 # Note that $ac_compile itself does not contain backslashes and begins
23504 # with a dollar sign (not a hyphen), so the echo should work correctly.
23505 # The option is referenced via a variable to avoid confusing sed.
23506 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23509 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000023510 (eval echo "\"\$as_me:23510: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023511 (eval "$lt_compile" 2>conftest.err)
23512 ac_status=$?
23513 cat conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000023514 echo "$as_me:23514: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023515 if (exit $ac_status) && test -s "$ac_outfile"; then
23516 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023517 # So say no if there are warnings other than the usual output.
23518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023521 lt_cv_prog_compiler_rtti_exceptions=yes
23522 fi
23523 fi
23524 $rm conftest*
23525
23526fi
Reid Spencera773bd52006-08-04 18:18:08 +000023527{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23528echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023529
23530if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23531 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23532else
23533 :
23534fi
23535
23536fi
23537
23538lt_prog_compiler_wl_GCJ=
23539lt_prog_compiler_pic_GCJ=
23540lt_prog_compiler_static_GCJ=
23541
Reid Spencera773bd52006-08-04 18:18:08 +000023542{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23543echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023544
23545 if test "$GCC" = yes; then
23546 lt_prog_compiler_wl_GCJ='-Wl,'
23547 lt_prog_compiler_static_GCJ='-static'
23548
23549 case $host_os in
23550 aix*)
23551 # All AIX code is PIC.
23552 if test "$host_cpu" = ia64; then
23553 # AIX 5 now supports IA64 processor
23554 lt_prog_compiler_static_GCJ='-Bstatic'
23555 fi
23556 ;;
23557
23558 amigaos*)
23559 # FIXME: we need at least 68020 code to build shared libraries, but
23560 # adding the `-m68020' flag to GCC prevents building anything better,
23561 # like `-m68040'.
23562 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23563 ;;
23564
23565 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23566 # PIC is the default for these OSes.
23567 ;;
23568
23569 mingw* | pw32* | os2*)
23570 # This hack is so that the source file can tell whether it is being
23571 # built for inclusion in a dll (and should export symbols for example).
23572 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23573 ;;
23574
23575 darwin* | rhapsody*)
23576 # PIC is the default on this platform
23577 # Common symbols not allowed in MH_DYLIB files
23578 lt_prog_compiler_pic_GCJ='-fno-common'
23579 ;;
23580
Reid Spencera773bd52006-08-04 18:18:08 +000023581 interix3*)
23582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23583 # Instead, we relocate shared libraries at runtime.
23584 ;;
23585
John Criswell47fdd832003-07-14 16:52:07 +000023586 msdosdjgpp*)
23587 # Just because we use GCC doesn't mean we suddenly get shared libraries
23588 # on systems that don't support them.
23589 lt_prog_compiler_can_build_shared_GCJ=no
23590 enable_shared=no
23591 ;;
23592
23593 sysv4*MP*)
23594 if test -d /usr/nec; then
23595 lt_prog_compiler_pic_GCJ=-Kconform_pic
23596 fi
23597 ;;
23598
23599 hpux*)
23600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23601 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023602 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023603 hppa*64*|ia64*)
23604 # +Z the default
23605 ;;
23606 *)
23607 lt_prog_compiler_pic_GCJ='-fPIC'
23608 ;;
23609 esac
23610 ;;
23611
23612 *)
23613 lt_prog_compiler_pic_GCJ='-fPIC'
23614 ;;
23615 esac
23616 else
23617 # PORTME Check for flag to pass linker flags through the system compiler.
23618 case $host_os in
23619 aix*)
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23621 if test "$host_cpu" = ia64; then
23622 # AIX 5 now supports IA64 processor
23623 lt_prog_compiler_static_GCJ='-Bstatic'
23624 else
23625 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23626 fi
23627 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023628 darwin*)
23629 # PIC is the default on this platform
23630 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023631 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023632 xlc*)
23633 lt_prog_compiler_pic_GCJ='-qnocommon'
23634 lt_prog_compiler_wl_GCJ='-Wl,'
23635 ;;
23636 esac
23637 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023638
23639 mingw* | pw32* | os2*)
23640 # This hack is so that the source file can tell whether it is being
23641 # built for inclusion in a dll (and should export symbols for example).
23642 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23643 ;;
23644
23645 hpux9* | hpux10* | hpux11*)
23646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23648 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023649 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023650 hppa*64*|ia64*)
23651 # +Z the default
23652 ;;
23653 *)
23654 lt_prog_compiler_pic_GCJ='+Z'
23655 ;;
23656 esac
23657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23658 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23659 ;;
23660
23661 irix5* | irix6* | nonstopux*)
23662 lt_prog_compiler_wl_GCJ='-Wl,'
23663 # PIC (with -KPIC) is the default.
23664 lt_prog_compiler_static_GCJ='-non_shared'
23665 ;;
23666
23667 newsos6)
23668 lt_prog_compiler_pic_GCJ='-KPIC'
23669 lt_prog_compiler_static_GCJ='-Bstatic'
23670 ;;
23671
23672 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023673 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023674 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023675 lt_prog_compiler_wl_GCJ='-Wl,'
23676 lt_prog_compiler_pic_GCJ='-KPIC'
23677 lt_prog_compiler_static_GCJ='-static'
23678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023679 pgcc* | pgf77* | pgf90* | pgf95*)
23680 # Portland Group compilers (*not* the Pentium gcc compiler,
23681 # which looks to be a dead project)
23682 lt_prog_compiler_wl_GCJ='-Wl,'
23683 lt_prog_compiler_pic_GCJ='-fpic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23685 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023686 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023687 lt_prog_compiler_wl_GCJ='-Wl,'
23688 # All Alpha code is PIC.
23689 lt_prog_compiler_static_GCJ='-non_shared'
23690 ;;
23691 esac
23692 ;;
23693
23694 osf3* | osf4* | osf5*)
23695 lt_prog_compiler_wl_GCJ='-Wl,'
23696 # All OSF/1 code is PIC.
23697 lt_prog_compiler_static_GCJ='-non_shared'
23698 ;;
23699
John Criswell47fdd832003-07-14 16:52:07 +000023700 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023701 lt_prog_compiler_pic_GCJ='-KPIC'
23702 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023703 case $cc_basename in
23704 f77* | f90* | f95*)
23705 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23706 *)
23707 lt_prog_compiler_wl_GCJ='-Wl,';;
23708 esac
John Criswell47fdd832003-07-14 16:52:07 +000023709 ;;
23710
23711 sunos4*)
23712 lt_prog_compiler_wl_GCJ='-Qoption ld '
23713 lt_prog_compiler_pic_GCJ='-PIC'
23714 lt_prog_compiler_static_GCJ='-Bstatic'
23715 ;;
23716
Reid Spencera773bd52006-08-04 18:18:08 +000023717 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023718 lt_prog_compiler_wl_GCJ='-Wl,'
23719 lt_prog_compiler_pic_GCJ='-KPIC'
23720 lt_prog_compiler_static_GCJ='-Bstatic'
23721 ;;
23722
23723 sysv4*MP*)
23724 if test -d /usr/nec ;then
23725 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23726 lt_prog_compiler_static_GCJ='-Bstatic'
23727 fi
23728 ;;
23729
Reid Spencera773bd52006-08-04 18:18:08 +000023730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23731 lt_prog_compiler_wl_GCJ='-Wl,'
23732 lt_prog_compiler_pic_GCJ='-KPIC'
23733 lt_prog_compiler_static_GCJ='-Bstatic'
23734 ;;
23735
23736 unicos*)
23737 lt_prog_compiler_wl_GCJ='-Wl,'
23738 lt_prog_compiler_can_build_shared_GCJ=no
23739 ;;
23740
John Criswell47fdd832003-07-14 16:52:07 +000023741 uts4*)
23742 lt_prog_compiler_pic_GCJ='-pic'
23743 lt_prog_compiler_static_GCJ='-Bstatic'
23744 ;;
23745
23746 *)
23747 lt_prog_compiler_can_build_shared_GCJ=no
23748 ;;
23749 esac
23750 fi
23751
Reid Spencera773bd52006-08-04 18:18:08 +000023752{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23753echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023754
23755#
23756# Check to make sure the PIC flag actually works.
23757#
23758if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023759
Reid Spencera773bd52006-08-04 18:18:08 +000023760{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23761echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023762if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764else
23765 lt_prog_compiler_pic_works_GCJ=no
23766 ac_outfile=conftest.$ac_objext
23767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23768 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23769 # Insert the option either (1) after the last *FLAGS variable, or
23770 # (2) before a word containing "conftest.", or (3) at the end.
23771 # Note that $ac_compile itself does not contain backslashes and begins
23772 # with a dollar sign (not a hyphen), so the echo should work correctly.
23773 # The option is referenced via a variable to avoid confusing sed.
23774 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23777 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000023778 (eval echo "\"\$as_me:23778: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023779 (eval "$lt_compile" 2>conftest.err)
23780 ac_status=$?
23781 cat conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000023782 echo "$as_me:23782: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023783 if (exit $ac_status) && test -s "$ac_outfile"; then
23784 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023785 # So say no if there are warnings other than the usual output.
23786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023789 lt_prog_compiler_pic_works_GCJ=yes
23790 fi
23791 fi
23792 $rm conftest*
23793
23794fi
Reid Spencera773bd52006-08-04 18:18:08 +000023795{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23796echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023797
23798if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23799 case $lt_prog_compiler_pic_GCJ in
23800 "" | " "*) ;;
23801 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23802 esac
23803else
23804 lt_prog_compiler_pic_GCJ=
23805 lt_prog_compiler_can_build_shared_GCJ=no
23806fi
23807
23808fi
Reid Spencera773bd52006-08-04 18:18:08 +000023809case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023810 # For platforms which do not support PIC, -DPIC is meaningless:
23811 *djgpp*)
23812 lt_prog_compiler_pic_GCJ=
23813 ;;
23814 *)
23815 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23816 ;;
23817esac
23818
Reid Spencera773bd52006-08-04 18:18:08 +000023819#
23820# Check to make sure the static flag actually works.
23821#
23822wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23823{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23824echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23825if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23827else
23828 lt_prog_compiler_static_works_GCJ=no
23829 save_LDFLAGS="$LDFLAGS"
23830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23831 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23833 # The linker can only warn and ignore the option if not recognized
23834 # So say no if there are warnings
23835 if test -s conftest.err; then
23836 # Append any errors to the config.log.
23837 cat conftest.err 1>&5
23838 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23840 if diff conftest.exp conftest.er2 >/dev/null; then
23841 lt_prog_compiler_static_works_GCJ=yes
23842 fi
23843 else
23844 lt_prog_compiler_static_works_GCJ=yes
23845 fi
23846 fi
23847 $rm conftest*
23848 LDFLAGS="$save_LDFLAGS"
23849
23850fi
23851{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23852echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23853
23854if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23855 :
23856else
23857 lt_prog_compiler_static_GCJ=
23858fi
23859
23860
23861{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23862echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023863if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23865else
23866 lt_cv_prog_compiler_c_o_GCJ=no
23867 $rm -r conftest 2>/dev/null
23868 mkdir conftest
23869 cd conftest
23870 mkdir out
23871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23872
John Criswell47fdd832003-07-14 16:52:07 +000023873 lt_compiler_flag="-o out/conftest2.$ac_objext"
23874 # Insert the option either (1) after the last *FLAGS variable, or
23875 # (2) before a word containing "conftest.", or (3) at the end.
23876 # Note that $ac_compile itself does not contain backslashes and begins
23877 # with a dollar sign (not a hyphen), so the echo should work correctly.
23878 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23881 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0d238182007-04-21 21:28:52 +000023882 (eval echo "\"\$as_me:23882: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023883 (eval "$lt_compile" 2>out/conftest.err)
23884 ac_status=$?
23885 cat out/conftest.err >&5
Reid Spencer0d238182007-04-21 21:28:52 +000023886 echo "$as_me:23886: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23888 then
23889 # The compiler can only warn and ignore the option if not recognized
23890 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023894 lt_cv_prog_compiler_c_o_GCJ=yes
23895 fi
23896 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023897 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023898 $rm conftest*
23899 # SGI C++ compiler will create directory out/ii_files/ for
23900 # template instantiation
23901 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23902 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023903 cd ..
23904 rmdir conftest
23905 $rm conftest*
23906
23907fi
Reid Spencera773bd52006-08-04 18:18:08 +000023908{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23909echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023910
23911
23912hard_links="nottested"
23913if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23914 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023915 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23916echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023917 hard_links=yes
23918 $rm conftest*
23919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23920 touch conftest.a
23921 ln conftest.a conftest.b 2>&5 || hard_links=no
23922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023923 { echo "$as_me:$LINENO: result: $hard_links" >&5
23924echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023925 if test "$hard_links" = no; then
23926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23927echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23928 need_locks=warn
23929 fi
23930else
23931 need_locks=no
23932fi
23933
Reid Spencera773bd52006-08-04 18:18:08 +000023934{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23935echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023936
23937 runpath_var=
23938 allow_undefined_flag_GCJ=
23939 enable_shared_with_static_runtimes_GCJ=no
23940 archive_cmds_GCJ=
23941 archive_expsym_cmds_GCJ=
23942 old_archive_From_new_cmds_GCJ=
23943 old_archive_from_expsyms_cmds_GCJ=
23944 export_dynamic_flag_spec_GCJ=
23945 whole_archive_flag_spec_GCJ=
23946 thread_safe_flag_spec_GCJ=
23947 hardcode_libdir_flag_spec_GCJ=
23948 hardcode_libdir_flag_spec_ld_GCJ=
23949 hardcode_libdir_separator_GCJ=
23950 hardcode_direct_GCJ=no
23951 hardcode_minus_L_GCJ=no
23952 hardcode_shlibpath_var_GCJ=unsupported
23953 link_all_deplibs_GCJ=unknown
23954 hardcode_automatic_GCJ=no
23955 module_cmds_GCJ=
23956 module_expsym_cmds_GCJ=
23957 always_export_symbols_GCJ=no
23958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23959 # include_expsyms should be a list of space-separated symbols to be *always*
23960 # included in the symbol list
23961 include_expsyms_GCJ=
23962 # exclude_expsyms can be an extended regexp of symbols to exclude
23963 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23965 # as well as any symbol that contains `d'.
23966 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23968 # platforms (ab)use it in PIC code, but their linkers get confused if
23969 # the symbol is explicitly referenced. Since portable code cannot
23970 # rely on this symbol name, it's probably fine to never include it in
23971 # preloaded symbol tables.
23972 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023973 # Just being paranoid about ensuring that cc_basename is set.
23974 for cc_temp in $compiler""; do
23975 case $cc_temp in
23976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23978 \-*) ;;
23979 *) break;;
23980 esac
23981done
23982cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023983
23984 case $host_os in
23985 cygwin* | mingw* | pw32*)
23986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23987 # When not using gcc, we currently assume that we are using
23988 # Microsoft Visual C++.
23989 if test "$GCC" != yes; then
23990 with_gnu_ld=no
23991 fi
23992 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023993 interix*)
23994 # we just hope/assume this is gcc and not c89 (= MSVC++)
23995 with_gnu_ld=yes
23996 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023997 openbsd*)
23998 with_gnu_ld=no
23999 ;;
24000 esac
24001
24002 ld_shlibs_GCJ=yes
24003 if test "$with_gnu_ld" = yes; then
24004 # If archive_cmds runs LD, not CC, wlarc should be empty
24005 wlarc='${wl}'
24006
Reid Spencera773bd52006-08-04 18:18:08 +000024007 # Set some defaults for GNU ld with shared library support. These
24008 # are reset later if shared libraries are not supported. Putting them
24009 # here allows them to be overridden if necessary.
24010 runpath_var=LD_RUN_PATH
24011 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24012 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24013 # ancient GNU ld didn't support --whole-archive et. al.
24014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24015 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24016 else
24017 whole_archive_flag_spec_GCJ=
24018 fi
24019 supports_anon_versioning=no
24020 case `$LD -v 2>/dev/null` in
24021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24024 *\ 2.11.*) ;; # other 2.11 versions
24025 *) supports_anon_versioning=yes ;;
24026 esac
24027
John Criswell47fdd832003-07-14 16:52:07 +000024028 # See if GNU ld supports shared libraries.
24029 case $host_os in
24030 aix3* | aix4* | aix5*)
24031 # On AIX/PPC, the GNU linker is very broken
24032 if test "$host_cpu" != ia64; then
24033 ld_shlibs_GCJ=no
24034 cat <<EOF 1>&2
24035
24036*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24037*** to be unable to reliably create shared libraries on AIX.
24038*** Therefore, libtool is disabling shared libraries support. If you
24039*** really care for shared libraries, you may want to modify your PATH
24040*** so that a non-GNU linker is found, and then restart.
24041
24042EOF
24043 fi
24044 ;;
24045
24046 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024047 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 +000024048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24049 hardcode_minus_L_GCJ=yes
24050
24051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24052 # that the semantics of dynamic libraries on AmigaOS, at least up
24053 # to version 4, is to share data among multiple programs linked
24054 # with the same dynamic library. Since this doesn't match the
24055 # behavior of shared libraries on other platforms, we can't use
24056 # them.
24057 ld_shlibs_GCJ=no
24058 ;;
24059
24060 beos*)
24061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24062 allow_undefined_flag_GCJ=unsupported
24063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24064 # support --undefined. This deserves some investigation. FIXME
24065 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24066 else
24067 ld_shlibs_GCJ=no
24068 fi
24069 ;;
24070
24071 cygwin* | mingw* | pw32*)
24072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24073 # as there is no search path for DLLs.
24074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24075 allow_undefined_flag_GCJ=unsupported
24076 always_export_symbols_GCJ=no
24077 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024078 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 +000024079
24080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024081 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 +000024082 # If the export-symbols file already is a .def file (1st line
24083 # is EXPORTS), use it as is; otherwise, prepend...
24084 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24085 cp $export_symbols $output_objdir/$soname.def;
24086 else
24087 echo EXPORTS > $output_objdir/$soname.def;
24088 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024089 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024090 $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 +000024091 else
Reid Spencera773bd52006-08-04 18:18:08 +000024092 ld_shlibs_GCJ=no
24093 fi
24094 ;;
24095
24096 interix3*)
24097 hardcode_direct_GCJ=no
24098 hardcode_shlibpath_var_GCJ=no
24099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24100 export_dynamic_flag_spec_GCJ='${wl}-E'
24101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24102 # Instead, shared libraries are loaded at an image base (0x10000000 by
24103 # default) and relocated if they conflict, which is a slow very memory
24104 # consuming and fragmenting process. To avoid this, we pick a random,
24105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24107 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'
24108 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'
24109 ;;
24110
24111 linux*)
24112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24113 tmp_addflag=
24114 case $cc_basename,$host_cpu in
24115 pgcc*) # Portland Group C compiler
24116 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'
24117 tmp_addflag=' $pic_flag'
24118 ;;
24119 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24120 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'
24121 tmp_addflag=' $pic_flag -Mnomain' ;;
24122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24123 tmp_addflag=' -i_dynamic' ;;
24124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24125 tmp_addflag=' -i_dynamic -nofor_main' ;;
24126 ifc* | ifort*) # Intel Fortran compiler
24127 tmp_addflag=' -nofor_main' ;;
24128 esac
24129 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24130
24131 if test $supports_anon_versioning = yes; then
24132 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24134 $echo "local: *; };" >> $output_objdir/$libname.ver~
24135 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24136 fi
24137 else
24138 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024139 fi
24140 ;;
24141
24142 netbsd*)
24143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24144 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24145 wlarc=
24146 else
24147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24149 fi
24150 ;;
24151
Reid Spencera773bd52006-08-04 18:18:08 +000024152 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24154 ld_shlibs_GCJ=no
24155 cat <<EOF 1>&2
24156
24157*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24158*** create shared libraries on Solaris systems. Therefore, libtool
24159*** is disabling shared libraries support. We urge you to upgrade GNU
24160*** binutils to release 2.9.1 or newer. Another option is to modify
24161*** your PATH or compiler configuration so that the native linker is
24162*** used, and then restart.
24163
24164EOF
24165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24166 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24167 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24168 else
24169 ld_shlibs_GCJ=no
24170 fi
24171 ;;
24172
Reid Spencera773bd52006-08-04 18:18:08 +000024173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24174 case `$LD -v 2>&1` in
24175 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24176 ld_shlibs_GCJ=no
24177 cat <<_LT_EOF 1>&2
24178
24179*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24180*** reliably create shared libraries on SCO systems. Therefore, libtool
24181*** is disabling shared libraries support. We urge you to upgrade GNU
24182*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24183*** your PATH or compiler configuration so that the native linker is
24184*** used, and then restart.
24185
24186_LT_EOF
24187 ;;
24188 *)
24189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24190 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24191 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24192 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24193 else
24194 ld_shlibs_GCJ=no
24195 fi
24196 ;;
24197 esac
24198 ;;
24199
John Criswell47fdd832003-07-14 16:52:07 +000024200 sunos4*)
24201 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24202 wlarc=
24203 hardcode_direct_GCJ=yes
24204 hardcode_shlibpath_var_GCJ=no
24205 ;;
24206
24207 *)
24208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24209 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24210 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24211 else
24212 ld_shlibs_GCJ=no
24213 fi
24214 ;;
24215 esac
24216
Reid Spencera773bd52006-08-04 18:18:08 +000024217 if test "$ld_shlibs_GCJ" = no; then
24218 runpath_var=
24219 hardcode_libdir_flag_spec_GCJ=
24220 export_dynamic_flag_spec_GCJ=
24221 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024222 fi
24223 else
24224 # PORTME fill in a description of your system's linker (not GNU ld)
24225 case $host_os in
24226 aix3*)
24227 allow_undefined_flag_GCJ=unsupported
24228 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024229 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 +000024230 # Note: this linker hardcodes the directories in LIBPATH if there
24231 # are no directories specified by -L.
24232 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024234 # Neither direct hardcoding nor static linking is supported with a
24235 # broken collect2.
24236 hardcode_direct_GCJ=unsupported
24237 fi
24238 ;;
24239
24240 aix4* | aix5*)
24241 if test "$host_cpu" = ia64; then
24242 # On IA64, the linker does run time linking by default, so we don't
24243 # have to do anything special.
24244 aix_use_runtimelinking=no
24245 exp_sym_flag='-Bexport'
24246 no_entry_flag=""
24247 else
24248 # If we're using GNU nm, then we don't want the "-C" option.
24249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24251 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'
24252 else
24253 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'
24254 fi
24255 aix_use_runtimelinking=no
24256
24257 # Test if we are trying to use run time linking or normal
24258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24259 # need to do runtime linking.
24260 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24261 for ld_flag in $LDFLAGS; do
24262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24263 aix_use_runtimelinking=yes
24264 break
24265 fi
24266 done
Reid Spencera773bd52006-08-04 18:18:08 +000024267 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024268 esac
24269
24270 exp_sym_flag='-bexport'
24271 no_entry_flag='-bnoentry'
24272 fi
24273
24274 # When large executables or shared objects are built, AIX ld can
24275 # have problems creating the table of contents. If linking a library
24276 # or program results in "error TOC overflow" add -mminimal-toc to
24277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24279
24280 archive_cmds_GCJ=''
24281 hardcode_direct_GCJ=yes
24282 hardcode_libdir_separator_GCJ=':'
24283 link_all_deplibs_GCJ=yes
24284
24285 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024286 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024287 # We only want to do this on AIX 4.2 and lower, the check
24288 # below for broken collect2 doesn't work under 4.3+
24289 collect2name=`${CC} -print-prog-name=collect2`
24290 if test -f "$collect2name" && \
24291 strings "$collect2name" | grep resolve_lib_name >/dev/null
24292 then
24293 # We have reworked collect2
24294 hardcode_direct_GCJ=yes
24295 else
24296 # We have old collect2
24297 hardcode_direct_GCJ=unsupported
24298 # It fails to find uninstalled libraries when the uninstalled
24299 # path is not listed in the libpath. Setting hardcode_minus_L
24300 # to unsupported forces relinking
24301 hardcode_minus_L_GCJ=yes
24302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24303 hardcode_libdir_separator_GCJ=
24304 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024305 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024306 esac
24307 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024308 if test "$aix_use_runtimelinking" = yes; then
24309 shared_flag="$shared_flag "'${wl}-G'
24310 fi
John Criswell47fdd832003-07-14 16:52:07 +000024311 else
24312 # not using gcc
24313 if test "$host_cpu" = ia64; then
24314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24315 # chokes on -Wl,-G. The following line is correct:
24316 shared_flag='-G'
24317 else
Reid Spencera773bd52006-08-04 18:18:08 +000024318 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024319 shared_flag='${wl}-G'
24320 else
24321 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024322 fi
John Criswell47fdd832003-07-14 16:52:07 +000024323 fi
24324 fi
24325
24326 # It seems that -bexpall does not export symbols beginning with
24327 # underscore (_), so it is better to generate a list of symbols to export.
24328 always_export_symbols_GCJ=yes
24329 if test "$aix_use_runtimelinking" = yes; then
24330 # Warning - without using the other runtime loading flags (-brtl),
24331 # -berok will link without error, but may produce a broken library.
24332 allow_undefined_flag_GCJ='-berok'
24333 # Determine the default libpath from the value encoded in an empty executable.
24334 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024335/* confdefs.h. */
24336_ACEOF
24337cat confdefs.h >>conftest.$ac_ext
24338cat >>conftest.$ac_ext <<_ACEOF
24339/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024340
John Criswell47fdd832003-07-14 16:52:07 +000024341int
24342main ()
24343{
24344
24345 ;
24346 return 0;
24347}
24348_ACEOF
24349rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024350if { (ac_try="$ac_link"
24351case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354esac
24355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24364 { (case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367esac
24368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; } &&
24373 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024374 { (case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24377esac
24378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24383
24384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24385}'`
24386# Check for a 64-bit object if we didn't find anything.
24387if 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; }
24388}'`; fi
24389else
24390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024391sed 's/^/| /' conftest.$ac_ext >&5
24392
Reid Spencera773bd52006-08-04 18:18:08 +000024393
John Criswell47fdd832003-07-14 16:52:07 +000024394fi
Reid Spencera773bd52006-08-04 18:18:08 +000024395
24396rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024397 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24399
24400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024401 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 +000024402 else
24403 if test "$host_cpu" = ia64; then
24404 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24405 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024406 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 +000024407 else
24408 # Determine the default libpath from the value encoded in an empty executable.
24409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024410/* confdefs.h. */
24411_ACEOF
24412cat confdefs.h >>conftest.$ac_ext
24413cat >>conftest.$ac_ext <<_ACEOF
24414/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024415
John Criswell47fdd832003-07-14 16:52:07 +000024416int
24417main ()
24418{
24419
24420 ;
24421 return 0;
24422}
24423_ACEOF
24424rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024425if { (ac_try="$ac_link"
24426case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24429esac
24430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24439 { (case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24442esac
24443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; } &&
24448 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024449 { (case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24452esac
24453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024455 ac_status=$?
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; }; then
24458
24459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24460}'`
24461# Check for a 64-bit object if we didn't find anything.
24462if 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; }
24463}'`; fi
24464else
24465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024466sed 's/^/| /' conftest.$ac_ext >&5
24467
Reid Spencera773bd52006-08-04 18:18:08 +000024468
John Criswell47fdd832003-07-14 16:52:07 +000024469fi
Reid Spencera773bd52006-08-04 18:18:08 +000024470
24471rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024472 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24474
24475 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24476 # Warning - without using the other run time loading flags,
24477 # -berok will link without error, but may produce a broken library.
24478 no_undefined_flag_GCJ=' ${wl}-bernotok'
24479 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024480 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024481 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024482 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024483 # This is similar to how AIX traditionally builds its shared libraries.
24484 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 +000024485 fi
24486 fi
24487 ;;
24488
24489 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024490 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 +000024491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24492 hardcode_minus_L_GCJ=yes
24493 # see comment about different semantics on the GNU ld section
24494 ld_shlibs_GCJ=no
24495 ;;
24496
Reid Spencer2706f8c2004-09-19 23:53:36 +000024497 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024498 export_dynamic_flag_spec_GCJ=-rdynamic
24499 ;;
24500
24501 cygwin* | mingw* | pw32*)
24502 # When not using gcc, we currently assume that we are using
24503 # Microsoft Visual C++.
24504 # hardcode_libdir_flag_spec is actually meaningless, as there is
24505 # no search path for DLLs.
24506 hardcode_libdir_flag_spec_GCJ=' '
24507 allow_undefined_flag_GCJ=unsupported
24508 # Tell ltmain to make .lib files, not .a files.
24509 libext=lib
24510 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024511 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024512 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024513 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 +000024514 # The linker will automatically build a .lib file if we build a DLL.
24515 old_archive_From_new_cmds_GCJ='true'
24516 # FIXME: Should let the user specify the lib program.
24517 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024518 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024519 enable_shared_with_static_runtimes_GCJ=yes
24520 ;;
24521
24522 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024523 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024524 rhapsody* | darwin1.[012])
24525 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24526 ;;
24527 *) # Darwin 1.3 on
24528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24529 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24530 else
24531 case ${MACOSX_DEPLOYMENT_TARGET} in
24532 10.[012])
24533 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24534 ;;
24535 10.*)
24536 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24537 ;;
24538 esac
24539 fi
24540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024541 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024542 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024543 hardcode_direct_GCJ=no
24544 hardcode_automatic_GCJ=yes
24545 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024546 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024547 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024548 if test "$GCC" = yes ; then
24549 output_verbose_link_cmd='echo'
24550 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24551 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024552 # 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 +000024553 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}'
24554 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 +000024555 else
Reid Spencera773bd52006-08-04 18:18:08 +000024556 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024557 xlc*)
24558 output_verbose_link_cmd='echo'
24559 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24560 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024561 # 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 +000024562 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}'
24563 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 +000024564 ;;
24565 *)
24566 ld_shlibs_GCJ=no
24567 ;;
24568 esac
John Criswell47fdd832003-07-14 16:52:07 +000024569 fi
24570 ;;
24571
24572 dgux*)
24573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24575 hardcode_shlibpath_var_GCJ=no
24576 ;;
24577
24578 freebsd1*)
24579 ld_shlibs_GCJ=no
24580 ;;
24581
24582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24583 # support. Future versions do this automatically, but an explicit c++rt0.o
24584 # does not break anything, and helps significantly (at the cost of a little
24585 # extra space).
24586 freebsd2.2*)
24587 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24588 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24589 hardcode_direct_GCJ=yes
24590 hardcode_shlibpath_var_GCJ=no
24591 ;;
24592
24593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24594 freebsd2*)
24595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24596 hardcode_direct_GCJ=yes
24597 hardcode_minus_L_GCJ=yes
24598 hardcode_shlibpath_var_GCJ=no
24599 ;;
24600
24601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024602 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024603 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24605 hardcode_direct_GCJ=yes
24606 hardcode_shlibpath_var_GCJ=no
24607 ;;
24608
24609 hpux9*)
24610 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024611 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 +000024612 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024613 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 +000024614 fi
24615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24616 hardcode_libdir_separator_GCJ=:
24617 hardcode_direct_GCJ=yes
24618
24619 # hardcode_minus_L: Not really in the search PATH,
24620 # but as the default location of the library.
24621 hardcode_minus_L_GCJ=yes
24622 export_dynamic_flag_spec_GCJ='${wl}-E'
24623 ;;
24624
Reid Spencera773bd52006-08-04 18:18:08 +000024625 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24628 else
24629 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24630 fi
24631 if test "$with_gnu_ld" = no; then
24632 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24633 hardcode_libdir_separator_GCJ=:
24634
24635 hardcode_direct_GCJ=yes
24636 export_dynamic_flag_spec_GCJ='${wl}-E'
24637
24638 # hardcode_minus_L: Not really in the search PATH,
24639 # but as the default location of the library.
24640 hardcode_minus_L_GCJ=yes
24641 fi
24642 ;;
24643
24644 hpux11*)
24645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24646 case $host_cpu in
24647 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024648 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024650 ia64*)
24651 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24652 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024653 *)
24654 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24655 ;;
24656 esac
24657 else
Reid Spencera773bd52006-08-04 18:18:08 +000024658 case $host_cpu in
24659 hppa*64*)
24660 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24661 ;;
24662 ia64*)
24663 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024664 ;;
24665 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024666 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 +000024667 ;;
24668 esac
24669 fi
24670 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24672 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024673
Reid Spencera773bd52006-08-04 18:18:08 +000024674 case $host_cpu in
24675 hppa*64*|ia64*)
24676 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24677 hardcode_direct_GCJ=no
24678 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024679 ;;
24680 *)
John Criswell47fdd832003-07-14 16:52:07 +000024681 hardcode_direct_GCJ=yes
24682 export_dynamic_flag_spec_GCJ='${wl}-E'
24683
24684 # hardcode_minus_L: Not really in the search PATH,
24685 # but as the default location of the library.
24686 hardcode_minus_L_GCJ=yes
24687 ;;
24688 esac
24689 fi
24690 ;;
24691
24692 irix5* | irix6* | nonstopux*)
24693 if test "$GCC" = yes; then
24694 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'
24695 else
24696 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'
24697 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24698 fi
24699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24700 hardcode_libdir_separator_GCJ=:
24701 link_all_deplibs_GCJ=yes
24702 ;;
24703
24704 netbsd*)
24705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24707 else
24708 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24709 fi
24710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24711 hardcode_direct_GCJ=yes
24712 hardcode_shlibpath_var_GCJ=no
24713 ;;
24714
24715 newsos6)
24716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24717 hardcode_direct_GCJ=yes
24718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24719 hardcode_libdir_separator_GCJ=:
24720 hardcode_shlibpath_var_GCJ=no
24721 ;;
24722
24723 openbsd*)
24724 hardcode_direct_GCJ=yes
24725 hardcode_shlibpath_var_GCJ=no
24726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024728 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 +000024729 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24730 export_dynamic_flag_spec_GCJ='${wl}-E'
24731 else
24732 case $host_os in
24733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24736 ;;
24737 *)
24738 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24740 ;;
24741 esac
24742 fi
24743 ;;
24744
24745 os2*)
24746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24747 hardcode_minus_L_GCJ=yes
24748 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024749 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 +000024750 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24751 ;;
24752
24753 osf3*)
24754 if test "$GCC" = yes; then
24755 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24756 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'
24757 else
24758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24759 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'
24760 fi
24761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24762 hardcode_libdir_separator_GCJ=:
24763 ;;
24764
24765 osf4* | osf5*) # as osf3* with the addition of -msym flag
24766 if test "$GCC" = yes; then
24767 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24768 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'
24769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24770 else
24771 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24772 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 +000024773 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 +000024774 $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 +000024775
John Criswell47fdd832003-07-14 16:52:07 +000024776 # Both c and cxx compiler support -rpath directly
24777 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24778 fi
24779 hardcode_libdir_separator_GCJ=:
24780 ;;
24781
John Criswell47fdd832003-07-14 16:52:07 +000024782 solaris*)
24783 no_undefined_flag_GCJ=' -z text'
24784 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024785 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024786 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024787 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24788 $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 +000024789 else
Reid Spencera773bd52006-08-04 18:18:08 +000024790 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024791 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24793 $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 +000024794 fi
24795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24796 hardcode_shlibpath_var_GCJ=no
24797 case $host_os in
24798 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024799 *)
24800 # The compiler driver will combine linker options so we
24801 # cannot just pass the convience library names through
24802 # without $wl, iff we do not link with $LD.
24803 # Luckily, gcc supports the same syntax we need for Sun Studio.
24804 # Supported since Solaris 2.6 (maybe 2.5.1?)
24805 case $wlarc in
24806 '')
24807 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24808 *)
24809 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' ;;
24810 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024811 esac
24812 link_all_deplibs_GCJ=yes
24813 ;;
24814
24815 sunos4*)
24816 if test "x$host_vendor" = xsequent; then
24817 # Use $CC to link under sequent, because it throws in some extra .o
24818 # files that make .init and .fini sections work.
24819 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24820 else
24821 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24822 fi
24823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24824 hardcode_direct_GCJ=yes
24825 hardcode_minus_L_GCJ=yes
24826 hardcode_shlibpath_var_GCJ=no
24827 ;;
24828
24829 sysv4)
24830 case $host_vendor in
24831 sni)
24832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ=yes # is this really true???
24834 ;;
24835 siemens)
24836 ## LD is ld it makes a PLAMLIB
24837 ## CC just makes a GrossModule.
24838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24839 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24840 hardcode_direct_GCJ=no
24841 ;;
24842 motorola)
24843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24844 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24845 ;;
24846 esac
24847 runpath_var='LD_RUN_PATH'
24848 hardcode_shlibpath_var_GCJ=no
24849 ;;
24850
24851 sysv4.3*)
24852 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24853 hardcode_shlibpath_var_GCJ=no
24854 export_dynamic_flag_spec_GCJ='-Bexport'
24855 ;;
24856
24857 sysv4*MP*)
24858 if test -d /usr/nec; then
24859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24860 hardcode_shlibpath_var_GCJ=no
24861 runpath_var=LD_RUN_PATH
24862 hardcode_runpath_var=yes
24863 ld_shlibs_GCJ=yes
24864 fi
24865 ;;
24866
Reid Spencera773bd52006-08-04 18:18:08 +000024867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24868 no_undefined_flag_GCJ='${wl}-z,text'
24869 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024870 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024871 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024872
John Criswell47fdd832003-07-14 16:52:07 +000024873 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024874 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24875 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 +000024876 else
Reid Spencera773bd52006-08-04 18:18:08 +000024877 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24878 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 +000024879 fi
John Criswell47fdd832003-07-14 16:52:07 +000024880 ;;
24881
Reid Spencera773bd52006-08-04 18:18:08 +000024882 sysv5* | sco3.2v5* | sco5v6*)
24883 # Note: We can NOT use -z defs as we might desire, because we do not
24884 # link with -lc, and that would cause any symbols used from libc to
24885 # always be unresolved, which means just about no library would
24886 # ever link correctly. If we're not using GNU ld we use -z text
24887 # though, which does catch some bad symbols but isn't as heavy-handed
24888 # as -z defs.
24889 no_undefined_flag_GCJ='${wl}-z,text'
24890 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24891 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024892 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024893 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24894 hardcode_libdir_separator_GCJ=':'
24895 link_all_deplibs_GCJ=yes
24896 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024897 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024898
24899 if test "$GCC" = yes; then
24900 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24902 else
24903 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905 fi
John Criswell47fdd832003-07-14 16:52:07 +000024906 ;;
24907
24908 uts4*)
24909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24911 hardcode_shlibpath_var_GCJ=no
24912 ;;
24913
24914 *)
24915 ld_shlibs_GCJ=no
24916 ;;
24917 esac
24918 fi
24919
Reid Spencera773bd52006-08-04 18:18:08 +000024920{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24921echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024922test "$ld_shlibs_GCJ" = no && can_build_shared=no
24923
John Criswell47fdd832003-07-14 16:52:07 +000024924#
24925# Do we need to explicitly link libc?
24926#
24927case "x$archive_cmds_need_lc_GCJ" in
24928x|xyes)
24929 # Assume -lc should be added
24930 archive_cmds_need_lc_GCJ=yes
24931
24932 if test "$enable_shared" = yes && test "$GCC" = yes; then
24933 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024934 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024935 # FIXME: we may have to deal with multi-command sequences.
24936 ;;
24937 '$CC '*)
24938 # Test whether the compiler implicitly links with -lc since on some
24939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24940 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024941 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024943 $rm conftest*
24944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24945
24946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24947 (eval $ac_compile) 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } 2>conftest.err; then
24951 soname=conftest
24952 lib=conftest
24953 libobjs=conftest.$ac_objext
24954 deplibs=
24955 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024956 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024957 compiler_flags=-v
24958 linker_flags=-v
24959 verstring=
24960 output_objdir=.
24961 libname=conftest
24962 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24963 allow_undefined_flag_GCJ=
24964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24965 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }
24969 then
24970 archive_cmds_need_lc_GCJ=no
24971 else
24972 archive_cmds_need_lc_GCJ=yes
24973 fi
24974 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24975 else
24976 cat conftest.err 1>&5
24977 fi
24978 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024979 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24980echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024981 ;;
24982 esac
24983 fi
24984 ;;
24985esac
24986
Reid Spencera773bd52006-08-04 18:18:08 +000024987{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24988echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024989library_names_spec=
24990libname_spec='lib$name'
24991soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024992shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024993postinstall_cmds=
24994postuninstall_cmds=
24995finish_cmds=
24996finish_eval=
24997shlibpath_var=
24998shlibpath_overrides_runpath=unknown
24999version_type=none
25000dynamic_linker="$host_os ld.so"
25001sys_lib_dlsearch_path_spec="/lib /usr/lib"
25002if test "$GCC" = yes; then
25003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25005 # if the path contains ";" then we assume it to be the separator
25006 # otherwise default to the standard path separator (i.e. ":") - it is
25007 # assumed that no part of a normal pathname contains ";" but that should
25008 # okay in the real world where ";" in dirpaths is itself problematic.
25009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25010 else
25011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25012 fi
25013else
25014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25015fi
25016need_lib_prefix=unknown
25017hardcode_into_libs=no
25018
25019# when you set need_version to no, make sure it does not cause -set_version
25020# flags to be left without arguments
25021need_version=unknown
25022
25023case $host_os in
25024aix3*)
25025 version_type=linux
25026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25027 shlibpath_var=LIBPATH
25028
25029 # AIX 3 has no versioning support, so we append a major version to the name.
25030 soname_spec='${libname}${release}${shared_ext}$major'
25031 ;;
25032
25033aix4* | aix5*)
25034 version_type=linux
25035 need_lib_prefix=no
25036 need_version=no
25037 hardcode_into_libs=yes
25038 if test "$host_cpu" = ia64; then
25039 # AIX 5 supports IA64
25040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25041 shlibpath_var=LD_LIBRARY_PATH
25042 else
25043 # With GCC up to 2.95.x, collect2 would create an import file
25044 # for dependence libraries. The import file would start with
25045 # the line `#! .'. This would cause the generated library to
25046 # depend on `.', always an invalid library. This was fixed in
25047 # development snapshots of GCC prior to 3.0.
25048 case $host_os in
25049 aix4 | aix4.[01] | aix4.[01].*)
25050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25051 echo ' yes '
25052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25053 :
25054 else
25055 can_build_shared=no
25056 fi
25057 ;;
25058 esac
25059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25060 # soname into executable. Probably we can add versioning support to
25061 # collect2, so additional links can be useful in future.
25062 if test "$aix_use_runtimelinking" = yes; then
25063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25064 # instead of lib<name>.a to let people know that these are not
25065 # typical AIX shared libraries.
25066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25067 else
25068 # We preserve .a as extension for shared libraries through AIX4.2
25069 # and later when we are not doing run time linking.
25070 library_names_spec='${libname}${release}.a $libname.a'
25071 soname_spec='${libname}${release}${shared_ext}$major'
25072 fi
25073 shlibpath_var=LIBPATH
25074 fi
25075 ;;
25076
25077amigaos*)
25078 library_names_spec='$libname.ixlibrary $libname.a'
25079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025080 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 +000025081 ;;
25082
25083beos*)
25084 library_names_spec='${libname}${shared_ext}'
25085 dynamic_linker="$host_os ld.so"
25086 shlibpath_var=LIBRARY_PATH
25087 ;;
25088
Reid Spencer2706f8c2004-09-19 23:53:36 +000025089bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025090 version_type=linux
25091 need_version=no
25092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093 soname_spec='${libname}${release}${shared_ext}$major'
25094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25095 shlibpath_var=LD_LIBRARY_PATH
25096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25098 # the default ld.so.conf also contains /usr/contrib/lib and
25099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25100 # libtool to hard-code these into programs
25101 ;;
25102
25103cygwin* | mingw* | pw32*)
25104 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025105 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025106 need_version=no
25107 need_lib_prefix=no
25108
25109 case $GCC,$host_os in
25110 yes,cygwin* | yes,mingw* | yes,pw32*)
25111 library_names_spec='$libname.dll.a'
25112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025113 postinstall_cmds='base_file=`basename \${file}`~
25114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25115 dldir=$destdir/`dirname \$dlpath`~
25116 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025117 $install_prog $dir/$dlname \$dldir/$dlname~
25118 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25120 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025121 $rm \$dlpath'
25122 shlibpath_overrides_runpath=yes
25123
25124 case $host_os in
25125 cygwin*)
25126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25127 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 +000025128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025129 ;;
25130 mingw*)
25131 # MinGW DLLs use traditional 'lib' prefix
25132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25135 # It is most probably a Windows format PATH printed by
25136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25137 # path with ; separators, and with drive letters. We can handle the
25138 # drive letters (cygwin fileutils understands them), so leave them,
25139 # especially as we might pass files found there to a mingw objdump,
25140 # which wouldn't understand a cygwinified path. Ahh.
25141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25142 else
25143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25144 fi
25145 ;;
25146 pw32*)
25147 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025148 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 +000025149 ;;
25150 esac
25151 ;;
25152
25153 *)
25154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25155 ;;
25156 esac
25157 dynamic_linker='Win32 ld.exe'
25158 # FIXME: first we should search . and the directory the executable is in
25159 shlibpath_var=PATH
25160 ;;
25161
25162darwin* | rhapsody*)
25163 dynamic_linker="$host_os dyld"
25164 version_type=darwin
25165 need_lib_prefix=no
25166 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025168 soname_spec='${libname}${release}${major}$shared_ext'
25169 shlibpath_overrides_runpath=yes
25170 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025171 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025173 if test "$GCC" = yes; then
25174 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"`
25175 else
25176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025177 fi
25178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25179 ;;
25180
25181dgux*)
25182 version_type=linux
25183 need_lib_prefix=no
25184 need_version=no
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25186 soname_spec='${libname}${release}${shared_ext}$major'
25187 shlibpath_var=LD_LIBRARY_PATH
25188 ;;
25189
25190freebsd1*)
25191 dynamic_linker=no
25192 ;;
25193
Reid Spencer2706f8c2004-09-19 23:53:36 +000025194kfreebsd*-gnu)
25195 version_type=linux
25196 need_lib_prefix=no
25197 need_version=no
25198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25199 soname_spec='${libname}${release}${shared_ext}$major'
25200 shlibpath_var=LD_LIBRARY_PATH
25201 shlibpath_overrides_runpath=no
25202 hardcode_into_libs=yes
25203 dynamic_linker='GNU ld.so'
25204 ;;
25205
Reid Spencera773bd52006-08-04 18:18:08 +000025206freebsd* | dragonfly*)
25207 # DragonFly does not have aout. When/if they implement a new
25208 # versioning mechanism, adjust this.
25209 if test -x /usr/bin/objformat; then
25210 objformat=`/usr/bin/objformat`
25211 else
25212 case $host_os in
25213 freebsd[123]*) objformat=aout ;;
25214 *) objformat=elf ;;
25215 esac
25216 fi
John Criswell47fdd832003-07-14 16:52:07 +000025217 version_type=freebsd-$objformat
25218 case $version_type in
25219 freebsd-elf*)
25220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25221 need_version=no
25222 need_lib_prefix=no
25223 ;;
25224 freebsd-*)
25225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25226 need_version=yes
25227 ;;
25228 esac
25229 shlibpath_var=LD_LIBRARY_PATH
25230 case $host_os in
25231 freebsd2*)
25232 shlibpath_overrides_runpath=yes
25233 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025234 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025235 shlibpath_overrides_runpath=yes
25236 hardcode_into_libs=yes
25237 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025240 shlibpath_overrides_runpath=no
25241 hardcode_into_libs=yes
25242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025243 freebsd*) # from 4.6 on
25244 shlibpath_overrides_runpath=yes
25245 hardcode_into_libs=yes
25246 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025247 esac
25248 ;;
25249
25250gnu*)
25251 version_type=linux
25252 need_lib_prefix=no
25253 need_version=no
25254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25255 soname_spec='${libname}${release}${shared_ext}$major'
25256 shlibpath_var=LD_LIBRARY_PATH
25257 hardcode_into_libs=yes
25258 ;;
25259
25260hpux9* | hpux10* | hpux11*)
25261 # Give a soname corresponding to the major version so that dld.sl refuses to
25262 # link against other versions.
25263 version_type=sunos
25264 need_lib_prefix=no
25265 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025266 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025267 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025268 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025269 hardcode_into_libs=yes
25270 dynamic_linker="$host_os dld.so"
25271 shlibpath_var=LD_LIBRARY_PATH
25272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25274 soname_spec='${libname}${release}${shared_ext}$major'
25275 if test "X$HPUX_IA64_MODE" = X32; then
25276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25277 else
25278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25279 fi
25280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25281 ;;
25282 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025284 hardcode_into_libs=yes
25285 dynamic_linker="$host_os dld.sl"
25286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25289 soname_spec='${libname}${release}${shared_ext}$major'
25290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25292 ;;
25293 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025294 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025295 dynamic_linker="$host_os dld.sl"
25296 shlibpath_var=SHLIB_PATH
25297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25299 soname_spec='${libname}${release}${shared_ext}$major'
25300 ;;
25301 esac
25302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25303 postinstall_cmds='chmod 555 $lib'
25304 ;;
25305
Reid Spencera773bd52006-08-04 18:18:08 +000025306interix3*)
25307 version_type=linux
25308 need_lib_prefix=no
25309 need_version=no
25310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25311 soname_spec='${libname}${release}${shared_ext}$major'
25312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25313 shlibpath_var=LD_LIBRARY_PATH
25314 shlibpath_overrides_runpath=no
25315 hardcode_into_libs=yes
25316 ;;
25317
John Criswell47fdd832003-07-14 16:52:07 +000025318irix5* | irix6* | nonstopux*)
25319 case $host_os in
25320 nonstopux*) version_type=nonstopux ;;
25321 *)
25322 if test "$lt_cv_prog_gnu_ld" = yes; then
25323 version_type=linux
25324 else
25325 version_type=irix
25326 fi ;;
25327 esac
25328 need_lib_prefix=no
25329 need_version=no
25330 soname_spec='${libname}${release}${shared_ext}$major'
25331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25332 case $host_os in
25333 irix5* | nonstopux*)
25334 libsuff= shlibsuff=
25335 ;;
25336 *)
25337 case $LD in # libtool.m4 will add one of these switches to LD
25338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25339 libsuff= shlibsuff= libmagic=32-bit;;
25340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25341 libsuff=32 shlibsuff=N32 libmagic=N32;;
25342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25344 *) libsuff= shlibsuff= libmagic=never-match;;
25345 esac
25346 ;;
25347 esac
25348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25349 shlibpath_overrides_runpath=no
25350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25352 hardcode_into_libs=yes
25353 ;;
25354
25355# No shared lib support for Linux oldld, aout, or coff.
25356linux*oldld* | linux*aout* | linux*coff*)
25357 dynamic_linker=no
25358 ;;
25359
25360# This must be Linux ELF.
25361linux*)
25362 version_type=linux
25363 need_lib_prefix=no
25364 need_version=no
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25366 soname_spec='${libname}${release}${shared_ext}$major'
25367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25368 shlibpath_var=LD_LIBRARY_PATH
25369 shlibpath_overrides_runpath=no
25370 # This implies no fast_install, which is unacceptable.
25371 # Some rework will be needed to allow for fast_install
25372 # before this can be enabled.
25373 hardcode_into_libs=yes
25374
Reid Spencer2706f8c2004-09-19 23:53:36 +000025375 # Append ld.so.conf contents to the search path
25376 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025377 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 +000025378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25379 fi
25380
John Criswell47fdd832003-07-14 16:52:07 +000025381 # We used to test for /lib/ld.so.1 and disable shared libraries on
25382 # powerpc, because MkLinux only supported shared libraries with the
25383 # GNU dynamic linker. Since this was broken with cross compilers,
25384 # most powerpc-linux boxes support dynamic linking these days and
25385 # people can always --disable-shared, the test was removed, and we
25386 # assume the GNU/Linux dynamic linker is in use.
25387 dynamic_linker='GNU/Linux ld.so'
25388 ;;
25389
Reid Spencer2706f8c2004-09-19 23:53:36 +000025390knetbsd*-gnu)
25391 version_type=linux
25392 need_lib_prefix=no
25393 need_version=no
25394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25395 soname_spec='${libname}${release}${shared_ext}$major'
25396 shlibpath_var=LD_LIBRARY_PATH
25397 shlibpath_overrides_runpath=no
25398 hardcode_into_libs=yes
25399 dynamic_linker='GNU ld.so'
25400 ;;
25401
John Criswell47fdd832003-07-14 16:52:07 +000025402netbsd*)
25403 version_type=sunos
25404 need_lib_prefix=no
25405 need_version=no
25406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25409 dynamic_linker='NetBSD (a.out) ld.so'
25410 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025412 soname_spec='${libname}${release}${shared_ext}$major'
25413 dynamic_linker='NetBSD ld.elf_so'
25414 fi
25415 shlibpath_var=LD_LIBRARY_PATH
25416 shlibpath_overrides_runpath=yes
25417 hardcode_into_libs=yes
25418 ;;
25419
25420newsos6)
25421 version_type=linux
25422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25423 shlibpath_var=LD_LIBRARY_PATH
25424 shlibpath_overrides_runpath=yes
25425 ;;
25426
Reid Spencer2706f8c2004-09-19 23:53:36 +000025427nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025428 version_type=linux
25429 need_lib_prefix=no
25430 need_version=no
25431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25432 soname_spec='${libname}${release}${shared_ext}$major'
25433 shlibpath_var=LD_LIBRARY_PATH
25434 shlibpath_overrides_runpath=yes
25435 ;;
25436
25437openbsd*)
25438 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025439 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025440 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25442 case $host_os in
25443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25444 *) need_version=no ;;
25445 esac
John Criswell47fdd832003-07-14 16:52:07 +000025446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25448 shlibpath_var=LD_LIBRARY_PATH
25449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25450 case $host_os in
25451 openbsd2.[89] | openbsd2.[89].*)
25452 shlibpath_overrides_runpath=no
25453 ;;
25454 *)
25455 shlibpath_overrides_runpath=yes
25456 ;;
25457 esac
25458 else
25459 shlibpath_overrides_runpath=yes
25460 fi
25461 ;;
25462
25463os2*)
25464 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025465 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025466 need_lib_prefix=no
25467 library_names_spec='$libname${shared_ext} $libname.a'
25468 dynamic_linker='OS/2 ld.exe'
25469 shlibpath_var=LIBPATH
25470 ;;
25471
25472osf3* | osf4* | osf5*)
25473 version_type=osf
25474 need_lib_prefix=no
25475 need_version=no
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25481 ;;
25482
John Criswell47fdd832003-07-14 16:52:07 +000025483solaris*)
25484 version_type=linux
25485 need_lib_prefix=no
25486 need_version=no
25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25488 soname_spec='${libname}${release}${shared_ext}$major'
25489 shlibpath_var=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath=yes
25491 hardcode_into_libs=yes
25492 # ldd complains unless libraries are executable
25493 postinstall_cmds='chmod +x $lib'
25494 ;;
25495
25496sunos4*)
25497 version_type=sunos
25498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25500 shlibpath_var=LD_LIBRARY_PATH
25501 shlibpath_overrides_runpath=yes
25502 if test "$with_gnu_ld" = yes; then
25503 need_lib_prefix=no
25504 fi
25505 need_version=yes
25506 ;;
25507
Reid Spencera773bd52006-08-04 18:18:08 +000025508sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025509 version_type=linux
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511 soname_spec='${libname}${release}${shared_ext}$major'
25512 shlibpath_var=LD_LIBRARY_PATH
25513 case $host_vendor in
25514 sni)
25515 shlibpath_overrides_runpath=no
25516 need_lib_prefix=no
25517 export_dynamic_flag_spec='${wl}-Blargedynsym'
25518 runpath_var=LD_RUN_PATH
25519 ;;
25520 siemens)
25521 need_lib_prefix=no
25522 ;;
25523 motorola)
25524 need_lib_prefix=no
25525 need_version=no
25526 shlibpath_overrides_runpath=no
25527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25528 ;;
25529 esac
25530 ;;
25531
25532sysv4*MP*)
25533 if test -d /usr/nec ;then
25534 version_type=linux
25535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25536 soname_spec='$libname${shared_ext}.$major'
25537 shlibpath_var=LD_LIBRARY_PATH
25538 fi
25539 ;;
25540
Reid Spencera773bd52006-08-04 18:18:08 +000025541sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25542 version_type=freebsd-elf
25543 need_lib_prefix=no
25544 need_version=no
25545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25546 soname_spec='${libname}${release}${shared_ext}$major'
25547 shlibpath_var=LD_LIBRARY_PATH
25548 hardcode_into_libs=yes
25549 if test "$with_gnu_ld" = yes; then
25550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25551 shlibpath_overrides_runpath=no
25552 else
25553 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25554 shlibpath_overrides_runpath=yes
25555 case $host_os in
25556 sco3.2v5*)
25557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25558 ;;
25559 esac
25560 fi
25561 sys_lib_dlsearch_path_spec='/usr/lib'
25562 ;;
25563
John Criswell47fdd832003-07-14 16:52:07 +000025564uts4*)
25565 version_type=linux
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 shlibpath_var=LD_LIBRARY_PATH
25569 ;;
25570
25571*)
25572 dynamic_linker=no
25573 ;;
25574esac
Reid Spencera773bd52006-08-04 18:18:08 +000025575{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25576echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025577test "$dynamic_linker" = no && can_build_shared=no
25578
Reid Spencera773bd52006-08-04 18:18:08 +000025579variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25580if test "$GCC" = yes; then
25581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25582fi
25583
25584{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25585echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025586hardcode_action_GCJ=
25587if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25588 test -n "$runpath_var_GCJ" || \
25589 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25590
25591 # We can hardcode non-existant directories.
25592 if test "$hardcode_direct_GCJ" != no &&
25593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25594 # have to relink, otherwise we might link with an installed library
25595 # when we should be linking with a yet-to-be-installed one
25596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25597 test "$hardcode_minus_L_GCJ" != no; then
25598 # Linking always hardcodes the temporary library directory.
25599 hardcode_action_GCJ=relink
25600 else
25601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25602 hardcode_action_GCJ=immediate
25603 fi
25604else
25605 # We cannot hardcode anything, or else we can only hardcode existing
25606 # directories.
25607 hardcode_action_GCJ=unsupported
25608fi
Reid Spencera773bd52006-08-04 18:18:08 +000025609{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25610echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025611
25612if test "$hardcode_action_GCJ" = relink; then
25613 # Fast installation is not supported
25614 enable_fast_install=no
25615elif test "$shlibpath_overrides_runpath" = yes ||
25616 test "$enable_shared" = no; then
25617 # Fast installation is not necessary
25618 enable_fast_install=needless
25619fi
25620
John Criswell47fdd832003-07-14 16:52:07 +000025621
25622# The else clause should only fire when bootstrapping the
25623# libtool distribution, otherwise you forgot to ship ltmain.sh
25624# with your package, and you will get complaints that there are
25625# no rules to generate ltmain.sh.
25626if test -f "$ltmain"; then
25627 # See if we are running on zsh, and set the options which allow our commands through
25628 # without removal of \ escapes.
25629 if test -n "${ZSH_VERSION+set}" ; then
25630 setopt NO_GLOB_SUBST
25631 fi
25632 # Now quote all the things that may contain metacharacters while being
25633 # careful not to overquote the AC_SUBSTed values. We take copies of the
25634 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025635 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 +000025636 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25639 deplibs_check_method reload_flag reload_cmds need_locks \
25640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25643 old_postinstall_cmds old_postuninstall_cmds \
25644 compiler_GCJ \
25645 CC_GCJ \
25646 LD_GCJ \
25647 lt_prog_compiler_wl_GCJ \
25648 lt_prog_compiler_pic_GCJ \
25649 lt_prog_compiler_static_GCJ \
25650 lt_prog_compiler_no_builtin_flag_GCJ \
25651 export_dynamic_flag_spec_GCJ \
25652 thread_safe_flag_spec_GCJ \
25653 whole_archive_flag_spec_GCJ \
25654 enable_shared_with_static_runtimes_GCJ \
25655 old_archive_cmds_GCJ \
25656 old_archive_from_new_cmds_GCJ \
25657 predep_objects_GCJ \
25658 postdep_objects_GCJ \
25659 predeps_GCJ \
25660 postdeps_GCJ \
25661 compiler_lib_search_path_GCJ \
25662 archive_cmds_GCJ \
25663 archive_expsym_cmds_GCJ \
25664 postinstall_cmds_GCJ \
25665 postuninstall_cmds_GCJ \
25666 old_archive_from_expsyms_cmds_GCJ \
25667 allow_undefined_flag_GCJ \
25668 no_undefined_flag_GCJ \
25669 export_symbols_cmds_GCJ \
25670 hardcode_libdir_flag_spec_GCJ \
25671 hardcode_libdir_flag_spec_ld_GCJ \
25672 hardcode_libdir_separator_GCJ \
25673 hardcode_automatic_GCJ \
25674 module_cmds_GCJ \
25675 module_expsym_cmds_GCJ \
25676 lt_cv_prog_compiler_c_o_GCJ \
25677 exclude_expsyms_GCJ \
25678 include_expsyms_GCJ; do
25679
25680 case $var in
25681 old_archive_cmds_GCJ | \
25682 old_archive_from_new_cmds_GCJ | \
25683 archive_cmds_GCJ | \
25684 archive_expsym_cmds_GCJ | \
25685 module_cmds_GCJ | \
25686 module_expsym_cmds_GCJ | \
25687 old_archive_from_expsyms_cmds_GCJ | \
25688 export_symbols_cmds_GCJ | \
25689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25690 postinstall_cmds | postuninstall_cmds | \
25691 old_postinstall_cmds | old_postuninstall_cmds | \
25692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25693 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025694 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 +000025695 ;;
25696 *)
25697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25698 ;;
25699 esac
25700 done
25701
25702 case $lt_echo in
25703 *'\$0 --fallback-echo"')
25704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25705 ;;
25706 esac
25707
25708cfgfile="$ofile"
25709
25710 cat <<__EOF__ >> "$cfgfile"
25711# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25712
25713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25714
25715# Shell to use when invoking shell scripts.
25716SHELL=$lt_SHELL
25717
25718# Whether or not to build shared libraries.
25719build_libtool_libs=$enable_shared
25720
25721# Whether or not to build static libraries.
25722build_old_libs=$enable_static
25723
25724# Whether or not to add -lc for building shared libraries.
25725build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25726
25727# Whether or not to disallow shared libs when runtime libs are static
25728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25729
25730# Whether or not to optimize for fast installation.
25731fast_install=$enable_fast_install
25732
25733# The host system.
25734host_alias=$host_alias
25735host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025736host_os=$host_os
25737
25738# The build system.
25739build_alias=$build_alias
25740build=$build
25741build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025742
25743# An echo program that does not interpret backslashes.
25744echo=$lt_echo
25745
25746# The archiver.
25747AR=$lt_AR
25748AR_FLAGS=$lt_AR_FLAGS
25749
25750# A C compiler.
25751LTCC=$lt_LTCC
25752
Reid Spencera773bd52006-08-04 18:18:08 +000025753# LTCC compiler flags.
25754LTCFLAGS=$lt_LTCFLAGS
25755
John Criswell47fdd832003-07-14 16:52:07 +000025756# A language-specific compiler.
25757CC=$lt_compiler_GCJ
25758
25759# Is the compiler the GNU C compiler?
25760with_gcc=$GCC_GCJ
25761
25762# An ERE matcher.
25763EGREP=$lt_EGREP
25764
25765# The linker used to build libraries.
25766LD=$lt_LD_GCJ
25767
25768# Whether we need hard or soft links.
25769LN_S=$lt_LN_S
25770
25771# A BSD-compatible nm program.
25772NM=$lt_NM
25773
25774# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025775STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025776
25777# Used to examine libraries when file_magic_cmd begins "file"
25778MAGIC_CMD=$MAGIC_CMD
25779
25780# Used on cygwin: DLL creation program.
25781DLLTOOL="$DLLTOOL"
25782
25783# Used on cygwin: object dumper.
25784OBJDUMP="$OBJDUMP"
25785
25786# Used on cygwin: assembler.
25787AS="$AS"
25788
25789# The name of the directory that contains temporary libtool files.
25790objdir=$objdir
25791
25792# How to create reloadable object files.
25793reload_flag=$lt_reload_flag
25794reload_cmds=$lt_reload_cmds
25795
25796# How to pass a linker flag through the compiler.
25797wl=$lt_lt_prog_compiler_wl_GCJ
25798
25799# Object file suffix (normally "o").
25800objext="$ac_objext"
25801
25802# Old archive suffix (normally "a").
25803libext="$libext"
25804
25805# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025806shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025807
25808# Executable file suffix (normally "").
25809exeext="$exeext"
25810
25811# Additional compiler flags for building library objects.
25812pic_flag=$lt_lt_prog_compiler_pic_GCJ
25813pic_mode=$pic_mode
25814
25815# What is the maximum length of a command?
25816max_cmd_len=$lt_cv_sys_max_cmd_len
25817
25818# Does compiler simultaneously support -c and -o options?
25819compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25820
Reid Spencera773bd52006-08-04 18:18:08 +000025821# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025822need_locks=$lt_need_locks
25823
25824# Do we need the lib prefix for modules?
25825need_lib_prefix=$need_lib_prefix
25826
25827# Do we need a version for libraries?
25828need_version=$need_version
25829
25830# Whether dlopen is supported.
25831dlopen_support=$enable_dlopen
25832
25833# Whether dlopen of programs is supported.
25834dlopen_self=$enable_dlopen_self
25835
25836# Whether dlopen of statically linked programs is supported.
25837dlopen_self_static=$enable_dlopen_self_static
25838
25839# Compiler flag to prevent dynamic linking.
25840link_static_flag=$lt_lt_prog_compiler_static_GCJ
25841
25842# Compiler flag to turn off builtin functions.
25843no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25844
25845# Compiler flag to allow reflexive dlopens.
25846export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25847
25848# Compiler flag to generate shared objects directly from archives.
25849whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25850
25851# Compiler flag to generate thread-safe objects.
25852thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25853
25854# Library versioning type.
25855version_type=$version_type
25856
25857# Format of library name prefix.
25858libname_spec=$lt_libname_spec
25859
25860# List of archive names. First name is the real one, the rest are links.
25861# The last name is the one that the linker finds with -lNAME.
25862library_names_spec=$lt_library_names_spec
25863
25864# The coded name of the library, if different from the real name.
25865soname_spec=$lt_soname_spec
25866
25867# Commands used to build and install an old-style archive.
25868RANLIB=$lt_RANLIB
25869old_archive_cmds=$lt_old_archive_cmds_GCJ
25870old_postinstall_cmds=$lt_old_postinstall_cmds
25871old_postuninstall_cmds=$lt_old_postuninstall_cmds
25872
25873# Create an old-style archive from a shared archive.
25874old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25875
25876# Create a temporary old-style archive to link instead of a shared archive.
25877old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25878
25879# Commands used to build and install a shared archive.
25880archive_cmds=$lt_archive_cmds_GCJ
25881archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25882postinstall_cmds=$lt_postinstall_cmds
25883postuninstall_cmds=$lt_postuninstall_cmds
25884
25885# Commands used to build a loadable module (assumed same as above if empty)
25886module_cmds=$lt_module_cmds_GCJ
25887module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25888
25889# Commands to strip libraries.
25890old_striplib=$lt_old_striplib
25891striplib=$lt_striplib
25892
25893# Dependencies to place before the objects being linked to create a
25894# shared library.
25895predep_objects=$lt_predep_objects_GCJ
25896
25897# Dependencies to place after the objects being linked to create a
25898# shared library.
25899postdep_objects=$lt_postdep_objects_GCJ
25900
25901# Dependencies to place before the objects being linked to create a
25902# shared library.
25903predeps=$lt_predeps_GCJ
25904
25905# Dependencies to place after the objects being linked to create a
25906# shared library.
25907postdeps=$lt_postdeps_GCJ
25908
25909# The library search path used internally by the compiler when linking
25910# a shared library.
25911compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25912
25913# Method to check whether dependent libraries are shared objects.
25914deplibs_check_method=$lt_deplibs_check_method
25915
25916# Command to use when deplibs_check_method == file_magic.
25917file_magic_cmd=$lt_file_magic_cmd
25918
25919# Flag that allows shared libraries with undefined symbols to be built.
25920allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25921
25922# Flag that forces no undefined symbols.
25923no_undefined_flag=$lt_no_undefined_flag_GCJ
25924
25925# Commands used to finish a libtool library installation in a directory.
25926finish_cmds=$lt_finish_cmds
25927
25928# Same as above, but a single script fragment to be evaled but not shown.
25929finish_eval=$lt_finish_eval
25930
25931# Take the output of nm and produce a listing of raw symbols and C names.
25932global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25933
25934# Transform the output of nm in a proper C declaration
25935global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25936
25937# Transform the output of nm in a C name address pair
25938global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25939
25940# This is the shared library runtime path variable.
25941runpath_var=$runpath_var
25942
25943# This is the shared library path variable.
25944shlibpath_var=$shlibpath_var
25945
25946# Is shlibpath searched before the hard-coded library search path?
25947shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25948
25949# How to hardcode a shared library path into an executable.
25950hardcode_action=$hardcode_action_GCJ
25951
25952# Whether we should hardcode library paths into libraries.
25953hardcode_into_libs=$hardcode_into_libs
25954
25955# Flag to hardcode \$libdir into a binary during linking.
25956# This must work even if \$libdir does not exist.
25957hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25958
25959# If ld is used when linking, flag to hardcode \$libdir into
25960# a binary during linking. This must work even if \$libdir does
25961# not exist.
25962hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25963
25964# Whether we need a single -rpath flag with a separated argument.
25965hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25966
25967# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25968# resulting binary.
25969hardcode_direct=$hardcode_direct_GCJ
25970
25971# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25972# resulting binary.
25973hardcode_minus_L=$hardcode_minus_L_GCJ
25974
25975# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25976# the resulting binary.
25977hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25978
25979# Set to yes if building a shared library automatically hardcodes DIR into the library
25980# and all subsequent libraries and executables linked against it.
25981hardcode_automatic=$hardcode_automatic_GCJ
25982
25983# Variables whose values should be saved in libtool wrapper scripts and
25984# restored at relink time.
25985variables_saved_for_relink="$variables_saved_for_relink"
25986
25987# Whether libtool must link a program against all its dependency libraries.
25988link_all_deplibs=$link_all_deplibs_GCJ
25989
25990# Compile-time system search path for libraries
25991sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25992
25993# Run-time system search path for libraries
25994sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25995
25996# Fix the shell variable \$srcfile for the compiler.
25997fix_srcfile_path="$fix_srcfile_path_GCJ"
25998
25999# Set to yes if exported symbols are required.
26000always_export_symbols=$always_export_symbols_GCJ
26001
26002# The commands to list exported symbols.
26003export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26004
26005# The commands to extract the exported symbol list from a shared archive.
26006extract_expsyms_cmds=$lt_extract_expsyms_cmds
26007
26008# Symbols that should not be listed in the preloaded symbols.
26009exclude_expsyms=$lt_exclude_expsyms_GCJ
26010
26011# Symbols that must always be exported.
26012include_expsyms=$lt_include_expsyms_GCJ
26013
26014# ### END LIBTOOL TAG CONFIG: $tagname
26015
26016__EOF__
26017
26018
26019else
26020 # If there is no Makefile yet, we rely on a make rule to execute
26021 # `config.status --recheck' to rerun these tests and create the
26022 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26024 if test -f "$ltmain_in"; then
26025 test -f Makefile && make "$ltmain"
26026 fi
John Criswell47fdd832003-07-14 16:52:07 +000026027fi
26028
26029
26030ac_ext=c
26031ac_cpp='$CPP $CPPFLAGS'
26032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_c_compiler_gnu
26035
26036CC="$lt_save_CC"
26037
26038 else
26039 tagname=""
26040 fi
26041 ;;
26042
26043 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026044 ac_ext=c
26045ac_cpp='$CPP $CPPFLAGS'
26046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026049
26050
26051# Source file extension for RC test sources.
26052ac_ext=rc
26053
26054# Object file extension for compiled RC test sources.
26055objext=o
26056objext_RC=$objext
26057
26058# Code to be used in simple compile tests
26059lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26060
26061# Code to be used in simple link tests
26062lt_simple_link_test_code="$lt_simple_compile_test_code"
26063
26064# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26065
26066# If no C compiler was specified, use CC.
26067LTCC=${LTCC-"$CC"}
26068
Reid Spencera773bd52006-08-04 18:18:08 +000026069# If no C compiler flags were specified, use CFLAGS.
26070LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26071
John Criswell47fdd832003-07-14 16:52:07 +000026072# Allow CC to be a program name with arguments.
26073compiler=$CC
26074
26075
Reid Spencera773bd52006-08-04 18:18:08 +000026076# save warnings/boilerplate of simple test code
26077ac_outfile=conftest.$ac_objext
26078printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26079eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26080_lt_compiler_boilerplate=`cat conftest.err`
26081$rm conftest*
26082
26083ac_outfile=conftest.$ac_objext
26084printf "$lt_simple_link_test_code" >conftest.$ac_ext
26085eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26086_lt_linker_boilerplate=`cat conftest.err`
26087$rm conftest*
26088
26089
John Criswell47fdd832003-07-14 16:52:07 +000026090# Allow CC to be a program name with arguments.
26091lt_save_CC="$CC"
26092CC=${RC-"windres"}
26093compiler=$CC
26094compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026095for cc_temp in $compiler""; do
26096 case $cc_temp in
26097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26099 \-*) ;;
26100 *) break;;
26101 esac
26102done
26103cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26104
John Criswell47fdd832003-07-14 16:52:07 +000026105lt_cv_prog_compiler_c_o_RC=yes
26106
26107# The else clause should only fire when bootstrapping the
26108# libtool distribution, otherwise you forgot to ship ltmain.sh
26109# with your package, and you will get complaints that there are
26110# no rules to generate ltmain.sh.
26111if test -f "$ltmain"; then
26112 # See if we are running on zsh, and set the options which allow our commands through
26113 # without removal of \ escapes.
26114 if test -n "${ZSH_VERSION+set}" ; then
26115 setopt NO_GLOB_SUBST
26116 fi
26117 # Now quote all the things that may contain metacharacters while being
26118 # careful not to overquote the AC_SUBSTed values. We take copies of the
26119 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026120 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 +000026121 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26124 deplibs_check_method reload_flag reload_cmds need_locks \
26125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26126 lt_cv_sys_global_symbol_to_c_name_address \
26127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26128 old_postinstall_cmds old_postuninstall_cmds \
26129 compiler_RC \
26130 CC_RC \
26131 LD_RC \
26132 lt_prog_compiler_wl_RC \
26133 lt_prog_compiler_pic_RC \
26134 lt_prog_compiler_static_RC \
26135 lt_prog_compiler_no_builtin_flag_RC \
26136 export_dynamic_flag_spec_RC \
26137 thread_safe_flag_spec_RC \
26138 whole_archive_flag_spec_RC \
26139 enable_shared_with_static_runtimes_RC \
26140 old_archive_cmds_RC \
26141 old_archive_from_new_cmds_RC \
26142 predep_objects_RC \
26143 postdep_objects_RC \
26144 predeps_RC \
26145 postdeps_RC \
26146 compiler_lib_search_path_RC \
26147 archive_cmds_RC \
26148 archive_expsym_cmds_RC \
26149 postinstall_cmds_RC \
26150 postuninstall_cmds_RC \
26151 old_archive_from_expsyms_cmds_RC \
26152 allow_undefined_flag_RC \
26153 no_undefined_flag_RC \
26154 export_symbols_cmds_RC \
26155 hardcode_libdir_flag_spec_RC \
26156 hardcode_libdir_flag_spec_ld_RC \
26157 hardcode_libdir_separator_RC \
26158 hardcode_automatic_RC \
26159 module_cmds_RC \
26160 module_expsym_cmds_RC \
26161 lt_cv_prog_compiler_c_o_RC \
26162 exclude_expsyms_RC \
26163 include_expsyms_RC; do
26164
26165 case $var in
26166 old_archive_cmds_RC | \
26167 old_archive_from_new_cmds_RC | \
26168 archive_cmds_RC | \
26169 archive_expsym_cmds_RC | \
26170 module_cmds_RC | \
26171 module_expsym_cmds_RC | \
26172 old_archive_from_expsyms_cmds_RC | \
26173 export_symbols_cmds_RC | \
26174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26175 postinstall_cmds | postuninstall_cmds | \
26176 old_postinstall_cmds | old_postuninstall_cmds | \
26177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26178 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026179 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 +000026180 ;;
26181 *)
26182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26183 ;;
26184 esac
26185 done
26186
26187 case $lt_echo in
26188 *'\$0 --fallback-echo"')
26189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26190 ;;
26191 esac
26192
26193cfgfile="$ofile"
26194
26195 cat <<__EOF__ >> "$cfgfile"
26196# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26197
26198# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26199
26200# Shell to use when invoking shell scripts.
26201SHELL=$lt_SHELL
26202
26203# Whether or not to build shared libraries.
26204build_libtool_libs=$enable_shared
26205
26206# Whether or not to build static libraries.
26207build_old_libs=$enable_static
26208
26209# Whether or not to add -lc for building shared libraries.
26210build_libtool_need_lc=$archive_cmds_need_lc_RC
26211
26212# Whether or not to disallow shared libs when runtime libs are static
26213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26214
26215# Whether or not to optimize for fast installation.
26216fast_install=$enable_fast_install
26217
26218# The host system.
26219host_alias=$host_alias
26220host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026221host_os=$host_os
26222
26223# The build system.
26224build_alias=$build_alias
26225build=$build
26226build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026227
26228# An echo program that does not interpret backslashes.
26229echo=$lt_echo
26230
26231# The archiver.
26232AR=$lt_AR
26233AR_FLAGS=$lt_AR_FLAGS
26234
26235# A C compiler.
26236LTCC=$lt_LTCC
26237
Reid Spencera773bd52006-08-04 18:18:08 +000026238# LTCC compiler flags.
26239LTCFLAGS=$lt_LTCFLAGS
26240
John Criswell47fdd832003-07-14 16:52:07 +000026241# A language-specific compiler.
26242CC=$lt_compiler_RC
26243
26244# Is the compiler the GNU C compiler?
26245with_gcc=$GCC_RC
26246
26247# An ERE matcher.
26248EGREP=$lt_EGREP
26249
26250# The linker used to build libraries.
26251LD=$lt_LD_RC
26252
26253# Whether we need hard or soft links.
26254LN_S=$lt_LN_S
26255
26256# A BSD-compatible nm program.
26257NM=$lt_NM
26258
26259# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026260STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026261
26262# Used to examine libraries when file_magic_cmd begins "file"
26263MAGIC_CMD=$MAGIC_CMD
26264
26265# Used on cygwin: DLL creation program.
26266DLLTOOL="$DLLTOOL"
26267
26268# Used on cygwin: object dumper.
26269OBJDUMP="$OBJDUMP"
26270
26271# Used on cygwin: assembler.
26272AS="$AS"
26273
26274# The name of the directory that contains temporary libtool files.
26275objdir=$objdir
26276
26277# How to create reloadable object files.
26278reload_flag=$lt_reload_flag
26279reload_cmds=$lt_reload_cmds
26280
26281# How to pass a linker flag through the compiler.
26282wl=$lt_lt_prog_compiler_wl_RC
26283
26284# Object file suffix (normally "o").
26285objext="$ac_objext"
26286
26287# Old archive suffix (normally "a").
26288libext="$libext"
26289
26290# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026291shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026292
26293# Executable file suffix (normally "").
26294exeext="$exeext"
26295
26296# Additional compiler flags for building library objects.
26297pic_flag=$lt_lt_prog_compiler_pic_RC
26298pic_mode=$pic_mode
26299
26300# What is the maximum length of a command?
26301max_cmd_len=$lt_cv_sys_max_cmd_len
26302
26303# Does compiler simultaneously support -c and -o options?
26304compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26305
Reid Spencera773bd52006-08-04 18:18:08 +000026306# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026307need_locks=$lt_need_locks
26308
26309# Do we need the lib prefix for modules?
26310need_lib_prefix=$need_lib_prefix
26311
26312# Do we need a version for libraries?
26313need_version=$need_version
26314
26315# Whether dlopen is supported.
26316dlopen_support=$enable_dlopen
26317
26318# Whether dlopen of programs is supported.
26319dlopen_self=$enable_dlopen_self
26320
26321# Whether dlopen of statically linked programs is supported.
26322dlopen_self_static=$enable_dlopen_self_static
26323
26324# Compiler flag to prevent dynamic linking.
26325link_static_flag=$lt_lt_prog_compiler_static_RC
26326
26327# Compiler flag to turn off builtin functions.
26328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26329
26330# Compiler flag to allow reflexive dlopens.
26331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26332
26333# Compiler flag to generate shared objects directly from archives.
26334whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26335
26336# Compiler flag to generate thread-safe objects.
26337thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26338
26339# Library versioning type.
26340version_type=$version_type
26341
26342# Format of library name prefix.
26343libname_spec=$lt_libname_spec
26344
26345# List of archive names. First name is the real one, the rest are links.
26346# The last name is the one that the linker finds with -lNAME.
26347library_names_spec=$lt_library_names_spec
26348
26349# The coded name of the library, if different from the real name.
26350soname_spec=$lt_soname_spec
26351
26352# Commands used to build and install an old-style archive.
26353RANLIB=$lt_RANLIB
26354old_archive_cmds=$lt_old_archive_cmds_RC
26355old_postinstall_cmds=$lt_old_postinstall_cmds
26356old_postuninstall_cmds=$lt_old_postuninstall_cmds
26357
26358# Create an old-style archive from a shared archive.
26359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26360
26361# Create a temporary old-style archive to link instead of a shared archive.
26362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26363
26364# Commands used to build and install a shared archive.
26365archive_cmds=$lt_archive_cmds_RC
26366archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26367postinstall_cmds=$lt_postinstall_cmds
26368postuninstall_cmds=$lt_postuninstall_cmds
26369
26370# Commands used to build a loadable module (assumed same as above if empty)
26371module_cmds=$lt_module_cmds_RC
26372module_expsym_cmds=$lt_module_expsym_cmds_RC
26373
26374# Commands to strip libraries.
26375old_striplib=$lt_old_striplib
26376striplib=$lt_striplib
26377
26378# Dependencies to place before the objects being linked to create a
26379# shared library.
26380predep_objects=$lt_predep_objects_RC
26381
26382# Dependencies to place after the objects being linked to create a
26383# shared library.
26384postdep_objects=$lt_postdep_objects_RC
26385
26386# Dependencies to place before the objects being linked to create a
26387# shared library.
26388predeps=$lt_predeps_RC
26389
26390# Dependencies to place after the objects being linked to create a
26391# shared library.
26392postdeps=$lt_postdeps_RC
26393
26394# The library search path used internally by the compiler when linking
26395# a shared library.
26396compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26397
26398# Method to check whether dependent libraries are shared objects.
26399deplibs_check_method=$lt_deplibs_check_method
26400
26401# Command to use when deplibs_check_method == file_magic.
26402file_magic_cmd=$lt_file_magic_cmd
26403
26404# Flag that allows shared libraries with undefined symbols to be built.
26405allow_undefined_flag=$lt_allow_undefined_flag_RC
26406
26407# Flag that forces no undefined symbols.
26408no_undefined_flag=$lt_no_undefined_flag_RC
26409
26410# Commands used to finish a libtool library installation in a directory.
26411finish_cmds=$lt_finish_cmds
26412
26413# Same as above, but a single script fragment to be evaled but not shown.
26414finish_eval=$lt_finish_eval
26415
26416# Take the output of nm and produce a listing of raw symbols and C names.
26417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26418
26419# Transform the output of nm in a proper C declaration
26420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26421
26422# Transform the output of nm in a C name address pair
26423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26424
26425# This is the shared library runtime path variable.
26426runpath_var=$runpath_var
26427
26428# This is the shared library path variable.
26429shlibpath_var=$shlibpath_var
26430
26431# Is shlibpath searched before the hard-coded library search path?
26432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26433
26434# How to hardcode a shared library path into an executable.
26435hardcode_action=$hardcode_action_RC
26436
26437# Whether we should hardcode library paths into libraries.
26438hardcode_into_libs=$hardcode_into_libs
26439
26440# Flag to hardcode \$libdir into a binary during linking.
26441# This must work even if \$libdir does not exist.
26442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26443
26444# If ld is used when linking, flag to hardcode \$libdir into
26445# a binary during linking. This must work even if \$libdir does
26446# not exist.
26447hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26448
26449# Whether we need a single -rpath flag with a separated argument.
26450hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26451
26452# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26453# resulting binary.
26454hardcode_direct=$hardcode_direct_RC
26455
26456# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26457# resulting binary.
26458hardcode_minus_L=$hardcode_minus_L_RC
26459
26460# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26461# the resulting binary.
26462hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26463
26464# Set to yes if building a shared library automatically hardcodes DIR into the library
26465# and all subsequent libraries and executables linked against it.
26466hardcode_automatic=$hardcode_automatic_RC
26467
26468# Variables whose values should be saved in libtool wrapper scripts and
26469# restored at relink time.
26470variables_saved_for_relink="$variables_saved_for_relink"
26471
26472# Whether libtool must link a program against all its dependency libraries.
26473link_all_deplibs=$link_all_deplibs_RC
26474
26475# Compile-time system search path for libraries
26476sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26477
26478# Run-time system search path for libraries
26479sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26480
26481# Fix the shell variable \$srcfile for the compiler.
26482fix_srcfile_path="$fix_srcfile_path_RC"
26483
26484# Set to yes if exported symbols are required.
26485always_export_symbols=$always_export_symbols_RC
26486
26487# The commands to list exported symbols.
26488export_symbols_cmds=$lt_export_symbols_cmds_RC
26489
26490# The commands to extract the exported symbol list from a shared archive.
26491extract_expsyms_cmds=$lt_extract_expsyms_cmds
26492
26493# Symbols that should not be listed in the preloaded symbols.
26494exclude_expsyms=$lt_exclude_expsyms_RC
26495
26496# Symbols that must always be exported.
26497include_expsyms=$lt_include_expsyms_RC
26498
26499# ### END LIBTOOL TAG CONFIG: $tagname
26500
26501__EOF__
26502
26503
26504else
26505 # If there is no Makefile yet, we rely on a make rule to execute
26506 # `config.status --recheck' to rerun these tests and create the
26507 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26509 if test -f "$ltmain_in"; then
26510 test -f Makefile && make "$ltmain"
26511 fi
John Criswell47fdd832003-07-14 16:52:07 +000026512fi
26513
26514
26515ac_ext=c
26516ac_cpp='$CPP $CPPFLAGS'
26517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26519ac_compiler_gnu=$ac_cv_c_compiler_gnu
26520
26521CC="$lt_save_CC"
26522
26523 ;;
26524
26525 *)
26526 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26527echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26528 { (exit 1); exit 1; }; }
26529 ;;
26530 esac
26531
26532 # Append the new tag name to the list of available tags.
26533 if test -n "$tagname" ; then
26534 available_tags="$available_tags $tagname"
26535 fi
26536 fi
26537 done
26538 IFS="$lt_save_ifs"
26539
26540 # Now substitute the updated list of available tags.
26541 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26542 mv "${ofile}T" "$ofile"
26543 chmod +x "$ofile"
26544 else
26545 rm -f "${ofile}T"
26546 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26547echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26548 { (exit 1); exit 1; }; }
26549 fi
26550fi
John Criswell7a73b802003-06-30 21:59:07 +000026551
26552
26553
26554# This can be used to rebuild libtool when needed
26555LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26556
26557# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026558LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026559
26560# Prevent multiple expansion
26561
26562
26563
John Criswell47fdd832003-07-14 16:52:07 +000026564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026581
Reid Spencer582a23c2004-12-29 07:07:57 +000026582if test "$lt_cv_dlopen_self" = "yes" ; then
26583
26584cat >>confdefs.h <<\_ACEOF
26585#define CAN_DLOPEN_SELF 1
26586_ACEOF
26587
26588fi
26589
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026590etags_version=`$ETAGS --version 2>&1`
26591case "$etags_version" in
26592 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26593 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26594 *) ETAGSFLAGS="" ;;
26595esac
26596ETAGSFLAGS=$ETAGSFLAGS
26597
26598
Reid Spencer7931a782004-12-27 06:15:02 +000026599if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026600 LLVMGCC="llvm-gcc${EXEEXT}"
26601 LLVMGXX="llvm-g++${EXEEXT}"
26602 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26603set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026606if test "${ac_cv_path_LLVMGCC+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26608else
26609 case $LLVMGCC in
26610 [\\/]* | ?:[\\/]*)
26611 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26612 ;;
26613 *)
26614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26615for as_dir in $PATH
26616do
26617 IFS=$as_save_IFS
26618 test -z "$as_dir" && as_dir=.
26619 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026620 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 +000026621 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26623 break 2
26624 fi
26625done
26626done
Reid Spencera773bd52006-08-04 18:18:08 +000026627IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026628
Reid Spencer59473af2004-12-25 07:31:29 +000026629 ;;
26630esac
26631fi
26632LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026633if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026634 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26635echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026636else
Reid Spencera773bd52006-08-04 18:18:08 +000026637 { echo "$as_me:$LINENO: result: no" >&5
26638echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026639fi
26640
Reid Spencera773bd52006-08-04 18:18:08 +000026641
Reid Spencerc84492c2005-06-02 22:34:49 +000026642 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26643set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026646if test "${ac_cv_path_LLVMGXX+set}" = set; then
26647 echo $ECHO_N "(cached) $ECHO_C" >&6
26648else
26649 case $LLVMGXX in
26650 [\\/]* | ?:[\\/]*)
26651 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26652 ;;
26653 *)
26654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26655for as_dir in $PATH
26656do
26657 IFS=$as_save_IFS
26658 test -z "$as_dir" && as_dir=.
26659 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026660 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 +000026661 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26663 break 2
26664 fi
26665done
26666done
Reid Spencera773bd52006-08-04 18:18:08 +000026667IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026668
Reid Spencer59473af2004-12-25 07:31:29 +000026669 ;;
26670esac
26671fi
26672LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026673if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026674 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26675echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026676else
Reid Spencera773bd52006-08-04 18:18:08 +000026677 { echo "$as_me:$LINENO: result: no" >&5
26678echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026679fi
26680
Reid Spencera773bd52006-08-04 18:18:08 +000026681
Reid Spencer59473af2004-12-25 07:31:29 +000026682else
Reid Spencerc84492c2005-06-02 22:34:49 +000026683 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26684 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026685 LLVMGCC=$LLVMGCC
26686
26687 LLVMGXX=$LLVMGXX
26688
26689fi
26690
Reid Spencera773bd52006-08-04 18:18:08 +000026691{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26692echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026693
Reid Spencer86901802004-12-08 23:07:27 +000026694ICC=no
26695IXX=no
26696case $CC in
26697 icc*|icpc*)
26698 ICC=yes
26699 IXX=yes
26700 ;;
26701 *)
26702 ;;
26703esac
26704
Duraid Madina937c60a2006-02-15 07:57:42 +000026705if test "$GCC" != "yes" && test "$ICC" != "yes"
26706then
26707 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26708echo "$as_me: error: gcc|icc required but not found" >&2;}
26709 { (exit 1); exit 1; }; }
26710fi
26711
26712if test "$GXX" != "yes" && test "$IXX" != "yes"
26713then
26714 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26715echo "$as_me: error: g++|icc required but not found" >&2;}
26716 { (exit 1); exit 1; }; }
26717fi
26718
Reid Spencer86901802004-12-08 23:07:27 +000026719if test "$GCC" = "yes"
26720then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026721 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026722 if test "$gccmajor" -lt "3"
26723 then
26724 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026725echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26726 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026727 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026728fi
26729
26730if test -z "$llvm_cv_gnu_make_command"
26731then
26732 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26733echo "$as_me: error: GNU Make required but not found" >&2;}
26734 { (exit 1); exit 1; }; }
26735fi
26736
Reid Spencera773bd52006-08-04 18:18:08 +000026737{ echo "$as_me:$LINENO: result: ok" >&5
26738echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026739
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026740
John Criswell7a73b802003-06-30 21:59:07 +000026741
Reid Spencera773bd52006-08-04 18:18:08 +000026742{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26743echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026744if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26746else
26747 ac_check_lib_save_LIBS=$LIBS
26748LIBS="-lelf $LIBS"
26749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026750/* confdefs.h. */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026755
Reid Spencera773bd52006-08-04 18:18:08 +000026756/* Override any GCC internal prototype to avoid an error.
26757 Use char because int might match the return type of a GCC
26758 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026759#ifdef __cplusplus
26760extern "C"
26761#endif
John Criswell7a73b802003-06-30 21:59:07 +000026762char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026763int
26764main ()
26765{
Reid Spencera773bd52006-08-04 18:18:08 +000026766return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026767 ;
26768 return 0;
26769}
26770_ACEOF
26771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026772if { (ac_try="$ac_link"
26773case "(($ac_try" in
26774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26776esac
26777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026780 grep -v '^ *+' conftest.er1 >conftest.err
26781 rm -f conftest.er1
26782 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26786 { (case "(($ac_try" in
26787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788 *) ac_try_echo=$ac_try;;
26789esac
26790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; } &&
26795 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026796 { (case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26799esac
26800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
26805 ac_cv_lib_elf_elf_begin=yes
26806else
26807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026808sed 's/^/| /' conftest.$ac_ext >&5
26809
Reid Spencera773bd52006-08-04 18:18:08 +000026810 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026811fi
Reid Spencera773bd52006-08-04 18:18:08 +000026812
26813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026814 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026815LIBS=$ac_check_lib_save_LIBS
26816fi
Reid Spencera773bd52006-08-04 18:18:08 +000026817{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26818echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026819if test $ac_cv_lib_elf_elf_begin = yes; then
26820 cat >>confdefs.h <<_ACEOF
26821#define HAVE_LIBELF 1
26822_ACEOF
26823
26824 LIBS="-lelf $LIBS"
26825
26826fi
26827
26828
Reid Spencera773bd52006-08-04 18:18:08 +000026829{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26830echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026831if test "${ac_cv_lib_m_sin+set}" = set; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26833else
26834 ac_check_lib_save_LIBS=$LIBS
26835LIBS="-lm $LIBS"
26836cat >conftest.$ac_ext <<_ACEOF
26837/* confdefs.h. */
26838_ACEOF
26839cat confdefs.h >>conftest.$ac_ext
26840cat >>conftest.$ac_ext <<_ACEOF
26841/* end confdefs.h. */
26842
Reid Spencera773bd52006-08-04 18:18:08 +000026843/* Override any GCC internal prototype to avoid an error.
26844 Use char because int might match the return type of a GCC
26845 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026846#ifdef __cplusplus
26847extern "C"
26848#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026849char sin ();
26850int
26851main ()
26852{
Reid Spencera773bd52006-08-04 18:18:08 +000026853return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026854 ;
26855 return 0;
26856}
26857_ACEOF
26858rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026859if { (ac_try="$ac_link"
26860case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26863esac
26864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026866 ac_status=$?
26867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26873 { (case "(($ac_try" in
26874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26876esac
26877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
26882 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026883 { (case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26886esac
26887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_lib_m_sin=yes
26893else
26894 echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
Reid Spencera773bd52006-08-04 18:18:08 +000026897 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026898fi
Reid Spencera773bd52006-08-04 18:18:08 +000026899
26900rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026901 conftest$ac_exeext conftest.$ac_ext
26902LIBS=$ac_check_lib_save_LIBS
26903fi
Reid Spencera773bd52006-08-04 18:18:08 +000026904{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26905echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026906if test $ac_cv_lib_m_sin = yes; then
26907 cat >>confdefs.h <<_ACEOF
26908#define HAVE_LIBM 1
26909_ACEOF
26910
26911 LIBS="-lm $LIBS"
26912
26913fi
26914
Jeff Cohen28783c32007-01-12 18:22:38 +000026915if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026916
Reid Spencera773bd52006-08-04 18:18:08 +000026917{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26918echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026919if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026920 echo $ECHO_N "(cached) $ECHO_C" >&6
26921else
26922 ac_check_lib_save_LIBS=$LIBS
26923LIBS="-limagehlp $LIBS"
26924cat >conftest.$ac_ext <<_ACEOF
26925/* confdefs.h. */
26926_ACEOF
26927cat confdefs.h >>conftest.$ac_ext
26928cat >>conftest.$ac_ext <<_ACEOF
26929/* end confdefs.h. */
26930
Reid Spencer48fdf912006-06-01 19:03:21 +000026931
Reid Spencer484fc8e2006-06-01 16:55:59 +000026932int
26933main ()
26934{
Reid Spencera773bd52006-08-04 18:18:08 +000026935return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026936 ;
26937 return 0;
26938}
26939_ACEOF
26940rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026941if { (ac_try="$ac_link"
26942case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26945esac
26946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026948 ac_status=$?
26949 grep -v '^ *+' conftest.er1 >conftest.err
26950 rm -f conftest.er1
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26955 { (case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26958esac
26959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026961 ac_status=$?
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; } &&
26964 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026965 { (case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26968esac
26969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026971 ac_status=$?
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026974 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026975else
26976 echo "$as_me: failed program was:" >&5
26977sed 's/^/| /' conftest.$ac_ext >&5
26978
Reid Spencera773bd52006-08-04 18:18:08 +000026979 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026980fi
Reid Spencera773bd52006-08-04 18:18:08 +000026981
26982rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026983 conftest$ac_exeext conftest.$ac_ext
26984LIBS=$ac_check_lib_save_LIBS
26985fi
Reid Spencera773bd52006-08-04 18:18:08 +000026986{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26987echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026988if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026989 cat >>confdefs.h <<_ACEOF
26990#define HAVE_LIBIMAGEHLP 1
26991_ACEOF
26992
26993 LIBS="-limagehlp $LIBS"
26994
26995fi
26996
26997
Reid Spencera773bd52006-08-04 18:18:08 +000026998{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26999echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027000if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002else
27003 ac_check_lib_save_LIBS=$LIBS
27004LIBS="-lpsapi $LIBS"
27005cat >conftest.$ac_ext <<_ACEOF
27006/* confdefs.h. */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h. */
27011
Reid Spencer48fdf912006-06-01 19:03:21 +000027012
Reid Spencer484fc8e2006-06-01 16:55:59 +000027013int
27014main ()
27015{
Reid Spencera773bd52006-08-04 18:18:08 +000027016return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027017 ;
27018 return 0;
27019}
27020_ACEOF
27021rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027022if { (ac_try="$ac_link"
27023case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026esac
27027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027029 ac_status=$?
27030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036 { (case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27039esac
27040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027042 ac_status=$?
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; } &&
27045 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027046 { (case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27049esac
27050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027052 ac_status=$?
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027055 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027056else
27057 echo "$as_me: failed program was:" >&5
27058sed 's/^/| /' conftest.$ac_ext >&5
27059
Reid Spencera773bd52006-08-04 18:18:08 +000027060 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027061fi
Reid Spencera773bd52006-08-04 18:18:08 +000027062
27063rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027064 conftest$ac_exeext conftest.$ac_ext
27065LIBS=$ac_check_lib_save_LIBS
27066fi
Reid Spencera773bd52006-08-04 18:18:08 +000027067{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27068echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027069if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027070 cat >>confdefs.h <<_ACEOF
27071#define HAVE_LIBPSAPI 1
27072_ACEOF
27073
27074 LIBS="-lpsapi $LIBS"
27075
27076fi
27077
27078fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027079
Reid Spencera773bd52006-08-04 18:18:08 +000027080{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27081echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027082if test "${ac_cv_search_lt_dlopen+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27084else
27085 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027086cat >conftest.$ac_ext <<_ACEOF
27087/* confdefs.h. */
27088_ACEOF
27089cat confdefs.h >>conftest.$ac_ext
27090cat >>conftest.$ac_ext <<_ACEOF
27091/* end confdefs.h. */
27092
Reid Spencera773bd52006-08-04 18:18:08 +000027093/* Override any GCC internal prototype to avoid an error.
27094 Use char because int might match the return type of a GCC
27095 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027096#ifdef __cplusplus
27097extern "C"
27098#endif
Reid Spencer17795972004-11-18 09:47:37 +000027099char lt_dlopen ();
27100int
27101main ()
27102{
Reid Spencera773bd52006-08-04 18:18:08 +000027103return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027104 ;
27105 return 0;
27106}
27107_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027108for ac_lib in '' ltdl; do
27109 if test -z "$ac_lib"; then
27110 ac_res="none required"
27111 else
27112 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027114 fi
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116if { (ac_try="$ac_link"
27117case "(($ac_try" in
27118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27120esac
27121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027123 ac_status=$?
27124 grep -v '^ *+' conftest.er1 >conftest.err
27125 rm -f conftest.er1
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27130 { (case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27133esac
27134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; } &&
27139 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027140 { (case "(($ac_try" in
27141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27142 *) ac_try_echo=$ac_try;;
27143esac
27144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27145 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027146 ac_status=$?
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027149 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027150else
27151 echo "$as_me: failed program was:" >&5
27152sed 's/^/| /' conftest.$ac_ext >&5
27153
Reid Spencera773bd52006-08-04 18:18:08 +000027154
Reid Spencer17795972004-11-18 09:47:37 +000027155fi
Reid Spencera773bd52006-08-04 18:18:08 +000027156
27157rm -f core conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext
27159 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27160 break
Reid Spencer17795972004-11-18 09:47:37 +000027161fi
Reid Spencera773bd52006-08-04 18:18:08 +000027162done
27163if test "${ac_cv_search_lt_dlopen+set}" = set; then
27164 :
27165else
27166 ac_cv_search_lt_dlopen=no
27167fi
27168rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027169LIBS=$ac_func_search_save_LIBS
27170fi
Reid Spencera773bd52006-08-04 18:18:08 +000027171{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27172echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27173ac_res=$ac_cv_search_lt_dlopen
27174if test "$ac_res" != no; then
27175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027176
27177cat >>confdefs.h <<\_ACEOF
27178#define HAVE_LT_DLOPEN 1
27179_ACEOF
27180
27181else
27182 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27183 not be available" >&5
27184echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27185 not be available" >&2;}
27186fi
27187
27188
Reid Spencera773bd52006-08-04 18:18:08 +000027189{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27190echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027191if test "${ac_cv_search_dlopen+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027195cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027196/* confdefs.h. */
27197_ACEOF
27198cat confdefs.h >>conftest.$ac_ext
27199cat >>conftest.$ac_ext <<_ACEOF
27200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027201
Reid Spencera773bd52006-08-04 18:18:08 +000027202/* Override any GCC internal prototype to avoid an error.
27203 Use char because int might match the return type of a GCC
27204 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027205#ifdef __cplusplus
27206extern "C"
27207#endif
John Criswell7a73b802003-06-30 21:59:07 +000027208char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027209int
27210main ()
27211{
Reid Spencera773bd52006-08-04 18:18:08 +000027212return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027213 ;
27214 return 0;
27215}
27216_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027217for ac_lib in '' dl; do
27218 if test -z "$ac_lib"; then
27219 ac_res="none required"
27220 else
27221 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027223 fi
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225if { (ac_try="$ac_link"
27226case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242esac
27243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027249 { (case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027258 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027259else
27260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027261sed 's/^/| /' conftest.$ac_ext >&5
27262
Reid Spencera773bd52006-08-04 18:18:08 +000027263
John Criswell7a73b802003-06-30 21:59:07 +000027264fi
Reid Spencera773bd52006-08-04 18:18:08 +000027265
27266rm -f core conftest.err conftest.$ac_objext \
27267 conftest$ac_exeext
27268 if test "${ac_cv_search_dlopen+set}" = set; then
27269 break
John Criswell7a73b802003-06-30 21:59:07 +000027270fi
Reid Spencera773bd52006-08-04 18:18:08 +000027271done
27272if test "${ac_cv_search_dlopen+set}" = set; then
27273 :
27274else
27275 ac_cv_search_dlopen=no
27276fi
27277rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027278LIBS=$ac_func_search_save_LIBS
27279fi
Reid Spencera773bd52006-08-04 18:18:08 +000027280{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27281echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27282ac_res=$ac_cv_search_dlopen
27283if test "$ac_res" != no; then
27284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027285
27286cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027287#define HAVE_DLOPEN 1
27288_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027289
27290else
Brian Gaekec45be042003-10-07 06:01:34 +000027291 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27292echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027293fi
27294
27295
Reid Spencera773bd52006-08-04 18:18:08 +000027296{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27297echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027298if test "${ac_cv_search_mallinfo+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027302cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027303/* confdefs.h. */
27304_ACEOF
27305cat confdefs.h >>conftest.$ac_ext
27306cat >>conftest.$ac_ext <<_ACEOF
27307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027308
Reid Spencera773bd52006-08-04 18:18:08 +000027309/* Override any GCC internal prototype to avoid an error.
27310 Use char because int might match the return type of a GCC
27311 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027312#ifdef __cplusplus
27313extern "C"
27314#endif
John Criswell7a73b802003-06-30 21:59:07 +000027315char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027316int
27317main ()
27318{
Reid Spencera773bd52006-08-04 18:18:08 +000027319return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027320 ;
27321 return 0;
27322}
27323_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027324for ac_lib in '' malloc; do
27325 if test -z "$ac_lib"; then
27326 ac_res="none required"
27327 else
27328 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027330 fi
27331 rm -f conftest.$ac_objext conftest$ac_exeext
27332if { (ac_try="$ac_link"
27333case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27336esac
27337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027339 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027340 grep -v '^ *+' conftest.er1 >conftest.err
27341 rm -f conftest.er1
27342 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346 { (case "(($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_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } &&
27355 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027356 { (case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27359esac
27360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027362 ac_status=$?
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027365 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027366else
27367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027368sed 's/^/| /' conftest.$ac_ext >&5
27369
Reid Spencera773bd52006-08-04 18:18:08 +000027370
John Criswell7a73b802003-06-30 21:59:07 +000027371fi
Reid Spencera773bd52006-08-04 18:18:08 +000027372
27373rm -f core conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext
27375 if test "${ac_cv_search_mallinfo+set}" = set; then
27376 break
John Criswell7a73b802003-06-30 21:59:07 +000027377fi
Reid Spencera773bd52006-08-04 18:18:08 +000027378done
27379if test "${ac_cv_search_mallinfo+set}" = set; then
27380 :
27381else
27382 ac_cv_search_mallinfo=no
27383fi
27384rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027385LIBS=$ac_func_search_save_LIBS
27386fi
Reid Spencera773bd52006-08-04 18:18:08 +000027387{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27388echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27389ac_res=$ac_cv_search_mallinfo
27390if test "$ac_res" != no; then
27391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027392
27393cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027394#define HAVE_MALLINFO 1
27395_ACEOF
27396
27397fi
27398
27399
Reid Spencer0a262ba2005-08-24 10:07:20 +000027400if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027401
Reid Spencera773bd52006-08-04 18:18:08 +000027402{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27403echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027404if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407 ac_check_lib_save_LIBS=$LIBS
27408LIBS="-lpthread $LIBS"
27409cat >conftest.$ac_ext <<_ACEOF
27410/* confdefs.h. */
27411_ACEOF
27412cat confdefs.h >>conftest.$ac_ext
27413cat >>conftest.$ac_ext <<_ACEOF
27414/* end confdefs.h. */
27415
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. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027419#ifdef __cplusplus
27420extern "C"
27421#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027422char pthread_mutex_init ();
27423int
27424main ()
27425{
Reid Spencera773bd52006-08-04 18:18:08 +000027426return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027427 ;
27428 return 0;
27429}
27430_ACEOF
27431rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027432if { (ac_try="$ac_link"
27433case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27436esac
27437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027439 ac_status=$?
27440 grep -v '^ *+' conftest.er1 >conftest.err
27441 rm -f conftest.er1
27442 cat conftest.err >&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27446 { (case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27449esac
27450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; } &&
27455 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027456 { (case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27459esac
27460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; }; then
27465 ac_cv_lib_pthread_pthread_mutex_init=yes
27466else
27467 echo "$as_me: failed program was:" >&5
27468sed 's/^/| /' conftest.$ac_ext >&5
27469
Reid Spencera773bd52006-08-04 18:18:08 +000027470 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027471fi
Reid Spencera773bd52006-08-04 18:18:08 +000027472
27473rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027474 conftest$ac_exeext conftest.$ac_ext
27475LIBS=$ac_check_lib_save_LIBS
27476fi
Reid Spencera773bd52006-08-04 18:18:08 +000027477{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27478echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027479if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27480 cat >>confdefs.h <<_ACEOF
27481#define HAVE_LIBPTHREAD 1
27482_ACEOF
27483
27484 LIBS="-lpthread $LIBS"
27485
27486fi
27487
Reid Spencera773bd52006-08-04 18:18:08 +000027488 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27489echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027490if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27492else
27493 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027494cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027495/* confdefs.h. */
27496_ACEOF
27497cat confdefs.h >>conftest.$ac_ext
27498cat >>conftest.$ac_ext <<_ACEOF
27499/* end confdefs.h. */
27500
Reid Spencera773bd52006-08-04 18:18:08 +000027501/* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027504#ifdef __cplusplus
27505extern "C"
27506#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027507char pthread_mutex_lock ();
27508int
27509main ()
27510{
Reid Spencera773bd52006-08-04 18:18:08 +000027511return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027512 ;
27513 return 0;
27514}
27515_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027516for ac_lib in '' pthread; do
27517 if test -z "$ac_lib"; then
27518 ac_res="none required"
27519 else
27520 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027522 fi
27523 rm -f conftest.$ac_objext conftest$ac_exeext
27524if { (ac_try="$ac_link"
27525case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27528esac
27529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027531 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027532 grep -v '^ *+' conftest.er1 >conftest.err
27533 rm -f conftest.er1
27534 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27538 { (case "(($ac_try" in
27539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540 *) ac_try_echo=$ac_try;;
27541esac
27542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27543 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027544 ac_status=$?
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027548 { (case "(($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_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027557 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027558else
27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
Reid Spencera773bd52006-08-04 18:18:08 +000027562
Brian Gaeke5f268f72003-12-05 19:29:01 +000027563fi
Reid Spencera773bd52006-08-04 18:18:08 +000027564
27565rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext
27567 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27568 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027569fi
Reid Spencera773bd52006-08-04 18:18:08 +000027570done
27571if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27572 :
27573else
27574 ac_cv_search_pthread_mutex_lock=no
27575fi
27576rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027577LIBS=$ac_func_search_save_LIBS
27578fi
Reid Spencera773bd52006-08-04 18:18:08 +000027579{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27580echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27581ac_res=$ac_cv_search_pthread_mutex_lock
27582if test "$ac_res" != no; then
27583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027584
John Criswell40468462004-09-24 21:19:06 +000027585cat >>confdefs.h <<\_ACEOF
27586#define HAVE_PTHREAD_MUTEX_LOCK 1
27587_ACEOF
27588
27589fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027590
Reid Spencer0a262ba2005-08-24 10:07:20 +000027591fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027592
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027593
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027594# Check whether --with-udis86 was given.
27595if test "${with_udis86+set}" = set; then
27596 withval=$with_udis86;
27597 USE_UDIS86=1
27598
27599 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027600 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027601 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27602 esac
27603
27604{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27605echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27606if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609 ac_check_lib_save_LIBS=$LIBS
27610LIBS="-ludis86 $LIBS"
27611cat >conftest.$ac_ext <<_ACEOF
27612/* confdefs.h. */
27613_ACEOF
27614cat confdefs.h >>conftest.$ac_ext
27615cat >>conftest.$ac_ext <<_ACEOF
27616/* end confdefs.h. */
27617
27618/* Override any GCC internal prototype to avoid an error.
27619 Use char because int might match the return type of a GCC
27620 builtin and then its argument prototype would still apply. */
27621#ifdef __cplusplus
27622extern "C"
27623#endif
27624char ud_init ();
27625int
27626main ()
27627{
27628return ud_init ();
27629 ;
27630 return 0;
27631}
27632_ACEOF
27633rm -f conftest.$ac_objext conftest$ac_exeext
27634if { (ac_try="$ac_link"
27635case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638esac
27639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_link") 2>conftest.er1
27641 ac_status=$?
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } &&
27647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27648 { (case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27651esac
27652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_try") 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; } &&
27657 { ac_try='test -s conftest$ac_exeext'
27658 { (case "(($ac_try" in
27659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660 *) ac_try_echo=$ac_try;;
27661esac
27662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_try") 2>&5
27664 ac_status=$?
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; }; then
27667 ac_cv_lib_udis86_ud_init=yes
27668else
27669 echo "$as_me: failed program was:" >&5
27670sed 's/^/| /' conftest.$ac_ext >&5
27671
27672 ac_cv_lib_udis86_ud_init=no
27673fi
27674
27675rm -f core conftest.err conftest.$ac_objext \
27676 conftest$ac_exeext conftest.$ac_ext
27677LIBS=$ac_check_lib_save_LIBS
27678fi
27679{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27680echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27681if test $ac_cv_lib_udis86_ud_init = yes; then
27682 cat >>confdefs.h <<_ACEOF
27683#define HAVE_LIBUDIS86 1
27684_ACEOF
27685
27686 LIBS="-ludis86 $LIBS"
27687
27688else
27689
27690 echo "Error! You need to have libudis86 around."
27691 exit -1
27692
27693fi
27694
27695
27696else
27697 USE_UDIS86=0
27698
27699fi
27700
27701
27702cat >>confdefs.h <<_ACEOF
27703#define USE_UDIS86 $USE_UDIS86
27704_ACEOF
27705
27706
27707
Reid Spencer59473af2004-12-25 07:31:29 +000027708
27709
27710
27711
27712
27713ac_header_dirent=no
27714for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27715 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027716{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27717echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027719 echo $ECHO_N "(cached) $ECHO_C" >&6
27720else
27721 cat >conftest.$ac_ext <<_ACEOF
27722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
27727#include <sys/types.h>
27728#include <$ac_hdr>
27729
27730int
27731main ()
27732{
27733if ((DIR *) 0)
27734return 0;
27735 ;
27736 return 0;
27737}
27738_ACEOF
27739rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027740if { (ac_try="$ac_compile"
27741case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757esac
27758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027760 ac_status=$?
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767esac
27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
27773 eval "$as_ac_Header=yes"
27774else
27775 echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
Reid Spencera773bd52006-08-04 18:18:08 +000027778 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027779fi
Reid Spencera773bd52006-08-04 18:18:08 +000027780
27781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027782fi
Reid Spencera773bd52006-08-04 18:18:08 +000027783ac_res=`eval echo '${'$as_ac_Header'}'`
27784 { echo "$as_me:$LINENO: result: $ac_res" >&5
27785echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027786if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27789_ACEOF
27790
27791ac_header_dirent=$ac_hdr; break
27792fi
27793
27794done
27795# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27796if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027797 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27798echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027799if test "${ac_cv_search_opendir+set}" = set; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27801else
27802 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027803cat >conftest.$ac_ext <<_ACEOF
27804/* confdefs.h. */
27805_ACEOF
27806cat confdefs.h >>conftest.$ac_ext
27807cat >>conftest.$ac_ext <<_ACEOF
27808/* end confdefs.h. */
27809
Reid Spencera773bd52006-08-04 18:18:08 +000027810/* Override any GCC internal prototype to avoid an error.
27811 Use char because int might match the return type of a GCC
27812 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027813#ifdef __cplusplus
27814extern "C"
27815#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027816char opendir ();
27817int
27818main ()
27819{
Reid Spencera773bd52006-08-04 18:18:08 +000027820return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027821 ;
27822 return 0;
27823}
27824_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027825for ac_lib in '' dir; do
27826 if test -z "$ac_lib"; then
27827 ac_res="none required"
27828 else
27829 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027831 fi
27832 rm -f conftest.$ac_objext conftest$ac_exeext
27833if { (ac_try="$ac_link"
27834case "(($ac_try" in
27835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836 *) ac_try_echo=$ac_try;;
27837esac
27838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027840 ac_status=$?
27841 grep -v '^ *+' conftest.er1 >conftest.err
27842 rm -f conftest.er1
27843 cat conftest.err >&5
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27847 { (case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27850esac
27851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027857 { (case "(($ac_try" in
27858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859 *) ac_try_echo=$ac_try;;
27860esac
27861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027863 ac_status=$?
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027866 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027867else
27868 echo "$as_me: failed program was:" >&5
27869sed 's/^/| /' conftest.$ac_ext >&5
27870
Reid Spencera773bd52006-08-04 18:18:08 +000027871
Reid Spencer59473af2004-12-25 07:31:29 +000027872fi
Reid Spencera773bd52006-08-04 18:18:08 +000027873
27874rm -f core conftest.err conftest.$ac_objext \
27875 conftest$ac_exeext
27876 if test "${ac_cv_search_opendir+set}" = set; then
27877 break
Reid Spencer59473af2004-12-25 07:31:29 +000027878fi
Reid Spencera773bd52006-08-04 18:18:08 +000027879done
27880if test "${ac_cv_search_opendir+set}" = set; then
27881 :
27882else
27883 ac_cv_search_opendir=no
27884fi
27885rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027886LIBS=$ac_func_search_save_LIBS
27887fi
Reid Spencera773bd52006-08-04 18:18:08 +000027888{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27889echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27890ac_res=$ac_cv_search_opendir
27891if test "$ac_res" != no; then
27892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027893
27894fi
27895
27896else
Reid Spencera773bd52006-08-04 18:18:08 +000027897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027899if test "${ac_cv_search_opendir+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901else
27902 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027903cat >conftest.$ac_ext <<_ACEOF
27904/* confdefs.h. */
27905_ACEOF
27906cat confdefs.h >>conftest.$ac_ext
27907cat >>conftest.$ac_ext <<_ACEOF
27908/* end confdefs.h. */
27909
Reid Spencera773bd52006-08-04 18:18:08 +000027910/* Override any GCC internal prototype to avoid an error.
27911 Use char because int might match the return type of a GCC
27912 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027913#ifdef __cplusplus
27914extern "C"
27915#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027916char opendir ();
27917int
27918main ()
27919{
Reid Spencera773bd52006-08-04 18:18:08 +000027920return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027921 ;
27922 return 0;
27923}
27924_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027925for ac_lib in '' x; do
27926 if test -z "$ac_lib"; then
27927 ac_res="none required"
27928 else
27929 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027931 fi
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933if { (ac_try="$ac_link"
27934case "(($ac_try" in
27935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936 *) ac_try_echo=$ac_try;;
27937esac
27938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027940 ac_status=$?
27941 grep -v '^ *+' conftest.er1 >conftest.err
27942 rm -f conftest.er1
27943 cat conftest.err >&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27947 { (case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27950esac
27951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027957 { (case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27960esac
27961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027966 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027967else
27968 echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
Reid Spencera773bd52006-08-04 18:18:08 +000027971
Reid Spencer59473af2004-12-25 07:31:29 +000027972fi
Reid Spencera773bd52006-08-04 18:18:08 +000027973
27974rm -f core conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext
27976 if test "${ac_cv_search_opendir+set}" = set; then
27977 break
Reid Spencer59473af2004-12-25 07:31:29 +000027978fi
Reid Spencera773bd52006-08-04 18:18:08 +000027979done
27980if test "${ac_cv_search_opendir+set}" = set; then
27981 :
27982else
27983 ac_cv_search_opendir=no
27984fi
27985rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027986LIBS=$ac_func_search_save_LIBS
27987fi
Reid Spencera773bd52006-08-04 18:18:08 +000027988{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27989echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27990ac_res=$ac_cv_search_opendir
27991if test "$ac_res" != no; then
27992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027993
27994fi
27995
27996fi
27997
Reid Spencera773bd52006-08-04 18:18:08 +000027998{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27999echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028000if test "${ac_cv_header_mmap_anon+set}" = set; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28002else
28003 ac_ext=c
28004ac_cpp='$CPP $CPPFLAGS'
28005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28007ac_compiler_gnu=$ac_cv_c_compiler_gnu
28008
28009 cat >conftest.$ac_ext <<_ACEOF
28010/* confdefs.h. */
28011_ACEOF
28012cat confdefs.h >>conftest.$ac_ext
28013cat >>conftest.$ac_ext <<_ACEOF
28014/* end confdefs.h. */
28015#include <sys/mman.h>
28016#include <unistd.h>
28017#include <fcntl.h>
28018int
28019main ()
28020{
28021mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28022 ;
28023 return 0;
28024}
28025_ACEOF
28026rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028027if { (ac_try="$ac_compile"
28028case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031esac
28032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028034 ac_status=$?
28035 grep -v '^ *+' conftest.er1 >conftest.err
28036 rm -f conftest.er1
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28041 { (case "(($ac_try" in
28042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043 *) ac_try_echo=$ac_try;;
28044esac
28045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028051 { (case "(($ac_try" in
28052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053 *) ac_try_echo=$ac_try;;
28054esac
28055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
28060 ac_cv_header_mmap_anon=yes
28061else
28062 echo "$as_me: failed program was:" >&5
28063sed 's/^/| /' conftest.$ac_ext >&5
28064
Reid Spencera773bd52006-08-04 18:18:08 +000028065 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028066fi
Reid Spencera773bd52006-08-04 18:18:08 +000028067
28068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028069 ac_ext=c
28070ac_cpp='$CPP $CPPFLAGS'
28071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28073ac_compiler_gnu=$ac_cv_c_compiler_gnu
28074
28075
28076fi
Reid Spencera773bd52006-08-04 18:18:08 +000028077{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28078echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028079if test "$ac_cv_header_mmap_anon" = yes; then
28080
28081cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028082#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028083_ACEOF
28084
28085fi
28086
Reid Spencera773bd52006-08-04 18:18:08 +000028087{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28088echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028089if test "${ac_cv_header_stat_broken+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092 cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h. */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h. */
28098#include <sys/types.h>
28099#include <sys/stat.h>
28100
Reid Spencera773bd52006-08-04 18:18:08 +000028101#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028102# if S_ISBLK (S_IFDIR)
28103You lose.
28104# endif
28105#endif
28106
Reid Spencera773bd52006-08-04 18:18:08 +000028107#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028108# if S_ISBLK (S_IFCHR)
28109You lose.
28110# endif
28111#endif
28112
Reid Spencera773bd52006-08-04 18:18:08 +000028113#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028114# if S_ISLNK (S_IFREG)
28115You lose.
28116# endif
28117#endif
28118
Reid Spencera773bd52006-08-04 18:18:08 +000028119#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028120# if S_ISSOCK (S_IFREG)
28121You lose.
28122# endif
28123#endif
28124
28125_ACEOF
28126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28127 $EGREP "You lose" >/dev/null 2>&1; then
28128 ac_cv_header_stat_broken=yes
28129else
28130 ac_cv_header_stat_broken=no
28131fi
28132rm -f conftest*
28133
28134fi
Reid Spencera773bd52006-08-04 18:18:08 +000028135{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28136echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028137if test $ac_cv_header_stat_broken = yes; then
28138
28139cat >>confdefs.h <<\_ACEOF
28140#define STAT_MACROS_BROKEN 1
28141_ACEOF
28142
28143fi
28144
Reid Spencera773bd52006-08-04 18:18:08 +000028145{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028147if test "${ac_cv_header_stdc+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149else
28150 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028151/* confdefs.h. */
28152_ACEOF
28153cat confdefs.h >>conftest.$ac_ext
28154cat >>conftest.$ac_ext <<_ACEOF
28155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028156#include <stdlib.h>
28157#include <stdarg.h>
28158#include <string.h>
28159#include <float.h>
28160
John Criswell0c38eaf2003-09-10 15:17:25 +000028161int
28162main ()
28163{
28164
28165 ;
28166 return 0;
28167}
John Criswell7a73b802003-06-30 21:59:07 +000028168_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028169rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028170if { (ac_try="$ac_compile"
28171case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028182 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197esac
28198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028203 ac_cv_header_stdc=yes
28204else
28205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028206sed 's/^/| /' conftest.$ac_ext >&5
28207
Reid Spencera773bd52006-08-04 18:18:08 +000028208 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028209fi
Reid Spencera773bd52006-08-04 18:18:08 +000028210
28211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028212
28213if test $ac_cv_header_stdc = yes; then
28214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028221#include <string.h>
28222
28223_ACEOF
28224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028225 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028226 :
28227else
28228 ac_cv_header_stdc=no
28229fi
28230rm -f conftest*
28231
28232fi
28233
28234if test $ac_cv_header_stdc = yes; then
28235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28236 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028237/* confdefs.h. */
28238_ACEOF
28239cat confdefs.h >>conftest.$ac_ext
28240cat >>conftest.$ac_ext <<_ACEOF
28241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028242#include <stdlib.h>
28243
28244_ACEOF
28245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028246 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028247 :
28248else
28249 ac_cv_header_stdc=no
28250fi
28251rm -f conftest*
28252
28253fi
28254
28255if test $ac_cv_header_stdc = yes; then
28256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28257 if test "$cross_compiling" = yes; then
28258 :
28259else
28260 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028261/* confdefs.h. */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028266#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028267#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028268#if ((' ' & 0x0FF) == 0x020)
28269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28271#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028272# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028273 (('a' <= (c) && (c) <= 'i') \
28274 || ('j' <= (c) && (c) <= 'r') \
28275 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28277#endif
28278
28279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28280int
28281main ()
28282{
28283 int i;
28284 for (i = 0; i < 256; i++)
28285 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028286 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028287 return 2;
28288 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028289}
28290_ACEOF
28291rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028292if { (ac_try="$ac_link"
28293case "(($ac_try" in
28294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295 *) ac_try_echo=$ac_try;;
28296esac
28297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28305esac
28306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 :
28312else
28313 echo "$as_me: program exited with status $ac_status" >&5
28314echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028315sed 's/^/| /' conftest.$ac_ext >&5
28316
John Criswell7a73b802003-06-30 21:59:07 +000028317( exit $ac_status )
28318ac_cv_header_stdc=no
28319fi
Reid Spencera773bd52006-08-04 18:18:08 +000028320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28321fi
28322
28323
John Criswell7a73b802003-06-30 21:59:07 +000028324fi
28325fi
Reid Spencera773bd52006-08-04 18:18:08 +000028326{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28327echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028328if test $ac_cv_header_stdc = yes; then
28329
28330cat >>confdefs.h <<\_ACEOF
28331#define STDC_HEADERS 1
28332_ACEOF
28333
28334fi
28335
Reid Spencera773bd52006-08-04 18:18:08 +000028336{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28337echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028338if test "${ac_cv_header_sys_wait_h+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340else
28341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028342/* confdefs.h. */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028347#include <sys/types.h>
28348#include <sys/wait.h>
28349#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028350# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028351#endif
28352#ifndef WIFEXITED
28353# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28354#endif
28355
John Criswell7a73b802003-06-30 21:59:07 +000028356int
28357main ()
28358{
28359 int s;
28360 wait (&s);
28361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028367if { (ac_try="$ac_compile"
28368case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371esac
28372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28384esac
28385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394esac
28395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_header_sys_wait_h=yes
28401else
28402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028403sed 's/^/| /' conftest.$ac_ext >&5
28404
Reid Spencera773bd52006-08-04 18:18:08 +000028405 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028406fi
Reid Spencera773bd52006-08-04 18:18:08 +000028407
28408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028409fi
Reid Spencera773bd52006-08-04 18:18:08 +000028410{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28411echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028412if test $ac_cv_header_sys_wait_h = yes; then
28413
28414cat >>confdefs.h <<\_ACEOF
28415#define HAVE_SYS_WAIT_H 1
28416_ACEOF
28417
28418fi
28419
Reid Spencera773bd52006-08-04 18:18:08 +000028420{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28421echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028422if test "${ac_cv_header_time+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424else
28425 cat >conftest.$ac_ext <<_ACEOF
28426/* confdefs.h. */
28427_ACEOF
28428cat confdefs.h >>conftest.$ac_ext
28429cat >>conftest.$ac_ext <<_ACEOF
28430/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028431#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028432#include <sys/time.h>
28433#include <time.h>
28434
28435int
28436main ()
28437{
28438if ((struct tm *) 0)
28439return 0;
28440 ;
28441 return 0;
28442}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028443_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028444rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028445if { (ac_try="$ac_compile"
28446case "(($ac_try" in
28447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448 *) ac_try_echo=$ac_try;;
28449esac
28450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028452 ac_status=$?
28453 grep -v '^ *+' conftest.er1 >conftest.err
28454 rm -f conftest.er1
28455 cat conftest.err >&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028457 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28459 { (case "(($ac_try" in
28460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461 *) ac_try_echo=$ac_try;;
28462esac
28463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028465 ac_status=$?
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028469 { (case "(($ac_try" in
28470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28472esac
28473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; }; then
28478 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028479else
28480 echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
Reid Spencera773bd52006-08-04 18:18:08 +000028483 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028484fi
Reid Spencera773bd52006-08-04 18:18:08 +000028485
28486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028487fi
Reid Spencera773bd52006-08-04 18:18:08 +000028488{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28489echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028490if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028491
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028492cat >>confdefs.h <<\_ACEOF
28493#define TIME_WITH_SYS_TIME 1
28494_ACEOF
28495
28496fi
28497
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028498
Reid Spencer59473af2004-12-25 07:31:29 +000028499
28500
28501
28502
28503
28504
28505for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28506do
28507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028512 echo $ECHO_N "(cached) $ECHO_C" >&6
28513fi
Reid Spencera773bd52006-08-04 18:18:08 +000028514ac_res=`eval echo '${'$as_ac_Header'}'`
28515 { echo "$as_me:$LINENO: result: $ac_res" >&5
28516echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028517else
28518 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028521cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028522/* confdefs.h. */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028527$ac_includes_default
28528#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028529_ACEOF
28530rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028531if { (ac_try="$ac_compile"
28532case "(($ac_try" in
28533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534 *) ac_try_echo=$ac_try;;
28535esac
28536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028538 ac_status=$?
28539 grep -v '^ *+' conftest.er1 >conftest.err
28540 rm -f conftest.er1
28541 cat conftest.err >&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28545 { (case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; } &&
28554 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028555 { (case "(($ac_try" in
28556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557 *) ac_try_echo=$ac_try;;
28558esac
28559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028564 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028565else
28566 echo "$as_me: failed program was:" >&5
28567sed 's/^/| /' conftest.$ac_ext >&5
28568
Reid Spencera773bd52006-08-04 18:18:08 +000028569 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028570fi
Reid Spencera773bd52006-08-04 18:18:08 +000028571
28572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28574echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028575
Reid Spencer59473af2004-12-25 07:31:29 +000028576# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028579cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h. */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h. */
28585#include <$ac_header>
28586_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028587if { (ac_try="$ac_cpp conftest.$ac_ext"
28588case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028594 ac_status=$?
28595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } >/dev/null; then
28600 if test -s conftest.err; then
28601 ac_cpp_err=$ac_c_preproc_warn_flag
28602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28603 else
28604 ac_cpp_err=
28605 fi
28606else
28607 ac_cpp_err=yes
28608fi
28609if test -z "$ac_cpp_err"; then
28610 ac_header_preproc=yes
28611else
28612 echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615 ac_header_preproc=no
28616fi
Reid Spencera773bd52006-08-04 18:18:08 +000028617
Reid Spencer59473af2004-12-25 07:31:29 +000028618rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28620echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028621
28622# So? What about this header?
28623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28624 yes:no: )
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28629 ac_header_preproc=yes
28630 ;;
28631 no:yes:* )
28632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28639echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028644 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028645## ----------------------------------- ##
28646## Report this to llvmbugs@cs.uiuc.edu ##
28647## ----------------------------------- ##
28648_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028649 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028650 ;;
28651esac
Reid Spencera773bd52006-08-04 18:18:08 +000028652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028655 echo $ECHO_N "(cached) $ECHO_C" >&6
28656else
28657 eval "$as_ac_Header=\$ac_header_preproc"
28658fi
Reid Spencera773bd52006-08-04 18:18:08 +000028659ac_res=`eval echo '${'$as_ac_Header'}'`
28660 { echo "$as_me:$LINENO: result: $ac_res" >&5
28661echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028662
28663fi
Reid Spencer59473af2004-12-25 07:31:29 +000028664if test `eval echo '${'$as_ac_Header'}'` = yes; then
28665 cat >>confdefs.h <<_ACEOF
28666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028667_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028668
28669fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028670
Reid Spencer59473af2004-12-25 07:31:29 +000028671done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028672
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028673
28674
Reid Spencer59473af2004-12-25 07:31:29 +000028675
28676
28677
28678
Reid Spencercdb08a32006-06-05 16:11:07 +000028679for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028680do
28681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028686 echo $ECHO_N "(cached) $ECHO_C" >&6
28687fi
Reid Spencera773bd52006-08-04 18:18:08 +000028688ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028691else
28692 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028695cat >conftest.$ac_ext <<_ACEOF
28696/* confdefs.h. */
28697_ACEOF
28698cat confdefs.h >>conftest.$ac_ext
28699cat >>conftest.$ac_ext <<_ACEOF
28700/* end confdefs.h. */
28701$ac_includes_default
28702#include <$ac_header>
28703_ACEOF
28704rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028705if { (ac_try="$ac_compile"
28706case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709esac
28710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028712 ac_status=$?
28713 grep -v '^ *+' conftest.er1 >conftest.err
28714 rm -f conftest.er1
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_header_compiler=yes
28739else
28740 echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
Reid Spencera773bd52006-08-04 18:18:08 +000028743 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028744fi
Reid Spencera773bd52006-08-04 18:18:08 +000028745
28746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028749
28750# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028753cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
28759#include <$ac_header>
28760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028761if { (ac_try="$ac_cpp conftest.$ac_ext"
28762case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777 else
28778 ac_cpp_err=
28779 fi
28780else
28781 ac_cpp_err=yes
28782fi
28783if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789 ac_header_preproc=no
28790fi
Reid Spencera773bd52006-08-04 18:18:08 +000028791
Reid Spencer59473af2004-12-25 07:31:29 +000028792rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028795
28796# So? What about this header?
28797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798 yes:no: )
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28804 ;;
28805 no:yes:* )
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028818 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028819## ----------------------------------- ##
28820## Report this to llvmbugs@cs.uiuc.edu ##
28821## ----------------------------------- ##
28822_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028823 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028824 ;;
28825esac
Reid Spencera773bd52006-08-04 18:18:08 +000028826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
28831 eval "$as_ac_Header=\$ac_header_preproc"
28832fi
Reid Spencera773bd52006-08-04 18:18:08 +000028833ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028836
28837fi
28838if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841_ACEOF
28842
28843fi
28844
28845done
28846
28847
28848
28849
28850
28851
Reid Spencercdb08a32006-06-05 16:11:07 +000028852for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028853do
28854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028859 echo $ECHO_N "(cached) $ECHO_C" >&6
28860fi
Reid Spencera773bd52006-08-04 18:18:08 +000028861ac_res=`eval echo '${'$as_ac_Header'}'`
28862 { echo "$as_me:$LINENO: result: $ac_res" >&5
28863echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028864else
28865 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028868cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028869/* confdefs.h. */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h. */
28874$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028875#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028876_ACEOF
28877rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028878if { (ac_try="$ac_compile"
28879case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882esac
28883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028885 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028886 grep -v '^ *+' conftest.er1 >conftest.err
28887 rm -f conftest.er1
28888 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28892 { (case "(($ac_try" in
28893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28895esac
28896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028898 ac_status=$?
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028902 { (case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905esac
28906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 ac_header_compiler=yes
28912else
28913 echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
Reid Spencera773bd52006-08-04 18:18:08 +000028916 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028917fi
Reid Spencera773bd52006-08-04 18:18:08 +000028918
28919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28920{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28921echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028922
28923# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028924{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028926cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028927/* confdefs.h. */
28928_ACEOF
28929cat confdefs.h >>conftest.$ac_ext
28930cat >>conftest.$ac_ext <<_ACEOF
28931/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028932#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028933_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028934if { (ac_try="$ac_cpp conftest.$ac_ext"
28935case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28938esac
28939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } >/dev/null; then
28947 if test -s conftest.err; then
28948 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028950 else
28951 ac_cpp_err=
28952 fi
28953else
28954 ac_cpp_err=yes
28955fi
28956if test -z "$ac_cpp_err"; then
28957 ac_header_preproc=yes
28958else
28959 echo "$as_me: failed program was:" >&5
28960sed 's/^/| /' conftest.$ac_ext >&5
28961
28962 ac_header_preproc=no
28963fi
Reid Spencera773bd52006-08-04 18:18:08 +000028964
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028965rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028966{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28967echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028968
28969# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28971 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028976 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028977 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028978 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028991 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028992## ----------------------------------- ##
28993## Report this to llvmbugs@cs.uiuc.edu ##
28994## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028995_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028996 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028997 ;;
28998esac
Reid Spencera773bd52006-08-04 18:18:08 +000028999{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029002 echo $ECHO_N "(cached) $ECHO_C" >&6
29003else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029004 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029005fi
Reid Spencera773bd52006-08-04 18:18:08 +000029006ac_res=`eval echo '${'$as_ac_Header'}'`
29007 { echo "$as_me:$LINENO: result: $ac_res" >&5
29008echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029009
29010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029011if test `eval echo '${'$as_ac_Header'}'` = yes; then
29012 cat >>confdefs.h <<_ACEOF
29013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029014_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029015
29016fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029017
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029018done
29019
John Criswell7ed43ad2004-07-19 16:12:29 +000029020
Reid Spencercdb08a32006-06-05 16:11:07 +000029021
Reid Spencera6d990a2006-09-14 06:17:21 +000029022
29023for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029024do
29025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029030 echo $ECHO_N "(cached) $ECHO_C" >&6
29031fi
Reid Spencera773bd52006-08-04 18:18:08 +000029032ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029035else
29036 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029037{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029039cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h. */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h. */
29045$ac_includes_default
29046#include <$ac_header>
29047_ACEOF
29048rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029049if { (ac_try="$ac_compile"
29050case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029056 ac_status=$?
29057 grep -v '^ *+' conftest.er1 >conftest.err
29058 rm -f conftest.er1
29059 cat conftest.err >&5
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29063 { (case "(($ac_try" in
29064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065 *) ac_try_echo=$ac_try;;
29066esac
29067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029069 ac_status=$?
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; } &&
29072 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029073 { (case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29076esac
29077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 ac_header_compiler=yes
29083else
29084 echo "$as_me: failed program was:" >&5
29085sed 's/^/| /' conftest.$ac_ext >&5
29086
Reid Spencera773bd52006-08-04 18:18:08 +000029087 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029088fi
Reid Spencera773bd52006-08-04 18:18:08 +000029089
29090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29091{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29092echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029093
29094# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029095{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029097cat >conftest.$ac_ext <<_ACEOF
29098/* confdefs.h. */
29099_ACEOF
29100cat confdefs.h >>conftest.$ac_ext
29101cat >>conftest.$ac_ext <<_ACEOF
29102/* end confdefs.h. */
29103#include <$ac_header>
29104_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029105if { (ac_try="$ac_cpp conftest.$ac_ext"
29106case "(($ac_try" in
29107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29109esac
29110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029112 ac_status=$?
29113 grep -v '^ *+' conftest.er1 >conftest.err
29114 rm -f conftest.er1
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } >/dev/null; then
29118 if test -s conftest.err; then
29119 ac_cpp_err=$ac_c_preproc_warn_flag
29120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29121 else
29122 ac_cpp_err=
29123 fi
29124else
29125 ac_cpp_err=yes
29126fi
29127if test -z "$ac_cpp_err"; then
29128 ac_header_preproc=yes
29129else
29130 echo "$as_me: failed program was:" >&5
29131sed 's/^/| /' conftest.$ac_ext >&5
29132
29133 ac_header_preproc=no
29134fi
Reid Spencera773bd52006-08-04 18:18:08 +000029135
Chris Lattner0b142592005-11-14 06:57:34 +000029136rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029137{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29138echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029139
29140# So? What about this header?
29141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29142 yes:no: )
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29146echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29147 ac_header_preproc=yes
29148 ;;
29149 no:yes:* )
29150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29155echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29157echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29161echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029162 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029163## ----------------------------------- ##
29164## Report this to llvmbugs@cs.uiuc.edu ##
29165## ----------------------------------- ##
29166_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029167 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029168 ;;
29169esac
Reid Spencera773bd52006-08-04 18:18:08 +000029170{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029173 echo $ECHO_N "(cached) $ECHO_C" >&6
29174else
29175 eval "$as_ac_Header=\$ac_header_preproc"
29176fi
Reid Spencera773bd52006-08-04 18:18:08 +000029177ac_res=`eval echo '${'$as_ac_Header'}'`
29178 { echo "$as_me:$LINENO: result: $ac_res" >&5
29179echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029180
29181fi
29182if test `eval echo '${'$as_ac_Header'}'` = yes; then
29183 cat >>confdefs.h <<_ACEOF
29184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29185_ACEOF
29186
29187fi
29188
29189done
29190
Reid Spencer0a262ba2005-08-24 10:07:20 +000029191if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029192 if test "${ac_cv_header_pthread_h+set}" = set; then
29193 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29194echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29195if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029196 echo $ECHO_N "(cached) $ECHO_C" >&6
29197fi
Reid Spencer1000b732006-12-01 00:37:14 +000029198{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29199echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029200else
29201 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029202{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29203echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029204cat >conftest.$ac_ext <<_ACEOF
29205/* confdefs.h. */
29206_ACEOF
29207cat confdefs.h >>conftest.$ac_ext
29208cat >>conftest.$ac_ext <<_ACEOF
29209/* end confdefs.h. */
29210$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029211#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029212_ACEOF
29213rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029214if { (ac_try="$ac_compile"
29215case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29218esac
29219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029221 ac_status=$?
29222 grep -v '^ *+' conftest.er1 >conftest.err
29223 rm -f conftest.er1
29224 cat conftest.err >&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29228 { (case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29231esac
29232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029234 ac_status=$?
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); }; } &&
29237 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029238 { (case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241esac
29242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029244 ac_status=$?
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_header_compiler=yes
29248else
29249 echo "$as_me: failed program was:" >&5
29250sed 's/^/| /' conftest.$ac_ext >&5
29251
Reid Spencera773bd52006-08-04 18:18:08 +000029252 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029253fi
Reid Spencera773bd52006-08-04 18:18:08 +000029254
29255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29256{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29257echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029258
29259# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029260{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29261echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029262cat >conftest.$ac_ext <<_ACEOF
29263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029268#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029270if { (ac_try="$ac_cpp conftest.$ac_ext"
29271case "(($ac_try" in
29272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29274esac
29275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029277 ac_status=$?
29278 grep -v '^ *+' conftest.er1 >conftest.err
29279 rm -f conftest.er1
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } >/dev/null; then
29283 if test -s conftest.err; then
29284 ac_cpp_err=$ac_c_preproc_warn_flag
29285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29286 else
29287 ac_cpp_err=
29288 fi
29289else
29290 ac_cpp_err=yes
29291fi
29292if test -z "$ac_cpp_err"; then
29293 ac_header_preproc=yes
29294else
29295 echo "$as_me: failed program was:" >&5
29296sed 's/^/| /' conftest.$ac_ext >&5
29297
29298 ac_header_preproc=no
29299fi
Reid Spencera773bd52006-08-04 18:18:08 +000029300
Reid Spencer0a262ba2005-08-24 10:07:20 +000029301rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029302{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29303echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029304
29305# So? What about this header?
29306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29307 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029308 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29309echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29311echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029312 ac_header_preproc=yes
29313 ;;
29314 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029315 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29316echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29318echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29320echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29322echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29324echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29326echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029327 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029328## ----------------------------------- ##
29329## Report this to llvmbugs@cs.uiuc.edu ##
29330## ----------------------------------- ##
29331_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029332 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029333 ;;
29334esac
Reid Spencer1000b732006-12-01 00:37:14 +000029335{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29336echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29337if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029338 echo $ECHO_N "(cached) $ECHO_C" >&6
29339else
Reid Spencer1000b732006-12-01 00:37:14 +000029340 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029341fi
Reid Spencer1000b732006-12-01 00:37:14 +000029342{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29343echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029344
29345fi
Reid Spencer1000b732006-12-01 00:37:14 +000029346if test $ac_cv_header_pthread_h = yes; then
29347 HAVE_PTHREAD=1
29348
29349else
29350 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029351
29352fi
29353
Reid Spencer1000b732006-12-01 00:37:14 +000029354
29355else
29356 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029357
29358fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029359
29360
Reid Spencerb2ed05262006-11-03 18:04:08 +000029361
29362 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29363echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29364if test "${ac_cv_huge_val_sanity+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29366else
29367
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029368 ac_ext=cpp
29369ac_cpp='$CXXCPP $CPPFLAGS'
29370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029373
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029374 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029375 if test "$cross_compiling" = yes; then
29376 ac_cv_huge_val_sanity=yes
29377else
29378 cat >conftest.$ac_ext <<_ACEOF
29379/* confdefs.h. */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h. */
29384#include <math.h>
29385int
29386main ()
29387{
29388double x = HUGE_VAL; return x != x;
29389 ;
29390 return 0;
29391}
29392_ACEOF
29393rm -f conftest$ac_exeext
29394if { (ac_try="$ac_link"
29395case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29398esac
29399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_link") 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29404 { (case "(($ac_try" in
29405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406 *) ac_try_echo=$ac_try;;
29407esac
29408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409 (eval "$ac_try") 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_huge_val_sanity=yes
29414else
29415 echo "$as_me: program exited with status $ac_status" >&5
29416echo "$as_me: failed program was:" >&5
29417sed 's/^/| /' conftest.$ac_ext >&5
29418
29419( exit $ac_status )
29420ac_cv_huge_val_sanity=no
29421fi
29422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29423fi
29424
29425
29426 ac_ext=c
29427ac_cpp='$CPP $CPPFLAGS'
29428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430ac_compiler_gnu=$ac_cv_c_compiler_gnu
29431
29432
29433fi
29434{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29435echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29436 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29437
29438
Reid Spencera773bd52006-08-04 18:18:08 +000029439{ echo "$as_me:$LINENO: checking for pid_t" >&5
29440echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029441if test "${ac_cv_type_pid_t+set}" = set; then
29442 echo $ECHO_N "(cached) $ECHO_C" >&6
29443else
29444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029445/* confdefs.h. */
29446_ACEOF
29447cat confdefs.h >>conftest.$ac_ext
29448cat >>conftest.$ac_ext <<_ACEOF
29449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029450$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029451typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029452int
29453main ()
29454{
Reid Spencera773bd52006-08-04 18:18:08 +000029455if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029456 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029457if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029458 return 0;
29459 ;
29460 return 0;
29461}
29462_ACEOF
29463rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029464if { (ac_try="$ac_compile"
29465case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29468esac
29469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029471 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029472 grep -v '^ *+' conftest.er1 >conftest.err
29473 rm -f conftest.er1
29474 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29478 { (case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29481esac
29482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29491esac
29492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_cv_type_pid_t=yes
29498else
29499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029500sed 's/^/| /' conftest.$ac_ext >&5
29501
Reid Spencera773bd52006-08-04 18:18:08 +000029502 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029503fi
Reid Spencera773bd52006-08-04 18:18:08 +000029504
29505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029506fi
Reid Spencera773bd52006-08-04 18:18:08 +000029507{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29508echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029509if test $ac_cv_type_pid_t = yes; then
29510 :
29511else
29512
29513cat >>confdefs.h <<_ACEOF
29514#define pid_t int
29515_ACEOF
29516
29517fi
29518
Reid Spencera773bd52006-08-04 18:18:08 +000029519{ echo "$as_me:$LINENO: checking for size_t" >&5
29520echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029521if test "${ac_cv_type_size_t+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29523else
29524 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029525/* confdefs.h. */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029530$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029531typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029532int
29533main ()
29534{
Reid Spencera773bd52006-08-04 18:18:08 +000029535if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029536 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029537if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029538 return 0;
29539 ;
29540 return 0;
29541}
29542_ACEOF
29543rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029544if { (ac_try="$ac_compile"
29545case "(($ac_try" in
29546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547 *) ac_try_echo=$ac_try;;
29548esac
29549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029551 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029552 grep -v '^ *+' conftest.er1 >conftest.err
29553 rm -f conftest.er1
29554 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29558 { (case "(($ac_try" in
29559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560 *) ac_try_echo=$ac_try;;
29561esac
29562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; } &&
29567 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029568 { (case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571esac
29572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; }; then
29577 ac_cv_type_size_t=yes
29578else
29579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029580sed 's/^/| /' conftest.$ac_ext >&5
29581
Reid Spencera773bd52006-08-04 18:18:08 +000029582 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029583fi
Reid Spencera773bd52006-08-04 18:18:08 +000029584
29585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029586fi
Reid Spencera773bd52006-08-04 18:18:08 +000029587{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29588echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029589if test $ac_cv_type_size_t = yes; then
29590 :
29591else
29592
29593cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029594#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029595_ACEOF
29596
29597fi
29598
Reid Spencera773bd52006-08-04 18:18:08 +000029599{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29600echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029601if test "${ac_cv_type_signal+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
29603else
29604 cat >conftest.$ac_ext <<_ACEOF
29605/* confdefs.h. */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h. */
29610#include <sys/types.h>
29611#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029612
29613int
29614main ()
29615{
Reid Spencera773bd52006-08-04 18:18:08 +000029616return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029617 ;
29618 return 0;
29619}
29620_ACEOF
29621rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029622if { (ac_try="$ac_compile"
29623case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29626esac
29627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029629 ac_status=$?
29630 grep -v '^ *+' conftest.er1 >conftest.err
29631 rm -f conftest.er1
29632 cat conftest.err >&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636 { (case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29639esac
29640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029646 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029655 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029656else
29657 echo "$as_me: failed program was:" >&5
29658sed 's/^/| /' conftest.$ac_ext >&5
29659
Reid Spencera773bd52006-08-04 18:18:08 +000029660 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029661fi
Reid Spencera773bd52006-08-04 18:18:08 +000029662
29663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029664fi
Reid Spencera773bd52006-08-04 18:18:08 +000029665{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29666echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029667
29668cat >>confdefs.h <<_ACEOF
29669#define RETSIGTYPE $ac_cv_type_signal
29670_ACEOF
29671
29672
Reid Spencera773bd52006-08-04 18:18:08 +000029673{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29674echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029675if test "${ac_cv_struct_tm+set}" = set; then
29676 echo $ECHO_N "(cached) $ECHO_C" >&6
29677else
29678 cat >conftest.$ac_ext <<_ACEOF
29679/* confdefs.h. */
29680_ACEOF
29681cat confdefs.h >>conftest.$ac_ext
29682cat >>conftest.$ac_ext <<_ACEOF
29683/* end confdefs.h. */
29684#include <sys/types.h>
29685#include <time.h>
29686
29687int
29688main ()
29689{
29690struct tm *tp; tp->tm_sec;
29691 ;
29692 return 0;
29693}
29694_ACEOF
29695rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029696if { (ac_try="$ac_compile"
29697case "(($ac_try" in
29698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29700esac
29701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029703 ac_status=$?
29704 grep -v '^ *+' conftest.er1 >conftest.err
29705 rm -f conftest.er1
29706 cat conftest.err >&5
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29710 { (case "(($ac_try" in
29711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712 *) ac_try_echo=$ac_try;;
29713esac
29714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29715 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029720 { (case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29723esac
29724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 ac_cv_struct_tm=time.h
29730else
29731 echo "$as_me: failed program was:" >&5
29732sed 's/^/| /' conftest.$ac_ext >&5
29733
Reid Spencera773bd52006-08-04 18:18:08 +000029734 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029735fi
Reid Spencera773bd52006-08-04 18:18:08 +000029736
29737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029738fi
Reid Spencera773bd52006-08-04 18:18:08 +000029739{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29740echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029741if test $ac_cv_struct_tm = sys/time.h; then
29742
29743cat >>confdefs.h <<\_ACEOF
29744#define TM_IN_SYS_TIME 1
29745_ACEOF
29746
29747fi
29748
Reid Spencera773bd52006-08-04 18:18:08 +000029749{ echo "$as_me:$LINENO: checking for int64_t" >&5
29750echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029751if test "${ac_cv_type_int64_t+set}" = set; then
29752 echo $ECHO_N "(cached) $ECHO_C" >&6
29753else
29754 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029755/* confdefs.h. */
29756_ACEOF
29757cat confdefs.h >>conftest.$ac_ext
29758cat >>conftest.$ac_ext <<_ACEOF
29759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029760$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029761typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029762int
29763main ()
29764{
Reid Spencera773bd52006-08-04 18:18:08 +000029765if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029766 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029767if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029768 return 0;
29769 ;
29770 return 0;
29771}
29772_ACEOF
29773rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029774if { (ac_try="$ac_compile"
29775case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29778esac
29779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029782 grep -v '^ *+' conftest.er1 >conftest.err
29783 rm -f conftest.er1
29784 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29788 { (case "(($ac_try" in
29789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29790 *) ac_try_echo=$ac_try;;
29791esac
29792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29793 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029794 ac_status=$?
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; } &&
29797 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029798 { (case "(($ac_try" in
29799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29800 *) ac_try_echo=$ac_try;;
29801esac
29802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29803 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029804 ac_status=$?
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); }; }; then
29807 ac_cv_type_int64_t=yes
29808else
29809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029810sed 's/^/| /' conftest.$ac_ext >&5
29811
Reid Spencera773bd52006-08-04 18:18:08 +000029812 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029813fi
Reid Spencera773bd52006-08-04 18:18:08 +000029814
29815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029816fi
Reid Spencera773bd52006-08-04 18:18:08 +000029817{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29818echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029819if test $ac_cv_type_int64_t = yes; then
29820
29821cat >>confdefs.h <<_ACEOF
29822#define HAVE_INT64_T 1
29823_ACEOF
29824
29825
29826else
29827 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29828echo "$as_me: error: Type int64_t required but not found" >&2;}
29829 { (exit 1); exit 1; }; }
29830fi
29831
Reid Spencera773bd52006-08-04 18:18:08 +000029832{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29833echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029834if test "${ac_cv_type_uint64_t+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29836else
29837 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029838/* confdefs.h. */
29839_ACEOF
29840cat confdefs.h >>conftest.$ac_ext
29841cat >>conftest.$ac_ext <<_ACEOF
29842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029843$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029844typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029845int
29846main ()
29847{
Reid Spencera773bd52006-08-04 18:18:08 +000029848if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029849 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029850if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029851 return 0;
29852 ;
29853 return 0;
29854}
29855_ACEOF
29856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029857if { (ac_try="$ac_compile"
29858case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29861esac
29862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029865 grep -v '^ *+' conftest.er1 >conftest.err
29866 rm -f conftest.er1
29867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29871 { (case "(($ac_try" in
29872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873 *) ac_try_echo=$ac_try;;
29874esac
29875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; } &&
29880 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029881 { (case "(($ac_try" in
29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29884esac
29885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_cv_type_uint64_t=yes
29891else
29892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029893sed 's/^/| /' conftest.$ac_ext >&5
29894
Reid Spencera773bd52006-08-04 18:18:08 +000029895 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029896fi
Reid Spencera773bd52006-08-04 18:18:08 +000029897
29898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029899fi
Reid Spencera773bd52006-08-04 18:18:08 +000029900{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29901echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029902if test $ac_cv_type_uint64_t = yes; then
29903
29904cat >>confdefs.h <<_ACEOF
29905#define HAVE_UINT64_T 1
29906_ACEOF
29907
29908
29909else
Reid Spencera773bd52006-08-04 18:18:08 +000029910 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29911echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029912if test "${ac_cv_type_u_int64_t+set}" = set; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29914else
29915 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029916/* confdefs.h. */
29917_ACEOF
29918cat confdefs.h >>conftest.$ac_ext
29919cat >>conftest.$ac_ext <<_ACEOF
29920/* end confdefs.h. */
29921$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029922typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029923int
29924main ()
29925{
Reid Spencera773bd52006-08-04 18:18:08 +000029926if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029927 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029928if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029929 return 0;
29930 ;
29931 return 0;
29932}
29933_ACEOF
29934rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029935if { (ac_try="$ac_compile"
29936case "(($ac_try" in
29937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29939esac
29940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029943 grep -v '^ *+' conftest.er1 >conftest.err
29944 rm -f conftest.er1
29945 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29949 { (case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29952esac
29953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; } &&
29958 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029959 { (case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29962esac
29963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029965 ac_status=$?
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); }; }; then
29968 ac_cv_type_u_int64_t=yes
29969else
29970 echo "$as_me: failed program was:" >&5
29971sed 's/^/| /' conftest.$ac_ext >&5
29972
Reid Spencera773bd52006-08-04 18:18:08 +000029973 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029974fi
Reid Spencera773bd52006-08-04 18:18:08 +000029975
29976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029977fi
Reid Spencera773bd52006-08-04 18:18:08 +000029978{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29979echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029980if test $ac_cv_type_u_int64_t = yes; then
29981
29982cat >>confdefs.h <<_ACEOF
29983#define HAVE_U_INT64_T 1
29984_ACEOF
29985
29986
Misha Brukmanceca9042004-09-02 23:02:30 +000029987else
29988 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29989echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29990 { (exit 1); exit 1; }; }
29991fi
29992
John Criswell679ff312004-09-02 18:44:44 +000029993fi
29994
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029995
29996
29997
29998
29999
30000
30001
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030002
30003
Reid Spencerdf3be822006-01-23 08:15:53 +000030004for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030005do
30006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030007{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30009if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030010 echo $ECHO_N "(cached) $ECHO_C" >&6
30011else
30012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030013/* confdefs.h. */
30014_ACEOF
30015cat confdefs.h >>conftest.$ac_ext
30016cat >>conftest.$ac_ext <<_ACEOF
30017/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30020#define $ac_func innocuous_$ac_func
30021
30022/* System header to define __stub macros and hopefully few prototypes,
30023 which can conflict with char $ac_func (); below.
30024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30025 <limits.h> exists even on freestanding compilers. */
30026
30027#ifdef __STDC__
30028# include <limits.h>
30029#else
30030# include <assert.h>
30031#endif
30032
30033#undef $ac_func
30034
Reid Spencera773bd52006-08-04 18:18:08 +000030035/* Override any GCC internal prototype to avoid an error.
30036 Use char because int might match the return type of a GCC
30037 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030038#ifdef __cplusplus
30039extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030040#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030041char $ac_func ();
30042/* The GNU C library defines this for functions which it implements
30043 to always fail with ENOSYS. Some functions are actually named
30044 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030045#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030046choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030047#endif
John Criswell7a73b802003-06-30 21:59:07 +000030048
John Criswell7a73b802003-06-30 21:59:07 +000030049int
30050main ()
30051{
Reid Spencera773bd52006-08-04 18:18:08 +000030052return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030053 ;
30054 return 0;
30055}
30056_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030057rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030058if { (ac_try="$ac_link"
30059case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30062esac
30063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030066 grep -v '^ *+' conftest.er1 >conftest.err
30067 rm -f conftest.er1
30068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30072 { (case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30075esac
30076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030078 ac_status=$?
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030081 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030082 { (case "(($ac_try" in
30083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084 *) ac_try_echo=$ac_try;;
30085esac
30086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030091 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030092else
30093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030094sed 's/^/| /' conftest.$ac_ext >&5
30095
Reid Spencera773bd52006-08-04 18:18:08 +000030096 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030097fi
Reid Spencera773bd52006-08-04 18:18:08 +000030098
30099rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030100 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030101fi
Reid Spencera773bd52006-08-04 18:18:08 +000030102ac_res=`eval echo '${'$as_ac_var'}'`
30103 { echo "$as_me:$LINENO: result: $ac_res" >&5
30104echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030105if test `eval echo '${'$as_ac_var'}'` = yes; then
30106 cat >>confdefs.h <<_ACEOF
30107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030108_ACEOF
30109
30110fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030111done
John Criswell7a73b802003-06-30 21:59:07 +000030112
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030113
30114
30115
Reid Spencer6af3d262004-12-15 04:01:48 +000030116
30117
Reid Spencerb90645c2007-02-16 19:17:20 +000030118for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30119do
30120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30121{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30124 echo $ECHO_N "(cached) $ECHO_C" >&6
30125else
30126 cat >conftest.$ac_ext <<_ACEOF
30127/* confdefs.h. */
30128_ACEOF
30129cat confdefs.h >>conftest.$ac_ext
30130cat >>conftest.$ac_ext <<_ACEOF
30131/* end confdefs.h. */
30132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30134#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030135
Reid Spencerb90645c2007-02-16 19:17:20 +000030136/* System header to define __stub macros and hopefully few prototypes,
30137 which can conflict with char $ac_func (); below.
30138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30139 <limits.h> exists even on freestanding compilers. */
30140
30141#ifdef __STDC__
30142# include <limits.h>
30143#else
30144# include <assert.h>
30145#endif
30146
30147#undef $ac_func
30148
30149/* Override any GCC internal prototype to avoid an error.
30150 Use char because int might match the return type of a GCC
30151 builtin and then its argument prototype would still apply. */
30152#ifdef __cplusplus
30153extern "C"
30154#endif
30155char $ac_func ();
30156/* The GNU C library defines this for functions which it implements
30157 to always fail with ENOSYS. Some functions are actually named
30158 something starting with __ and the normal name is an alias. */
30159#if defined __stub_$ac_func || defined __stub___$ac_func
30160choke me
30161#endif
30162
30163int
30164main ()
30165{
30166return $ac_func ();
30167 ;
30168 return 0;
30169}
30170_ACEOF
30171rm -f conftest.$ac_objext conftest$ac_exeext
30172if { (ac_try="$ac_link"
30173case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30176esac
30177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_link") 2>conftest.er1
30179 ac_status=$?
30180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } &&
30185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30189esac
30190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest$ac_exeext'
30196 { (case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30199esac
30200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_try") 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
30205 eval "$as_ac_var=yes"
30206else
30207 echo "$as_me: failed program was:" >&5
30208sed 's/^/| /' conftest.$ac_ext >&5
30209
30210 eval "$as_ac_var=no"
30211fi
30212
30213rm -f core conftest.err conftest.$ac_objext \
30214 conftest$ac_exeext conftest.$ac_ext
30215fi
30216ac_res=`eval echo '${'$as_ac_var'}'`
30217 { echo "$as_me:$LINENO: result: $ac_res" >&5
30218echo "${ECHO_T}$ac_res" >&6; }
30219if test `eval echo '${'$as_ac_var'}'` = yes; then
30220 cat >>confdefs.h <<_ACEOF
30221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30222_ACEOF
30223
30224fi
30225done
30226
30227
30228
30229
30230for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030231do
30232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030233{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30235if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030236 echo $ECHO_N "(cached) $ECHO_C" >&6
30237else
30238 cat >conftest.$ac_ext <<_ACEOF
30239/* confdefs.h. */
30240_ACEOF
30241cat confdefs.h >>conftest.$ac_ext
30242cat >>conftest.$ac_ext <<_ACEOF
30243/* end confdefs.h. */
30244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30246#define $ac_func innocuous_$ac_func
30247
30248/* System header to define __stub macros and hopefully few prototypes,
30249 which can conflict with char $ac_func (); below.
30250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30251 <limits.h> exists even on freestanding compilers. */
30252
30253#ifdef __STDC__
30254# include <limits.h>
30255#else
30256# include <assert.h>
30257#endif
30258
30259#undef $ac_func
30260
Reid Spencera773bd52006-08-04 18:18:08 +000030261/* Override any GCC internal prototype to avoid an error.
30262 Use char because int might match the return type of a GCC
30263 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030264#ifdef __cplusplus
30265extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030266#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030267char $ac_func ();
30268/* The GNU C library defines this for functions which it implements
30269 to always fail with ENOSYS. Some functions are actually named
30270 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030271#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030272choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030273#endif
30274
30275int
30276main ()
30277{
Reid Spencera773bd52006-08-04 18:18:08 +000030278return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030279 ;
30280 return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030284if { (ac_try="$ac_link"
30285case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288esac
30289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030291 ac_status=$?
30292 grep -v '^ *+' conftest.er1 >conftest.err
30293 rm -f conftest.er1
30294 cat conftest.err >&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30298 { (case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30301esac
30302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030304 ac_status=$?
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; } &&
30307 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030308 { (case "(($ac_try" in
30309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310 *) ac_try_echo=$ac_try;;
30311esac
30312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30313 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030314 ac_status=$?
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30317 eval "$as_ac_var=yes"
30318else
30319 echo "$as_me: failed program was:" >&5
30320sed 's/^/| /' conftest.$ac_ext >&5
30321
Reid Spencera773bd52006-08-04 18:18:08 +000030322 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030323fi
Reid Spencera773bd52006-08-04 18:18:08 +000030324
30325rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030326 conftest$ac_exeext conftest.$ac_ext
30327fi
Reid Spencera773bd52006-08-04 18:18:08 +000030328ac_res=`eval echo '${'$as_ac_var'}'`
30329 { echo "$as_me:$LINENO: result: $ac_res" >&5
30330echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030331if test `eval echo '${'$as_ac_var'}'` = yes; then
30332 cat >>confdefs.h <<_ACEOF
30333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30334_ACEOF
30335
30336fi
30337done
30338
30339
30340
30341
30342
30343
30344
30345
30346for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030347do
30348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030349{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30351if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030352 echo $ECHO_N "(cached) $ECHO_C" >&6
30353else
30354 cat >conftest.$ac_ext <<_ACEOF
30355/* confdefs.h. */
30356_ACEOF
30357cat confdefs.h >>conftest.$ac_ext
30358cat >>conftest.$ac_ext <<_ACEOF
30359/* end confdefs.h. */
30360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30362#define $ac_func innocuous_$ac_func
30363
30364/* System header to define __stub macros and hopefully few prototypes,
30365 which can conflict with char $ac_func (); below.
30366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30367 <limits.h> exists even on freestanding compilers. */
30368
30369#ifdef __STDC__
30370# include <limits.h>
30371#else
30372# include <assert.h>
30373#endif
30374
30375#undef $ac_func
30376
Reid Spencera773bd52006-08-04 18:18:08 +000030377/* Override any GCC internal prototype to avoid an error.
30378 Use char because int might match the return type of a GCC
30379 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030380#ifdef __cplusplus
30381extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030382#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030383char $ac_func ();
30384/* The GNU C library defines this for functions which it implements
30385 to always fail with ENOSYS. Some functions are actually named
30386 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030387#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030388choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030389#endif
30390
30391int
30392main ()
30393{
Reid Spencera773bd52006-08-04 18:18:08 +000030394return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030395 ;
30396 return 0;
30397}
30398_ACEOF
30399rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030400if { (ac_try="$ac_link"
30401case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30404esac
30405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030407 ac_status=$?
30408 grep -v '^ *+' conftest.er1 >conftest.err
30409 rm -f conftest.er1
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30414 { (case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30417esac
30418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030420 ac_status=$?
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); }; } &&
30423 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030424 { (case "(($ac_try" in
30425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426 *) ac_try_echo=$ac_try;;
30427esac
30428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; }; then
30433 eval "$as_ac_var=yes"
30434else
30435 echo "$as_me: failed program was:" >&5
30436sed 's/^/| /' conftest.$ac_ext >&5
30437
Reid Spencera773bd52006-08-04 18:18:08 +000030438 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030439fi
Reid Spencera773bd52006-08-04 18:18:08 +000030440
30441rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030442 conftest$ac_exeext conftest.$ac_ext
30443fi
Reid Spencera773bd52006-08-04 18:18:08 +000030444ac_res=`eval echo '${'$as_ac_var'}'`
30445 { echo "$as_me:$LINENO: result: $ac_res" >&5
30446echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030447if test `eval echo '${'$as_ac_var'}'` = yes; then
30448 cat >>confdefs.h <<_ACEOF
30449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30450_ACEOF
30451
30452fi
30453done
30454
30455
Reid Spencerba46ca32004-12-31 05:49:15 +000030456
30457
Chris Lattner0b142592005-11-14 06:57:34 +000030458
Chris Lattner511f11d2005-11-14 07:25:50 +000030459for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030460do
30461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030462{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30464if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030465 echo $ECHO_N "(cached) $ECHO_C" >&6
30466else
30467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030468/* confdefs.h. */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30475#define $ac_func innocuous_$ac_func
30476
30477/* System header to define __stub macros and hopefully few prototypes,
30478 which can conflict with char $ac_func (); below.
30479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30480 <limits.h> exists even on freestanding compilers. */
30481
30482#ifdef __STDC__
30483# include <limits.h>
30484#else
30485# include <assert.h>
30486#endif
30487
30488#undef $ac_func
30489
Reid Spencera773bd52006-08-04 18:18:08 +000030490/* Override any GCC internal prototype to avoid an error.
30491 Use char because int might match the return type of a GCC
30492 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030493#ifdef __cplusplus
30494extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030495#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030496char $ac_func ();
30497/* The GNU C library defines this for functions which it implements
30498 to always fail with ENOSYS. Some functions are actually named
30499 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030500#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030502#endif
John Criswell7a73b802003-06-30 21:59:07 +000030503
John Criswell7a73b802003-06-30 21:59:07 +000030504int
30505main ()
30506{
Reid Spencera773bd52006-08-04 18:18:08 +000030507return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030508 ;
30509 return 0;
30510}
30511_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030512rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030513if { (ac_try="$ac_link"
30514case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30517esac
30518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030521 grep -v '^ *+' conftest.er1 >conftest.err
30522 rm -f conftest.er1
30523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30527 { (case "(($ac_try" in
30528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529 *) ac_try_echo=$ac_try;;
30530esac
30531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030536 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030537 { (case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30540esac
30541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030546 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030547else
30548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030549sed 's/^/| /' conftest.$ac_ext >&5
30550
Reid Spencera773bd52006-08-04 18:18:08 +000030551 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030552fi
Reid Spencera773bd52006-08-04 18:18:08 +000030553
30554rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030555 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030556fi
Reid Spencera773bd52006-08-04 18:18:08 +000030557ac_res=`eval echo '${'$as_ac_var'}'`
30558 { echo "$as_me:$LINENO: result: $ac_res" >&5
30559echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030560if test `eval echo '${'$as_ac_var'}'` = yes; then
30561 cat >>confdefs.h <<_ACEOF
30562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030563_ACEOF
30564
30565fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030566done
John Criswell7a73b802003-06-30 21:59:07 +000030567
Reid Spencercdb08a32006-06-05 16:11:07 +000030568
30569
30570
30571
Reid Spencerafa22e22006-12-10 23:29:19 +000030572for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030573do
30574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030575{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30577if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580 cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
30586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30588#define $ac_func innocuous_$ac_func
30589
30590/* System header to define __stub macros and hopefully few prototypes,
30591 which can conflict with char $ac_func (); below.
30592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593 <limits.h> exists even on freestanding compilers. */
30594
30595#ifdef __STDC__
30596# include <limits.h>
30597#else
30598# include <assert.h>
30599#endif
30600
30601#undef $ac_func
30602
Reid Spencera773bd52006-08-04 18:18:08 +000030603/* Override any GCC internal prototype to avoid an error.
30604 Use char because int might match the return type of a GCC
30605 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030606#ifdef __cplusplus
30607extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030608#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030609char $ac_func ();
30610/* The GNU C library defines this for functions which it implements
30611 to always fail with ENOSYS. Some functions are actually named
30612 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030613#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030614choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030615#endif
30616
30617int
30618main ()
30619{
Reid Spencera773bd52006-08-04 18:18:08 +000030620return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030621 ;
30622 return 0;
30623}
30624_ACEOF
30625rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030626if { (ac_try="$ac_link"
30627case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630esac
30631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030633 ac_status=$?
30634 grep -v '^ *+' conftest.er1 >conftest.err
30635 rm -f conftest.er1
30636 cat conftest.err >&5
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30640 { (case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30643esac
30644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030646 ac_status=$?
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; } &&
30649 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030650 { (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
Reid Spencercdb08a32006-06-05 16:11:07 +000030656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 eval "$as_ac_var=yes"
30660else
30661 echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
Reid Spencera773bd52006-08-04 18:18:08 +000030664 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030665fi
Reid Spencera773bd52006-08-04 18:18:08 +000030666
30667rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030668 conftest$ac_exeext conftest.$ac_ext
30669fi
Reid Spencera773bd52006-08-04 18:18:08 +000030670ac_res=`eval echo '${'$as_ac_var'}'`
30671 { echo "$as_me:$LINENO: result: $ac_res" >&5
30672echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030673if test `eval echo '${'$as_ac_var'}'` = yes; then
30674 cat >>confdefs.h <<_ACEOF
30675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30676_ACEOF
30677
30678fi
30679done
30680
Reid Spencera773bd52006-08-04 18:18:08 +000030681{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30682echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030683if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030684 echo $ECHO_N "(cached) $ECHO_C" >&6
30685else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030686 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030687ac_cpp='$CPP $CPPFLAGS'
30688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30690ac_compiler_gnu=$ac_cv_c_compiler_gnu
30691
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030692 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030693 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030694else
30695 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030696
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030697 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030702
John Criswella0137d32003-10-13 16:22:01 +000030703#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030704#include <stdlib.h>
30705
John Criswella0137d32003-10-13 16:22:01 +000030706int
30707main ()
30708{
30709
Reid Spencer2706f8c2004-09-19 23:53:36 +000030710volatile double A, B;
30711char Buffer[100];
30712A = 1;
30713A /= 10.0;
30714sprintf(Buffer, "%a", A);
30715B = atof(Buffer);
30716if (A != B)
30717 return (1);
30718if (A != 0x1.999999999999ap-4)
30719 return (1);
30720return (0);
John Criswella0137d32003-10-13 16:22:01 +000030721 ;
30722 return 0;
30723}
30724_ACEOF
30725rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030726if { (ac_try="$ac_link"
30727case "(($ac_try" in
30728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30729 *) ac_try_echo=$ac_try;;
30730esac
30731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30732 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030733 ac_status=$?
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030736 { (case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30739esac
30740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030742 ac_status=$?
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030745 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030746else
30747 echo "$as_me: program exited with status $ac_status" >&5
30748echo "$as_me: failed program was:" >&5
30749sed 's/^/| /' conftest.$ac_ext >&5
30750
30751( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030752llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030753fi
Reid Spencera773bd52006-08-04 18:18:08 +000030754rm -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 +000030755fi
Reid Spencera773bd52006-08-04 18:18:08 +000030756
30757
Reid Spencer2706f8c2004-09-19 23:53:36 +000030758 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030759ac_cpp='$CPP $CPPFLAGS'
30760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762ac_compiler_gnu=$ac_cv_c_compiler_gnu
30763
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030764fi
Reid Spencera773bd52006-08-04 18:18:08 +000030765{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30766echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030767 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030768
30769cat >>confdefs.h <<\_ACEOF
30770#define HAVE_PRINTF_A 1
30771_ACEOF
30772
Reid Spencer2706f8c2004-09-19 23:53:36 +000030773 fi
John Criswella0137d32003-10-13 16:22:01 +000030774
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030775# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30776# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030777{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30778echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030779if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781else
John Criswell0021c312004-02-13 21:57:29 +000030782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030783/* confdefs.h. */
30784_ACEOF
30785cat confdefs.h >>conftest.$ac_ext
30786cat >>conftest.$ac_ext <<_ACEOF
30787/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030788#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030789int
30790main ()
30791{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030792char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030793 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030794 ;
30795 return 0;
30796}
30797_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030798rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030799if { (ac_try="$ac_link"
30800case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803esac
30804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030806 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30813 { (case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816esac
30817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030822 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030823 { (case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30826esac
30827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030832 ac_cv_working_alloca_h=yes
30833else
30834 echo "$as_me: failed program was:" >&5
30835sed 's/^/| /' conftest.$ac_ext >&5
30836
Reid Spencera773bd52006-08-04 18:18:08 +000030837 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030838fi
Reid Spencera773bd52006-08-04 18:18:08 +000030839
30840rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030841 conftest$ac_exeext conftest.$ac_ext
30842fi
Reid Spencera773bd52006-08-04 18:18:08 +000030843{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30844echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030845if test $ac_cv_working_alloca_h = yes; then
30846
30847cat >>confdefs.h <<\_ACEOF
30848#define HAVE_ALLOCA_H 1
30849_ACEOF
30850
30851fi
30852
Reid Spencera773bd52006-08-04 18:18:08 +000030853{ echo "$as_me:$LINENO: checking for alloca" >&5
30854echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030855if test "${ac_cv_func_alloca_works+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30857else
30858 cat >conftest.$ac_ext <<_ACEOF
30859/* confdefs.h. */
30860_ACEOF
30861cat confdefs.h >>conftest.$ac_ext
30862cat >>conftest.$ac_ext <<_ACEOF
30863/* end confdefs.h. */
30864#ifdef __GNUC__
30865# define alloca __builtin_alloca
30866#else
30867# ifdef _MSC_VER
30868# include <malloc.h>
30869# define alloca _alloca
30870# else
30871# if HAVE_ALLOCA_H
30872# include <alloca.h>
30873# else
30874# ifdef _AIX
30875 #pragma alloca
30876# else
30877# ifndef alloca /* predefined by HP cc +Olibcalls */
30878char *alloca ();
30879# endif
30880# endif
30881# endif
30882# endif
30883#endif
30884
30885int
30886main ()
30887{
30888char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030889 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030890 ;
30891 return 0;
30892}
30893_ACEOF
30894rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030895if { (ac_try="$ac_link"
30896case "(($ac_try" in
30897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30898 *) ac_try_echo=$ac_try;;
30899esac
30900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30901 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030902 ac_status=$?
30903 grep -v '^ *+' conftest.er1 >conftest.err
30904 rm -f conftest.er1
30905 cat conftest.err >&5
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30909 { (case "(($ac_try" in
30910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911 *) ac_try_echo=$ac_try;;
30912esac
30913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; } &&
30918 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030919 { (case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30922esac
30923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030925 ac_status=$?
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; }; then
30928 ac_cv_func_alloca_works=yes
30929else
30930 echo "$as_me: failed program was:" >&5
30931sed 's/^/| /' conftest.$ac_ext >&5
30932
Reid Spencera773bd52006-08-04 18:18:08 +000030933 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030934fi
Reid Spencera773bd52006-08-04 18:18:08 +000030935
30936rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030937 conftest$ac_exeext conftest.$ac_ext
30938fi
Reid Spencera773bd52006-08-04 18:18:08 +000030939{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30940echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030941
30942if test $ac_cv_func_alloca_works = yes; then
30943
30944cat >>confdefs.h <<\_ACEOF
30945#define HAVE_ALLOCA 1
30946_ACEOF
30947
30948else
30949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30950# that cause trouble. Some versions do not even contain alloca or
30951# contain a buggy version. If you still want to use their alloca,
30952# use ar to extract alloca.o from them instead of compiling alloca.c.
30953
Reid Spencera773bd52006-08-04 18:18:08 +000030954ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030955
30956cat >>confdefs.h <<\_ACEOF
30957#define C_ALLOCA 1
30958_ACEOF
30959
30960
Reid Spencera773bd52006-08-04 18:18:08 +000030961{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30962echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030963if test "${ac_cv_os_cray+set}" = set; then
30964 echo $ECHO_N "(cached) $ECHO_C" >&6
30965else
30966 cat >conftest.$ac_ext <<_ACEOF
30967/* confdefs.h. */
30968_ACEOF
30969cat confdefs.h >>conftest.$ac_ext
30970cat >>conftest.$ac_ext <<_ACEOF
30971/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030972#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030973webecray
30974#else
30975wenotbecray
30976#endif
30977
30978_ACEOF
30979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30980 $EGREP "webecray" >/dev/null 2>&1; then
30981 ac_cv_os_cray=yes
30982else
30983 ac_cv_os_cray=no
30984fi
30985rm -f conftest*
30986
30987fi
Reid Spencera773bd52006-08-04 18:18:08 +000030988{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30989echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030990if test $ac_cv_os_cray = yes; then
30991 for ac_func in _getb67 GETB67 getb67; do
30992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030996 echo $ECHO_N "(cached) $ECHO_C" >&6
30997else
30998 cat >conftest.$ac_ext <<_ACEOF
30999/* confdefs.h. */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h. */
31004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31006#define $ac_func innocuous_$ac_func
31007
31008/* System header to define __stub macros and hopefully few prototypes,
31009 which can conflict with char $ac_func (); below.
31010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31011 <limits.h> exists even on freestanding compilers. */
31012
31013#ifdef __STDC__
31014# include <limits.h>
31015#else
31016# include <assert.h>
31017#endif
31018
31019#undef $ac_func
31020
Reid Spencera773bd52006-08-04 18:18:08 +000031021/* Override any GCC internal prototype to avoid an error.
31022 Use char because int might match the return type of a GCC
31023 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031024#ifdef __cplusplus
31025extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031026#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031027char $ac_func ();
31028/* The GNU C library defines this for functions which it implements
31029 to always fail with ENOSYS. Some functions are actually named
31030 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031031#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031032choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031033#endif
31034
31035int
31036main ()
31037{
Reid Spencera773bd52006-08-04 18:18:08 +000031038return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031039 ;
31040 return 0;
31041}
31042_ACEOF
31043rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031044if { (ac_try="$ac_link"
31045case "(($ac_try" in
31046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31047 *) ac_try_echo=$ac_try;;
31048esac
31049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031051 ac_status=$?
31052 grep -v '^ *+' conftest.er1 >conftest.err
31053 rm -f conftest.er1
31054 cat conftest.err >&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31058 { (case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31061esac
31062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; } &&
31067 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031068 { (case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31071esac
31072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 eval "$as_ac_var=yes"
31078else
31079 echo "$as_me: failed program was:" >&5
31080sed 's/^/| /' conftest.$ac_ext >&5
31081
Reid Spencera773bd52006-08-04 18:18:08 +000031082 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083fi
Reid Spencera773bd52006-08-04 18:18:08 +000031084
31085rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031086 conftest$ac_exeext conftest.$ac_ext
31087fi
Reid Spencera773bd52006-08-04 18:18:08 +000031088ac_res=`eval echo '${'$as_ac_var'}'`
31089 { echo "$as_me:$LINENO: result: $ac_res" >&5
31090echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031091if test `eval echo '${'$as_ac_var'}'` = yes; then
31092
31093cat >>confdefs.h <<_ACEOF
31094#define CRAY_STACKSEG_END $ac_func
31095_ACEOF
31096
31097 break
31098fi
31099
31100 done
31101fi
31102
Reid Spencera773bd52006-08-04 18:18:08 +000031103{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31104echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031105if test "${ac_cv_c_stack_direction+set}" = set; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31107else
31108 if test "$cross_compiling" = yes; then
31109 ac_cv_c_stack_direction=0
31110else
31111 cat >conftest.$ac_ext <<_ACEOF
31112/* confdefs.h. */
31113_ACEOF
31114cat confdefs.h >>conftest.$ac_ext
31115cat >>conftest.$ac_ext <<_ACEOF
31116/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031117$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031118int
31119find_stack_direction ()
31120{
31121 static char *addr = 0;
31122 auto char dummy;
31123 if (addr == 0)
31124 {
31125 addr = &dummy;
31126 return find_stack_direction ();
31127 }
John Criswell0021c312004-02-13 21:57:29 +000031128 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031129 return (&dummy > addr) ? 1 : -1;
31130}
John Criswell0021c312004-02-13 21:57:29 +000031131
John Criswell0021c312004-02-13 21:57:29 +000031132int
31133main ()
31134{
Reid Spencera773bd52006-08-04 18:18:08 +000031135 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031136}
31137_ACEOF
31138rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031139if { (ac_try="$ac_link"
31140case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31143esac
31144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031149 { (case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31152esac
31153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031158 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031159else
31160 echo "$as_me: program exited with status $ac_status" >&5
31161echo "$as_me: failed program was:" >&5
31162sed 's/^/| /' conftest.$ac_ext >&5
31163
31164( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031165ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031166fi
Reid Spencera773bd52006-08-04 18:18:08 +000031167rm -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 +000031168fi
Reid Spencera773bd52006-08-04 18:18:08 +000031169
31170
John Criswell0021c312004-02-13 21:57:29 +000031171fi
Reid Spencera773bd52006-08-04 18:18:08 +000031172{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31173echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031174
31175cat >>confdefs.h <<_ACEOF
31176#define STACK_DIRECTION $ac_cv_c_stack_direction
31177_ACEOF
31178
31179
John Criswell0021c312004-02-13 21:57:29 +000031180fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031181
31182
Reid Spencera773bd52006-08-04 18:18:08 +000031183{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31184echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031185if test "${ac_cv_func_rand48+set}" = set; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31187else
Reid Spencera773bd52006-08-04 18:18:08 +000031188 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031189ac_cpp='$CXXCPP $CPPFLAGS'
31190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31193
31194 cat >conftest.$ac_ext <<_ACEOF
31195/* confdefs.h. */
31196_ACEOF
31197cat confdefs.h >>conftest.$ac_ext
31198cat >>conftest.$ac_ext <<_ACEOF
31199/* end confdefs.h. */
31200#include <stdlib.h>
31201int
31202main ()
31203{
31204srand48(0);lrand48();drand48();
31205 ;
31206 return 0;
31207}
31208_ACEOF
31209rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031210if { (ac_try="$ac_compile"
31211case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31214esac
31215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031217 ac_status=$?
31218 grep -v '^ *+' conftest.er1 >conftest.err
31219 rm -f conftest.er1
31220 cat conftest.err >&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31224 { (case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227esac
31228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031230 ac_status=$?
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; } &&
31233 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031234 { (case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237esac
31238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; }; then
31243 ac_cv_func_rand48=yes
31244else
31245 echo "$as_me: failed program was:" >&5
31246sed 's/^/| /' conftest.$ac_ext >&5
31247
Reid Spencera773bd52006-08-04 18:18:08 +000031248 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031249fi
Reid Spencera773bd52006-08-04 18:18:08 +000031250
31251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031252 ac_ext=c
31253ac_cpp='$CPP $CPPFLAGS'
31254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31256ac_compiler_gnu=$ac_cv_c_compiler_gnu
31257
31258fi
Reid Spencera773bd52006-08-04 18:18:08 +000031259{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31260echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031261
31262if test "$ac_cv_func_rand48" = "yes" ; then
31263
31264cat >>confdefs.h <<\_ACEOF
31265#define HAVE_RAND48 1
31266_ACEOF
31267
31268fi
John Criswell0021c312004-02-13 21:57:29 +000031269
31270
Reid Spencera773bd52006-08-04 18:18:08 +000031271{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31272echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031273if test "${ac_cv_cxx_namespaces+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
Reid Spencera773bd52006-08-04 18:18:08 +000031276 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031277ac_cpp='$CXXCPP $CPPFLAGS'
31278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31281
31282 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031283/* confdefs.h. */
31284_ACEOF
31285cat confdefs.h >>conftest.$ac_ext
31286cat >>conftest.$ac_ext <<_ACEOF
31287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031288namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031289int
31290main ()
31291{
31292using namespace Outer::Inner; return i;
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031298if { (ac_try="$ac_compile"
31299case "(($ac_try" in
31300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301 *) ac_try_echo=$ac_try;;
31302esac
31303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31304 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031305 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031306 grep -v '^ *+' conftest.er1 >conftest.err
31307 rm -f conftest.er1
31308 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31312 { (case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315esac
31316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031322 { (case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31325esac
31326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031328 ac_status=$?
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); }; }; then
31331 ac_cv_cxx_namespaces=yes
31332else
31333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031334sed 's/^/| /' conftest.$ac_ext >&5
31335
Reid Spencera773bd52006-08-04 18:18:08 +000031336 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031337fi
Reid Spencera773bd52006-08-04 18:18:08 +000031338
31339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031340 ac_ext=c
31341ac_cpp='$CPP $CPPFLAGS'
31342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344ac_compiler_gnu=$ac_cv_c_compiler_gnu
31345
31346
31347fi
Reid Spencera773bd52006-08-04 18:18:08 +000031348{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31349echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031350if test "$ac_cv_cxx_namespaces" = yes; then
31351
31352cat >>confdefs.h <<\_ACEOF
31353#define HAVE_NAMESPACES
31354_ACEOF
31355
31356fi
31357
Reid Spencera773bd52006-08-04 18:18:08 +000031358{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31359echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031360if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031361 echo $ECHO_N "(cached) $ECHO_C" >&6
31362else
31363
Reid Spencera773bd52006-08-04 18:18:08 +000031364 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031365ac_cpp='$CXXCPP $CPPFLAGS'
31366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31369
31370 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031376#include <ext/hash_map>
31377#ifdef HAVE_NAMESPACES
31378using namespace std;
31379#endif
John Criswell7a73b802003-06-30 21:59:07 +000031380int
31381main ()
31382{
Brian Gaeke90583492003-11-10 03:06:28 +000031383hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031384 ;
31385 return 0;
31386}
31387_ACEOF
31388rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031389if { (ac_try="$ac_compile"
31390case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393esac
31394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31403 { (case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31406esac
31407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31416esac
31417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031422 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031423else
31424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031425sed 's/^/| /' conftest.$ac_ext >&5
31426
Reid Spencera773bd52006-08-04 18:18:08 +000031427 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031428fi
Reid Spencera773bd52006-08-04 18:18:08 +000031429
31430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031431 ac_ext=c
31432ac_cpp='$CPP $CPPFLAGS'
31433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31435ac_compiler_gnu=$ac_cv_c_compiler_gnu
31436
John Criswell7a73b802003-06-30 21:59:07 +000031437fi
Reid Spencera773bd52006-08-04 18:18:08 +000031438{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31439echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031440 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31441 then
John Criswell9f011862004-09-24 18:28:00 +000031442
31443cat >>confdefs.h <<\_ACEOF
31444#define HAVE_STD_EXT_HASH_MAP 1
31445_ACEOF
31446
31447 else
31448
31449cat >>confdefs.h <<\_ACEOF
31450#define HAVE_STD_EXT_HASH_MAP 0
31451_ACEOF
31452
Brian Gaeke90583492003-11-10 03:06:28 +000031453 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031454
Reid Spencera773bd52006-08-04 18:18:08 +000031455 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31456echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031457if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31458 echo $ECHO_N "(cached) $ECHO_C" >&6
31459else
31460
Reid Spencera773bd52006-08-04 18:18:08 +000031461 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031462ac_cpp='$CXXCPP $CPPFLAGS'
31463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31466
31467 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031468/* confdefs.h. */
31469_ACEOF
31470cat confdefs.h >>conftest.$ac_ext
31471cat >>conftest.$ac_ext <<_ACEOF
31472/* end confdefs.h. */
31473#include <ext/hash_map>
31474#ifdef HAVE_NAMESPACES
31475using namespace __gnu_cxx;
31476#endif
31477int
31478main ()
31479{
31480hash_map<int,int> t;
31481 ;
31482 return 0;
31483}
31484_ACEOF
31485rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031486if { (ac_try="$ac_compile"
31487case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031494 grep -v '^ *+' conftest.er1 >conftest.err
31495 rm -f conftest.er1
31496 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031510 { (case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31513esac
31514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 ac_cv_cxx_have_gnu_ext_hash_map=yes
31520else
31521 echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
Reid Spencera773bd52006-08-04 18:18:08 +000031524 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031525fi
Reid Spencera773bd52006-08-04 18:18:08 +000031526
31527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031528 ac_ext=c
31529ac_cpp='$CPP $CPPFLAGS'
31530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31532ac_compiler_gnu=$ac_cv_c_compiler_gnu
31533
31534fi
Reid Spencera773bd52006-08-04 18:18:08 +000031535{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31536echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031537 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31538 then
John Criswell9f011862004-09-24 18:28:00 +000031539
31540cat >>confdefs.h <<\_ACEOF
31541#define HAVE_GNU_EXT_HASH_MAP 1
31542_ACEOF
31543
31544 else
31545
31546cat >>confdefs.h <<\_ACEOF
31547#define HAVE_GNU_EXT_HASH_MAP 0
31548_ACEOF
31549
Brian Gaeke90583492003-11-10 03:06:28 +000031550 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031551
Reid Spencera773bd52006-08-04 18:18:08 +000031552 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31553echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031554if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
John Criswell7a73b802003-06-30 21:59:07 +000031557
Reid Spencera773bd52006-08-04 18:18:08 +000031558 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031559ac_cpp='$CXXCPP $CPPFLAGS'
31560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31563
31564 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031565/* confdefs.h. */
31566_ACEOF
31567cat confdefs.h >>conftest.$ac_ext
31568cat >>conftest.$ac_ext <<_ACEOF
31569/* end confdefs.h. */
31570#include <hash_map>
31571int
31572main ()
31573{
31574hash_map<int,int> t;
31575 ;
31576 return 0;
31577}
31578_ACEOF
31579rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031580if { (ac_try="$ac_compile"
31581case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031587 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031588 grep -v '^ *+' conftest.er1 >conftest.err
31589 rm -f conftest.er1
31590 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31594 { (case "(($ac_try" in
31595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31597esac
31598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031604 { (case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31607esac
31608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031610 ac_status=$?
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
31613 ac_cv_cxx_have_global_hash_map=yes
31614else
31615 echo "$as_me: failed program was:" >&5
31616sed 's/^/| /' conftest.$ac_ext >&5
31617
Reid Spencera773bd52006-08-04 18:18:08 +000031618 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031619fi
Reid Spencera773bd52006-08-04 18:18:08 +000031620
31621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031622 ac_ext=c
31623ac_cpp='$CPP $CPPFLAGS'
31624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31626ac_compiler_gnu=$ac_cv_c_compiler_gnu
31627
31628fi
Reid Spencera773bd52006-08-04 18:18:08 +000031629{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31630echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031631 if test "$ac_cv_cxx_have_global_hash_map" = yes
31632 then
John Criswell9f011862004-09-24 18:28:00 +000031633
31634cat >>confdefs.h <<\_ACEOF
31635#define HAVE_GLOBAL_HASH_MAP 1
31636_ACEOF
31637
31638 else
31639
31640cat >>confdefs.h <<\_ACEOF
31641#define HAVE_GLOBAL_HASH_MAP 0
31642_ACEOF
31643
Brian Gaeke90583492003-11-10 03:06:28 +000031644 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031645
Reid Spencera773bd52006-08-04 18:18:08 +000031646{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31647echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031648if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031649 echo $ECHO_N "(cached) $ECHO_C" >&6
31650else
31651
Reid Spencera773bd52006-08-04 18:18:08 +000031652 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031653ac_cpp='$CXXCPP $CPPFLAGS'
31654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31657
31658 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031659/* confdefs.h. */
31660_ACEOF
31661cat confdefs.h >>conftest.$ac_ext
31662cat >>conftest.$ac_ext <<_ACEOF
31663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031664#include <ext/hash_set>
31665#ifdef HAVE_NAMESPACES
31666using namespace std;
31667#endif
John Criswell7a73b802003-06-30 21:59:07 +000031668int
31669main ()
31670{
Brian Gaeke90583492003-11-10 03:06:28 +000031671hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031672 ;
31673 return 0;
31674}
31675_ACEOF
31676rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031677if { (ac_try="$ac_compile"
31678case "(($ac_try" in
31679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31680 *) ac_try_echo=$ac_try;;
31681esac
31682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31683 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031685 grep -v '^ *+' conftest.er1 >conftest.err
31686 rm -f conftest.er1
31687 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31691 { (case "(($ac_try" in
31692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31693 *) ac_try_echo=$ac_try;;
31694esac
31695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31696 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031701 { (case "(($ac_try" in
31702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703 *) ac_try_echo=$ac_try;;
31704esac
31705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031710 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031711else
31712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031713sed 's/^/| /' conftest.$ac_ext >&5
31714
Reid Spencera773bd52006-08-04 18:18:08 +000031715 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031716fi
Reid Spencera773bd52006-08-04 18:18:08 +000031717
31718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031719 ac_ext=c
31720ac_cpp='$CPP $CPPFLAGS'
31721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31723ac_compiler_gnu=$ac_cv_c_compiler_gnu
31724
31725fi
Reid Spencera773bd52006-08-04 18:18:08 +000031726{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31727echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031728 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31729 then
John Criswell9f011862004-09-24 18:28:00 +000031730
31731cat >>confdefs.h <<\_ACEOF
31732#define HAVE_STD_EXT_HASH_SET 1
31733_ACEOF
31734
31735 else
31736
31737cat >>confdefs.h <<\_ACEOF
31738#define HAVE_STD_EXT_HASH_SET 0
31739_ACEOF
31740
Brian Gaeke90583492003-11-10 03:06:28 +000031741 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031742
Reid Spencera773bd52006-08-04 18:18:08 +000031743 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31744echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031745if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31747else
31748
Reid Spencera773bd52006-08-04 18:18:08 +000031749 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031750ac_cpp='$CXXCPP $CPPFLAGS'
31751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31754
John Criswell7a73b802003-06-30 21:59:07 +000031755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031756/* confdefs.h. */
31757_ACEOF
31758cat confdefs.h >>conftest.$ac_ext
31759cat >>conftest.$ac_ext <<_ACEOF
31760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031761#include <ext/hash_set>
31762#ifdef HAVE_NAMESPACES
31763using namespace __gnu_cxx;
31764#endif
John Criswell7a73b802003-06-30 21:59:07 +000031765int
31766main ()
31767{
Brian Gaeke90583492003-11-10 03:06:28 +000031768hash_set<int> t;
31769 ;
31770 return 0;
31771}
31772_ACEOF
31773rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031774if { (ac_try="$ac_compile"
31775case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31778esac
31779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031782 grep -v '^ *+' conftest.er1 >conftest.err
31783 rm -f conftest.er1
31784 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31788 { (case "(($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_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031794 ac_status=$?
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; } &&
31797 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031798 { (case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801esac
31802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; }; then
31807 ac_cv_cxx_have_gnu_ext_hash_set=yes
31808else
31809 echo "$as_me: failed program was:" >&5
31810sed 's/^/| /' conftest.$ac_ext >&5
31811
Reid Spencera773bd52006-08-04 18:18:08 +000031812 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031813fi
Reid Spencera773bd52006-08-04 18:18:08 +000031814
31815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031816 ac_ext=c
31817ac_cpp='$CPP $CPPFLAGS'
31818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31820ac_compiler_gnu=$ac_cv_c_compiler_gnu
31821
31822fi
Reid Spencera773bd52006-08-04 18:18:08 +000031823{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31824echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031825 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31826 then
John Criswell9f011862004-09-24 18:28:00 +000031827
31828cat >>confdefs.h <<\_ACEOF
31829#define HAVE_GNU_EXT_HASH_SET 1
31830_ACEOF
31831
31832 else
31833
31834cat >>confdefs.h <<\_ACEOF
31835#define HAVE_GNU_EXT_HASH_SET 0
31836_ACEOF
31837
Brian Gaeke90583492003-11-10 03:06:28 +000031838 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031839
Reid Spencera773bd52006-08-04 18:18:08 +000031840 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31841echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031842if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31844else
31845
Reid Spencera773bd52006-08-04 18:18:08 +000031846 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031847ac_cpp='$CXXCPP $CPPFLAGS'
31848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31851
31852 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031853/* confdefs.h. */
31854_ACEOF
31855cat confdefs.h >>conftest.$ac_ext
31856cat >>conftest.$ac_ext <<_ACEOF
31857/* end confdefs.h. */
31858#include <hash_set>
31859int
31860main ()
31861{
John Criswell7a73b802003-06-30 21:59:07 +000031862hash_set<int> t; return 0;
31863 ;
31864 return 0;
31865}
31866_ACEOF
31867rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031868if { (ac_try="$ac_compile"
31869case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31872esac
31873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031876 grep -v '^ *+' conftest.er1 >conftest.err
31877 rm -f conftest.er1
31878 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882 { (case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31885esac
31886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; } &&
31891 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031892 { (case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31895esac
31896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031901 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031902else
31903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031904sed 's/^/| /' conftest.$ac_ext >&5
31905
Reid Spencera773bd52006-08-04 18:18:08 +000031906 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031907fi
Reid Spencera773bd52006-08-04 18:18:08 +000031908
31909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031910 ac_ext=c
31911ac_cpp='$CPP $CPPFLAGS'
31912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914ac_compiler_gnu=$ac_cv_c_compiler_gnu
31915
John Criswell7a73b802003-06-30 21:59:07 +000031916fi
Reid Spencera773bd52006-08-04 18:18:08 +000031917{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31918echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031919 if test "$ac_cv_cxx_have_global_hash_set" = yes
31920 then
John Criswell9f011862004-09-24 18:28:00 +000031921
31922cat >>confdefs.h <<\_ACEOF
31923#define HAVE_GLOBAL_HASH_SET 1
31924_ACEOF
31925
31926 else
31927
31928cat >>confdefs.h <<\_ACEOF
31929#define HAVE_GLOBAL_HASH_SET 0
31930_ACEOF
31931
Brian Gaeke90583492003-11-10 03:06:28 +000031932 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031933
Reid Spencera773bd52006-08-04 18:18:08 +000031934{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31935echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031936if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938else
31939
Reid Spencera773bd52006-08-04 18:18:08 +000031940 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031941ac_cpp='$CXXCPP $CPPFLAGS'
31942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31945
31946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031947/* confdefs.h. */
31948_ACEOF
31949cat confdefs.h >>conftest.$ac_ext
31950cat >>conftest.$ac_ext <<_ACEOF
31951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031952#include <iterator>
31953#ifdef HAVE_NAMESPACES
31954using namespace std;
31955#endif
John Criswell7a73b802003-06-30 21:59:07 +000031956int
31957main ()
31958{
31959iterator<int,int,int> t; return 0;
31960 ;
31961 return 0;
31962}
31963_ACEOF
31964rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031965if { (ac_try="$ac_compile"
31966case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969esac
31970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031972 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031973 grep -v '^ *+' conftest.er1 >conftest.err
31974 rm -f conftest.er1
31975 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979 { (case "(($ac_try" in
31980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31982esac
31983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031989 { (case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31992esac
31993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031995 ac_status=$?
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_cv_cxx_have_std_iterator=yes
31999else
32000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032001sed 's/^/| /' conftest.$ac_ext >&5
32002
Reid Spencera773bd52006-08-04 18:18:08 +000032003 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032004fi
Reid Spencera773bd52006-08-04 18:18:08 +000032005
32006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032007 ac_ext=c
32008ac_cpp='$CPP $CPPFLAGS'
32009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011ac_compiler_gnu=$ac_cv_c_compiler_gnu
32012
32013
32014fi
Reid Spencera773bd52006-08-04 18:18:08 +000032015{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32016echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032017if test "$ac_cv_cxx_have_std_iterator" = yes
32018then
John Criswell40468462004-09-24 21:19:06 +000032019
32020cat >>confdefs.h <<\_ACEOF
32021#define HAVE_STD_ITERATOR 1
32022_ACEOF
32023
32024else
32025
32026cat >>confdefs.h <<\_ACEOF
32027#define HAVE_STD_ITERATOR 0
32028_ACEOF
32029
John Criswell7a73b802003-06-30 21:59:07 +000032030fi
32031
Reid Spencera773bd52006-08-04 18:18:08 +000032032{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32033echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032034if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32035 echo $ECHO_N "(cached) $ECHO_C" >&6
32036else
32037
Reid Spencera773bd52006-08-04 18:18:08 +000032038 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032039ac_cpp='$CXXCPP $CPPFLAGS'
32040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32043
32044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032045/* confdefs.h. */
32046_ACEOF
32047cat confdefs.h >>conftest.$ac_ext
32048cat >>conftest.$ac_ext <<_ACEOF
32049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032050#include <iterator>
32051#ifdef HAVE_NAMESPACES
32052using namespace std;
32053#endif
John Criswell7a73b802003-06-30 21:59:07 +000032054int
32055main ()
32056{
John Criswellc78022e2003-07-29 19:11:58 +000032057bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032058 ;
32059 return 0;
32060}
32061_ACEOF
32062rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032063if { (ac_try="$ac_compile"
32064case "(($ac_try" in
32065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32067esac
32068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032070 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032071 grep -v '^ *+' conftest.er1 >conftest.err
32072 rm -f conftest.er1
32073 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32077 { (case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32080esac
32081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032083 ac_status=$?
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; } &&
32086 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032087 { (case "(($ac_try" in
32088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089 *) ac_try_echo=$ac_try;;
32090esac
32091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032093 ac_status=$?
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; }; then
32096 ac_cv_cxx_have_bi_iterator=yes
32097else
32098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032099sed 's/^/| /' conftest.$ac_ext >&5
32100
Reid Spencera773bd52006-08-04 18:18:08 +000032101 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032102fi
Reid Spencera773bd52006-08-04 18:18:08 +000032103
32104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032105 ac_ext=c
32106ac_cpp='$CPP $CPPFLAGS'
32107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32109ac_compiler_gnu=$ac_cv_c_compiler_gnu
32110
32111
32112fi
Reid Spencera773bd52006-08-04 18:18:08 +000032113{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32114echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032115if test "$ac_cv_cxx_have_bi_iterator" = yes
32116then
John Criswell40468462004-09-24 21:19:06 +000032117
32118cat >>confdefs.h <<\_ACEOF
32119#define HAVE_BI_ITERATOR 1
32120_ACEOF
32121
32122else
32123
32124cat >>confdefs.h <<\_ACEOF
32125#define HAVE_BI_ITERATOR 0
32126_ACEOF
32127
John Criswell7a73b802003-06-30 21:59:07 +000032128fi
32129
Reid Spencera773bd52006-08-04 18:18:08 +000032130{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32131echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032132if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32134else
32135
Reid Spencera773bd52006-08-04 18:18:08 +000032136 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032137ac_cpp='$CXXCPP $CPPFLAGS'
32138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32141
32142 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032143/* confdefs.h. */
32144_ACEOF
32145cat confdefs.h >>conftest.$ac_ext
32146cat >>conftest.$ac_ext <<_ACEOF
32147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032148#include <iterator>
32149#ifdef HAVE_NAMESPACES
32150using namespace std;
32151#endif
John Criswell7a73b802003-06-30 21:59:07 +000032152int
32153main ()
32154{
John Criswellc78022e2003-07-29 19:11:58 +000032155forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032156 ;
32157 return 0;
32158}
32159_ACEOF
32160rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032161if { (ac_try="$ac_compile"
32162case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32165esac
32166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032168 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032169 grep -v '^ *+' conftest.er1 >conftest.err
32170 rm -f conftest.er1
32171 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32175 { (case "(($ac_try" in
32176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32177 *) ac_try_echo=$ac_try;;
32178esac
32179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032185 { (case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32188esac
32189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032191 ac_status=$?
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; }; then
32194 ac_cv_cxx_have_fwd_iterator=yes
32195else
32196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032197sed 's/^/| /' conftest.$ac_ext >&5
32198
Reid Spencera773bd52006-08-04 18:18:08 +000032199 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032200fi
Reid Spencera773bd52006-08-04 18:18:08 +000032201
32202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032203 ac_ext=c
32204ac_cpp='$CPP $CPPFLAGS'
32205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207ac_compiler_gnu=$ac_cv_c_compiler_gnu
32208
32209
32210fi
Reid Spencera773bd52006-08-04 18:18:08 +000032211{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32212echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032213if test "$ac_cv_cxx_have_fwd_iterator" = yes
32214then
John Criswell40468462004-09-24 21:19:06 +000032215
32216cat >>confdefs.h <<\_ACEOF
32217#define HAVE_FWD_ITERATOR 1
32218_ACEOF
32219
32220else
32221
32222cat >>confdefs.h <<\_ACEOF
32223#define HAVE_FWD_ITERATOR 0
32224_ACEOF
32225
John Criswell7a73b802003-06-30 21:59:07 +000032226fi
32227
32228
Reid Spencera773bd52006-08-04 18:18:08 +000032229{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32230echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032231if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233else
Reid Spencera773bd52006-08-04 18:18:08 +000032234 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032235ac_cpp='$CXXCPP $CPPFLAGS'
32236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32239
Reid Spencerabec8f92004-10-27 23:03:44 +000032240 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032241/* confdefs.h. */
32242_ACEOF
32243cat confdefs.h >>conftest.$ac_ext
32244cat >>conftest.$ac_ext <<_ACEOF
32245/* end confdefs.h. */
32246#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032247int
32248main ()
32249{
32250float f; isnan(f);
32251 ;
32252 return 0;
32253}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032254_ACEOF
32255rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032256if { (ac_try="$ac_compile"
32257case "(($ac_try" in
32258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32260esac
32261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032263 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032264 grep -v '^ *+' conftest.er1 >conftest.err
32265 rm -f conftest.er1
32266 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32270 { (case "(($ac_try" in
32271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272 *) ac_try_echo=$ac_try;;
32273esac
32274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; } &&
32279 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032280 { (case "(($ac_try" in
32281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32283esac
32284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 ac_cv_func_isnan_in_math_h=yes
32290else
32291 echo "$as_me: failed program was:" >&5
32292sed 's/^/| /' conftest.$ac_ext >&5
32293
Reid Spencera773bd52006-08-04 18:18:08 +000032294 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032295fi
Reid Spencera773bd52006-08-04 18:18:08 +000032296
32297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032298 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032299ac_cpp='$CPP $CPPFLAGS'
32300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32302ac_compiler_gnu=$ac_cv_c_compiler_gnu
32303
32304fi
Reid Spencera773bd52006-08-04 18:18:08 +000032305{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32306echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032307
32308
32309if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032310
32311cat >>confdefs.h <<\_ACEOF
32312#define HAVE_ISNAN_IN_MATH_H 1
32313_ACEOF
32314
Reid Spencerabec8f92004-10-27 23:03:44 +000032315fi
32316
Reid Spencera773bd52006-08-04 18:18:08 +000032317{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32318echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032319if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
Reid Spencera773bd52006-08-04 18:18:08 +000032322 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032323ac_cpp='$CXXCPP $CPPFLAGS'
32324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327
Reid Spencerabec8f92004-10-27 23:03:44 +000032328 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032329/* confdefs.h. */
32330_ACEOF
32331cat confdefs.h >>conftest.$ac_ext
32332cat >>conftest.$ac_ext <<_ACEOF
32333/* end confdefs.h. */
32334#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032335int
32336main ()
32337{
32338float f; isnan(f);
32339 ;
32340 return 0;
32341}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032342_ACEOF
32343rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032344if { (ac_try="$ac_compile"
32345case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32361esac
32362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 ac_cv_func_isnan_in_cmath=yes
32378else
32379 echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
Reid Spencera773bd52006-08-04 18:18:08 +000032382 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032383fi
Reid Spencera773bd52006-08-04 18:18:08 +000032384
32385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032386 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032387ac_cpp='$CPP $CPPFLAGS'
32388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390ac_compiler_gnu=$ac_cv_c_compiler_gnu
32391
32392fi
Reid Spencera773bd52006-08-04 18:18:08 +000032393{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32394echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032395
32396if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032397
32398cat >>confdefs.h <<\_ACEOF
32399#define HAVE_ISNAN_IN_CMATH 1
32400_ACEOF
32401
Reid Spencerabec8f92004-10-27 23:03:44 +000032402fi
32403
Reid Spencera773bd52006-08-04 18:18:08 +000032404{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32405echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032406if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408else
Reid Spencera773bd52006-08-04 18:18:08 +000032409 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032410ac_cpp='$CXXCPP $CPPFLAGS'
32411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414
Reid Spencerabec8f92004-10-27 23:03:44 +000032415 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032416/* confdefs.h. */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h. */
32421#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032422int
32423main ()
32424{
32425float f; std::isnan(f);
32426 ;
32427 return 0;
32428}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032429_ACEOF
32430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032431if { (ac_try="$ac_compile"
32432case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435esac
32436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448esac
32449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032451 ac_status=$?
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032455 { (case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32458esac
32459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_func_std_isnan_in_cmath=yes
32465else
32466 echo "$as_me: failed program was:" >&5
32467sed 's/^/| /' conftest.$ac_ext >&5
32468
Reid Spencera773bd52006-08-04 18:18:08 +000032469 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032470fi
Reid Spencera773bd52006-08-04 18:18:08 +000032471
32472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032473 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032474ac_cpp='$CPP $CPPFLAGS'
32475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477ac_compiler_gnu=$ac_cv_c_compiler_gnu
32478
32479fi
Reid Spencera773bd52006-08-04 18:18:08 +000032480{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32481echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032482
32483if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032484
32485cat >>confdefs.h <<\_ACEOF
32486#define HAVE_STD_ISNAN_IN_CMATH 1
32487_ACEOF
32488
Reid Spencerabec8f92004-10-27 23:03:44 +000032489fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032490
32491
Reid Spencera773bd52006-08-04 18:18:08 +000032492{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32493echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032494if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496else
Reid Spencera773bd52006-08-04 18:18:08 +000032497 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032498ac_cpp='$CXXCPP $CPPFLAGS'
32499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502
Reid Spencerabec8f92004-10-27 23:03:44 +000032503 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032504/* confdefs.h. */
32505_ACEOF
32506cat confdefs.h >>conftest.$ac_ext
32507cat >>conftest.$ac_ext <<_ACEOF
32508/* end confdefs.h. */
32509#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032510int
32511main ()
32512{
32513float f; isinf(f);
32514 ;
32515 return 0;
32516}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032517_ACEOF
32518rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032519if { (ac_try="$ac_compile"
32520case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32523esac
32524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032527 grep -v '^ *+' conftest.er1 >conftest.err
32528 rm -f conftest.er1
32529 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32533 { (case "(($ac_try" in
32534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32535 *) ac_try_echo=$ac_try;;
32536esac
32537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; } &&
32542 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032543 { (case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32546esac
32547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32552 ac_cv_func_isinf_in_math_h=yes
32553else
32554 echo "$as_me: failed program was:" >&5
32555sed 's/^/| /' conftest.$ac_ext >&5
32556
Reid Spencera773bd52006-08-04 18:18:08 +000032557 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032558fi
Reid Spencera773bd52006-08-04 18:18:08 +000032559
32560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032561 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032562ac_cpp='$CPP $CPPFLAGS'
32563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565ac_compiler_gnu=$ac_cv_c_compiler_gnu
32566
32567fi
Reid Spencera773bd52006-08-04 18:18:08 +000032568{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32569echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032570
32571if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032572
32573cat >>confdefs.h <<\_ACEOF
32574#define HAVE_ISINF_IN_MATH_H 1
32575_ACEOF
32576
Reid Spencerabec8f92004-10-27 23:03:44 +000032577fi
32578
Reid Spencera773bd52006-08-04 18:18:08 +000032579{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32580echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032581if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
Reid Spencera773bd52006-08-04 18:18:08 +000032584 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032585ac_cpp='$CXXCPP $CPPFLAGS'
32586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32589
Reid Spencerabec8f92004-10-27 23:03:44 +000032590 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032591/* confdefs.h. */
32592_ACEOF
32593cat confdefs.h >>conftest.$ac_ext
32594cat >>conftest.$ac_ext <<_ACEOF
32595/* end confdefs.h. */
32596#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032597int
32598main ()
32599{
32600float f; isinf(f);
32601 ;
32602 return 0;
32603}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032604_ACEOF
32605rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032606if { (ac_try="$ac_compile"
32607case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032614 grep -v '^ *+' conftest.er1 >conftest.err
32615 rm -f conftest.er1
32616 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32620 { (case "(($ac_try" in
32621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32622 *) ac_try_echo=$ac_try;;
32623esac
32624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32625 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032626 ac_status=$?
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; } &&
32629 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032630 { (case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32633esac
32634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; }; then
32639 ac_cv_func_isinf_in_cmath=yes
32640else
32641 echo "$as_me: failed program was:" >&5
32642sed 's/^/| /' conftest.$ac_ext >&5
32643
Reid Spencera773bd52006-08-04 18:18:08 +000032644 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032645fi
Reid Spencera773bd52006-08-04 18:18:08 +000032646
32647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032648 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032649ac_cpp='$CPP $CPPFLAGS'
32650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_c_compiler_gnu
32653
32654fi
Reid Spencera773bd52006-08-04 18:18:08 +000032655{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32656echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032657
32658if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032659
32660cat >>confdefs.h <<\_ACEOF
32661#define HAVE_ISINF_IN_CMATH 1
32662_ACEOF
32663
Reid Spencerabec8f92004-10-27 23:03:44 +000032664fi
32665
Reid Spencera773bd52006-08-04 18:18:08 +000032666{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32667echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032668if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32669 echo $ECHO_N "(cached) $ECHO_C" >&6
32670else
Reid Spencera773bd52006-08-04 18:18:08 +000032671 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032672ac_cpp='$CXXCPP $CPPFLAGS'
32673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32676
Reid Spencerabec8f92004-10-27 23:03:44 +000032677 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032678/* confdefs.h. */
32679_ACEOF
32680cat confdefs.h >>conftest.$ac_ext
32681cat >>conftest.$ac_ext <<_ACEOF
32682/* end confdefs.h. */
32683#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032684int
32685main ()
32686{
32687float f; std::isinf(f)}
32688 ;
32689 return 0;
32690}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032691_ACEOF
32692rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032693if { (ac_try="$ac_compile"
32694case "(($ac_try" in
32695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696 *) ac_try_echo=$ac_try;;
32697esac
32698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032701 grep -v '^ *+' conftest.er1 >conftest.err
32702 rm -f conftest.er1
32703 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707 { (case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32710esac
32711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032713 ac_status=$?
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; } &&
32716 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032717 { (case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720esac
32721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032723 ac_status=$?
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
32726 ac_cv_func_std_isinf_in_cmath=yes
32727else
32728 echo "$as_me: failed program was:" >&5
32729sed 's/^/| /' conftest.$ac_ext >&5
32730
Reid Spencera773bd52006-08-04 18:18:08 +000032731 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032732fi
Reid Spencera773bd52006-08-04 18:18:08 +000032733
32734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032735 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032736ac_cpp='$CPP $CPPFLAGS'
32737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740
32741fi
Reid Spencera773bd52006-08-04 18:18:08 +000032742{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32743echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032744
32745if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032746
32747cat >>confdefs.h <<\_ACEOF
32748#define HAVE_STD_ISINF_IN_CMATH 1
32749_ACEOF
32750
Reid Spencerabec8f92004-10-27 23:03:44 +000032751fi
32752
Reid Spencera773bd52006-08-04 18:18:08 +000032753{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32754echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032755if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32757else
Reid Spencera773bd52006-08-04 18:18:08 +000032758 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032759ac_cpp='$CXXCPP $CPPFLAGS'
32760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32763
Reid Spencerabec8f92004-10-27 23:03:44 +000032764 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032765/* confdefs.h. */
32766_ACEOF
32767cat confdefs.h >>conftest.$ac_ext
32768cat >>conftest.$ac_ext <<_ACEOF
32769/* end confdefs.h. */
32770#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032771int
32772main ()
32773{
32774float f; finite(f);
32775 ;
32776 return 0;
32777}
Brian Gaeked59a6472004-07-21 03:33:58 +000032778_ACEOF
32779rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032780if { (ac_try="$ac_compile"
32781case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32784esac
32785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32794 { (case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32797esac
32798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032804 { (case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32807esac
32808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
32813 ac_cv_func_finite_in_ieeefp_h=yes
32814else
32815 echo "$as_me: failed program was:" >&5
32816sed 's/^/| /' conftest.$ac_ext >&5
32817
Reid Spencera773bd52006-08-04 18:18:08 +000032818 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032819fi
Reid Spencera773bd52006-08-04 18:18:08 +000032820
32821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032822 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032823ac_cpp='$CPP $CPPFLAGS'
32824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826ac_compiler_gnu=$ac_cv_c_compiler_gnu
32827
32828fi
Reid Spencera773bd52006-08-04 18:18:08 +000032829{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32830echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032831
Brian Gaeke6802b552004-10-28 05:06:45 +000032832if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032833
32834cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032835#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032836_ACEOF
32837
Reid Spencerabec8f92004-10-27 23:03:44 +000032838fi
32839
32840
32841
Reid Spencer30fe5262007-01-20 07:48:49 +000032842if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032843
32844
32845for ac_header in stdlib.h unistd.h
32846do
32847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032852 echo $ECHO_N "(cached) $ECHO_C" >&6
32853fi
Reid Spencera773bd52006-08-04 18:18:08 +000032854ac_res=`eval echo '${'$as_ac_Header'}'`
32855 { echo "$as_me:$LINENO: result: $ac_res" >&5
32856echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032857else
32858 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032861cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032862/* confdefs.h. */
32863_ACEOF
32864cat confdefs.h >>conftest.$ac_ext
32865cat >>conftest.$ac_ext <<_ACEOF
32866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032867$ac_includes_default
32868#include <$ac_header>
32869_ACEOF
32870rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032871if { (ac_try="$ac_compile"
32872case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32875esac
32876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32888esac
32889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032891 ac_status=$?
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } &&
32894 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898esac
32899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
32904 ac_header_compiler=yes
32905else
32906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032907sed 's/^/| /' conftest.$ac_ext >&5
32908
Reid Spencera773bd52006-08-04 18:18:08 +000032909 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032910fi
Reid Spencera773bd52006-08-04 18:18:08 +000032911
32912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32914echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032915
32916# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032919cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032920/* confdefs.h. */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032925#include <$ac_header>
32926_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032927if { (ac_try="$ac_cpp conftest.$ac_ext"
32928case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32931esac
32932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032934 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032935 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032936 rm -f conftest.er1
32937 cat conftest.err >&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } >/dev/null; then
32940 if test -s conftest.err; then
32941 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032943 else
32944 ac_cpp_err=
32945 fi
32946else
32947 ac_cpp_err=yes
32948fi
32949if test -z "$ac_cpp_err"; then
32950 ac_header_preproc=yes
32951else
32952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032953sed 's/^/| /' conftest.$ac_ext >&5
32954
John Criswell7a73b802003-06-30 21:59:07 +000032955 ac_header_preproc=no
32956fi
Reid Spencera773bd52006-08-04 18:18:08 +000032957
John Criswell7a73b802003-06-30 21:59:07 +000032958rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32960echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032961
32962# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32964 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32969 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032970 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032971 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032984 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032985## ----------------------------------- ##
32986## Report this to llvmbugs@cs.uiuc.edu ##
32987## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032988_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032989 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032990 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032991esac
Reid Spencera773bd52006-08-04 18:18:08 +000032992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032995 echo $ECHO_N "(cached) $ECHO_C" >&6
32996else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032997 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032998fi
Reid Spencera773bd52006-08-04 18:18:08 +000032999ac_res=`eval echo '${'$as_ac_Header'}'`
33000 { echo "$as_me:$LINENO: result: $ac_res" >&5
33001echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033002
33003fi
33004if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005 cat >>confdefs.h <<_ACEOF
33006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33007_ACEOF
33008
33009fi
33010
33011done
33012
33013
33014for ac_func in getpagesize
33015do
33016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
33022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033023/* confdefs.h. */
33024_ACEOF
33025cat confdefs.h >>conftest.$ac_ext
33026cat >>conftest.$ac_ext <<_ACEOF
33027/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33030#define $ac_func innocuous_$ac_func
33031
John Criswell7a73b802003-06-30 21:59:07 +000033032/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033033 which can conflict with char $ac_func (); below.
33034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33035 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033036
John Criswell0c38eaf2003-09-10 15:17:25 +000033037#ifdef __STDC__
33038# include <limits.h>
33039#else
33040# include <assert.h>
33041#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033042
33043#undef $ac_func
33044
Reid Spencera773bd52006-08-04 18:18:08 +000033045/* Override any GCC internal prototype to avoid an error.
33046 Use char because int might match the return type of a GCC
33047 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033048#ifdef __cplusplus
33049extern "C"
33050#endif
John Criswell7a73b802003-06-30 21:59:07 +000033051char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033052/* The GNU C library defines this for functions which it implements
33053 to always fail with ENOSYS. Some functions are actually named
33054 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033055#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033056choke me
John Criswell7a73b802003-06-30 21:59:07 +000033057#endif
33058
John Criswell0c38eaf2003-09-10 15:17:25 +000033059int
33060main ()
33061{
Reid Spencera773bd52006-08-04 18:18:08 +000033062return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033063 ;
33064 return 0;
33065}
33066_ACEOF
33067rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033068if { (ac_try="$ac_link"
33069case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33072esac
33073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033076 grep -v '^ *+' conftest.er1 >conftest.err
33077 rm -f conftest.er1
33078 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33085esac
33086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33095esac
33096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 eval "$as_ac_var=yes"
33102else
33103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033104sed 's/^/| /' conftest.$ac_ext >&5
33105
Reid Spencera773bd52006-08-04 18:18:08 +000033106 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033107fi
Reid Spencera773bd52006-08-04 18:18:08 +000033108
33109rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033110 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033111fi
Reid Spencera773bd52006-08-04 18:18:08 +000033112ac_res=`eval echo '${'$as_ac_var'}'`
33113 { echo "$as_me:$LINENO: result: $ac_res" >&5
33114echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033115if test `eval echo '${'$as_ac_var'}'` = yes; then
33116 cat >>confdefs.h <<_ACEOF
33117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33118_ACEOF
33119
33120fi
33121done
33122
Reid Spencera773bd52006-08-04 18:18:08 +000033123{ echo "$as_me:$LINENO: checking for working mmap" >&5
33124echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033125if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33127else
33128 if test "$cross_compiling" = yes; then
33129 ac_cv_func_mmap_fixed_mapped=no
33130else
33131 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033132/* confdefs.h. */
33133_ACEOF
33134cat confdefs.h >>conftest.$ac_ext
33135cat >>conftest.$ac_ext <<_ACEOF
33136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033137$ac_includes_default
33138/* malloc might have been renamed as rpl_malloc. */
33139#undef malloc
33140
33141/* Thanks to Mike Haertel and Jim Avera for this test.
33142 Here is a matrix of mmap possibilities:
33143 mmap private not fixed
33144 mmap private fixed at somewhere currently unmapped
33145 mmap private fixed at somewhere already mapped
33146 mmap shared not fixed
33147 mmap shared fixed at somewhere currently unmapped
33148 mmap shared fixed at somewhere already mapped
33149 For private mappings, we should verify that changes cannot be read()
33150 back from the file, nor mmap's back from the file at a different
33151 address. (There have been systems where private was not correctly
33152 implemented like the infamous i386 svr4.0, and systems where the
33153 VM page cache was not coherent with the file system buffer cache
33154 like early versions of FreeBSD and possibly contemporary NetBSD.)
33155 For shared mappings, we should conversely verify that changes get
33156 propagated back to all the places they're supposed to be.
33157
33158 Grep wants private fixed already mapped.
33159 The main things grep needs to know about mmap are:
33160 * does it exist and is it safe to write into the mmap'd area
33161 * how to use it (BSD variants) */
33162
33163#include <fcntl.h>
33164#include <sys/mman.h>
33165
33166#if !STDC_HEADERS && !HAVE_STDLIB_H
33167char *malloc ();
33168#endif
33169
33170/* This mess was copied from the GNU getpagesize.h. */
33171#if !HAVE_GETPAGESIZE
33172/* Assume that all systems that can run configure have sys/param.h. */
33173# if !HAVE_SYS_PARAM_H
33174# define HAVE_SYS_PARAM_H 1
33175# endif
33176
33177# ifdef _SC_PAGESIZE
33178# define getpagesize() sysconf(_SC_PAGESIZE)
33179# else /* no _SC_PAGESIZE */
33180# if HAVE_SYS_PARAM_H
33181# include <sys/param.h>
33182# ifdef EXEC_PAGESIZE
33183# define getpagesize() EXEC_PAGESIZE
33184# else /* no EXEC_PAGESIZE */
33185# ifdef NBPG
33186# define getpagesize() NBPG * CLSIZE
33187# ifndef CLSIZE
33188# define CLSIZE 1
33189# endif /* no CLSIZE */
33190# else /* no NBPG */
33191# ifdef NBPC
33192# define getpagesize() NBPC
33193# else /* no NBPC */
33194# ifdef PAGESIZE
33195# define getpagesize() PAGESIZE
33196# endif /* PAGESIZE */
33197# endif /* no NBPC */
33198# endif /* no NBPG */
33199# endif /* no EXEC_PAGESIZE */
33200# else /* no HAVE_SYS_PARAM_H */
33201# define getpagesize() 8192 /* punt totally */
33202# endif /* no HAVE_SYS_PARAM_H */
33203# endif /* no _SC_PAGESIZE */
33204
33205#endif /* no HAVE_GETPAGESIZE */
33206
33207int
33208main ()
33209{
33210 char *data, *data2, *data3;
33211 int i, pagesize;
33212 int fd;
33213
33214 pagesize = getpagesize ();
33215
33216 /* First, make a file with some known garbage in it. */
33217 data = (char *) malloc (pagesize);
33218 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033219 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033220 for (i = 0; i < pagesize; ++i)
33221 *(data + i) = rand ();
33222 umask (0);
33223 fd = creat ("conftest.mmap", 0600);
33224 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033225 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033226 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033227 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033228 close (fd);
33229
33230 /* Next, try to mmap the file at a fixed address which already has
33231 something else allocated at it. If we can, also make sure that
33232 we see the same garbage. */
33233 fd = open ("conftest.mmap", O_RDWR);
33234 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033235 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033236 data2 = (char *) malloc (2 * pagesize);
33237 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033238 return 1;
33239 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033240 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033241 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033242 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033243 for (i = 0; i < pagesize; ++i)
33244 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033245 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033246
33247 /* Finally, make sure that changes to the mapped area do not
33248 percolate back to the file as seen by read(). (This is a bug on
33249 some variants of i386 svr4.0.) */
33250 for (i = 0; i < pagesize; ++i)
33251 *(data2 + i) = *(data2 + i) + 1;
33252 data3 = (char *) malloc (pagesize);
33253 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033254 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033255 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033256 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033257 for (i = 0; i < pagesize; ++i)
33258 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033259 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033260 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033261 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033262}
33263_ACEOF
33264rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033265if { (ac_try="$ac_link"
33266case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33278esac
33279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; }; then
33284 ac_cv_func_mmap_fixed_mapped=yes
33285else
33286 echo "$as_me: program exited with status $ac_status" >&5
33287echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033288sed 's/^/| /' conftest.$ac_ext >&5
33289
John Criswell7a73b802003-06-30 21:59:07 +000033290( exit $ac_status )
33291ac_cv_func_mmap_fixed_mapped=no
33292fi
Reid Spencera773bd52006-08-04 18:18:08 +000033293rm -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 +000033294fi
Reid Spencera773bd52006-08-04 18:18:08 +000033295
33296
John Criswell7a73b802003-06-30 21:59:07 +000033297fi
Reid Spencera773bd52006-08-04 18:18:08 +000033298{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33299echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033300if test $ac_cv_func_mmap_fixed_mapped = yes; then
33301
33302cat >>confdefs.h <<\_ACEOF
33303#define HAVE_MMAP 1
33304_ACEOF
33305
33306fi
33307rm -f conftest.mmap
33308
Reid Spencer30fe5262007-01-20 07:48:49 +000033309 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033310echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033311if test "${ac_cv_func_mmap_file+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33313else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033314 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033315ac_cpp='$CPP $CPPFLAGS'
33316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33318ac_compiler_gnu=$ac_cv_c_compiler_gnu
33319
33320 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033321 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033322else
33323 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033324
Reid Spencer777ce172004-09-20 04:09:56 +000033325 /* confdefs.h. */
33326_ACEOF
33327cat confdefs.h >>conftest.$ac_ext
33328cat >>conftest.$ac_ext <<_ACEOF
33329/* end confdefs.h. */
33330
John Criswell7a73b802003-06-30 21:59:07 +000033331#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033332#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033333#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033334
33335int
33336main ()
33337{
John Criswell7a73b802003-06-30 21:59:07 +000033338
33339 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033340 fd = creat ("foo",0777);
33341 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33342 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033343 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033344 ;
33345 return 0;
33346}
John Criswell7a73b802003-06-30 21:59:07 +000033347_ACEOF
33348rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033349if { (ac_try="$ac_link"
33350case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353esac
33354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033359 { (case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33362esac
33363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 ac_cv_func_mmap_file=yes
33369else
33370 echo "$as_me: program exited with status $ac_status" >&5
33371echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033372sed 's/^/| /' conftest.$ac_ext >&5
33373
John Criswell7a73b802003-06-30 21:59:07 +000033374( exit $ac_status )
33375ac_cv_func_mmap_file=no
33376fi
Reid Spencera773bd52006-08-04 18:18:08 +000033377rm -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 +000033378fi
Reid Spencera773bd52006-08-04 18:18:08 +000033379
33380
John Criswell7a73b802003-06-30 21:59:07 +000033381 ac_ext=c
33382ac_cpp='$CPP $CPPFLAGS'
33383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33385ac_compiler_gnu=$ac_cv_c_compiler_gnu
33386
33387
33388fi
Reid Spencera773bd52006-08-04 18:18:08 +000033389{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33390echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033391if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033392
33393cat >>confdefs.h <<\_ACEOF
33394#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033395_ACEOF
33396
33397 MMAP_FILE=yes
33398
33399fi
33400
Reid Spencer30fe5262007-01-20 07:48:49 +000033401 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033402echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033403if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33405else
Reid Spencer582a23c2004-12-29 07:07:57 +000033406 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033407 ac_cv_need_dev_zero_for_mmap=yes
33408 else
33409 ac_cv_need_dev_zero_for_mmap=no
33410 fi
33411
33412fi
Reid Spencera773bd52006-08-04 18:18:08 +000033413{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33414echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033415if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33416
33417cat >>confdefs.h <<\_ACEOF
33418#define NEED_DEV_ZERO_FOR_MMAP 1
33419_ACEOF
33420
33421fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033422
Reid Spencer30fe5262007-01-20 07:48:49 +000033423 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33424 then
33425 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033426echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033427 fi
33428 if test "$ac_cv_func_mmap_file" = "no"
33429 then
33430 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033431echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033432 fi
John Criswellb13092b2003-07-22 21:00:24 +000033433fi
John Criswell7a73b802003-06-30 21:59:07 +000033434
33435
Reid Spencera773bd52006-08-04 18:18:08 +000033436{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33437echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033438if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33440else
33441 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033442if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033443 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033444 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33445 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033446 if test $? -eq 0 ; then
33447 llvm_cv_llvmgcc_sanity="yes"
33448 fi
33449 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033450fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033451fi
Reid Spencera773bd52006-08-04 18:18:08 +000033452{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33453echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033454
33455if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033456 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33457echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033458 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033459 LLVMCC1=$llvmcc1path
33460
Reid Spencer502935f2004-12-22 05:56:56 +000033461 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033462 LLVMCC1PLUS=$llvmcc1pluspath
33463
Reid Spencer502935f2004-12-22 05:56:56 +000033464 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33465 LLVMGCCDIR=$llvmgccdir
33466
Reid Spencer282d8c12006-12-21 22:55:41 +000033467 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33468 LLVMGCCLIBEXEC=$llvmgcclibexec
33469
Reid Spencerb5d75b82006-05-09 00:31:01 +000033470 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033471 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33472 LLVMGCC_VERSION=$llvmgccversion
33473
33474 LLVMGCC_MAJVERS=$llvmgccmajvers
33475
Reid Spencer0d238182007-04-21 21:28:52 +000033476 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33477 LLVMGCC_LANGS=$llvmgcclangs
33478
33479 { echo "$as_me:$LINENO: result: ok" >&5
33480echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033481fi
33482
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033483SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033484
33485
Reid Spencere9de0912004-08-20 09:03:57 +000033486# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033487# information into substitutions that will end up in Makefile.config.in
33488# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033489if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033490 prefix="/usr/local"
33491fi
Reid Spencere9de0912004-08-20 09:03:57 +000033492eval LLVM_PREFIX="${prefix}";
33493eval LLVM_BINDIR="${prefix}/bin";
33494eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033495eval LLVM_DATADIR="${prefix}/share/llvm";
33496eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33497eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033498eval LLVM_INCLUDEDIR="${prefix}/include";
33499eval LLVM_INFODIR="${prefix}/info";
33500eval LLVM_MANDIR="${prefix}/man";
33501LLVM_CONFIGTIME=`date`
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033513# Place the various directores into the config.h file as #defines so that we
33514# can know about the installation paths within LLVM.
33515
Reid Spencere9de0912004-08-20 09:03:57 +000033516cat >>confdefs.h <<_ACEOF
33517#define LLVM_PREFIX "$LLVM_PREFIX"
33518_ACEOF
33519
33520
33521cat >>confdefs.h <<_ACEOF
33522#define LLVM_BINDIR "$LLVM_BINDIR"
33523_ACEOF
33524
33525
33526cat >>confdefs.h <<_ACEOF
33527#define LLVM_LIBDIR "$LLVM_LIBDIR"
33528_ACEOF
33529
33530
33531cat >>confdefs.h <<_ACEOF
33532#define LLVM_DATADIR "$LLVM_DATADIR"
33533_ACEOF
33534
33535
33536cat >>confdefs.h <<_ACEOF
33537#define LLVM_DATADIR "$LLVM_DOCSDIR"
33538_ACEOF
33539
33540
33541cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033542#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033543_ACEOF
33544
33545
33546cat >>confdefs.h <<_ACEOF
33547#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33548_ACEOF
33549
33550
33551cat >>confdefs.h <<_ACEOF
33552#define LLVM_INFODIR "$LLVM_INFODIR"
33553_ACEOF
33554
33555
33556cat >>confdefs.h <<_ACEOF
33557#define LLVM_MANDIR "$LLVM_MANDIR"
33558_ACEOF
33559
33560
33561cat >>confdefs.h <<_ACEOF
33562#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33563_ACEOF
33564
33565
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033566
Reid Spencera773bd52006-08-04 18:18:08 +000033567ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033568
Reid Spencera773bd52006-08-04 18:18:08 +000033569ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033570
Reid Spencera773bd52006-08-04 18:18:08 +000033571ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033572
Reid Spencera773bd52006-08-04 18:18:08 +000033573ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033574
Reid Spencera773bd52006-08-04 18:18:08 +000033575ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033576
33577
Reid Spencera773bd52006-08-04 18:18:08 +000033578ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033579
33580
Reid Spencerea949cf2006-08-16 00:45:38 +000033581ac_config_files="$ac_config_files llvm.spec"
33582
33583
Reid Spencera773bd52006-08-04 18:18:08 +000033584ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033585
33586
Reid Spencera773bd52006-08-04 18:18:08 +000033587ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033588
33589
Reid Spencera773bd52006-08-04 18:18:08 +000033590ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033591
Reid Spencera773bd52006-08-04 18:18:08 +000033592ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033593
33594
Reid Spencera773bd52006-08-04 18:18:08 +000033595ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033596
33597
Reid Spencera773bd52006-08-04 18:18:08 +000033598ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033599
33600
Reid Spencera773bd52006-08-04 18:18:08 +000033601ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033602
33603
Reid Spencer8b2e1412006-11-17 03:32:33 +000033604ac_config_commands="$ac_config_commands runtime/Makefile"
33605
33606
Reid Spencera773bd52006-08-04 18:18:08 +000033607ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033608
33609
Reid Spencera773bd52006-08-04 18:18:08 +000033610ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033611
33612
Reid Spencera773bd52006-08-04 18:18:08 +000033613ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033614
33615
Reid Spencera773bd52006-08-04 18:18:08 +000033616ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033617
33618
Reid Spencera773bd52006-08-04 18:18:08 +000033619ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033620
33621
33622
John Criswell7a73b802003-06-30 21:59:07 +000033623cat >confcache <<\_ACEOF
33624# This file is a shell script that caches the results of configure
33625# tests run on this system so they can be shared between configure
33626# scripts and configure runs, see configure's option --config-cache.
33627# It is not useful on other systems. If it contains results you don't
33628# want to keep, you may remove or edit it.
33629#
33630# config.status only pays attention to the cache file if you give it
33631# the --recheck option to rerun configure.
33632#
John Criswell0c38eaf2003-09-10 15:17:25 +000033633# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033634# loading this file, other *unset* `ac_cv_foo' will be assigned the
33635# following values.
33636
33637_ACEOF
33638
33639# The following way of writing the cache mishandles newlines in values,
33640# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033641# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033642# Ultrix sh set writes to stderr and can't be redirected directly,
33643# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033644(
33645 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33646 eval ac_val=\$$ac_var
33647 case $ac_val in #(
33648 *${as_nl}*)
33649 case $ac_var in #(
33650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33651echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33652 esac
33653 case $ac_var in #(
33654 _ | IFS | as_nl) ;; #(
33655 *) $as_unset $ac_var ;;
33656 esac ;;
33657 esac
33658 done
33659
John Criswell7a73b802003-06-30 21:59:07 +000033660 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33662 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033663 # `set' does not quote correctly, so add quotes (double-quote
33664 # substitution turns \\\\ into \\, and sed turns \\ into \).
33665 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033666 "s/'/'\\\\''/g;
33667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033668 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033669 *)
33670 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033673 esac |
33674 sort
33675) |
John Criswell7a73b802003-06-30 21:59:07 +000033676 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033677 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033678 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033679 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33681 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33683 :end' >>confcache
33684if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33685 if test -w "$cache_file"; then
33686 test "x$cache_file" != "x/dev/null" &&
33687 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33688echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033689 cat confcache >$cache_file
33690 else
Reid Spencera773bd52006-08-04 18:18:08 +000033691 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33692echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033693 fi
33694fi
33695rm -f confcache
33696
33697test "x$prefix" = xNONE && prefix=$ac_default_prefix
33698# Let make expand exec_prefix.
33699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33700
John Criswell7a73b802003-06-30 21:59:07 +000033701DEFS=-DHAVE_CONFIG_H
33702
John Criswell0c38eaf2003-09-10 15:17:25 +000033703ac_libobjs=
33704ac_ltlibobjs=
33705for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33706 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33708 ac_i=`echo "$ac_i" | sed "$ac_script"`
33709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33710 # will be set to the directory where LIBOBJS objects are built.
33711 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33712 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033713done
33714LIBOBJS=$ac_libobjs
33715
33716LTLIBOBJS=$ac_ltlibobjs
33717
33718
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033719if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33720 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33721Usually this means the macro was only invoked conditionally." >&5
33722echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33723Usually this means the macro was only invoked conditionally." >&2;}
33724 { (exit 1); exit 1; }; }
33725fi
33726if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33727 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33728Usually this means the macro was only invoked conditionally." >&5
33729echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33730Usually this means the macro was only invoked conditionally." >&2;}
33731 { (exit 1); exit 1; }; }
33732fi
John Criswell7a73b802003-06-30 21:59:07 +000033733
33734: ${CONFIG_STATUS=./config.status}
33735ac_clean_files_save=$ac_clean_files
33736ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33737{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33738echo "$as_me: creating $CONFIG_STATUS" >&6;}
33739cat >$CONFIG_STATUS <<_ACEOF
33740#! $SHELL
33741# Generated by $as_me.
33742# Run this file to recreate the current configuration.
33743# Compiler output produced by configure, useful for debugging
33744# configure, is in config.log if it exists.
33745
33746debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033747ac_cs_recheck=false
33748ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033749SHELL=\${CONFIG_SHELL-$SHELL}
33750_ACEOF
33751
33752cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033753## --------------------- ##
33754## M4sh Initialization. ##
33755## --------------------- ##
33756
33757# Be Bourne compatible
33758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33759 emulate sh
33760 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33762 # is contrary to our usage. Disable this feature.
33763 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033764 setopt NO_GLOB_SUBST
33765else
33766 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033767fi
Reid Spencera773bd52006-08-04 18:18:08 +000033768BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033769DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033770
John Criswell7a73b802003-06-30 21:59:07 +000033771
Reid Spencera773bd52006-08-04 18:18:08 +000033772# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033773# Avoid depending upon Character Ranges.
33774as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33776as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33777as_cr_digits='0123456789'
33778as_cr_alnum=$as_cr_Letters$as_cr_digits
33779
33780# The user is always right.
33781if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033782 echo "#! /bin/sh" >conf$$.sh
33783 echo "exit 0" >>conf$$.sh
33784 chmod +x conf$$.sh
33785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033786 PATH_SEPARATOR=';'
33787 else
33788 PATH_SEPARATOR=:
33789 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033790 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033791fi
33792
Reid Spencera773bd52006-08-04 18:18:08 +000033793# Support unset when possible.
33794if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33795 as_unset=unset
33796else
33797 as_unset=false
33798fi
John Criswell7a73b802003-06-30 21:59:07 +000033799
Reid Spencera773bd52006-08-04 18:18:08 +000033800
33801# IFS
33802# We need space, tab and new line, in precisely that order. Quoting is
33803# there to prevent editors from complaining about space-tab.
33804# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33805# splitting by setting IFS to empty value.)
33806as_nl='
33807'
33808IFS=" "" $as_nl"
33809
33810# Find who we are. Look in the path if we contain no directory separator.
33811case $0 in
33812 *[\\/]* ) as_myself=$0 ;;
33813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033814for as_dir in $PATH
33815do
33816 IFS=$as_save_IFS
33817 test -z "$as_dir" && as_dir=.
33818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33819done
Reid Spencera773bd52006-08-04 18:18:08 +000033820IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033821
Reid Spencera773bd52006-08-04 18:18:08 +000033822 ;;
33823esac
33824# We did not find ourselves, most probably we were run as `sh COMMAND'
33825# in which case we are not to be found in the path.
33826if test "x$as_myself" = x; then
33827 as_myself=$0
33828fi
33829if test ! -f "$as_myself"; then
33830 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33831 { (exit 1); exit 1; }
33832fi
33833
33834# Work around bugs in pre-3.0 UWIN ksh.
33835for as_var in ENV MAIL MAILPATH
33836do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33837done
33838PS1='$ '
33839PS2='> '
33840PS4='+ '
33841
33842# NLS nuisances.
33843for as_var in \
33844 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33845 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33846 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033847do
Reid Spencera773bd52006-08-04 18:18:08 +000033848 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33849 eval $as_var=C; export $as_var
33850 else
33851 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33852 fi
33853done
33854
33855# Required to use basename.
33856if expr a : '\(a\)' >/dev/null 2>&1 &&
33857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33858 as_expr=expr
33859else
33860 as_expr=false
33861fi
33862
33863if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33864 as_basename=basename
33865else
33866 as_basename=false
33867fi
33868
33869
33870# Name of the executable.
33871as_me=`$as_basename -- "$0" ||
33872$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33873 X"$0" : 'X\(//\)$' \| \
33874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33875echo X/"$0" |
33876 sed '/^.*\/\([^/][^/]*\)\/*$/{
33877 s//\1/
33878 q
33879 }
33880 /^X\/\(\/\/\)$/{
33881 s//\1/
33882 q
33883 }
33884 /^X\/\(\/\).*/{
33885 s//\1/
33886 q
33887 }
33888 s/.*/./; q'`
33889
33890# CDPATH.
33891$as_unset CDPATH
33892
33893
33894
John Criswell7a73b802003-06-30 21:59:07 +000033895 as_lineno_1=$LINENO
33896 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033897 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033898 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033899
33900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33901 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033902 # line-number line after each line using $LINENO; the second 'sed'
33903 # does the real work. The second script uses 'N' to pair each
33904 # line-number line with the line containing $LINENO, and appends
33905 # trailing '-' during substitution so that $LINENO is not a special
33906 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033908 # scripts with optimization help from Paolo Bonzini. Blame Lee
33909 # E. McMahon (1931-1989) for sed's syntax. :-)
33910 sed -n '
33911 p
33912 /[$]LINENO/=
33913 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033914 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033915 s/[$]LINENO.*/&-/
33916 t lineno
33917 b
33918 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033919 N
Reid Spencera773bd52006-08-04 18:18:08 +000033920 :loop
33921 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033922 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033923 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033924 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033925 chmod +x "$as_me.lineno" ||
33926 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033927 { (exit 1); exit 1; }; }
33928
33929 # Don't try to exec as it changes $[0], causing all sort of problems
33930 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033931 # original and so on. Autoconf is especially sensitive to this).
33932 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033933 # Exit status is that of the last command.
33934 exit
33935}
33936
33937
Reid Spencera773bd52006-08-04 18:18:08 +000033938if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33939 as_dirname=dirname
33940else
33941 as_dirname=false
33942fi
33943
33944ECHO_C= ECHO_N= ECHO_T=
33945case `echo -n x` in
33946-n*)
33947 case `echo 'x\c'` in
33948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33949 *) ECHO_C='\c';;
33950 esac;;
33951*)
33952 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033953esac
33954
Reid Spencera773bd52006-08-04 18:18:08 +000033955if expr a : '\(a\)' >/dev/null 2>&1 &&
33956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033957 as_expr=expr
33958else
33959 as_expr=false
33960fi
33961
33962rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033963if test -d conf$$.dir; then
33964 rm -f conf$$.dir/conf$$.file
33965else
33966 rm -f conf$$.dir
33967 mkdir conf$$.dir
33968fi
John Criswell7a73b802003-06-30 21:59:07 +000033969echo >conf$$.file
33970if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033971 as_ln_s='ln -s'
33972 # ... but there are two gotchas:
33973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33975 # In both cases, we have to default to `cp -p'.
33976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033977 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033978elif ln conf$$.file conf$$ 2>/dev/null; then
33979 as_ln_s=ln
33980else
33981 as_ln_s='cp -p'
33982fi
Reid Spencera773bd52006-08-04 18:18:08 +000033983rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33984rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033985
John Criswell0c38eaf2003-09-10 15:17:25 +000033986if mkdir -p . 2>/dev/null; then
33987 as_mkdir_p=:
33988else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033989 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033990 as_mkdir_p=false
33991fi
33992
Reid Spencera773bd52006-08-04 18:18:08 +000033993# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33994# systems may use methods other than mode bits to determine executability.
33995cat >conf$$.file <<_ASEOF
33996#! /bin/sh
33997exit 0
33998_ASEOF
33999chmod +x conf$$.file
34000if test -x conf$$.file >/dev/null 2>&1; then
34001 as_executable_p="test -x"
34002else
34003 as_executable_p=:
34004fi
34005rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034006
34007# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034009
34010# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034012
34013
John Criswell7a73b802003-06-30 21:59:07 +000034014exec 6>&1
34015
Reid Spencera773bd52006-08-04 18:18:08 +000034016# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034017# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034018# values after options handling.
34019ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000034020This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034021generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034022
34023 CONFIG_FILES = $CONFIG_FILES
34024 CONFIG_HEADERS = $CONFIG_HEADERS
34025 CONFIG_LINKS = $CONFIG_LINKS
34026 CONFIG_COMMANDS = $CONFIG_COMMANDS
34027 $ $0 $@
34028
Reid Spencera773bd52006-08-04 18:18:08 +000034029on `(hostname || uname -n) 2>/dev/null | sed 1q`
34030"
34031
John Criswell7a73b802003-06-30 21:59:07 +000034032_ACEOF
34033
Reid Spencera773bd52006-08-04 18:18:08 +000034034cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034035# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034036config_files="$ac_config_files"
34037config_headers="$ac_config_headers"
34038config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034039
Reid Spencera773bd52006-08-04 18:18:08 +000034040_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034041
34042cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034043ac_cs_usage="\
34044\`$as_me' instantiates files from templates according to the
34045current configuration.
34046
34047Usage: $0 [OPTIONS] [FILE]...
34048
34049 -h, --help print this help, then exit
34050 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034051 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034052 -d, --debug don't remove temporary files
34053 --recheck update $as_me by reconfiguring in the same conditions
34054 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034055 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034056 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034057 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034058
34059Configuration files:
34060$config_files
34061
34062Configuration headers:
34063$config_headers
34064
John Criswellc764fbc2003-09-06 15:17:13 +000034065Configuration commands:
34066$config_commands
34067
John Criswell7a73b802003-06-30 21:59:07 +000034068Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034069
Reid Spencera773bd52006-08-04 18:18:08 +000034070_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034071cat >>$CONFIG_STATUS <<_ACEOF
34072ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000034073llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000034074configured by $0, generated by GNU Autoconf 2.60,
34075 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034076
Reid Spencera773bd52006-08-04 18:18:08 +000034077Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034078This config.status script is free software; the Free Software Foundation
34079gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034080
34081ac_pwd='$ac_pwd'
34082srcdir='$srcdir'
34083INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034084_ACEOF
34085
34086cat >>$CONFIG_STATUS <<\_ACEOF
34087# If no file are specified by the user, then we need to provide default
34088# value. By we need to know if files were specified by the user.
34089ac_need_defaults=:
34090while test $# != 0
34091do
34092 case $1 in
34093 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034096 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034098 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034099 ac_option=$1
34100 ac_optarg=$2
34101 ac_shift=shift
34102 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034103 esac
34104
John Criswell0c38eaf2003-09-10 15:17:25 +000034105 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034106 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34108 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34110 echo "$ac_cs_version"; exit ;;
34111 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034112 debug=: ;;
34113 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034114 $ac_shift
34115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034116 ac_need_defaults=false;;
34117 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034118 $ac_shift
34119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034120 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034121 --he | --h)
34122 # Conflict between --help and --header
34123 { echo "$as_me: error: ambiguous option: $1
34124Try \`$0 --help' for more information." >&2
34125 { (exit 1); exit 1; }; };;
34126 --help | --hel | -h )
34127 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34130 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034131
34132 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034133 -*) { echo "$as_me: error: unrecognized option: $1
34134Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034135 { (exit 1); exit 1; }; } ;;
34136
Reid Spencera773bd52006-08-04 18:18:08 +000034137 *) ac_config_targets="$ac_config_targets $1"
34138 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034139
34140 esac
34141 shift
34142done
34143
John Criswell0c38eaf2003-09-10 15:17:25 +000034144ac_configure_extra_args=
34145
34146if $ac_cs_silent; then
34147 exec 6>/dev/null
34148 ac_configure_extra_args="$ac_configure_extra_args --silent"
34149fi
34150
34151_ACEOF
34152cat >>$CONFIG_STATUS <<_ACEOF
34153if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034154 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34155 CONFIG_SHELL=$SHELL
34156 export CONFIG_SHELL
34157 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034158fi
34159
John Criswell7a73b802003-06-30 21:59:07 +000034160_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034161cat >>$CONFIG_STATUS <<\_ACEOF
34162exec 5>>config.log
34163{
34164 echo
34165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34166## Running $as_me. ##
34167_ASBOX
34168 echo "$ac_log"
34169} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034170
Reid Spencera773bd52006-08-04 18:18:08 +000034171_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034172cat >>$CONFIG_STATUS <<_ACEOF
34173#
Reid Spencera773bd52006-08-04 18:18:08 +000034174# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034175#
Reid Spencerc0682832005-02-24 19:05:19 +000034176llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034177
34178_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034179
John Criswell7a73b802003-06-30 21:59:07 +000034180cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034181
34182# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034183for ac_config_target in $ac_config_targets
34184do
Reid Spencera773bd52006-08-04 18:18:08 +000034185 case $ac_config_target in
34186 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34187 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34188 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34189 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34190 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34191 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034192 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034193 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34194 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34195 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34196 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34197 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34198 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34199 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034200 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034201 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34202 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34203 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34204 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34205 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34206
John Criswell7a73b802003-06-30 21:59:07 +000034207 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34208echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34209 { (exit 1); exit 1; }; };;
34210 esac
34211done
34212
Reid Spencera773bd52006-08-04 18:18:08 +000034213
John Criswell7a73b802003-06-30 21:59:07 +000034214# If the user did not use the arguments to specify the items to instantiate,
34215# then the envvar interface is used. Set only those that are not.
34216# We use the long form for the default assignment because of an extremely
34217# bizarre bug on SunOS 4.1.3.
34218if $ac_need_defaults; then
34219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034222fi
34223
John Criswell0c38eaf2003-09-10 15:17:25 +000034224# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034225# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034226# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034227# Hook for its removal unless debugging.
34228# Note that there is a small window in which the directory will not be cleaned:
34229# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034230$debug ||
34231{
Reid Spencera773bd52006-08-04 18:18:08 +000034232 tmp=
34233 trap 'exit_status=$?
34234 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34235' 0
John Criswell7a73b802003-06-30 21:59:07 +000034236 trap '{ (exit 1); exit 1; }' 1 2 13 15
34237}
John Criswell7a73b802003-06-30 21:59:07 +000034238# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034239
John Criswell7a73b802003-06-30 21:59:07 +000034240{
Reid Spencera773bd52006-08-04 18:18:08 +000034241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034242 test -n "$tmp" && test -d "$tmp"
34243} ||
34244{
Reid Spencera773bd52006-08-04 18:18:08 +000034245 tmp=./conf$$-$RANDOM
34246 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034247} ||
34248{
John Criswell0c38eaf2003-09-10 15:17:25 +000034249 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034250 { (exit 1); exit 1; }
34251}
34252
John Criswell7a73b802003-06-30 21:59:07 +000034253#
Reid Spencera773bd52006-08-04 18:18:08 +000034254# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034255#
34256
34257# No need to generate the scripts if there are no CONFIG_FILES.
34258# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034259if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034260
34261_ACEOF
34262
Reid Spencera773bd52006-08-04 18:18:08 +000034263
34264
34265ac_delim='%!_!# '
34266for ac_last_try in false false false false false :; do
34267 cat >conf$$subs.sed <<_ACEOF
34268SHELL!$SHELL$ac_delim
34269PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34270PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34271PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34272PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34273PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34274PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34275exec_prefix!$exec_prefix$ac_delim
34276prefix!$prefix$ac_delim
34277program_transform_name!$program_transform_name$ac_delim
34278bindir!$bindir$ac_delim
34279sbindir!$sbindir$ac_delim
34280libexecdir!$libexecdir$ac_delim
34281datarootdir!$datarootdir$ac_delim
34282datadir!$datadir$ac_delim
34283sysconfdir!$sysconfdir$ac_delim
34284sharedstatedir!$sharedstatedir$ac_delim
34285localstatedir!$localstatedir$ac_delim
34286includedir!$includedir$ac_delim
34287oldincludedir!$oldincludedir$ac_delim
34288docdir!$docdir$ac_delim
34289infodir!$infodir$ac_delim
34290htmldir!$htmldir$ac_delim
34291dvidir!$dvidir$ac_delim
34292pdfdir!$pdfdir$ac_delim
34293psdir!$psdir$ac_delim
34294libdir!$libdir$ac_delim
34295localedir!$localedir$ac_delim
34296mandir!$mandir$ac_delim
34297DEFS!$DEFS$ac_delim
34298ECHO_C!$ECHO_C$ac_delim
34299ECHO_N!$ECHO_N$ac_delim
34300ECHO_T!$ECHO_T$ac_delim
34301LIBS!$LIBS$ac_delim
34302build_alias!$build_alias$ac_delim
34303host_alias!$host_alias$ac_delim
34304target_alias!$target_alias$ac_delim
34305LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34306subdirs!$subdirs$ac_delim
34307build!$build$ac_delim
34308build_cpu!$build_cpu$ac_delim
34309build_vendor!$build_vendor$ac_delim
34310build_os!$build_os$ac_delim
34311host!$host$ac_delim
34312host_cpu!$host_cpu$ac_delim
34313host_vendor!$host_vendor$ac_delim
34314host_os!$host_os$ac_delim
34315target!$target$ac_delim
34316target_cpu!$target_cpu$ac_delim
34317target_vendor!$target_vendor$ac_delim
34318target_os!$target_os$ac_delim
34319OS!$OS$ac_delim
34320LINKALL!$LINKALL$ac_delim
34321NOLINKALL!$NOLINKALL$ac_delim
34322LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34323LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34324ARCH!$ARCH$ac_delim
34325ENDIAN!$ENDIAN$ac_delim
34326CC!$CC$ac_delim
34327CFLAGS!$CFLAGS$ac_delim
34328LDFLAGS!$LDFLAGS$ac_delim
34329CPPFLAGS!$CPPFLAGS$ac_delim
34330ac_ct_CC!$ac_ct_CC$ac_delim
34331EXEEXT!$EXEEXT$ac_delim
34332OBJEXT!$OBJEXT$ac_delim
34333CPP!$CPP$ac_delim
34334GREP!$GREP$ac_delim
34335EGREP!$EGREP$ac_delim
34336LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34337BUILD_CC!$BUILD_CC$ac_delim
34338BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34339CVSBUILD!$CVSBUILD$ac_delim
34340ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34341DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034342DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034343JIT!$JIT$ac_delim
34344TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34345ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34346ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034347ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034348TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034349ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034350EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34351CXX!$CXX$ac_delim
34352CXXFLAGS!$CXXFLAGS$ac_delim
34353ac_ct_CXX!$ac_ct_CXX$ac_delim
34354LEX!$LEX$ac_delim
34355LEXLIB!$LEXLIB$ac_delim
34356LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34357FLEX!$FLEX$ac_delim
34358YACC!$YACC$ac_delim
34359YFLAGS!$YFLAGS$ac_delim
34360BISON!$BISON$ac_delim
34361NM!$NM$ac_delim
34362ifGNUmake!$ifGNUmake$ac_delim
34363LN_S!$LN_S$ac_delim
34364CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034365_ACEOF
34366
34367 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34368 break
34369 elif $ac_last_try; then
34370 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34371echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34372 { (exit 1); exit 1; }; }
34373 else
34374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034375 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034376done
34377
34378ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34379if test -n "$ac_eof"; then
34380 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34381 ac_eof=`expr $ac_eof + 1`
34382fi
34383
34384cat >>$CONFIG_STATUS <<_ACEOF
34385cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34387_ACEOF
34388sed '
34389s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34390s/^/s,@/; s/!/@,|#_!!_#|/
34391:n
34392t n
34393s/'"$ac_delim"'$/,g/; t
34394s/$/\\/; p
34395N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34396' >>$CONFIG_STATUS <conf$$subs.sed
34397rm -f conf$$subs.sed
34398cat >>$CONFIG_STATUS <<_ACEOF
34399CEOF$ac_eof
34400_ACEOF
34401
34402
34403ac_delim='%!_!# '
34404for ac_last_try in false false false false false :; do
34405 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034406CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034407DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034408FIND!$FIND$ac_delim
34409MKDIR!$MKDIR$ac_delim
34410MV!$MV$ac_delim
34411RANLIB!$RANLIB$ac_delim
34412RM!$RM$ac_delim
34413SED!$SED$ac_delim
34414TAR!$TAR$ac_delim
34415BINPWD!$BINPWD$ac_delim
34416GRAPHVIZ!$GRAPHVIZ$ac_delim
34417DOT!$DOT$ac_delim
34418GV!$GV$ac_delim
34419DOTTY!$DOTTY$ac_delim
34420PERL!$PERL$ac_delim
34421HAVE_PERL!$HAVE_PERL$ac_delim
34422INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34423INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34424INSTALL_DATA!$INSTALL_DATA$ac_delim
34425BZIP2!$BZIP2$ac_delim
34426DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034427GROFF!$GROFF$ac_delim
34428GZIP!$GZIP$ac_delim
34429POD2HTML!$POD2HTML$ac_delim
34430POD2MAN!$POD2MAN$ac_delim
34431RUNTEST!$RUNTEST$ac_delim
34432TCLSH!$TCLSH$ac_delim
34433ZIP!$ZIP$ac_delim
34434INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34435INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34436CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34437CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34438LIBADD_DL!$LIBADD_DL$ac_delim
34439ECHO!$ECHO$ac_delim
34440AR!$AR$ac_delim
34441STRIP!$STRIP$ac_delim
34442CXXCPP!$CXXCPP$ac_delim
34443F77!$F77$ac_delim
34444FFLAGS!$FFLAGS$ac_delim
34445ac_ct_F77!$ac_ct_F77$ac_delim
34446LIBTOOL!$LIBTOOL$ac_delim
34447ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34448LLVMGCC!$LLVMGCC$ac_delim
34449LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034450USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034451HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034452HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034453ALLOCA!$ALLOCA$ac_delim
34454MMAP_FILE!$MMAP_FILE$ac_delim
34455LLVMCC1!$LLVMCC1$ac_delim
34456LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34457LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034458LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034459LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34460LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034461LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034462SHLIBEXT!$SHLIBEXT$ac_delim
34463LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34464LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34465LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34466LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34467LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34468LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34469LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34470LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34471LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34472LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34473LIBOBJS!$LIBOBJS$ac_delim
34474LTLIBOBJS!$LTLIBOBJS$ac_delim
34475_ACEOF
34476
Reid Spencer0d238182007-04-21 21:28:52 +000034477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
Reid Spencera773bd52006-08-04 18:18:08 +000034478 break
34479 elif $ac_last_try; then
34480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34481echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34482 { (exit 1); exit 1; }; }
34483 else
34484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34485 fi
34486done
34487
34488ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34489if test -n "$ac_eof"; then
34490 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34491 ac_eof=`expr $ac_eof + 1`
34492fi
34493
34494cat >>$CONFIG_STATUS <<_ACEOF
34495cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34497_ACEOF
34498sed '
34499s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34500s/^/s,@/; s/!/@,|#_!!_#|/
34501:n
34502t n
34503s/'"$ac_delim"'$/,g/; t
34504s/$/\\/; p
34505N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34506' >>$CONFIG_STATUS <conf$$subs.sed
34507rm -f conf$$subs.sed
34508cat >>$CONFIG_STATUS <<_ACEOF
34509:end
34510s/|#_!!_#|//g
34511CEOF$ac_eof
34512_ACEOF
34513
34514
34515# VPATH may cause trouble with some makes, so we remove $(srcdir),
34516# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34517# trailing colons and then remove the whole line if VPATH becomes empty
34518# (actually we leave an empty line to preserve line numbers).
34519if test "x$srcdir" = x.; then
34520 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34521s/:*\$(srcdir):*/:/
34522s/:*\${srcdir}:*/:/
34523s/:*@srcdir@:*/:/
34524s/^\([^=]*=[ ]*\):*/\1/
34525s/:*$//
34526s/^[^=]*=[ ]*$//
34527}'
34528fi
34529
34530cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034531fi # test -n "$CONFIG_FILES"
34532
Reid Spencera773bd52006-08-04 18:18:08 +000034533
34534for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34535do
34536 case $ac_tag in
34537 :[FHLC]) ac_mode=$ac_tag; continue;;
34538 esac
34539 case $ac_mode$ac_tag in
34540 :[FHL]*:*);;
34541 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34542echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34543 { (exit 1); exit 1; }; };;
34544 :[FH]-) ac_tag=-:-;;
34545 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34546 esac
34547 ac_save_IFS=$IFS
34548 IFS=:
34549 set x $ac_tag
34550 IFS=$ac_save_IFS
34551 shift
34552 ac_file=$1
34553 shift
34554
34555 case $ac_mode in
34556 :L) ac_source=$1;;
34557 :[FH])
34558 ac_file_inputs=
34559 for ac_f
34560 do
34561 case $ac_f in
34562 -) ac_f="$tmp/stdin";;
34563 *) # Look for the file first in the build tree, then in the source tree
34564 # (if the path is not absolute). The absolute path cannot be DOS-style,
34565 # because $ac_f cannot contain `:'.
34566 test -f "$ac_f" ||
34567 case $ac_f in
34568 [\\/$]*) false;;
34569 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34570 esac ||
34571 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34572echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34573 { (exit 1); exit 1; }; };;
34574 esac
34575 ac_file_inputs="$ac_file_inputs $ac_f"
34576 done
34577
34578 # Let's still pretend it is `configure' which instantiates (i.e., don't
34579 # use $as_me), people would be surprised to read:
34580 # /* config.h. Generated by config.status. */
34581 configure_input="Generated from "`IFS=:
34582 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34583 if test x"$ac_file" != x-; then
34584 configure_input="$ac_file. $configure_input"
34585 { echo "$as_me:$LINENO: creating $ac_file" >&5
34586echo "$as_me: creating $ac_file" >&6;}
34587 fi
34588
34589 case $ac_tag in
34590 *:-:* | *:-) cat >"$tmp/stdin";;
34591 esac
34592 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034593 esac
34594
Reid Spencera773bd52006-08-04 18:18:08 +000034595 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034597 X"$ac_file" : 'X\(//\)[^/]' \| \
34598 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034600echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34602 s//\1/
34603 q
34604 }
34605 /^X\(\/\/\)[^/].*/{
34606 s//\1/
34607 q
34608 }
34609 /^X\(\/\/\)$/{
34610 s//\1/
34611 q
34612 }
34613 /^X\(\/\).*/{
34614 s//\1/
34615 q
34616 }
34617 s/.*/./; q'`
34618 { as_dir="$ac_dir"
34619 case $as_dir in #(
34620 -*) as_dir=./$as_dir;;
34621 esac
34622 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034623 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034624 while :; do
34625 case $as_dir in #(
34626 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34627 *) as_qdir=$as_dir;;
34628 esac
34629 as_dirs="'$as_qdir' $as_dirs"
34630 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034632 X"$as_dir" : 'X\(//\)[^/]' \| \
34633 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034635echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34637 s//\1/
34638 q
34639 }
34640 /^X\(\/\/\)[^/].*/{
34641 s//\1/
34642 q
34643 }
34644 /^X\(\/\/\)$/{
34645 s//\1/
34646 q
34647 }
34648 /^X\(\/\).*/{
34649 s//\1/
34650 q
34651 }
34652 s/.*/./; q'`
34653 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034654 done
Reid Spencera773bd52006-08-04 18:18:08 +000034655 test -z "$as_dirs" || eval "mkdir $as_dirs"
34656 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34657echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034658 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034659 ac_builddir=.
34660
Reid Spencera773bd52006-08-04 18:18:08 +000034661case "$ac_dir" in
34662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34663*)
John Criswell7a73b802003-06-30 21:59:07 +000034664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034665 # A ".." for each directory in $ac_dir_suffix.
34666 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34667 case $ac_top_builddir_sub in
34668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34670 esac ;;
34671esac
34672ac_abs_top_builddir=$ac_pwd
34673ac_abs_builddir=$ac_pwd$ac_dir_suffix
34674# for backward compatibility:
34675ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034676
34677case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034678 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034679 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034680 ac_top_srcdir=$ac_top_builddir_sub
34681 ac_abs_top_srcdir=$ac_pwd ;;
34682 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034683 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034684 ac_top_srcdir=$srcdir
34685 ac_abs_top_srcdir=$srcdir ;;
34686 *) # Relative name.
34687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34688 ac_top_srcdir=$ac_top_build_prefix$srcdir
34689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034690esac
Reid Spencera773bd52006-08-04 18:18:08 +000034691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034692
John Criswell7a73b802003-06-30 21:59:07 +000034693
Reid Spencera773bd52006-08-04 18:18:08 +000034694 case $ac_mode in
34695 :F)
34696 #
34697 # CONFIG_FILE
34698 #
John Criswell7a73b802003-06-30 21:59:07 +000034699
34700 case $INSTALL in
34701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034703 esac
John Criswell7a73b802003-06-30 21:59:07 +000034704_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034705
34706cat >>$CONFIG_STATUS <<\_ACEOF
34707# If the template does not know about datarootdir, expand it.
34708# FIXME: This hack should be removed a few years after 2.60.
34709ac_datarootdir_hack=; ac_datarootdir_seen=
34710
34711case `sed -n '/datarootdir/ {
34712 p
34713 q
34714}
34715/@datadir@/p
34716/@docdir@/p
34717/@infodir@/p
34718/@localedir@/p
34719/@mandir@/p
34720' $ac_file_inputs` in
34721*datarootdir*) ac_datarootdir_seen=yes;;
34722*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34723 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34724echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34725_ACEOF
34726cat >>$CONFIG_STATUS <<_ACEOF
34727 ac_datarootdir_hack='
34728 s&@datadir@&$datadir&g
34729 s&@docdir@&$docdir&g
34730 s&@infodir@&$infodir&g
34731 s&@localedir@&$localedir&g
34732 s&@mandir@&$mandir&g
34733 s&\\\${datarootdir}&$datarootdir&g' ;;
34734esac
34735_ACEOF
34736
34737# Neutralize VPATH when `$srcdir' = `.'.
34738# Shell code in configure.ac might set extrasub.
34739# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034740cat >>$CONFIG_STATUS <<_ACEOF
34741 sed "$ac_vpsub
34742$extrasub
34743_ACEOF
34744cat >>$CONFIG_STATUS <<\_ACEOF
34745:t
34746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034747s&@configure_input@&$configure_input&;t t
34748s&@top_builddir@&$ac_top_builddir_sub&;t t
34749s&@srcdir@&$ac_srcdir&;t t
34750s&@abs_srcdir@&$ac_abs_srcdir&;t t
34751s&@top_srcdir@&$ac_top_srcdir&;t t
34752s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34753s&@builddir@&$ac_builddir&;t t
34754s&@abs_builddir@&$ac_abs_builddir&;t t
34755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34756s&@INSTALL@&$ac_INSTALL&;t t
34757$ac_datarootdir_hack
34758" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034759
Reid Spencera773bd52006-08-04 18:18:08 +000034760test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34761 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34763 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34764which seems to be undefined. Please make sure it is defined." >&5
34765echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34766which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034767
Reid Spencera773bd52006-08-04 18:18:08 +000034768 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034769 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034770 -) cat "$tmp/out"; rm -f "$tmp/out";;
34771 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034772 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034773 ;;
34774 :H)
34775 #
34776 # CONFIG_HEADER
34777 #
John Criswell7a73b802003-06-30 21:59:07 +000034778_ACEOF
34779
Reid Spencera773bd52006-08-04 18:18:08 +000034780# Transform confdefs.h into a sed script `conftest.defines', that
34781# substitutes the proper values into config.h.in to produce config.h.
34782rm -f conftest.defines conftest.tail
34783# First, append a space to every undef/define line, to ease matching.
34784echo 's/$/ /' >conftest.defines
34785# Then, protect against being on the right side of a sed subst, or in
34786# an unquoted here document, in config.status. If some macros were
34787# called several times there might be several #defines for the same
34788# symbol, which is useless. But do not sort them, since the last
34789# AC_DEFINE must be honored.
34790ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34791# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34792# NAME is the cpp macro being defined, VALUE is the value it is being given.
34793# PARAMS is the parameter list in the macro definition--in most cases, it's
34794# just an empty string.
34795ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34796ac_dB='\\)[ (].*,\\1define\\2'
34797ac_dC=' '
34798ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034799
Reid Spencera773bd52006-08-04 18:18:08 +000034800uniq confdefs.h |
34801 sed -n '
34802 t rset
34803 :rset
34804 s/^[ ]*#[ ]*define[ ][ ]*//
34805 t ok
34806 d
34807 :ok
34808 s/[\\&,]/\\&/g
34809 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34810 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34811 ' >>conftest.defines
34812
34813# Remove the space that was appended to ease matching.
34814# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034815# example, in the case of _POSIX_SOURCE, which is predefined and required
34816# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034817# (The regexp can be short, since the line contains either #define or #undef.)
34818echo 's/ $//
34819s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034820
Reid Spencera773bd52006-08-04 18:18:08 +000034821# Break up conftest.defines:
34822ac_max_sed_lines=50
34823
34824# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34825# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34826# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34827# et cetera.
34828ac_in='$ac_file_inputs'
34829ac_out='"$tmp/out1"'
34830ac_nxt='"$tmp/out2"'
34831
34832while :
John Criswell7a73b802003-06-30 21:59:07 +000034833do
Reid Spencera773bd52006-08-04 18:18:08 +000034834 # Write a here document:
34835 cat >>$CONFIG_STATUS <<_ACEOF
34836 # First, check the format of the line:
34837 cat >"\$tmp/defines.sed" <<\\CEOF
34838/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34839/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34840b
34841:def
34842_ACEOF
34843 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034844 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034845 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34846 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34847 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34848 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034849 rm -f conftest.defines
34850 mv conftest.tail conftest.defines
34851done
Reid Spencera773bd52006-08-04 18:18:08 +000034852rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034853
Reid Spencera773bd52006-08-04 18:18:08 +000034854echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034855cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034856 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034857 echo "/* $configure_input */" >"$tmp/config.h"
34858 cat "$ac_result" >>"$tmp/config.h"
34859 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034860 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34861echo "$as_me: $ac_file is unchanged" >&6;}
34862 else
John Criswell7a73b802003-06-30 21:59:07 +000034863 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034864 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034865 fi
34866 else
Reid Spencera773bd52006-08-04 18:18:08 +000034867 echo "/* $configure_input */"
34868 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034869 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034870 rm -f "$tmp/out12"
34871 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034872
Reid Spencera773bd52006-08-04 18:18:08 +000034873 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34874echo "$as_me: executing $ac_file commands" >&6;}
34875 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034876 esac
John Criswell7a73b802003-06-30 21:59:07 +000034877
Reid Spencera773bd52006-08-04 18:18:08 +000034878
34879 case $ac_file$ac_mode in
34880 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34882 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34884 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34886 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034888 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034890 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34892 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34894 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34896 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34897 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34898 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34899 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34900
34901 esac
34902done # for ac_tag
34903
John Criswell7a73b802003-06-30 21:59:07 +000034904
34905{ (exit 0); exit 0; }
34906_ACEOF
34907chmod +x $CONFIG_STATUS
34908ac_clean_files=$ac_clean_files_save
34909
34910
34911# configure is writing to config.log, and then calls config.status.
34912# config.status does its own redirection, appending to config.log.
34913# Unfortunately, on DOS this fails, as config.log is still kept open
34914# by configure, so config.status won't be able to write to it; its
34915# output is simply discarded. So we exec the FD to /dev/null,
34916# effectively closing config.log, so it can be properly (re)opened and
34917# appended to by config.status. When coming back to configure, we
34918# need to make the FD available again.
34919if test "$no_create" != yes; then
34920 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034921 ac_config_status_args=
34922 test "$silent" = yes &&
34923 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034924 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034926 exec 5>>config.log
34927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34928 # would make configure fail if this is the last instruction.
34929 $ac_cs_success || { (exit 1); exit 1; }
34930fi
34931
John Criswell12399a12003-09-30 15:55:44 +000034932#
34933# CONFIG_SUBDIRS section.
34934#
34935if test "$no_recursion" != yes; then
34936
34937 # Remove --cache-file and --srcdir arguments so they do not pile up.
34938 ac_sub_configure_args=
34939 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034940 eval "set x $ac_configure_args"
34941 shift
34942 for ac_arg
34943 do
John Criswell12399a12003-09-30 15:55:44 +000034944 if test -n "$ac_prev"; then
34945 ac_prev=
34946 continue
34947 fi
34948 case $ac_arg in
34949 -cache-file | --cache-file | --cache-fil | --cache-fi \
34950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34951 ac_prev=cache_file ;;
34952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34954 | --c=*)
34955 ;;
34956 --config-cache | -C)
34957 ;;
34958 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34959 ac_prev=srcdir ;;
34960 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34961 ;;
34962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34963 ac_prev=prefix ;;
34964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034966 *)
34967 case $ac_arg in
34968 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34969 esac
34970 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034971 esac
34972 done
34973
34974 # Always prepend --prefix to ensure using the same prefix
34975 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034976 ac_arg="--prefix=$prefix"
34977 case $ac_arg in
34978 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34979 esac
34980 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034981
34982 ac_popdir=`pwd`
34983 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34984
34985 # Do not complain, so a configure script can configure whichever
34986 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034987 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034988
Reid Spencera773bd52006-08-04 18:18:08 +000034989 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34990 echo "$as_me:$LINENO: $ac_msg" >&5
34991 echo "$ac_msg" >&6
34992 { as_dir="$ac_dir"
34993 case $as_dir in #(
34994 -*) as_dir=./$as_dir;;
34995 esac
34996 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034997 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034998 while :; do
34999 case $as_dir in #(
35000 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35001 *) as_qdir=$as_dir;;
35002 esac
35003 as_dirs="'$as_qdir' $as_dirs"
35004 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035006 X"$as_dir" : 'X\(//\)[^/]' \| \
35007 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035009echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35011 s//\1/
35012 q
35013 }
35014 /^X\(\/\/\)[^/].*/{
35015 s//\1/
35016 q
35017 }
35018 /^X\(\/\/\)$/{
35019 s//\1/
35020 q
35021 }
35022 /^X\(\/\).*/{
35023 s//\1/
35024 q
35025 }
35026 s/.*/./; q'`
35027 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035028 done
Reid Spencera773bd52006-08-04 18:18:08 +000035029 test -z "$as_dirs" || eval "mkdir $as_dirs"
35030 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35031echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035032 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035033 ac_builddir=.
35034
Reid Spencera773bd52006-08-04 18:18:08 +000035035case "$ac_dir" in
35036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35037*)
John Criswell12399a12003-09-30 15:55:44 +000035038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035039 # A ".." for each directory in $ac_dir_suffix.
35040 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35041 case $ac_top_builddir_sub in
35042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35044 esac ;;
35045esac
35046ac_abs_top_builddir=$ac_pwd
35047ac_abs_builddir=$ac_pwd$ac_dir_suffix
35048# for backward compatibility:
35049ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035050
35051case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035052 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035053 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035054 ac_top_srcdir=$ac_top_builddir_sub
35055 ac_abs_top_srcdir=$ac_pwd ;;
35056 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035057 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035058 ac_top_srcdir=$srcdir
35059 ac_abs_top_srcdir=$srcdir ;;
35060 *) # Relative name.
35061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35062 ac_top_srcdir=$ac_top_build_prefix$srcdir
35063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035064esac
Reid Spencera773bd52006-08-04 18:18:08 +000035065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035066
35067
Reid Spencera773bd52006-08-04 18:18:08 +000035068 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035069
35070 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035071 if test -f "$ac_srcdir/configure.gnu"; then
35072 ac_sub_configure=$ac_srcdir/configure.gnu
35073 elif test -f "$ac_srcdir/configure"; then
35074 ac_sub_configure=$ac_srcdir/configure
35075 elif test -f "$ac_srcdir/configure.in"; then
35076 # This should be Cygnus configure.
35077 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035078 else
35079 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35080echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35081 ac_sub_configure=
35082 fi
35083
35084 # The recursion is here.
35085 if test -n "$ac_sub_configure"; then
35086 # Make the cache file name correct relative to the subdirectory.
35087 case $cache_file in
35088 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035089 *) # Relative name.
35090 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035091 esac
35092
Reid Spencera773bd52006-08-04 18:18:08 +000035093 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35094echo "$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 +000035095 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035096 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35097 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035098 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035099echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35100 { (exit 1); exit 1; }; }
35101 fi
35102
Reid Spencera773bd52006-08-04 18:18:08 +000035103 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035104 done
35105fi
35106
Brian Gaekef3b24102003-11-16 18:38:14 +000035107