blob: 90f3e3a7090735dcf4402eb27961ea3718c421db [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
911SHLIBEXT
912LLVM_PREFIX
913LLVM_BINDIR
914LLVM_LIBDIR
915LLVM_DATADIR
916LLVM_DOCSDIR
917LLVM_ETCDIR
918LLVM_INCLUDEDIR
919LLVM_INFODIR
920LLVM_MANDIR
921LLVM_CONFIGTIME
922LIBOBJS
923LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000924ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931CPPFLAGS
932CPP
933CXX
934CXXFLAGS
935CCC
936YACC
937YFLAGS
938CXXCPP
939F77
940FFLAGS'
941ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000942projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000943projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000944projects/llvm-test
945projects/llvm-reopt
946projects/llvm-gcc
947projects/llvm-java
948projects/llvm-tv
949projects/llvm-poolalloc
950projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955# The variables have the same names as the options, with
956# dashes changed to underlines.
957cache_file=/dev/null
958exec_prefix=NONE
959no_create=
960no_recursion=
961prefix=NONE
962program_prefix=NONE
963program_suffix=NONE
964program_transform_name=s,x,x,
965silent=
966site=
967srcdir=
968verbose=
969x_includes=NONE
970x_libraries=NONE
971
972# Installation directory options.
973# These are left unexpanded so users can "make install exec_prefix=/foo"
974# and all the variables that are supposed to be based on exec_prefix
975# by default will actually change.
976# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000977# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000978bindir='${exec_prefix}/bin'
979sbindir='${exec_prefix}/sbin'
980libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000981datarootdir='${prefix}/share'
982datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000983sysconfdir='${prefix}/etc'
984sharedstatedir='${prefix}/com'
985localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000986includedir='${prefix}/include'
987oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989infodir='${datarootdir}/info'
990htmldir='${docdir}'
991dvidir='${docdir}'
992pdfdir='${docdir}'
993psdir='${docdir}'
994libdir='${exec_prefix}/lib'
995localedir='${datarootdir}/locale'
996mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000997
998ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000999ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001000for ac_option
1001do
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001004 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001005 ac_prev=
1006 continue
1007 fi
1008
Reid Spencera773bd52006-08-04 18:18:08 +00001009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
John Criswell7a73b802003-06-30 21:59:07 +00001013
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1015
Reid Spencera773bd52006-08-04 18:18:08 +00001016 case $ac_dashdash$ac_option in
1017 --)
1018 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001019
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1024
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1029
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1036
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001041 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001043 datadir=$ac_optarg ;;
1044
Reid Spencera773bd52006-08-04 18:18:08 +00001045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1051
John Criswell7a73b802003-06-30 21:59:07 +00001052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001059 eval enable_$ac_feature=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001070
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001078 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
Reid Spencera773bd52006-08-04 18:18:08 +00001105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
John Criswell7a73b802003-06-30 21:59:07 +00001111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
Reid Spencera773bd52006-08-04 18:18:08 +00001135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
John Criswell7a73b802003-06-30 21:59:07 +00001140 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001141 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
Reid Spencera773bd52006-08-04 18:18:08 +00001209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
John Criswell7a73b802003-06-30 21:59:07 +00001219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001275 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001276
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1303
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001315 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1333fi
1334
Reid Spencera773bd52006-08-04 18:18:08 +00001335# Be sure to have absolute directory names.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001340do
Reid Spencera773bd52006-08-04 18:18:08 +00001341 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001342 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001345 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001348done
1349
1350# There might be people who depend on the old broken behavior: `$host'
1351# used to hold the argument of --host etc.
1352# FIXME: To remove some day.
1353build=$build_alias
1354host=$host_alias
1355target=$target_alias
1356
1357# FIXME: To remove some day.
1358if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366fi
1367
1368ac_tool_prefix=
1369test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371test "$silent" = yes && exec 6>/dev/null
1372
1373
Reid Spencera773bd52006-08-04 18:18:08 +00001374ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375ac_ls_di=`ls -di .` &&
1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1382
1383
John Criswell7a73b802003-06-30 21:59:07 +00001384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001389$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001393echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001411 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001412 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
Reid Spencera773bd52006-08-04 18:18:08 +00001418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001421 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001422fi
Reid Spencera773bd52006-08-04 18:18:08 +00001423ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424ac_abs_confdir=`(
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001426 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
1438for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
John Criswell7a73b802003-06-30 21:59:07 +00001444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001452\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
John Criswell7a73b802003-06-30 21:59:07 +00001472Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001476 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001505_ACEOF
1506
1507 cat <<\_ACEOF
1508
1509System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513_ACEOF
1514fi
1515
1516if test -n "$ac_init_help"; then
1517 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001518 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001519 esac
1520 cat <<\_ACEOF
1521
1522Optional Features:
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001526 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001527 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001528 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001529 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001530 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001531 --enable-pic Build LLVM with Position Independent Code (default
1532 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001533 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001534 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001535 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1536 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001537 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001538 --enable-shared[=PKGS] build shared libraries
1539 [default=enable_shared_default]
1540 --enable-static[=PKGS] build static libraries
1541 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001542 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001543 optimize for fast installation
1544 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001545 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001546
1547Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001550 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1551 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001552 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001553 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-pic try to use only PIC/non-PIC objects [default=use
1556 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001558 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 CC C compiler command
1562 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001567 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001570 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1571 the first program found out of: `bison -y', `byacc', `yacc'.
1572 YFLAGS The list of arguments that will be passed by default to $YACC.
1573 This script will default YFLAGS to the empty string to avoid a
1574 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001575 CXXCPP C++ preprocessor
1576 F77 Fortran 77 compiler command
1577 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Use these variables to override the choices made by `configure' or to help
1580it to find libraries and programs with nonstandard names/locations.
1581
1582Report bugs to <llvmbugs@cs.uiuc.edu>.
1583_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001584ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001585fi
1586
1587if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001590 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001591 ac_builddir=.
1592
Reid Spencera773bd52006-08-04 18:18:08 +00001593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
John Criswell7a73b802003-06-30 21:59:07 +00001596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001608
1609case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001610 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001622esac
Reid Spencera773bd52006-08-04 18:18:08 +00001623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001624
Reid Spencera773bd52006-08-04 18:18:08 +00001625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001633 else
1634 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001637 done
1638fi
1639
Reid Spencera773bd52006-08-04 18:18:08 +00001640test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001641if $ac_init_version; then
1642 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001643llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001644generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001645
Reid Spencera773bd52006-08-04 18:18:08 +00001646Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001648This configure script is free software; the Free Software Foundation
1649gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001650
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001651Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001652_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001653 exit
John Criswell7a73b802003-06-30 21:59:07 +00001654fi
Reid Spencera773bd52006-08-04 18:18:08 +00001655cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001656This file contains any messages produced by compilers while
1657running configure, to aid debugging if configure makes a mistake.
1658
Tanya Lattner01d3e382006-11-14 00:59:52 +00001659It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001660generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001661
1662 $ $0 $@
1663
1664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001665exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001666{
1667cat <<_ASUNAME
1668## --------- ##
1669## Platform. ##
1670## --------- ##
1671
1672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676uname -v = `(uname -v) 2>/dev/null || echo unknown`
1677
1678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1680
1681/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001684/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001685/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688
1689_ASUNAME
1690
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 echo "PATH: $as_dir"
1697done
Reid Spencera773bd52006-08-04 18:18:08 +00001698IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001699
1700} >&5
1701
1702cat >&5 <<_ACEOF
1703
1704
1705## ----------- ##
1706## Core tests. ##
1707## ----------- ##
1708
1709_ACEOF
1710
1711
1712# Keep a trace of the command line.
1713# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001714# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001715# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001716# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001717ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001718ac_configure_args0=
1719ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001720ac_must_keep_next=false
1721for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001722do
John Criswell0c38eaf2003-09-10 15:17:25 +00001723 for ac_arg
1724 do
1725 case $ac_arg in
1726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728 | -silent | --silent | --silen | --sile | --sil)
1729 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001730 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732 esac
1733 case $ac_pass in
1734 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1735 2)
1736 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001738 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001740 case $ac_arg in
1741 *=* | --config-cache | -C | -disable-* | --disable-* \
1742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744 | -with-* | --with-* | -without-* | --without-* | --x)
1745 case "$ac_configure_args0 " in
1746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 esac
1748 ;;
1749 -* ) ac_must_keep_next=true ;;
1750 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001752 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001753 ;;
1754 esac
1755 done
John Criswell7a73b802003-06-30 21:59:07 +00001756done
John Criswell0c38eaf2003-09-10 15:17:25 +00001757$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758$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 +00001759
1760# When interrupted or exit'd, cleanup temporary files, and complete
1761# config.log. We remove comments because anyway the quotes in there
1762# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001763# WARNING: Use '\'' to represent an apostrophe within the trap.
1764# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001765trap 'exit_status=$?
1766 # Save into config.log some information that might help in debugging.
1767 {
1768 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770 cat <<\_ASBOX
1771## ---------------- ##
1772## Cache variables. ##
1773## ---------------- ##
1774_ASBOX
1775 echo
1776 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001777(
1778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in #(
1781 *${as_nl}*)
1782 case $ac_var in #(
1783 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 esac
1786 case $ac_var in #(
1787 _ | IFS | as_nl) ;; #(
1788 *) $as_unset $ac_var ;;
1789 esac ;;
1790 esac
1791 done
John Criswell7a73b802003-06-30 21:59:07 +00001792 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001795 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001796 "s/'\''/'\''\\\\'\'''\''/g;
1797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001799 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001802 esac |
1803 sort
1804)
John Criswell7a73b802003-06-30 21:59:07 +00001805 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001806
1807 cat <<\_ASBOX
1808## ----------------- ##
1809## Output variables. ##
1810## ----------------- ##
1811_ASBOX
1812 echo
1813 for ac_var in $ac_subst_vars
1814 do
Reid Spencera773bd52006-08-04 18:18:08 +00001815 eval ac_val=\$$ac_var
1816 case $ac_val in
1817 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 esac
1819 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 done | sort
1821 echo
1822
1823 if test -n "$ac_subst_files"; then
1824 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001825## ------------------- ##
1826## File substitutions. ##
1827## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001828_ASBOX
1829 echo
1830 for ac_var in $ac_subst_files
1831 do
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001837 done | sort
1838 echo
1839 fi
1840
John Criswell7a73b802003-06-30 21:59:07 +00001841 if test -s confdefs.h; then
1842 cat <<\_ASBOX
1843## ----------- ##
1844## confdefs.h. ##
1845## ----------- ##
1846_ASBOX
1847 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001848 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001849 echo
1850 fi
1851 test "$ac_signal" != 0 &&
1852 echo "$as_me: caught signal $ac_signal"
1853 echo "$as_me: exit $exit_status"
1854 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001855 rm -f core *.core core.conftest.* &&
1856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001857 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001858' 0
John Criswell7a73b802003-06-30 21:59:07 +00001859for ac_signal in 1 2 13 15; do
1860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861done
1862ac_signal=0
1863
1864# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001865rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001866
1867# Predefined preprocessor variables.
1868
1869cat >>confdefs.h <<_ACEOF
1870#define PACKAGE_NAME "$PACKAGE_NAME"
1871_ACEOF
1872
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_STRING "$PACKAGE_STRING"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891_ACEOF
1892
1893
1894# Let the site file select an alternate cache file if it wants to.
1895# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001896if test -n "$CONFIG_SITE"; then
1897 set x "$CONFIG_SITE"
1898elif test "x$prefix" != xNONE; then
1899 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1900else
1901 set x "$ac_default_prefix/share/config.site" \
1902 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001903fi
Reid Spencera773bd52006-08-04 18:18:08 +00001904shift
1905for ac_site_file
1906do
John Criswell7a73b802003-06-30 21:59:07 +00001907 if test -r "$ac_site_file"; then
1908 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1911 . "$ac_site_file"
1912 fi
1913done
1914
1915if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920echo "$as_me: loading cache $cache_file" >&6;}
1921 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001924 esac
1925 fi
1926else
1927 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928echo "$as_me: creating cache $cache_file" >&6;}
1929 >$cache_file
1930fi
1931
1932# Check that the precious variables saved in the cache have kept the same
1933# value.
1934ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001940 case $ac_old_set,$ac_new_set in
1941 set,)
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1945 ,set)
1946 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,);;
1950 *)
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001953echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001955echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001956 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001957echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001958 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001959 fi;;
1960 esac
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1963 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001964 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001965 *) ac_arg=$ac_var=$ac_new_val ;;
1966 esac
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 esac
1971 fi
1972done
1973if $ac_cache_corrupted; then
1974 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
1979fi
1980
Reid Spencera773bd52006-08-04 18:18:08 +00001981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
John Criswell7a73b802003-06-30 21:59:07 +00002005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002013LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014
2015
2016
2017
2018
2019
2020
John Criswell7a73b802003-06-30 21:59:07 +00002021ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002022for ac_dir in autoconf "$srcdir"/autoconf; do
2023 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002024 ac_aux_dir=$ac_dir
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2026 break
Reid Spencera773bd52006-08-04 18:18:08 +00002027 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2030 break
Reid Spencera773bd52006-08-04 18:18:08 +00002031 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 break
2035 fi
2036done
2037if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2039echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002040 { (exit 1); exit 1; }; }
2041fi
Reid Spencera773bd52006-08-04 18:18:08 +00002042
2043# These three variables are undocumented and unsupported,
2044# and are intended to be withdrawn in a future Autoconf release.
2045# They can cause serious problems if a builder's source tree is in a directory
2046# whose full name contains unusual characters.
2047ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050
John Criswell7a73b802003-06-30 21:59:07 +00002051
John Criswell392aaa32003-07-22 19:18:09 +00002052
Reid Spencer2706f8c2004-09-19 23:53:36 +00002053if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2055 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002056echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2057 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058 fi
John Criswell93e1c722003-09-15 17:04:06 +00002059fi
2060
John Criswell33a911a2003-11-25 20:36:46 +00002061for i in `ls ${srcdir}/projects`
2062do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002063 if test -d ${srcdir}/projects/${i} ; then
2064 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002065 CVS) ;;
2066 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002068 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002069 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002070 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002072 llvm-test) subdirs="$subdirs projects/llvm-test"
2073 ;;
2074 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002076 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002078 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002079 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002085 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002087 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2088echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002089 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 esac
John Criswell33a911a2003-11-25 20:36:46 +00002091 fi
2092done
John Criswell559a6c12003-09-30 16:31:48 +00002093
John Criswell7a73b802003-06-30 21:59:07 +00002094
2095# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002096$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002099 { (exit 1); exit 1; }; }
2100
Reid Spencera773bd52006-08-04 18:18:08 +00002101{ echo "$as_me:$LINENO: checking build system type" >&5
2102echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002103if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
Reid Spencera773bd52006-08-04 18:18:08 +00002106 ac_build_alias=$build_alias
2107test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002113ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002116 { (exit 1); exit 1; }; }
2117
2118fi
Reid Spencera773bd52006-08-04 18:18:08 +00002119{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120echo "${ECHO_T}$ac_cv_build" >&6; }
2121case $ac_cv_build in
2122*-*-*) ;;
2123*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2126esac
John Criswell7a73b802003-06-30 21:59:07 +00002127build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002128ac_save_IFS=$IFS; IFS='-'
2129set x $ac_cv_build
2130shift
2131build_cpu=$1
2132build_vendor=$2
2133shift; shift
2134# Remember, the first character of IFS is used to create $*,
2135# except with old shells:
2136build_os=$*
2137IFS=$ac_save_IFS
2138case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002139
2140
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: checking host system type" >&5
2142echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002143if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
Reid Spencera773bd52006-08-04 18:18:08 +00002146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2148else
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002152 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002153fi
John Criswell7a73b802003-06-30 21:59:07 +00002154
2155fi
Reid Spencera773bd52006-08-04 18:18:08 +00002156{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157echo "${ECHO_T}$ac_cv_host" >&6; }
2158case $ac_cv_host in
2159*-*-*) ;;
2160*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2163esac
John Criswell7a73b802003-06-30 21:59:07 +00002164host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002165ac_save_IFS=$IFS; IFS='-'
2166set x $ac_cv_host
2167shift
2168host_cpu=$1
2169host_vendor=$2
2170shift; shift
2171# Remember, the first character of IFS is used to create $*,
2172# except with old shells:
2173host_os=$*
2174IFS=$ac_save_IFS
2175case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: checking target system type" >&5
2179echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002180if test "${ac_cv_target+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
Reid Spencera773bd52006-08-04 18:18:08 +00002183 if test "x$target_alias" = x; then
2184 ac_cv_target=$ac_cv_host
2185else
2186 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2188echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002189 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002190fi
John Criswell7a73b802003-06-30 21:59:07 +00002191
2192fi
Reid Spencera773bd52006-08-04 18:18:08 +00002193{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2194echo "${ECHO_T}$ac_cv_target" >&6; }
2195case $ac_cv_target in
2196*-*-*) ;;
2197*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2198echo "$as_me: error: invalid value of canonical target" >&2;}
2199 { (exit 1); exit 1; }; };;
2200esac
John Criswell7a73b802003-06-30 21:59:07 +00002201target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002202ac_save_IFS=$IFS; IFS='-'
2203set x $ac_cv_target
2204shift
2205target_cpu=$1
2206target_vendor=$2
2207shift; shift
2208# Remember, the first character of IFS is used to create $*,
2209# except with old shells:
2210target_os=$*
2211IFS=$ac_save_IFS
2212case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214
2215# The aliases save the names the user supplied, while $host etc.
2216# will get canonicalized.
2217test -n "$target_alias" &&
2218 test "$program_prefix$program_suffix$program_transform_name" = \
2219 NONENONEs,x,x, &&
2220 program_prefix=${target_alias}-
2221
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2223echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002224if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002227 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002231 llvm_cv_os_type="AIX"
2232 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002233 *-*-irix*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="IRIX"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241 llvm_cv_os_type="Cygwin"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,-all_load"
2245 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Darwin"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="FreeBSD"
2252 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002253 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002256 llvm_cv_os_type="OpenBSD"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002258 *-*-netbsd*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="NetBSD"
2262 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002263 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002266 llvm_cv_os_type="HP-UX"
2267 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Interix"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="Linux"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,-z,allextract"
2280 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="SunOS"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="Win32"
2287 llvm_cv_platform_type="Win32" ;;
2288 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="MingW"
2292 llvm_cv_platform_type="Win32" ;;
2293 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option=""
2295 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="Unknown"
2297 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002298esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299fi
Reid Spencera773bd52006-08-04 18:18:08 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002306 { (exit 1); exit 1; }; }
2307fi
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310
2311
Reid Spencera773bd52006-08-04 18:18:08 +00002312LINKALL=$llvm_cv_link_all_option
2313
2314NOLINKALL=$llvm_cv_no_link_all_option
2315
2316
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317case $llvm_cv_platform_type in
2318 Unix)
2319
2320cat >>confdefs.h <<\_ACEOF
2321#define LLVM_ON_UNIX 1
2322_ACEOF
2323
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002324 LLVM_ON_UNIX=1
2325
2326 LLVM_ON_WIN32=0
2327
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 ;;
2329 Win32)
2330
2331cat >>confdefs.h <<\_ACEOF
2332#define LLVM_ON_WIN32 1
2333_ACEOF
2334
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002335 LLVM_ON_UNIX=0
2336
2337 LLVM_ON_WIN32=1
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 ;;
2340esac
2341
Reid Spencera773bd52006-08-04 18:18:08 +00002342{ echo "$as_me:$LINENO: checking target architecture" >&5
2343echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344if test "${llvm_cv_target_arch+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002348 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002349 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002350 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2351 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002352 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002353 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002354 arm-*) llvm_cv_target_arch="ARM" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002355 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002356esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002357fi
Reid Spencera773bd52006-08-04 18:18:08 +00002358{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2359echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361if test "$llvm_cv_target_arch" = "Unknown" ; then
2362 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2363echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2364fi
John Criswell76595452003-07-01 22:07:39 +00002365
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002367
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002368
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369ac_ext=c
2370ac_cpp='$CPP $CPPFLAGS'
2371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002374if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2376set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379if test "${ac_cv_prog_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 if test -n "$CC"; then
2383 ac_cv_prog_CC="$CC" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002391 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 +00002392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396done
2397done
Reid Spencera773bd52006-08-04 18:18:08 +00002398IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399
2400fi
2401fi
2402CC=$ac_cv_prog_CC
2403if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002404 { echo "$as_me:$LINENO: result: $CC" >&5
2405echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406else
Reid Spencera773bd52006-08-04 18:18:08 +00002407 { echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409fi
2410
Reid Spencera773bd52006-08-04 18:18:08 +00002411
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412fi
2413if test -z "$ac_cv_prog_CC"; then
2414 ac_ct_CC=$CC
2415 # Extract the first word of "gcc", so it can be a program name with args.
2416set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422 if test -n "$ac_ct_CC"; then
2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432 ac_cv_prog_ac_ct_CC="gcc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436done
2437done
Reid Spencera773bd52006-08-04 18:18:08 +00002438IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439
2440fi
2441fi
2442ac_ct_CC=$ac_cv_prog_ac_ct_CC
2443if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002444 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2445echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446else
Reid Spencera773bd52006-08-04 18:18:08 +00002447 { echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449fi
2450
Reid Spencera773bd52006-08-04 18:18:08 +00002451 if test "x$ac_ct_CC" = x; then
2452 CC=""
2453 else
2454 case $cross_compiling:$ac_tool_warned in
2455yes:)
2456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2457whose name does not start with the host triplet. If you think this
2458configuration is useful to you, please write to autoconf@gnu.org." >&5
2459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2460whose name does not start with the host triplet. If you think this
2461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2462ac_tool_warned=yes ;;
2463esac
2464 CC=$ac_ct_CC
2465 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466else
2467 CC="$ac_cv_prog_CC"
2468fi
2469
2470if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002471 if test -n "$ac_tool_prefix"; then
2472 # 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 +00002473set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002488 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 +00002489 ac_cv_prog_CC="${ac_tool_prefix}cc"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493done
2494done
Reid Spencera773bd52006-08-04 18:18:08 +00002495IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496
2497fi
2498fi
2499CC=$ac_cv_prog_CC
2500if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002501 { echo "$as_me:$LINENO: result: $CC" >&5
2502echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503else
Reid Spencera773bd52006-08-04 18:18:08 +00002504 { echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506fi
2507
Reid Spencera773bd52006-08-04 18:18:08 +00002508
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510fi
2511if test -z "$CC"; then
2512 # Extract the first word of "cc", so it can be a program name with args.
2513set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2521else
2522 ac_prog_rejected=no
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002529 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 +00002530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2531 ac_prog_rejected=yes
2532 continue
2533 fi
2534 ac_cv_prog_CC="cc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538done
2539done
Reid Spencera773bd52006-08-04 18:18:08 +00002540IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541
2542if test $ac_prog_rejected = yes; then
2543 # We found a bogon in the path, so make sure we never use it.
2544 set dummy $ac_cv_prog_CC
2545 shift
2546 if test $# != 0; then
2547 # We chose a different compiler from the bogus one.
2548 # However, it has the same basename, so the bogon will be chosen
2549 # first if we set CC to just the basename; use the full file name.
2550 shift
2551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2552 fi
2553fi
2554fi
2555fi
2556CC=$ac_cv_prog_CC
2557if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002558 { echo "$as_me:$LINENO: result: $CC" >&5
2559echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560else
Reid Spencera773bd52006-08-04 18:18:08 +00002561 { echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563fi
2564
Reid Spencera773bd52006-08-04 18:18:08 +00002565
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566fi
2567if test -z "$CC"; then
2568 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002569 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002570 do
2571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2572set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002587 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 +00002588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
Reid Spencera773bd52006-08-04 18:18:08 +00002594IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002595
2596fi
2597fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002600 { echo "$as_me:$LINENO: result: $CC" >&5
2601echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002602else
Reid Spencera773bd52006-08-04 18:18:08 +00002603 { echo "$as_me:$LINENO: result: no" >&5
2604echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002605fi
2606
Reid Spencera773bd52006-08-04 18:18:08 +00002607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002609 done
2610fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611if test -z "$CC"; then
2612 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002613 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002614do
2615 # Extract the first word of "$ac_prog", so it can be a program name with args.
2616set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 if test -n "$ac_ct_CC"; then
2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002631 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 +00002632 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636done
2637done
Reid Spencera773bd52006-08-04 18:18:08 +00002638IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002639
2640fi
2641fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002644 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002646else
Reid Spencera773bd52006-08-04 18:18:08 +00002647 { echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002649fi
2650
Reid Spencera773bd52006-08-04 18:18:08 +00002651
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002653done
John Criswell7a73b802003-06-30 21:59:07 +00002654
Reid Spencera773bd52006-08-04 18:18:08 +00002655 if test "x$ac_ct_CC" = x; then
2656 CC=""
2657 else
2658 case $cross_compiling:$ac_tool_warned in
2659yes:)
2660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2661whose name does not start with the host triplet. If you think this
2662configuration is useful to you, please write to autoconf@gnu.org." >&5
2663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2664whose name does not start with the host triplet. If you think this
2665configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2666ac_tool_warned=yes ;;
2667esac
2668 CC=$ac_ct_CC
2669 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670fi
2671
John Criswell7a73b802003-06-30 21:59:07 +00002672fi
2673
2674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2676See \`config.log' for more details." >&5
2677echo "$as_me: error: no acceptable C compiler found in \$PATH
2678See \`config.log' for more details." >&2;}
2679 { (exit 1); exit 1; }; }
2680
John Criswell7a73b802003-06-30 21:59:07 +00002681# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002682echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002683ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002684{ (ac_try="$ac_compiler --version >&5"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002694{ (ac_try="$ac_compiler -v >&5"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002704{ (ac_try="$ac_compiler -V >&5"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714
2715cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002716/* confdefs.h. */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002721
John Criswell7a73b802003-06-30 21:59:07 +00002722int
2723main ()
2724{
2725
2726 ;
2727 return 0;
2728}
2729_ACEOF
2730ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002731ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002732# Try to create an executable without -o first, disregard a.out.
2733# It will help us diagnose broken compilers, and finding out an intuition
2734# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002735{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2736echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002737ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002738#
2739# List of possible output files, starting from the most likely.
2740# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2741# only as a last resort. b.out is created by i960 compilers.
2742ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2743#
2744# The IRIX 6 linker writes into existing files which may not be
2745# executable, retaining their permissions. Remove them first so a
2746# subsequent execution test works.
2747ac_rmfiles=
2748for ac_file in $ac_files
2749do
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2753 esac
2754done
2755rm -f $ac_rmfiles
2756
2757if { (ac_try="$ac_link_default"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2768# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2769# in a Makefile. We should not override ac_cv_exeext if it was cached,
2770# so that the user can short-circuit this test for compilers unknown to
2771# Autoconf.
2772for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002773do
2774 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002775 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002777 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002778 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002779 # We found the default executable, but exeext='' is most
2780 # certainly right.
2781 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002782 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2784 then :; else
2785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2786 fi
2787 # We set ac_cv_exeext here because the later test for it is not
2788 # safe: cross compilers may not add the suffix if given an `-o'
2789 # argument, so we may need to know it at that point already.
2790 # Even if this section looks crufty: it has the advantage of
2791 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002792 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002793 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002794 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002795 esac
2796done
Reid Spencera773bd52006-08-04 18:18:08 +00002797test "$ac_cv_exeext" = no && ac_cv_exeext=
2798
John Criswell7a73b802003-06-30 21:59:07 +00002799else
2800 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002801sed 's/^/| /' conftest.$ac_ext >&5
2802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002803{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002804See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002805echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002806See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002807 { (exit 77); exit 77; }; }
2808fi
2809
2810ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002811{ echo "$as_me:$LINENO: result: $ac_file" >&5
2812echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002813
Reid Spencera773bd52006-08-04 18:18:08 +00002814# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002815# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002816{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2817echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002818# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2819# If not cross compiling, check that we can run a simple program.
2820if test "$cross_compiling" != yes; then
2821 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002822 { (case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 cross_compiling=no
2832 else
2833 if test "$cross_compiling" = maybe; then
2834 cross_compiling=yes
2835 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002836 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002837If you meant to cross compile, use \`--host'.
2838See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002839echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002840If you meant to cross compile, use \`--host'.
2841See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002842 { (exit 1); exit 1; }; }
2843 fi
2844 fi
2845fi
Reid Spencera773bd52006-08-04 18:18:08 +00002846{ echo "$as_me:$LINENO: result: yes" >&5
2847echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002848
John Criswell0c38eaf2003-09-10 15:17:25 +00002849rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002850ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002851# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002852# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002853{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2854echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2855{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2856echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002857
Reid Spencera773bd52006-08-04 18:18:08 +00002858{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2859echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2860if { (ac_try="$ac_link"
2861case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864esac
2865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; then
2870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2871# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2872# work properly (i.e., refer to `conftest.exe'), while it won't with
2873# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002874for ac_file in conftest.exe conftest conftest.*; do
2875 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002876 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002879 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002880 * ) break;;
2881 esac
2882done
2883else
John Criswell0c38eaf2003-09-10 15:17:25 +00002884 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2885See \`config.log' for more details." >&5
2886echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2887See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002888 { (exit 1); exit 1; }; }
2889fi
2890
2891rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002892{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2893echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002894
2895rm -f conftest.$ac_ext
2896EXEEXT=$ac_cv_exeext
2897ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002898{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2899echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002900if test "${ac_cv_objext+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002904/* confdefs.h. */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002909
John Criswell7a73b802003-06-30 21:59:07 +00002910int
2911main ()
2912{
2913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002919if { (ac_try="$ac_compile"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002929 for ac_file in conftest.o conftest.obj conftest.*; do
2930 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002931 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2934 break;;
2935 esac
2936done
2937else
2938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2942See \`config.log' for more details." >&5
2943echo "$as_me: error: cannot compute suffix of object files: cannot compile
2944See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002945 { (exit 1); exit 1; }; }
2946fi
2947
2948rm -f conftest.$ac_cv_objext conftest.$ac_ext
2949fi
Reid Spencera773bd52006-08-04 18:18:08 +00002950{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2951echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002952OBJEXT=$ac_cv_objext
2953ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002954{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002956if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002965
John Criswell7a73b802003-06-30 21:59:07 +00002966int
2967main ()
2968{
2969#ifndef __GNUC__
2970 choke me
2971#endif
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002978if { (ac_try="$ac_compile"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; } &&
3001 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3011 ac_compiler_gnu=yes
3012else
3013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003014sed 's/^/| /' conftest.$ac_ext >&5
3015
Reid Spencera773bd52006-08-04 18:18:08 +00003016 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003017fi
Reid Spencera773bd52006-08-04 18:18:08 +00003018
3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003020ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003021
3022fi
Reid Spencera773bd52006-08-04 18:18:08 +00003023{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3024echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003025GCC=`test $ac_compiler_gnu = yes && echo yes`
3026ac_test_CFLAGS=${CFLAGS+set}
3027ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003028{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3029echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003030if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
Reid Spencera773bd52006-08-04 18:18:08 +00003033 ac_save_c_werror_flag=$ac_c_werror_flag
3034 ac_c_werror_flag=yes
3035 ac_cv_prog_cc_g=no
3036 CFLAGS="-g"
3037 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003043
John Criswell7a73b802003-06-30 21:59:07 +00003044int
3045main ()
3046{
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003053if { (ac_try="$ac_compile"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003061 grep -v '^ *+' conftest.er1 >conftest.err
3062 rm -f conftest.er1
3063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; } &&
3076 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003086 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003087else
3088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003089sed 's/^/| /' conftest.$ac_ext >&5
3090
Reid Spencera773bd52006-08-04 18:18:08 +00003091 CFLAGS=""
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (ac_try="$ac_compile"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_compile") 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 :
3142else
3143 echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 ac_c_werror_flag=$ac_save_c_werror_flag
3147 CFLAGS="-g"
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext
3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_cv_prog_cc_g=yes
3198else
3199 echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202
John Criswell7a73b802003-06-30 21:59:07 +00003203fi
Reid Spencera773bd52006-08-04 18:18:08 +00003204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003206fi
Reid Spencera773bd52006-08-04 18:18:08 +00003207
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209fi
3210
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213fi
3214{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3220 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003221 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003223 fi
3224else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003225 if test "$GCC" = yes; then
3226 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003227 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003229 fi
3230fi
Reid Spencera773bd52006-08-04 18:18:08 +00003231{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
Reid Spencera773bd52006-08-04 18:18:08 +00003236 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237ac_save_CC=$CC
3238cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#include <stdarg.h>
3245#include <stdio.h>
3246#include <sys/types.h>
3247#include <sys/stat.h>
3248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3249struct buf { int x; };
3250FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251static char *e (p, i)
3252 char **p;
3253 int i;
3254{
3255 return p[i];
3256}
3257static char *f (char * (*g) (char **, int), char **p, ...)
3258{
3259 char *s;
3260 va_list v;
3261 va_start (v,p);
3262 s = g (p, va_arg (v,int));
3263 va_end (v);
3264 return s;
3265}
3266
3267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3268 function prototypes and stuff, but not '\xHH' hex character constants.
3269 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003270 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3272 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003273 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3275
Reid Spencera773bd52006-08-04 18:18:08 +00003276/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277 inside strings and character constants. */
3278#define FOO(x) 'x'
3279int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3280
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281int test (int i, double x);
3282struct s1 {int (*f) (int a);};
3283struct s2 {int (*f) (double a);};
3284int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3285int argc;
3286char **argv;
3287int
3288main ()
3289{
3290return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3291 ;
3292 return 0;
3293}
3294_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003295for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297do
3298 CC="$ac_save_CC $ac_arg"
3299 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003300if { (ac_try="$ac_compile"
3301case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003333 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334else
3335 echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
Reid Spencera773bd52006-08-04 18:18:08 +00003338
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339fi
Reid Spencera773bd52006-08-04 18:18:08 +00003340
3341rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343done
Reid Spencera773bd52006-08-04 18:18:08 +00003344rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345CC=$ac_save_CC
3346
3347fi
Reid Spencera773bd52006-08-04 18:18:08 +00003348# AC_CACHE_VAL
3349case "x$ac_cv_prog_cc_c89" in
3350 x)
3351 { echo "$as_me:$LINENO: result: none needed" >&5
3352echo "${ECHO_T}none needed" >&6; } ;;
3353 xno)
3354 { echo "$as_me:$LINENO: result: unsupported" >&5
3355echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003357 CC="$CC $ac_cv_prog_cc_c89"
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3359echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360esac
3361
John Criswell0c38eaf2003-09-10 15:17:25 +00003362
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363ac_ext=c
3364ac_cpp='$CPP $CPPFLAGS'
3365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368
3369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003375{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377# On Suns, sometimes $CPP names a directory.
3378if test -n "$CPP" && test -d "$CPP"; then
3379 CPP=
3380fi
3381if test -z "$CPP"; then
3382 if test "${ac_cv_prog_CPP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385 # Double quotes because CPP needs to be expanded
3386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387 do
3388 ac_preproc_ok=false
3389for ac_c_preproc_warn_flag in '' yes
3390do
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#ifdef __STDC__
3404# include <limits.h>
3405#else
3406# include <assert.h>
3407#endif
3408 Syntax error
3409_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003410if { (ac_try="$ac_cpp conftest.$ac_ext"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 else
3427 ac_cpp_err=
3428 fi
3429else
3430 ac_cpp_err=yes
3431fi
3432if test -z "$ac_cpp_err"; then
3433 :
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 # Broken: fails on valid input.
3439continue
3440fi
Reid Spencera773bd52006-08-04 18:18:08 +00003441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442rm -f conftest.err conftest.$ac_ext
3443
Reid Spencera773bd52006-08-04 18:18:08 +00003444 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
3452#include <ac_nonexistent.h>
3453_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003454if { (ac_try="$ac_cpp conftest.$ac_ext"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 else
3471 ac_cpp_err=
3472 fi
3473else
3474 ac_cpp_err=yes
3475fi
3476if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3478continue
3479else
3480 echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 # Passes both tests.
3484ac_preproc_ok=:
3485break
3486fi
Reid Spencera773bd52006-08-04 18:18:08 +00003487
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003488rm -f conftest.err conftest.$ac_ext
3489
3490done
3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492rm -f conftest.err conftest.$ac_ext
3493if $ac_preproc_ok; then
3494 break
3495fi
3496
3497 done
3498 ac_cv_prog_CPP=$CPP
3499
3500fi
3501 CPP=$ac_cv_prog_CPP
3502else
3503 ac_cv_prog_CPP=$CPP
3504fi
Reid Spencera773bd52006-08-04 18:18:08 +00003505{ echo "$as_me:$LINENO: result: $CPP" >&5
3506echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507ac_preproc_ok=false
3508for ac_c_preproc_warn_flag in '' yes
3509do
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h. */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h. */
3522#ifdef __STDC__
3523# include <limits.h>
3524#else
3525# include <assert.h>
3526#endif
3527 Syntax error
3528_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003529if { (ac_try="$ac_cpp conftest.$ac_ext"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
3534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 else
3546 ac_cpp_err=
3547 fi
3548else
3549 ac_cpp_err=yes
3550fi
3551if test -z "$ac_cpp_err"; then
3552 :
3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Broken: fails on valid input.
3558continue
3559fi
Reid Spencera773bd52006-08-04 18:18:08 +00003560
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003561rm -f conftest.err conftest.$ac_ext
3562
Reid Spencera773bd52006-08-04 18:18:08 +00003563 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h. */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h. */
3571#include <ac_nonexistent.h>
3572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003573if { (ac_try="$ac_cpp conftest.$ac_ext"
3574case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 else
3590 ac_cpp_err=
3591 fi
3592else
3593 ac_cpp_err=yes
3594fi
3595if test -z "$ac_cpp_err"; then
3596 # Broken: success on invalid input.
3597continue
3598else
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 # Passes both tests.
3603ac_preproc_ok=:
3604break
3605fi
Reid Spencera773bd52006-08-04 18:18:08 +00003606
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003607rm -f conftest.err conftest.$ac_ext
3608
3609done
3610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611rm -f conftest.err conftest.$ac_ext
3612if $ac_preproc_ok; then
3613 :
3614else
3615 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3616See \`config.log' for more details." >&5
3617echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3618See \`config.log' for more details." >&2;}
3619 { (exit 1); exit 1; }; }
3620fi
3621
John Criswell7a73b802003-06-30 21:59:07 +00003622ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
John Criswell7a73b802003-06-30 21:59:07 +00003628
Reid Spencera773bd52006-08-04 18:18:08 +00003629{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3630echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003631if test "${ac_cv_path_GREP+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
Reid Spencera773bd52006-08-04 18:18:08 +00003634 # Extract the first word of "grep ggrep" to use in msg output
3635if test -z "$GREP"; then
3636set dummy grep ggrep; ac_prog_name=$2
3637if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639else
Reid Spencera773bd52006-08-04 18:18:08 +00003640 ac_path_GREP_found=false
3641# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003643for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003647 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003648 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003649 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3650 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3651 # Check for GNU ac_path_GREP and select it if it is found.
3652 # Check for GNU $ac_path_GREP
3653case `"$ac_path_GREP" --version 2>&1` in
3654*GNU*)
3655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3656*)
3657 ac_count=0
3658 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3659 while :
3660 do
3661 cat "conftest.in" "conftest.in" >"conftest.tmp"
3662 mv "conftest.tmp" "conftest.in"
3663 cp "conftest.in" "conftest.nl"
3664 echo 'GREP' >> "conftest.nl"
3665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3667 ac_count=`expr $ac_count + 1`
3668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3669 # Best one so far, save it but keep looking for a better one
3670 ac_cv_path_GREP="$ac_path_GREP"
3671 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003673 # 10*(2^10) chars as input seems more than enough
3674 test $ac_count -gt 10 && break
3675 done
3676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3677esac
3678
3679
3680 $ac_path_GREP_found && break 3
3681 done
3682done
3683
3684done
3685IFS=$as_save_IFS
3686
3687
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688fi
Reid Spencera773bd52006-08-04 18:18:08 +00003689
3690GREP="$ac_cv_path_GREP"
3691if test -z "$GREP"; then
3692 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3693echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3694 { (exit 1); exit 1; }; }
3695fi
3696
3697else
3698 ac_cv_path_GREP=$GREP
3699fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700
John Criswell7a73b802003-06-30 21:59:07 +00003701
Reid Spencera773bd52006-08-04 18:18:08 +00003702fi
3703{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3704echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3705 GREP="$ac_cv_path_GREP"
3706
3707
3708{ echo "$as_me:$LINENO: checking for egrep" >&5
3709echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3710if test "${ac_cv_path_EGREP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3714 then ac_cv_path_EGREP="$GREP -E"
3715 else
3716 # Extract the first word of "egrep" to use in msg output
3717if test -z "$EGREP"; then
3718set dummy egrep; ac_prog_name=$2
3719if test "${ac_cv_path_EGREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 ac_path_EGREP_found=false
3723# Loop through the user's path and test for each of PROGNAME-LIST
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in egrep; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3732 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3733 # Check for GNU ac_path_EGREP and select it if it is found.
3734 # Check for GNU $ac_path_EGREP
3735case `"$ac_path_EGREP" --version 2>&1` in
3736*GNU*)
3737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3738*)
3739 ac_count=0
3740 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3741 while :
3742 do
3743 cat "conftest.in" "conftest.in" >"conftest.tmp"
3744 mv "conftest.tmp" "conftest.in"
3745 cp "conftest.in" "conftest.nl"
3746 echo 'EGREP' >> "conftest.nl"
3747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749 ac_count=`expr $ac_count + 1`
3750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3751 # Best one so far, save it but keep looking for a better one
3752 ac_cv_path_EGREP="$ac_path_EGREP"
3753 ac_path_EGREP_max=$ac_count
3754 fi
3755 # 10*(2^10) chars as input seems more than enough
3756 test $ac_count -gt 10 && break
3757 done
3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759esac
3760
3761
3762 $ac_path_EGREP_found && break 3
3763 done
3764done
3765
3766done
3767IFS=$as_save_IFS
3768
3769
3770fi
3771
3772EGREP="$ac_cv_path_EGREP"
3773if test -z "$EGREP"; then
3774 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776 { (exit 1); exit 1; }; }
3777fi
3778
3779else
3780 ac_cv_path_EGREP=$EGREP
3781fi
3782
3783
3784 fi
3785fi
3786{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3787echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3788 EGREP="$ac_cv_path_EGREP"
3789
3790
3791{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3792echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003793if test "${ac_cv_header_stdc+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003802#include <stdlib.h>
3803#include <stdarg.h>
3804#include <string.h>
3805#include <float.h>
3806
John Criswell0c38eaf2003-09-10 15:17:25 +00003807int
3808main ()
3809{
3810
3811 ;
3812 return 0;
3813}
John Criswell7a73b802003-06-30 21:59:07 +00003814_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003815rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003816if { (ac_try="$ac_compile"
3817case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003823 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003828 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3830 { (case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833esac
3834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003840 { (case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003849 ac_cv_header_stdc=yes
3850else
3851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003852sed 's/^/| /' conftest.$ac_ext >&5
3853
Reid Spencera773bd52006-08-04 18:18:08 +00003854 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003855fi
Reid Spencera773bd52006-08-04 18:18:08 +00003856
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003858
3859if test $ac_cv_header_stdc = yes; then
3860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
3866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003867#include <string.h>
3868
3869_ACEOF
3870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003871 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003872 :
3873else
3874 ac_cv_header_stdc=no
3875fi
3876rm -f conftest*
3877
3878fi
3879
3880if test $ac_cv_header_stdc = yes; then
3881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3882 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003883/* confdefs.h. */
3884_ACEOF
3885cat confdefs.h >>conftest.$ac_ext
3886cat >>conftest.$ac_ext <<_ACEOF
3887/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003888#include <stdlib.h>
3889
3890_ACEOF
3891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003892 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003893 :
3894else
3895 ac_cv_header_stdc=no
3896fi
3897rm -f conftest*
3898
3899fi
3900
3901if test $ac_cv_header_stdc = yes; then
3902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3903 if test "$cross_compiling" = yes; then
3904 :
3905else
3906 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003912#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003913#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003914#if ((' ' & 0x0FF) == 0x020)
3915# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3916# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3917#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003918# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003919 (('a' <= (c) && (c) <= 'i') \
3920 || ('j' <= (c) && (c) <= 'r') \
3921 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003922# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3923#endif
3924
3925#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3926int
3927main ()
3928{
3929 int i;
3930 for (i = 0; i < 256; i++)
3931 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003932 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003933 return 2;
3934 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003935}
3936_ACEOF
3937rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003938if { (ac_try="$ac_link"
3939case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942esac
3943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003948 { (case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 :
3958else
3959 echo "$as_me: program exited with status $ac_status" >&5
3960echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003961sed 's/^/| /' conftest.$ac_ext >&5
3962
John Criswell7a73b802003-06-30 21:59:07 +00003963( exit $ac_status )
3964ac_cv_header_stdc=no
3965fi
Reid Spencera773bd52006-08-04 18:18:08 +00003966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3967fi
3968
3969
John Criswell7a73b802003-06-30 21:59:07 +00003970fi
3971fi
Reid Spencera773bd52006-08-04 18:18:08 +00003972{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3973echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003974if test $ac_cv_header_stdc = yes; then
3975
3976cat >>confdefs.h <<\_ACEOF
3977#define STDC_HEADERS 1
3978_ACEOF
3979
3980fi
3981
Reid Spencera773bd52006-08-04 18:18:08 +00003982# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3993 inttypes.h stdint.h unistd.h
3994do
3995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007$ac_includes_default
4008
4009#include <$ac_header>
4010_ACEOF
4011rm -f conftest.$ac_objext
4012if { (ac_try="$ac_compile"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 eval "$as_ac_Header=yes"
4046else
4047 echo "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 eval "$as_ac_Header=no"
4051fi
4052
4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054fi
4055ac_res=`eval echo '${'$as_ac_Header'}'`
4056 { echo "$as_me:$LINENO: result: $ac_res" >&5
4057echo "${ECHO_T}$ac_res" >&6; }
4058if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061_ACEOF
4062
4063fi
4064
4065done
4066
4067
4068{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4069echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4070if test "${ac_cv_c_bigendian+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073 # See if sys/param.h defines the BYTE_ORDER macro.
4074cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080#include <sys/types.h>
4081#include <sys/param.h>
4082
4083int
4084main ()
4085{
4086#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4087 bogus endian macros
4088#endif
4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 # It does; now see whether it defined to BIG_ENDIAN or not.
4129cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
4135#include <sys/types.h>
4136#include <sys/param.h>
4137
4138int
4139main ()
4140{
4141#if BYTE_ORDER != BIG_ENDIAN
4142 not big endian
4143#endif
4144
4145 ;
4146 return 0;
4147}
4148_ACEOF
4149rm -f conftest.$ac_objext
4150if { (ac_try="$ac_compile"
4151case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_compile") 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_c_bigendian=yes
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 ac_cv_c_bigendian=no
4189fi
4190
4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 # It does not; compile a test program.
4197if test "$cross_compiling" = yes; then
4198 # try to guess the endianness by grepping values into an object file
4199 ac_cv_c_bigendian=unknown
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4207short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4208void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4209short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4210short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4211void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4212int
4213main ()
4214{
4215 _ascii (); _ebcdic ();
4216 ;
4217 return 0;
4218}
4219_ACEOF
4220rm -f conftest.$ac_objext
4221if { (ac_try="$ac_compile"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_try") 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4255 ac_cv_c_bigendian=yes
4256fi
4257if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4258 if test "$ac_cv_c_bigendian" = unknown; then
4259 ac_cv_c_bigendian=no
4260 else
4261 # finding both strings is unlikely to happen, but who knows?
4262 ac_cv_c_bigendian=unknown
4263 fi
4264fi
4265else
4266 echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269
4270fi
4271
4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273else
4274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
4280$ac_includes_default
4281int
4282main ()
4283{
4284
4285 /* Are we little or big endian? From Harbison&Steele. */
4286 union
4287 {
4288 long int l;
4289 char c[sizeof (long int)];
4290 } u;
4291 u.l = 1;
4292 return u.c[sizeof (long int) - 1] == 1;
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298rm -f conftest$ac_exeext
4299if { (ac_try="$ac_link"
4300case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_link") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4309 { (case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_try") 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_c_bigendian=no
4319else
4320 echo "$as_me: program exited with status $ac_status" >&5
4321echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324( exit $ac_status )
4325ac_cv_c_bigendian=yes
4326fi
4327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4328fi
4329
4330
4331fi
4332
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334fi
4335{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4336echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4337case $ac_cv_c_bigendian in
4338 yes)
4339 ENDIAN=big
4340 ;;
4341 no)
4342 ENDIAN=little
4343 ;;
4344 *)
4345 { { echo "$as_me:$LINENO: error: unknown endianness
4346presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4347echo "$as_me: error: unknown endianness
4348presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4349 { (exit 1); exit 1; }; } ;;
4350esac
4351
4352
4353if test "$cross_compiling" = yes; then
4354 LLVM_CROSS_COMPILING=1
4355
4356
4357{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4358echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4359if test "${ac_cv_build_exeext+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4363 ac_cv_build_exeext=.exe
4364else
4365 ac_build_prefix=${build_alias}-
4366
4367 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4368set dummy ${ac_build_prefix}gcc; ac_word=$2
4369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374 if test -n "$BUILD_CC"; then
4375 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4376else
4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388done
4389done
4390IFS=$as_save_IFS
4391
4392fi
4393fi
4394BUILD_CC=$ac_cv_prog_BUILD_CC
4395if test -n "$BUILD_CC"; then
4396 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4397echo "${ECHO_T}$BUILD_CC" >&6; }
4398else
4399 { echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6; }
4401fi
4402
4403
4404 if test -z "$BUILD_CC"; then
4405 # Extract the first word of "gcc", so it can be a program name with args.
4406set dummy gcc; ac_word=$2
4407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_BUILD_CC="gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426done
4427done
4428IFS=$as_save_IFS
4429
4430fi
4431fi
4432BUILD_CC=$ac_cv_prog_BUILD_CC
4433if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435echo "${ECHO_T}$BUILD_CC" >&6; }
4436else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6; }
4439fi
4440
4441
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "cc", so it can be a program name with args.
4444set dummy cc; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452else
4453 ac_prog_rejected=no
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4462 ac_prog_rejected=yes
4463 continue
4464 fi
4465 ac_cv_prog_BUILD_CC="cc"
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469done
4470done
4471IFS=$as_save_IFS
4472
4473if test $ac_prog_rejected = yes; then
4474 # We found a bogon in the path, so make sure we never use it.
4475 set dummy $ac_cv_prog_BUILD_CC
4476 shift
4477 if test $# != 0; then
4478 # We chose a different compiler from the bogus one.
4479 # However, it has the same basename, so the bogon will be chosen
4480 # first if we set BUILD_CC to just the basename; use the full file name.
4481 shift
4482 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4483 fi
4484fi
4485fi
4486fi
4487BUILD_CC=$ac_cv_prog_BUILD_CC
4488if test -n "$BUILD_CC"; then
4489 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4490echo "${ECHO_T}$BUILD_CC" >&6; }
4491else
4492 { echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6; }
4494fi
4495
4496
4497 fi
4498 fi
4499 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4500echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4501 { (exit 1); exit 1; }; }
4502 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4503 rm -f conftest*
4504 echo 'int main () { return 0; }' > conftest.$ac_ext
4505 ac_cv_build_exeext=
4506 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4507 (eval $ac_build_link) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; then
4511 for file in conftest.*; do
4512 case $file in
4513 *.c | *.o | *.obj) ;;
4514 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4515 esac
4516 done
4517 else
4518 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4519echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4520 { (exit 1); exit 1; }; }
4521 fi
4522 rm -f conftest*
4523 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4524fi
4525fi
4526
4527BUILD_EXEEXT=""
4528test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4529{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4530echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4531ac_build_exeext=$BUILD_EXEEXT
4532
4533else
4534 LLVM_CROSS_COMPILING=0
4535
4536fi
4537
4538if test -d "CVS" -o -d "${srcdir}/CVS"; then
4539 cvsbuild="yes"
4540 optimize="no"
4541 CVSBUILD=CVSBUILD=1
4542
4543else
4544 cvsbuild="no"
4545 optimize="yes"
4546fi
4547
4548
4549# Check whether --enable-optimized was given.
4550if test "${enable_optimized+set}" = set; then
4551 enableval=$enable_optimized;
4552else
4553 enableval=$optimize
4554fi
4555
4556if test ${enableval} = "no" ; then
4557 ENABLE_OPTIMIZED=
4558
4559else
4560 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4561
4562fi
4563
4564# Check whether --enable-assertions was given.
4565if test "${enable_assertions+set}" = set; then
4566 enableval=$enable_assertions;
4567else
4568 enableval="yes"
4569fi
4570
4571if test ${enableval} = "yes" ; then
4572 DISABLE_ASSERTIONS=
4573
4574else
4575 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4576
4577fi
4578
Reid Spencer8b2e1412006-11-17 03:32:33 +00004579# Check whether --enable-debug-runtime was given.
4580if test "${enable_debug_runtime+set}" = set; then
4581 enableval=$enable_debug_runtime;
4582else
4583 enableval=no
4584fi
4585
4586if test ${enableval} = "no" ; then
4587 DEBUG_RUNTIME=
4588
4589else
4590 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4591
4592fi
4593
Reid Spencera773bd52006-08-04 18:18:08 +00004594# Check whether --enable-jit was given.
4595if test "${enable_jit+set}" = set; then
4596 enableval=$enable_jit;
4597else
4598 enableval=default
4599fi
4600
4601if test ${enableval} = "no"
4602then
4603 JIT=
4604
4605else
4606 case "$llvm_cv_target_arch" in
4607 x86) TARGET_HAS_JIT=1
4608 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004609 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004610 ;;
4611 PowerPC) TARGET_HAS_JIT=1
4612 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004613 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004614 ;;
4615 Alpha) TARGET_HAS_JIT=1
4616 ;;
4617 IA64) TARGET_HAS_JIT=0
4618 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004619 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004621 *) TARGET_HAS_JIT=0
4622 ;;
4623 esac
4624fi
4625
4626# Check whether --enable-doxygen was given.
4627if test "${enable_doxygen+set}" = set; then
4628 enableval=$enable_doxygen;
4629else
4630 enableval=default
4631fi
4632
4633case "$enableval" in
4634 yes) ENABLE_DOXYGEN=1
4635 ;;
4636 no) ENABLE_DOXYGEN=0
4637 ;;
4638 default) ENABLE_DOXYGEN=0
4639 ;;
4640 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4641echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4642 { (exit 1); exit 1; }; } ;;
4643esac
4644
4645# Check whether --enable-threads was given.
4646if test "${enable_threads+set}" = set; then
4647 enableval=$enable_threads;
4648else
Reid Spencer65c5d752006-11-05 17:08:18 +00004649 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004650fi
4651
4652case "$enableval" in
4653 yes) ENABLE_THREADS=1
4654 ;;
4655 no) ENABLE_THREADS=0
4656 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004657 default) ENABLE_THREADS=1
4658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4660echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4661 { (exit 1); exit 1; }; } ;;
4662esac
4663
4664cat >>confdefs.h <<_ACEOF
4665#define ENABLE_THREADS $ENABLE_THREADS
4666_ACEOF
4667
4668
Reid Spencer89b0d992006-12-16 22:07:52 +00004669# Check whether --enable-pic was given.
4670if test "${enable_pic+set}" = set; then
4671 enableval=$enable_pic;
4672else
4673 enableval=default
4674fi
4675
4676case "$enableval" in
4677 yes) ENABLE_PIC=1
4678 ;;
4679 no) ENABLE_PIC=0
4680 ;;
4681 default) ENABLE_PIC=0
4682 ;;
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4684echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4686esac
4687
4688cat >>confdefs.h <<_ACEOF
4689#define ENABLE_PIC $ENABLE_PIC
4690_ACEOF
4691
4692
Reid Spencera773bd52006-08-04 18:18:08 +00004693TARGETS_TO_BUILD=""
4694# Check whether --enable-targets was given.
4695if test "${enable_targets+set}" = set; then
4696 enableval=$enable_targets;
4697else
4698 enableval=all
4699fi
4700
4701case "$enableval" in
4702 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4703 host-only)
4704 case "$llvm_cv_target_arch" in
4705 x86) TARGETS_TO_BUILD="X86" ;;
4706 x86_64) TARGETS_TO_BUILD="X86" ;;
4707 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4708 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4709 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4710 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004711 ARM) TARGETS_TO_BUILD="ARM" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004712 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4713echo "$as_me: error: Can not set target to build" >&2;}
4714 { (exit 1); exit 1; }; } ;;
4715 esac
4716 ;;
4717 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4718 case "$a_target" in
4719 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4720 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4722 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4723 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4724 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004725 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004726 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4727echo "$as_me: error: Unrecognized target $a_target" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4729 esac
4730 done
4731 ;;
4732esac
4733TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4734TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4735
4736
Reid Spencer65c5d752006-11-05 17:08:18 +00004737# Check whether --enable-cbe-printf-a was given.
4738if test "${enable_cbe_printf_a+set}" = set; then
4739 enableval=$enable_cbe_printf_a;
4740else
4741 enableval=default
4742fi
4743
4744case "$enableval" in
4745 yes) ENABLE_CBE_PRINTF_A=1
4746 ;;
4747 no) ENABLE_CBE_PRINTF_A=0
4748 ;;
4749 default) ENABLE_CBE_PRINTF_A=1
4750 ;;
4751 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4752echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4753 { (exit 1); exit 1; }; } ;;
4754esac
4755
4756cat >>confdefs.h <<_ACEOF
4757#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4758_ACEOF
4759
4760
Reid Spencera773bd52006-08-04 18:18:08 +00004761
4762# Check whether --with-llvmgccdir was given.
4763if test "${with_llvmgccdir+set}" = set; then
4764 withval=$with_llvmgccdir;
4765else
4766 withval=default
4767fi
4768
4769case "$withval" in
4770 default) WITH_LLVMGCCDIR=default ;;
4771 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4772 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4773echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4774 { (exit 1); exit 1; }; } ;;
4775esac
4776
4777
4778# Check whether --with-extra-options was given.
4779if test "${with_extra_options+set}" = set; then
4780 withval=$with_extra_options;
4781else
4782 withval=default
4783fi
4784
4785case "$withval" in
4786 default) EXTRA_OPTIONS= ;;
4787 *) EXTRA_OPTIONS=$withval ;;
4788esac
4789EXTRA_OPTIONS=$EXTRA_OPTIONS
4790
4791
4792
4793ac_ext=c
4794ac_cpp='$CPP $CPPFLAGS'
4795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4799echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4800# On Suns, sometimes $CPP names a directory.
4801if test -n "$CPP" && test -d "$CPP"; then
4802 CPP=
4803fi
4804if test -z "$CPP"; then
4805 if test "${ac_cv_prog_CPP+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807else
4808 # Double quotes because CPP needs to be expanded
4809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4810 do
4811 ac_preproc_ok=false
4812for ac_c_preproc_warn_flag in '' yes
4813do
4814 # Use a header file that comes with gcc, so configuring glibc
4815 # with a fresh cross-compiler works.
4816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4817 # <limits.h> exists even on freestanding compilers.
4818 # On the NeXT, cc -E runs the code through the compiler's parser,
4819 # not just through cpp. "Syntax error" is here to catch this case.
4820 cat >conftest.$ac_ext <<_ACEOF
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
4826#ifdef __STDC__
4827# include <limits.h>
4828#else
4829# include <assert.h>
4830#endif
4831 Syntax error
4832_ACEOF
4833if { (ac_try="$ac_cpp conftest.$ac_ext"
4834case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837esac
4838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_c_preproc_warn_flag
4848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4849 else
4850 ac_cpp_err=
4851 fi
4852else
4853 ac_cpp_err=yes
4854fi
4855if test -z "$ac_cpp_err"; then
4856 :
4857else
4858 echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 # Broken: fails on valid input.
4862continue
4863fi
4864
4865rm -f conftest.err conftest.$ac_ext
4866
4867 # OK, works on sane cases. Now check whether nonexistent headers
4868 # can be detected and how.
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include <ac_nonexistent.h>
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893 else
4894 ac_cpp_err=
4895 fi
4896else
4897 ac_cpp_err=yes
4898fi
4899if test -z "$ac_cpp_err"; then
4900 # Broken: success on invalid input.
4901continue
4902else
4903 echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 # Passes both tests.
4907ac_preproc_ok=:
4908break
4909fi
4910
4911rm -f conftest.err conftest.$ac_ext
4912
4913done
4914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4915rm -f conftest.err conftest.$ac_ext
4916if $ac_preproc_ok; then
4917 break
4918fi
4919
4920 done
4921 ac_cv_prog_CPP=$CPP
4922
4923fi
4924 CPP=$ac_cv_prog_CPP
4925else
4926 ac_cv_prog_CPP=$CPP
4927fi
4928{ echo "$as_me:$LINENO: result: $CPP" >&5
4929echo "${ECHO_T}$CPP" >&6; }
4930ac_preproc_ok=false
4931for ac_c_preproc_warn_flag in '' yes
4932do
4933 # Use a header file that comes with gcc, so configuring glibc
4934 # with a fresh cross-compiler works.
4935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 # <limits.h> exists even on freestanding compilers.
4937 # On the NeXT, cc -E runs the code through the compiler's parser,
4938 # not just through cpp. "Syntax error" is here to catch this case.
4939 cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h. */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h. */
4945#ifdef __STDC__
4946# include <limits.h>
4947#else
4948# include <assert.h>
4949#endif
4950 Syntax error
4951_ACEOF
4952if { (ac_try="$ac_cpp conftest.$ac_ext"
4953case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956esac
4957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_c_preproc_warn_flag
4967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4968 else
4969 ac_cpp_err=
4970 fi
4971else
4972 ac_cpp_err=yes
4973fi
4974if test -z "$ac_cpp_err"; then
4975 :
4976else
4977 echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 # Broken: fails on valid input.
4981continue
4982fi
4983
4984rm -f conftest.err conftest.$ac_ext
4985
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include <ac_nonexistent.h>
4995_ACEOF
4996if { (ac_try="$ac_cpp conftest.$ac_ext"
4997case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000esac
5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null; then
5009 if test -s conftest.err; then
5010 ac_cpp_err=$ac_c_preproc_warn_flag
5011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5012 else
5013 ac_cpp_err=
5014 fi
5015else
5016 ac_cpp_err=yes
5017fi
5018if test -z "$ac_cpp_err"; then
5019 # Broken: success on invalid input.
5020continue
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 # Passes both tests.
5026ac_preproc_ok=:
5027break
5028fi
5029
5030rm -f conftest.err conftest.$ac_ext
5031
5032done
5033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034rm -f conftest.err conftest.$ac_ext
5035if $ac_preproc_ok; then
5036 :
5037else
5038 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5039See \`config.log' for more details." >&5
5040echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5041See \`config.log' for more details." >&2;}
5042 { (exit 1); exit 1; }; }
5043fi
5044
5045ac_ext=c
5046ac_cpp='$CPP $CPPFLAGS'
5047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056if test -n "$ac_tool_prefix"; then
5057 for ac_prog in gcc
5058 do
5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063if test "${ac_cv_prog_CC+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 if test -n "$CC"; then
5067 ac_cv_prog_CC="$CC" # Let the user override the test.
5068else
5069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080done
5081done
5082IFS=$as_save_IFS
5083
5084fi
5085fi
5086CC=$ac_cv_prog_CC
5087if test -n "$CC"; then
5088 { echo "$as_me:$LINENO: result: $CC" >&5
5089echo "${ECHO_T}$CC" >&6; }
5090else
5091 { echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6; }
5093fi
5094
5095
5096 test -n "$CC" && break
5097 done
5098fi
5099if test -z "$CC"; then
5100 ac_ct_CC=$CC
5101 for ac_prog in gcc
5102do
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104set dummy $ac_prog; ac_word=$2
5105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 if test -n "$ac_ct_CC"; then
5111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_ac_ct_CC="$ac_prog"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125done
5126IFS=$as_save_IFS
5127
5128fi
5129fi
5130ac_ct_CC=$ac_cv_prog_ac_ct_CC
5131if test -n "$ac_ct_CC"; then
5132 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5133echo "${ECHO_T}$ac_ct_CC" >&6; }
5134else
5135 { echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6; }
5137fi
5138
5139
5140 test -n "$ac_ct_CC" && break
5141done
5142
5143 if test "x$ac_ct_CC" = x; then
5144 CC=""
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147yes:)
5148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5149whose name does not start with the host triplet. If you think this
5150configuration is useful to you, please write to autoconf@gnu.org." >&5
5151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5152whose name does not start with the host triplet. If you think this
5153configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5154ac_tool_warned=yes ;;
5155esac
5156 CC=$ac_ct_CC
5157 fi
5158fi
5159
5160
5161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5162See \`config.log' for more details." >&5
5163echo "$as_me: error: no acceptable C compiler found in \$PATH
5164See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5166
5167# Provide some information about the compiler.
5168echo "$as_me:$LINENO: checking for C compiler version" >&5
5169ac_compiler=`set X $ac_compile; echo $2`
5170{ (ac_try="$ac_compiler --version >&5"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compiler --version >&5") 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }
5180{ (ac_try="$ac_compiler -v >&5"
5181case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184esac
5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compiler -v >&5") 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }
5190{ (ac_try="$ac_compiler -V >&5"
5191case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_compiler -V >&5") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }
5200
5201{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5202echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5203if test "${ac_cv_c_compiler_gnu+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h. */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h. */
5212
5213int
5214main ()
5215{
5216#ifndef __GNUC__
5217 choke me
5218#endif
5219
5220 ;
5221 return 0;
5222}
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (ac_try="$ac_compile"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5239 { (case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242esac
5243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_try") 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252esac
5253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_compiler_gnu=yes
5259else
5260 echo "$as_me: failed program was:" >&5
5261sed 's/^/| /' conftest.$ac_ext >&5
5262
5263 ac_compiler_gnu=no
5264fi
5265
5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267ac_cv_c_compiler_gnu=$ac_compiler_gnu
5268
5269fi
5270{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5271echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5272GCC=`test $ac_compiler_gnu = yes && echo yes`
5273ac_test_CFLAGS=${CFLAGS+set}
5274ac_save_CFLAGS=$CFLAGS
5275{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5276echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5277if test "${ac_cv_prog_cc_g+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279else
5280 ac_save_c_werror_flag=$ac_c_werror_flag
5281 ac_c_werror_flag=yes
5282 ac_cv_prog_cc_g=no
5283 CFLAGS="-g"
5284 cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
5290
5291int
5292main ()
5293{
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5314 { (case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_try") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327esac
5328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_try") 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5333 ac_cv_prog_cc_g=yes
5334else
5335 echo "$as_me: failed program was:" >&5
5336sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 CFLAGS=""
5339 cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h. */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h. */
5345
5346int
5347main ()
5348{
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (ac_try="$ac_compile"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5369 { (case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_try") 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest.$ac_objext'
5379 { (case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_try") 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 :
5389else
5390 echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_c_werror_flag=$ac_save_c_werror_flag
5394 CFLAGS="-g"
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401
5402int
5403main ()
5404{
5405
5406 ;
5407 return 0;
5408}
5409_ACEOF
5410rm -f conftest.$ac_objext
5411if { (ac_try="$ac_compile"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5425 { (case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_try") 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438esac
5439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_try") 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_prog_cc_g=yes
5445else
5446 echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
5449
5450fi
5451
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453fi
5454
5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456fi
5457
5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_c_werror_flag=$ac_save_c_werror_flag
5460fi
5461{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5462echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5463if test "$ac_test_CFLAGS" = set; then
5464 CFLAGS=$ac_save_CFLAGS
5465elif test $ac_cv_prog_cc_g = yes; then
5466 if test "$GCC" = yes; then
5467 CFLAGS="-g -O2"
5468 else
5469 CFLAGS="-g"
5470 fi
5471else
5472 if test "$GCC" = yes; then
5473 CFLAGS="-O2"
5474 else
5475 CFLAGS=
5476 fi
5477fi
5478{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5479echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5480if test "${ac_cv_prog_cc_c89+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483 ac_cv_prog_cc_c89=no
5484ac_save_CC=$CC
5485cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h. */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h. */
5491#include <stdarg.h>
5492#include <stdio.h>
5493#include <sys/types.h>
5494#include <sys/stat.h>
5495/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5496struct buf { int x; };
5497FILE * (*rcsopen) (struct buf *, struct stat *, int);
5498static char *e (p, i)
5499 char **p;
5500 int i;
5501{
5502 return p[i];
5503}
5504static char *f (char * (*g) (char **, int), char **p, ...)
5505{
5506 char *s;
5507 va_list v;
5508 va_start (v,p);
5509 s = g (p, va_arg (v,int));
5510 va_end (v);
5511 return s;
5512}
5513
5514/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5515 function prototypes and stuff, but not '\xHH' hex character constants.
5516 These don't provoke an error unfortunately, instead are silently treated
5517 as 'x'. The following induces an error, until -std is added to get
5518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5519 array size at least. It's necessary to write '\x00'==0 to get something
5520 that's true only with -std. */
5521int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5522
5523/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5524 inside strings and character constants. */
5525#define FOO(x) 'x'
5526int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5527
5528int test (int i, double x);
5529struct s1 {int (*f) (int a);};
5530struct s2 {int (*f) (double a);};
5531int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5532int argc;
5533char **argv;
5534int
5535main ()
5536{
5537return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5538 ;
5539 return 0;
5540}
5541_ACEOF
5542for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5543 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5544do
5545 CC="$ac_save_CC $ac_arg"
5546 rm -f conftest.$ac_objext
5547if { (ac_try="$ac_compile"
5548case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } &&
5560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5561 { (case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_try") 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_try") 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_prog_cc_c89=$ac_arg
5581else
5582 echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585
5586fi
5587
5588rm -f core conftest.err conftest.$ac_objext
5589 test "x$ac_cv_prog_cc_c89" != "xno" && break
5590done
5591rm -f conftest.$ac_ext
5592CC=$ac_save_CC
5593
5594fi
5595# AC_CACHE_VAL
5596case "x$ac_cv_prog_cc_c89" in
5597 x)
5598 { echo "$as_me:$LINENO: result: none needed" >&5
5599echo "${ECHO_T}none needed" >&6; } ;;
5600 xno)
5601 { echo "$as_me:$LINENO: result: unsupported" >&5
5602echo "${ECHO_T}unsupported" >&6; } ;;
5603 *)
5604 CC="$CC $ac_cv_prog_cc_c89"
5605 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5606echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5607esac
5608
5609
5610ac_ext=c
5611ac_cpp='$CPP $CPPFLAGS'
5612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615
5616ac_ext=cpp
5617ac_cpp='$CXXCPP $CPPFLAGS'
5618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5621if test -z "$CXX"; then
5622 if test -n "$CCC"; then
5623 CXX=$CCC
5624 else
5625 if test -n "$ac_tool_prefix"; then
5626 for ac_prog in g++
5627 do
5628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5632if test "${ac_cv_prog_CXX+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635 if test -n "$CXX"; then
5636 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649done
5650done
5651IFS=$as_save_IFS
5652
5653fi
5654fi
5655CXX=$ac_cv_prog_CXX
5656if test -n "$CXX"; then
5657 { echo "$as_me:$LINENO: result: $CXX" >&5
5658echo "${ECHO_T}$CXX" >&6; }
5659else
5660 { echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6; }
5662fi
5663
5664
5665 test -n "$CXX" && break
5666 done
5667fi
5668if test -z "$CXX"; then
5669 ac_ct_CXX=$CXX
5670 for ac_prog in g++
5671do
5672 # Extract the first word of "$ac_prog", so it can be a program name with args.
5673set dummy $ac_prog; ac_word=$2
5674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5676if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 if test -n "$ac_ct_CXX"; then
5680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_ac_ct_CXX="$ac_prog"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5700if test -n "$ac_ct_CXX"; then
5701 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5702echo "${ECHO_T}$ac_ct_CXX" >&6; }
5703else
5704 { echo "$as_me:$LINENO: result: no" >&5
5705echo "${ECHO_T}no" >&6; }
5706fi
5707
5708
5709 test -n "$ac_ct_CXX" && break
5710done
5711
5712 if test "x$ac_ct_CXX" = x; then
5713 CXX="g++"
5714 else
5715 case $cross_compiling:$ac_tool_warned in
5716yes:)
5717{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5718whose name does not start with the host triplet. If you think this
5719configuration is useful to you, please write to autoconf@gnu.org." >&5
5720echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5721whose name does not start with the host triplet. If you think this
5722configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5723ac_tool_warned=yes ;;
5724esac
5725 CXX=$ac_ct_CXX
5726 fi
5727fi
5728
5729 fi
5730fi
5731# Provide some information about the compiler.
5732echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5733ac_compiler=`set X $ac_compile; echo $2`
5734{ (ac_try="$ac_compiler --version >&5"
5735case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738esac
5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compiler --version >&5") 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }
5744{ (ac_try="$ac_compiler -v >&5"
5745case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler -v >&5") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5754{ (ac_try="$ac_compiler -V >&5"
5755case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758esac
5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compiler -V >&5") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }
5764
5765{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5766echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5767if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770 cat >conftest.$ac_ext <<_ACEOF
5771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
5776
5777int
5778main ()
5779{
5780#ifndef __GNUC__
5781 choke me
5782#endif
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
5788rm -f conftest.$ac_objext
5789if { (ac_try="$ac_compile"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest.$ac_objext'
5813 { (case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_compiler_gnu=yes
5823else
5824 echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 ac_compiler_gnu=no
5828fi
5829
5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5832
5833fi
5834{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5835echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5836GXX=`test $ac_compiler_gnu = yes && echo yes`
5837ac_test_CXXFLAGS=${CXXFLAGS+set}
5838ac_save_CXXFLAGS=$CXXFLAGS
5839{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5840echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5841if test "${ac_cv_prog_cxx_g+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5845 ac_cxx_werror_flag=yes
5846 ac_cv_prog_cxx_g=no
5847 CXXFLAGS="-g"
5848 cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854
5855int
5856main ()
5857{
5858
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_try") 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_prog_cxx_g=yes
5898else
5899 echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 CXXFLAGS=""
5903 cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
5909
5910int
5911main ()
5912{
5913
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext
5919if { (ac_try="$ac_compile"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compile") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5933 { (case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936esac
5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_try") 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 :
5953else
5954 echo "$as_me: failed program was:" >&5
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5958 CXXFLAGS="-g"
5959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965
5966int
5967main ()
5968{
5969
5970 ;
5971 return 0;
5972}
5973_ACEOF
5974rm -f conftest.$ac_objext
5975if { (ac_try="$ac_compile"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002esac
6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_try") 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_prog_cxx_g=yes
6009else
6010 echo "$as_me: failed program was:" >&5
6011sed 's/^/| /' conftest.$ac_ext >&5
6012
6013
6014fi
6015
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020fi
6021
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6024fi
6025{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6026echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6027if test "$ac_test_CXXFLAGS" = set; then
6028 CXXFLAGS=$ac_save_CXXFLAGS
6029elif test $ac_cv_prog_cxx_g = yes; then
6030 if test "$GXX" = yes; then
6031 CXXFLAGS="-g -O2"
6032 else
6033 CXXFLAGS="-g"
6034 fi
6035else
6036 if test "$GXX" = yes; then
6037 CXXFLAGS="-O2"
6038 else
6039 CXXFLAGS=
6040 fi
6041fi
6042ac_ext=c
6043ac_cpp='$CPP $CPPFLAGS'
6044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047
6048{ echo "$as_me:$LINENO: checking " >&5
6049echo $ECHO_N "checking ... $ECHO_C" >&6; }
6050if test "${ac_cv_has_flex+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052else
6053 for ac_prog in flex lex
6054do
6055 # Extract the first word of "$ac_prog", so it can be a program name with args.
6056set dummy $ac_prog; ac_word=$2
6057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059if test "${ac_cv_prog_LEX+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062 if test -n "$LEX"; then
6063 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_LEX="$ac_prog"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076done
6077done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082LEX=$ac_cv_prog_LEX
6083if test -n "$LEX"; then
6084 { echo "$as_me:$LINENO: result: $LEX" >&5
6085echo "${ECHO_T}$LEX" >&6; }
6086else
6087 { echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6; }
6089fi
6090
6091
6092 test -n "$LEX" && break
6093done
6094test -n "$LEX" || LEX=":"
6095
6096if test -z "$LEXLIB"
6097then
6098 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6099echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6100if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103 ac_check_lib_save_LIBS=$LIBS
6104LIBS="-lfl $LIBS"
6105cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h. */
6111
6112/* Override any GCC internal prototype to avoid an error.
6113 Use char because int might match the return type of a GCC
6114 builtin and then its argument prototype would still apply. */
6115#ifdef __cplusplus
6116extern "C"
6117#endif
6118char yywrap ();
6119int
6120main ()
6121{
6122return yywrap ();
6123 ;
6124 return 0;
6125}
6126_ACEOF
6127rm -f conftest.$ac_objext conftest$ac_exeext
6128if { (ac_try="$ac_link"
6129case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132esac
6133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_link") 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155esac
6156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_lib_fl_yywrap=yes
6162else
6163 echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ac_cv_lib_fl_yywrap=no
6167fi
6168
6169rm -f core conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6171LIBS=$ac_check_lib_save_LIBS
6172fi
6173{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6174echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6175if test $ac_cv_lib_fl_yywrap = yes; then
6176 LEXLIB="-lfl"
6177else
6178 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6179echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6180if test "${ac_cv_lib_l_yywrap+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183 ac_check_lib_save_LIBS=$LIBS
6184LIBS="-ll $LIBS"
6185cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191
6192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6195#ifdef __cplusplus
6196extern "C"
6197#endif
6198char yywrap ();
6199int
6200main ()
6201{
6202return yywrap ();
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (ac_try="$ac_link"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_l_yywrap=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_lib_l_yywrap=no
6247fi
6248
6249rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251LIBS=$ac_check_lib_save_LIBS
6252fi
6253{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6254echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6255if test $ac_cv_lib_l_yywrap = yes; then
6256 LEXLIB="-ll"
6257fi
6258
6259fi
6260
6261fi
6262
6263if test "x$LEX" != "x:"; then
6264 { echo "$as_me:$LINENO: checking lex output file root" >&5
6265echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6266if test "${ac_cv_prog_lex_root+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 # The minimal lex program is just a single line: %%. But some broken lexes
6270# (Solaris, I think it was) want two %% lines, so accommodate them.
6271cat >conftest.l <<_ACEOF
6272%%
6273%%
6274_ACEOF
6275{ (ac_try="$LEX conftest.l"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$LEX conftest.l") 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }
6285if test -f lex.yy.c; then
6286 ac_cv_prog_lex_root=lex.yy
6287elif test -f lexyy.c; then
6288 ac_cv_prog_lex_root=lexyy
6289else
6290 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6291echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6292 { (exit 1); exit 1; }; }
6293fi
6294fi
6295{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6296echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6297rm -f conftest.l
6298LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6299
6300{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6301echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6302if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305 # POSIX says lex can declare yytext either as a pointer or an array; the
6306# default is implementation-dependent. Figure out which it is, since
6307# not all implementations provide the %pointer and %array declarations.
6308ac_cv_prog_lex_yytext_pointer=no
6309echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6310ac_save_LIBS=$LIBS
6311LIBS="$LIBS $LEXLIB"
6312cat >conftest.$ac_ext <<_ACEOF
6313`cat $LEX_OUTPUT_ROOT.c`
6314_ACEOF
6315rm -f conftest.$ac_objext conftest$ac_exeext
6316if { (ac_try="$ac_link"
6317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
6321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_link") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_prog_lex_yytext_pointer=yes
6350else
6351 echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354
6355fi
6356
6357rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6359LIBS=$ac_save_LIBS
6360rm -f "${LEX_OUTPUT_ROOT}.c"
6361
6362fi
6363{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6364echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6365if test $ac_cv_prog_lex_yytext_pointer = yes; then
6366
6367cat >>confdefs.h <<\_ACEOF
6368#define YYTEXT_POINTER 1
6369_ACEOF
6370
6371fi
6372
6373fi
6374
6375fi
6376{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6377echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6378if test "$LEX" != "flex"; then
6379 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6380echo "$as_me: error: flex not found but required" >&2;}
6381 { (exit 1); exit 1; }; }
6382else
6383 FLEX=flex
6384
6385fi
6386
6387{ echo "$as_me:$LINENO: checking " >&5
6388echo $ECHO_N "checking ... $ECHO_C" >&6; }
6389if test "${llvm_cv_has_bison+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392 for ac_prog in 'bison -y' byacc
6393do
6394 # Extract the first word of "$ac_prog", so it can be a program name with args.
6395set dummy $ac_prog; ac_word=$2
6396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398if test "${ac_cv_prog_YACC+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 if test -n "$YACC"; then
6402 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_YACC="$ac_prog"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416done
6417IFS=$as_save_IFS
6418
6419fi
6420fi
6421YACC=$ac_cv_prog_YACC
6422if test -n "$YACC"; then
6423 { echo "$as_me:$LINENO: result: $YACC" >&5
6424echo "${ECHO_T}$YACC" >&6; }
6425else
6426 { echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6; }
6428fi
6429
6430
6431 test -n "$YACC" && break
6432done
6433test -n "$YACC" || YACC="yacc"
6434
6435fi
6436{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6437echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6438if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006439
6440 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6441echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006442else
6443 BISON=bison
6444
6445fi
6446
6447{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6448echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6449if test "${lt_cv_path_NM+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452 if test -n "$NM"; then
6453 # Let the user override the test.
6454 lt_cv_path_NM="$NM"
6455else
6456 lt_nm_to_check="${ac_tool_prefix}nm"
6457 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6458 lt_nm_to_check="$lt_nm_to_check nm"
6459 fi
6460 for lt_tmp_nm in $lt_nm_to_check; do
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6463 IFS="$lt_save_ifs"
6464 test -z "$ac_dir" && ac_dir=.
6465 tmp_nm="$ac_dir/$lt_tmp_nm"
6466 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6467 # Check to see if the nm accepts a BSD-compat flag.
6468 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6469 # nm: unknown option "B" ignored
6470 # Tru64's nm complains that /dev/null is an invalid object file
6471 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6472 */dev/null* | *'Invalid file or object type'*)
6473 lt_cv_path_NM="$tmp_nm -B"
6474 break
6475 ;;
6476 *)
6477 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6478 */dev/null*)
6479 lt_cv_path_NM="$tmp_nm -p"
6480 break
6481 ;;
6482 *)
6483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6484 continue # so that we can try to find one that supports BSD flags
6485 ;;
6486 esac
6487 ;;
6488 esac
6489 fi
6490 done
6491 IFS="$lt_save_ifs"
6492 done
6493 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6494fi
6495fi
6496{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6497echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6498NM="$lt_cv_path_NM"
6499
6500
6501
6502{ echo "$as_me:$LINENO: checking for GNU make" >&5
6503echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6504if test "${llvm_cv_gnu_make_command+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507 llvm_cv_gnu_make_command=''
6508 for a in "$MAKE" make gmake gnumake ; do
6509 if test -z "$a" ; then continue ; fi ;
6510 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6511 then
6512 llvm_cv_gnu_make_command=$a ;
6513 break;
6514 fi
6515 done
6516fi
6517{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6518echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6519 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6520 ifGNUmake='' ;
6521 else
6522 ifGNUmake='#' ;
6523 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6524echo "${ECHO_T}\"Not found\"" >&6; };
6525 fi
6526
6527
6528{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6529echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6530LN_S=$as_ln_s
6531if test "$LN_S" = "ln -s"; then
6532 { echo "$as_me:$LINENO: result: yes" >&5
6533echo "${ECHO_T}yes" >&6; }
6534else
6535 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6536echo "${ECHO_T}no, using $LN_S" >&6; }
6537fi
6538
6539# Extract the first word of "cmp", so it can be a program name with args.
6540set dummy cmp; ac_word=$2
6541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543if test "${ac_cv_path_CMP+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 case $CMP in
6547 [\\/]* | ?:[\\/]*)
6548 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6549 ;;
6550 *)
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562done
6563done
6564IFS=$as_save_IFS
6565
6566 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6567 ;;
6568esac
6569fi
6570CMP=$ac_cv_path_CMP
6571if test -n "$CMP"; then
6572 { echo "$as_me:$LINENO: result: $CMP" >&5
6573echo "${ECHO_T}$CMP" >&6; }
6574else
6575 { echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6; }
6577fi
6578
6579
6580# Extract the first word of "cp", so it can be a program name with args.
6581set dummy cp; ac_word=$2
6582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584if test "${ac_cv_path_CP+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 case $CP in
6588 [\\/]* | ?:[\\/]*)
6589 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6590 ;;
6591 *)
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604done
6605IFS=$as_save_IFS
6606
6607 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6608 ;;
6609esac
6610fi
6611CP=$ac_cv_path_CP
6612if test -n "$CP"; then
6613 { echo "$as_me:$LINENO: result: $CP" >&5
6614echo "${ECHO_T}$CP" >&6; }
6615else
6616 { echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6; }
6618fi
6619
6620
6621# Extract the first word of "date", so it can be a program name with args.
6622set dummy date; ac_word=$2
6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_path_DATE+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 case $DATE in
6629 [\\/]* | ?:[\\/]*)
6630 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6631 ;;
6632 *)
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644done
6645done
6646IFS=$as_save_IFS
6647
6648 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6649 ;;
6650esac
6651fi
6652DATE=$ac_cv_path_DATE
6653if test -n "$DATE"; then
6654 { echo "$as_me:$LINENO: result: $DATE" >&5
6655echo "${ECHO_T}$DATE" >&6; }
6656else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6; }
6659fi
6660
6661
6662# Extract the first word of "find", so it can be a program name with args.
6663set dummy find; ac_word=$2
6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666if test "${ac_cv_path_FIND+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669 case $FIND in
6670 [\\/]* | ?:[\\/]*)
6671 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6672 ;;
6673 *)
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687IFS=$as_save_IFS
6688
6689 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6690 ;;
6691esac
6692fi
6693FIND=$ac_cv_path_FIND
6694if test -n "$FIND"; then
6695 { echo "$as_me:$LINENO: result: $FIND" >&5
6696echo "${ECHO_T}$FIND" >&6; }
6697else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6; }
6700fi
6701
6702
6703# Extract the first word of "grep", so it can be a program name with args.
6704set dummy grep; ac_word=$2
6705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707if test "${ac_cv_path_GREP+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710 case $GREP in
6711 [\\/]* | ?:[\\/]*)
6712 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6713 ;;
6714 *)
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726done
6727done
6728IFS=$as_save_IFS
6729
6730 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6731 ;;
6732esac
6733fi
6734GREP=$ac_cv_path_GREP
6735if test -n "$GREP"; then
6736 { echo "$as_me:$LINENO: result: $GREP" >&5
6737echo "${ECHO_T}$GREP" >&6; }
6738else
6739 { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
6741fi
6742
6743
6744# Extract the first word of "mkdir", so it can be a program name with args.
6745set dummy mkdir; ac_word=$2
6746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748if test "${ac_cv_path_MKDIR+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750else
6751 case $MKDIR in
6752 [\\/]* | ?:[\\/]*)
6753 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6754 ;;
6755 *)
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
6768done
6769IFS=$as_save_IFS
6770
6771 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6772 ;;
6773esac
6774fi
6775MKDIR=$ac_cv_path_MKDIR
6776if test -n "$MKDIR"; then
6777 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6778echo "${ECHO_T}$MKDIR" >&6; }
6779else
6780 { echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6; }
6782fi
6783
6784
6785# Extract the first word of "mv", so it can be a program name with args.
6786set dummy mv; ac_word=$2
6787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789if test "${ac_cv_path_MV+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792 case $MV in
6793 [\\/]* | ?:[\\/]*)
6794 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6795 ;;
6796 *)
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809done
6810IFS=$as_save_IFS
6811
6812 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6813 ;;
6814esac
6815fi
6816MV=$ac_cv_path_MV
6817if test -n "$MV"; then
6818 { echo "$as_me:$LINENO: result: $MV" >&5
6819echo "${ECHO_T}$MV" >&6; }
6820else
6821 { echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6; }
6823fi
6824
6825
6826if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6828set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_prog_RANLIB+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834 if test -n "$RANLIB"; then
6835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854RANLIB=$ac_cv_prog_RANLIB
6855if test -n "$RANLIB"; then
6856 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6857echo "${ECHO_T}$RANLIB" >&6; }
6858else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
6861fi
6862
6863
6864fi
6865if test -z "$ac_cv_prog_RANLIB"; then
6866 ac_ct_RANLIB=$RANLIB
6867 # Extract the first word of "ranlib", so it can be a program name with args.
6868set dummy ranlib; ac_word=$2
6869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873else
6874 if test -n "$ac_ct_RANLIB"; then
6875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6876else
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_ac_ct_RANLIB="ranlib"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890IFS=$as_save_IFS
6891
6892fi
6893fi
6894ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6895if test -n "$ac_ct_RANLIB"; then
6896 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6897echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6898else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
6901fi
6902
6903 if test "x$ac_ct_RANLIB" = x; then
6904 RANLIB=":"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907yes:)
6908{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6909whose name does not start with the host triplet. If you think this
6910configuration is useful to you, please write to autoconf@gnu.org." >&5
6911echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6912whose name does not start with the host triplet. If you think this
6913configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6914ac_tool_warned=yes ;;
6915esac
6916 RANLIB=$ac_ct_RANLIB
6917 fi
6918else
6919 RANLIB="$ac_cv_prog_RANLIB"
6920fi
6921
6922# Extract the first word of "rm", so it can be a program name with args.
6923set dummy rm; ac_word=$2
6924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926if test "${ac_cv_path_RM+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929 case $RM in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945done
6946done
6947IFS=$as_save_IFS
6948
6949 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6950 ;;
6951esac
6952fi
6953RM=$ac_cv_path_RM
6954if test -n "$RM"; then
6955 { echo "$as_me:$LINENO: result: $RM" >&5
6956echo "${ECHO_T}$RM" >&6; }
6957else
6958 { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
6960fi
6961
6962
6963# Extract the first word of "sed", so it can be a program name with args.
6964set dummy sed; ac_word=$2
6965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967if test "${ac_cv_path_SED+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970 case $SED in
6971 [\\/]* | ?:[\\/]*)
6972 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6973 ;;
6974 *)
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987done
6988IFS=$as_save_IFS
6989
6990 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6991 ;;
6992esac
6993fi
6994SED=$ac_cv_path_SED
6995if test -n "$SED"; then
6996 { echo "$as_me:$LINENO: result: $SED" >&5
6997echo "${ECHO_T}$SED" >&6; }
6998else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6; }
7001fi
7002
7003
7004# Extract the first word of "tar", so it can be a program name with args.
7005set dummy tar; ac_word=$2
7006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008if test "${ac_cv_path_TAR+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011 case $TAR in
7012 [\\/]* | ?:[\\/]*)
7013 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7014 ;;
7015 *)
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028done
7029IFS=$as_save_IFS
7030
7031 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7032 ;;
7033esac
7034fi
7035TAR=$ac_cv_path_TAR
7036if test -n "$TAR"; then
7037 { echo "$as_me:$LINENO: result: $TAR" >&5
7038echo "${ECHO_T}$TAR" >&6; }
7039else
7040 { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
7042fi
7043
7044
7045# Extract the first word of "pwd", so it can be a program name with args.
7046set dummy pwd; ac_word=$2
7047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049if test "${ac_cv_path_BINPWD+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 case $BINPWD in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070IFS=$as_save_IFS
7071
7072 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7073 ;;
7074esac
7075fi
7076BINPWD=$ac_cv_path_BINPWD
7077if test -n "$BINPWD"; then
7078 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7079echo "${ECHO_T}$BINPWD" >&6; }
7080else
7081 { echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6; }
7083fi
7084
7085
7086
7087# Extract the first word of "Graphviz", so it can be a program name with args.
7088set dummy Graphviz; ac_word=$2
7089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7091if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094 case $GRAPHVIZ in
7095 [\\/]* | ?:[\\/]*)
7096 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7097 ;;
7098 *)
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110done
7111done
7112IFS=$as_save_IFS
7113
7114 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7115 ;;
7116esac
7117fi
7118GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7119if test -n "$GRAPHVIZ"; then
7120 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7121echo "${ECHO_T}$GRAPHVIZ" >&6; }
7122else
7123 { echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6; }
7125fi
7126
7127
7128if test "$GRAPHVIZ" != "echo Graphviz" ; then
7129
7130cat >>confdefs.h <<\_ACEOF
7131#define HAVE_GRAPHVIZ 1
7132_ACEOF
7133
Jeff Cohen28783c32007-01-12 18:22:38 +00007134 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007135 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7136 fi
7137
7138cat >>confdefs.h <<_ACEOF
7139#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7140_ACEOF
7141
7142fi
7143# Extract the first word of "dot", so it can be a program name with args.
7144set dummy dot; ac_word=$2
7145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147if test "${ac_cv_path_DOT+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150 case $DOT in
7151 [\\/]* | ?:[\\/]*)
7152 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7153 ;;
7154 *)
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168IFS=$as_save_IFS
7169
7170 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7171 ;;
7172esac
7173fi
7174DOT=$ac_cv_path_DOT
7175if test -n "$DOT"; then
7176 { echo "$as_me:$LINENO: result: $DOT" >&5
7177echo "${ECHO_T}$DOT" >&6; }
7178else
7179 { echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6; }
7181fi
7182
7183
7184if test "$DOT" != "echo dot" ; then
7185
7186cat >>confdefs.h <<\_ACEOF
7187#define HAVE_DOT 1
7188_ACEOF
7189
Jeff Cohen28783c32007-01-12 18:22:38 +00007190 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007191 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7192 fi
7193
7194cat >>confdefs.h <<_ACEOF
7195#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7196_ACEOF
7197
7198fi
7199for ac_prog in gv gsview32
7200do
7201 # Extract the first word of "$ac_prog", so it can be a program name with args.
7202set dummy $ac_prog; ac_word=$2
7203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205if test "${ac_cv_path_GV+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 case $GV in
7209 [\\/]* | ?:[\\/]*)
7210 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7211 ;;
7212 *)
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224done
7225done
7226IFS=$as_save_IFS
7227
7228 ;;
7229esac
7230fi
7231GV=$ac_cv_path_GV
7232if test -n "$GV"; then
7233 { echo "$as_me:$LINENO: result: $GV" >&5
7234echo "${ECHO_T}$GV" >&6; }
7235else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6; }
7238fi
7239
7240
7241 test -n "$GV" && break
7242done
7243test -n "$GV" || GV="echo gv"
7244
7245if test "$GV" != "echo gv" ; then
7246
7247cat >>confdefs.h <<\_ACEOF
7248#define HAVE_GV 1
7249_ACEOF
7250
Jeff Cohen28783c32007-01-12 18:22:38 +00007251 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007252 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253 fi
7254
7255cat >>confdefs.h <<_ACEOF
7256#define LLVM_PATH_GV "$GV${EXEEXT}"
7257_ACEOF
7258
7259fi
7260# Extract the first word of "dotty", so it can be a program name with args.
7261set dummy dotty; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_DOTTY+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 case $DOTTY in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7288 ;;
7289esac
7290fi
7291DOTTY=$ac_cv_path_DOTTY
7292if test -n "$DOTTY"; then
7293 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7294echo "${ECHO_T}$DOTTY" >&6; }
7295else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
7298fi
7299
7300
7301if test "$DOTTY" != "echo dotty" ; then
7302
7303cat >>confdefs.h <<\_ACEOF
7304#define HAVE_DOTTY 1
7305_ACEOF
7306
Jeff Cohen28783c32007-01-12 18:22:38 +00007307 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007308 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7309 fi
7310
7311cat >>confdefs.h <<_ACEOF
7312#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7313_ACEOF
7314
7315fi
7316
7317
7318# Extract the first word of "perl", so it can be a program name with args.
7319set dummy perl; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_PERL+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $PERL in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7346 ;;
7347esac
7348fi
7349PERL=$ac_cv_path_PERL
7350if test -n "$PERL"; then
7351 { echo "$as_me:$LINENO: result: $PERL" >&5
7352echo "${ECHO_T}$PERL" >&6; }
7353else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
7359if test "$PERL" != "none"; then
7360 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7361echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7362 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7363 { echo "$as_me:$LINENO: result: yes" >&5
7364echo "${ECHO_T}yes" >&6; }
7365 else
7366 PERL=none
7367 { echo "$as_me:$LINENO: result: not found" >&5
7368echo "${ECHO_T}not found" >&6; }
7369 fi
7370fi
7371
7372
7373if test x"$PERL" = xnone; then
7374 HAVE_PERL=0
7375
7376else
7377 HAVE_PERL=1
7378
7379fi
7380
7381# Find a good install program. We prefer a C program (faster),
7382# so one script is as good as another. But avoid the broken or
7383# incompatible versions:
7384# SysV /etc/install, /usr/sbin/install
7385# SunOS /usr/etc/install
7386# IRIX /sbin/install
7387# AIX /bin/install
7388# AmigaOS /C/install, which installs bootblocks on floppy discs
7389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7390# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7392# OS/2's system install, which has a completely different semantic
7393# ./install, which can be erroneously created by make from ./install.sh.
7394{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7395echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7396if test -z "$INSTALL"; then
7397if test "${ac_cv_path_install+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 # Account for people who put trailing slashes in PATH elements.
7406case $as_dir/ in
7407 ./ | .// | /cC/* | \
7408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7410 /usr/ucb/* ) ;;
7411 *)
7412 # OSF1 and SCO ODT 3.0 have their own names for install.
7413 # Don't use installbsd from OSF since it installs stuff as root
7414 # by default.
7415 for ac_prog in ginstall scoinst install; do
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7418 if test $ac_prog = install &&
7419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7420 # AIX install. It has an incompatible calling convention.
7421 :
7422 elif test $ac_prog = install &&
7423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7424 # program-specific install script used by HP pwplus--don't use.
7425 :
7426 else
7427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7428 break 3
7429 fi
7430 fi
7431 done
7432 done
7433 ;;
7434esac
7435done
7436IFS=$as_save_IFS
7437
7438
7439fi
7440 if test "${ac_cv_path_install+set}" = set; then
7441 INSTALL=$ac_cv_path_install
7442 else
7443 # As a last resort, use the slow shell script. Don't cache a
7444 # value for INSTALL within a source directory, because that will
7445 # break other packages using the cache if that directory is
7446 # removed, or if the value is a relative name.
7447 INSTALL=$ac_install_sh
7448 fi
7449fi
7450{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7451echo "${ECHO_T}$INSTALL" >&6; }
7452
7453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7454# It thinks the first close brace ends the variable substitution.
7455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7456
7457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7458
7459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7460
7461
7462# Extract the first word of "bzip2", so it can be a program name with args.
7463set dummy bzip2; ac_word=$2
7464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466if test "${ac_cv_path_BZIP2+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469 case $BZIP2 in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7472 ;;
7473 *)
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487IFS=$as_save_IFS
7488
7489 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7490 ;;
7491esac
7492fi
7493BZIP2=$ac_cv_path_BZIP2
7494if test -n "$BZIP2"; then
7495 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7496echo "${ECHO_T}$BZIP2" >&6; }
7497else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6; }
7500fi
7501
7502
7503# Extract the first word of "doxygen", so it can be a program name with args.
7504set dummy doxygen; ac_word=$2
7505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507if test "${ac_cv_path_DOXYGEN+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 case $DOXYGEN in
7511 [\\/]* | ?:[\\/]*)
7512 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7513 ;;
7514 *)
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528IFS=$as_save_IFS
7529
7530 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7531 ;;
7532esac
7533fi
7534DOXYGEN=$ac_cv_path_DOXYGEN
7535if test -n "$DOXYGEN"; then
7536 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7537echo "${ECHO_T}$DOXYGEN" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
Reid Spencera773bd52006-08-04 18:18:08 +00007544# Extract the first word of "groff", so it can be a program name with args.
7545set dummy groff; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_GROFF+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $GROFF in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
7571 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7572 ;;
7573esac
7574fi
7575GROFF=$ac_cv_path_GROFF
7576if test -n "$GROFF"; then
7577 { echo "$as_me:$LINENO: result: $GROFF" >&5
7578echo "${ECHO_T}$GROFF" >&6; }
7579else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
7582fi
7583
7584
7585# Extract the first word of "gzip", so it can be a program name with args.
7586set dummy gzip; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_GZIP+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 case $GZIP in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7613 ;;
7614esac
7615fi
7616GZIP=$ac_cv_path_GZIP
7617if test -n "$GZIP"; then
7618 { echo "$as_me:$LINENO: result: $GZIP" >&5
7619echo "${ECHO_T}$GZIP" >&6; }
7620else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625
7626# Extract the first word of "pod2html", so it can be a program name with args.
7627set dummy pod2html; ac_word=$2
7628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630if test "${ac_cv_path_POD2HTML+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633 case $POD2HTML in
7634 [\\/]* | ?:[\\/]*)
7635 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7636 ;;
7637 *)
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649done
7650done
7651IFS=$as_save_IFS
7652
7653 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7654 ;;
7655esac
7656fi
7657POD2HTML=$ac_cv_path_POD2HTML
7658if test -n "$POD2HTML"; then
7659 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7660echo "${ECHO_T}$POD2HTML" >&6; }
7661else
7662 { echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6; }
7664fi
7665
7666
7667# Extract the first word of "pod2man", so it can be a program name with args.
7668set dummy pod2man; ac_word=$2
7669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671if test "${ac_cv_path_POD2MAN+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674 case $POD2MAN in
7675 [\\/]* | ?:[\\/]*)
7676 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690done
7691done
7692IFS=$as_save_IFS
7693
7694 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7695 ;;
7696esac
7697fi
7698POD2MAN=$ac_cv_path_POD2MAN
7699if test -n "$POD2MAN"; then
7700 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7701echo "${ECHO_T}$POD2MAN" >&6; }
7702else
7703 { echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6; }
7705fi
7706
7707
7708# Extract the first word of "runtest", so it can be a program name with args.
7709set dummy runtest; ac_word=$2
7710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7712if test "${ac_cv_path_RUNTEST+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715 case $RUNTEST in
7716 [\\/]* | ?:[\\/]*)
7717 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7718 ;;
7719 *)
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731done
7732done
7733IFS=$as_save_IFS
7734
7735 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7736 ;;
7737esac
7738fi
7739RUNTEST=$ac_cv_path_RUNTEST
7740if test -n "$RUNTEST"; then
7741 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7742echo "${ECHO_T}$RUNTEST" >&6; }
7743else
7744 { echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6; }
7746fi
7747
7748
7749
7750no_itcl=true
7751{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7752echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7753
7754# Check whether --with-tclinclude was given.
7755if test "${with_tclinclude+set}" = set; then
7756 withval=$with_tclinclude; with_tclinclude=${withval}
7757else
7758 with_tclinclude=''
7759fi
7760
7761if test "${ac_cv_path_tclsh+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764
7765if test x"${with_tclinclude}" != x ; then
7766 if test -f ${with_tclinclude}/tclsh ; then
7767 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7768 elif test -f ${with_tclinclude}/src/tclsh ; then
7769 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7770 else
7771 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7772echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7773 { (exit 1); exit 1; }; }
7774 fi
7775fi
7776
7777if test x"${ac_cv_path_tclsh}" = x ; then
7778 { echo "$as_me:$LINENO: result: none" >&5
7779echo "${ECHO_T}none" >&6; }
7780 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
7781do
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783set dummy $ac_prog; ac_word=$2
7784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786if test "${ac_cv_path_TCLSH+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 case $TCLSH in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807IFS=$as_save_IFS
7808
7809 ;;
7810esac
7811fi
7812TCLSH=$ac_cv_path_TCLSH
7813if test -n "$TCLSH"; then
7814 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7815echo "${ECHO_T}$TCLSH" >&6; }
7816else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
7819fi
7820
7821
7822 test -n "$TCLSH" && break
7823done
7824
7825 if test x"${TCLSH}" = x ; then
7826 ac_cv_path_tclsh='';
7827 else
7828 ac_cv_path_tclsh="${TCLSH}";
7829 fi
7830else
7831 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7832echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7833 TCLSH="${ac_cv_path_tclsh}"
7834
7835fi
7836
7837fi
7838
7839# Extract the first word of "zip", so it can be a program name with args.
7840set dummy zip; ac_word=$2
7841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843if test "${ac_cv_path_ZIP+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846 case $ZIP in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7849 ;;
7850 *)
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862done
7863done
7864IFS=$as_save_IFS
7865
7866 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7867 ;;
7868esac
7869fi
7870ZIP=$ac_cv_path_ZIP
7871if test -n "$ZIP"; then
7872 { echo "$as_me:$LINENO: result: $ZIP" >&5
7873echo "${ECHO_T}$ZIP" >&6; }
7874else
7875 { echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6; }
7877fi
7878
7879
7880
7881{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7882echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7883if test "${llvm_cv_link_use_r+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886 ac_ext=c
7887ac_cpp='$CPP $CPPFLAGS'
7888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892 oldcflags="$CFLAGS"
7893 CFLAGS="$CFLAGS -Wl,-R."
7894 cat >conftest.$ac_ext <<_ACEOF
7895/* confdefs.h. */
7896_ACEOF
7897cat confdefs.h >>conftest.$ac_ext
7898cat >>conftest.$ac_ext <<_ACEOF
7899/* end confdefs.h. */
7900
7901int
7902main ()
7903{
7904int main() { return 0; }
7905 ;
7906 return 0;
7907}
7908_ACEOF
7909rm -f conftest.$ac_objext conftest$ac_exeext
7910if { (ac_try="$ac_link"
7911case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
7915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_link") 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7924 { (case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_try") 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
7938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_try") 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7943 llvm_cv_link_use_r=yes
7944else
7945 echo "$as_me: failed program was:" >&5
7946sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 llvm_cv_link_use_r=no
7949fi
7950
7951rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 CFLAGS="$oldcflags"
7954 ac_ext=c
7955ac_cpp='$CPP $CPPFLAGS'
7956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
7960
7961fi
7962{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7963echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7964if test "$llvm_cv_link_use_r" = yes ; then
7965
7966cat >>confdefs.h <<\_ACEOF
7967#define HAVE_LINK_R 1
7968_ACEOF
7969
7970 fi
7971
7972
7973
7974
7975{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7976echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7977if test "${ac_cv_c_const+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979else
7980 cat >conftest.$ac_ext <<_ACEOF
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h. */
7986
7987int
7988main ()
7989{
7990/* FIXME: Include the comments suggested by Paul. */
7991#ifndef __cplusplus
7992 /* Ultrix mips cc rejects this. */
7993 typedef int charset[2];
7994 const charset x;
7995 /* SunOS 4.1.1 cc rejects this. */
7996 char const *const *ccp;
7997 char **p;
7998 /* NEC SVR4.0.2 mips cc rejects this. */
7999 struct point {int x, y;};
8000 static struct point const zero = {0,0};
8001 /* AIX XL C 1.02.0.0 rejects this.
8002 It does not let you subtract one const X* pointer from another in
8003 an arm of an if-expression whose if-part is not a constant
8004 expression */
8005 const char *g = "string";
8006 ccp = &g + (g ? g-g : 0);
8007 /* HPUX 7.0 cc rejects these. */
8008 ++ccp;
8009 p = (char**) ccp;
8010 ccp = (char const *const *) p;
8011 { /* SCO 3.2v4 cc rejects this. */
8012 char *t;
8013 char const *s = 0 ? (char *) 0 : (char const *) 0;
8014
8015 *t++ = 0;
8016 if (s) return 0;
8017 }
8018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8019 int x[] = {25, 17};
8020 const int *foo = &x[0];
8021 ++foo;
8022 }
8023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8024 typedef const int *iptr;
8025 iptr p = 0;
8026 ++p;
8027 }
8028 { /* AIX XL C 1.02.0.0 rejects this saying
8029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8030 struct s { int j; const int *ap[3]; };
8031 struct s *b; b->j = 5;
8032 }
8033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8034 const int foo = 10;
8035 if (!foo) return 0;
8036 }
8037 return !x[0] && !zero.x;
8038#endif
8039
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext
8045if { (ac_try="$ac_compile"
8046case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_try") 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_c_const=yes
8079else
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_cv_c_const=no
8084fi
8085
8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087fi
8088{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8089echo "${ECHO_T}$ac_cv_c_const" >&6; }
8090if test $ac_cv_c_const = no; then
8091
8092cat >>confdefs.h <<\_ACEOF
8093#define const
8094_ACEOF
8095
8096fi
8097
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008098
8099
8100
8101
8102
8103ac_header_dirent=no
8104for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8105 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008106{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8107echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008109 echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111 cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h. */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h. */
8117#include <sys/types.h>
8118#include <$ac_hdr>
8119
8120int
8121main ()
8122{
8123if ((DIR *) 0)
8124return 0;
8125 ;
8126 return 0;
8127}
8128_ACEOF
8129rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008130if { (ac_try="$ac_compile"
8131case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8144 { (case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147esac
8148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008154 { (case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 eval "$as_ac_Header=yes"
8164else
8165 echo "$as_me: failed program was:" >&5
8166sed 's/^/| /' conftest.$ac_ext >&5
8167
Reid Spencera773bd52006-08-04 18:18:08 +00008168 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008169fi
Reid Spencera773bd52006-08-04 18:18:08 +00008170
8171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172fi
Reid Spencera773bd52006-08-04 18:18:08 +00008173ac_res=`eval echo '${'$as_ac_Header'}'`
8174 { echo "$as_me:$LINENO: result: $ac_res" >&5
8175echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176if test `eval echo '${'$as_ac_Header'}'` = yes; then
8177 cat >>confdefs.h <<_ACEOF
8178#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8179_ACEOF
8180
8181ac_header_dirent=$ac_hdr; break
8182fi
8183
8184done
8185# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8186if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008187 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8188echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008189if test "${ac_cv_search_opendir+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008193cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199
Reid Spencera773bd52006-08-04 18:18:08 +00008200/* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008203#ifdef __cplusplus
8204extern "C"
8205#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008206char opendir ();
8207int
8208main ()
8209{
Reid Spencera773bd52006-08-04 18:18:08 +00008210return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008211 ;
8212 return 0;
8213}
8214_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008215for ac_lib in '' dir; do
8216 if test -z "$ac_lib"; then
8217 ac_res="none required"
8218 else
8219 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008221 fi
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223if { (ac_try="$ac_link"
8224case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8237 { (case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8240esac
8241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008247 { (case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008256 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008257else
8258 echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
8260
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008261
8262fi
8263
Reid Spencera773bd52006-08-04 18:18:08 +00008264rm -f core conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext
8266 if test "${ac_cv_search_opendir+set}" = set; then
8267 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008268fi
John Criswell7a73b802003-06-30 21:59:07 +00008269done
Reid Spencera773bd52006-08-04 18:18:08 +00008270if test "${ac_cv_search_opendir+set}" = set; then
8271 :
8272else
8273 ac_cv_search_opendir=no
8274fi
8275rm conftest.$ac_ext
8276LIBS=$ac_func_search_save_LIBS
8277fi
8278{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8279echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8280ac_res=$ac_cv_search_opendir
8281if test "$ac_res" != no; then
8282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008283
Reid Spencera773bd52006-08-04 18:18:08 +00008284fi
8285
8286else
8287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8288echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8289if test "${ac_cv_search_opendir+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 ac_func_search_save_LIBS=$LIBS
8293cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
8299
8300/* Override any GCC internal prototype to avoid an error.
8301 Use char because int might match the return type of a GCC
8302 builtin and then its argument prototype would still apply. */
8303#ifdef __cplusplus
8304extern "C"
8305#endif
8306char opendir ();
8307int
8308main ()
8309{
8310return opendir ();
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315for ac_lib in '' x; do
8316 if test -z "$ac_lib"; then
8317 ac_res="none required"
8318 else
8319 ac_res=-l$ac_lib
8320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8321 fi
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (ac_try="$ac_link"
8324case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_link") 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8337 { (case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_try") 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350esac
8351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_search_opendir=$ac_res
8357else
8358 echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
8361
8362fi
8363
8364rm -f core conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext
8366 if test "${ac_cv_search_opendir+set}" = set; then
8367 break
8368fi
8369done
8370if test "${ac_cv_search_opendir+set}" = set; then
8371 :
8372else
8373 ac_cv_search_opendir=no
8374fi
8375rm conftest.$ac_ext
8376LIBS=$ac_func_search_save_LIBS
8377fi
8378{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8379echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8380ac_res=$ac_cv_search_opendir
8381if test "$ac_res" != no; then
8382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8383
8384fi
8385
8386fi
John Criswell7a73b802003-06-30 21:59:07 +00008387
8388
8389for ac_header in dlfcn.h
8390do
8391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008396 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008397fi
Reid Spencera773bd52006-08-04 18:18:08 +00008398ac_res=`eval echo '${'$as_ac_Header'}'`
8399 { echo "$as_me:$LINENO: result: $ac_res" >&5
8400echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008401else
Brian Gaeke0a621332004-09-08 20:38:05 +00008402 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008405cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008411$ac_includes_default
8412#include <$ac_header>
8413_ACEOF
8414rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008415if { (ac_try="$ac_compile"
8416case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008448 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008449else
8450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008451sed 's/^/| /' conftest.$ac_ext >&5
8452
Reid Spencera773bd52006-08-04 18:18:08 +00008453 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008454fi
Reid Spencera773bd52006-08-04 18:18:08 +00008455
8456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008459
8460# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008463cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469#include <$ac_header>
8470_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008471if { (ac_try="$ac_cpp conftest.$ac_ext"
8472case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } >/dev/null; then
8484 if test -s conftest.err; then
8485 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008487 else
8488 ac_cpp_err=
8489 fi
8490else
8491 ac_cpp_err=yes
8492fi
8493if test -z "$ac_cpp_err"; then
8494 ac_header_preproc=yes
8495else
8496 echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499 ac_header_preproc=no
8500fi
Reid Spencera773bd52006-08-04 18:18:08 +00008501
Brian Gaeke0a621332004-09-08 20:38:05 +00008502rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8504echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008505
8506# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8508 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8513 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008514 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008515 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008528 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008529## ----------------------------------- ##
8530## Report this to llvmbugs@cs.uiuc.edu ##
8531## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008532_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008533 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008534 ;;
8535esac
Reid Spencera773bd52006-08-04 18:18:08 +00008536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008541 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008542fi
Reid Spencera773bd52006-08-04 18:18:08 +00008543ac_res=`eval echo '${'$as_ac_Header'}'`
8544 { echo "$as_me:$LINENO: result: $ac_res" >&5
8545echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008546
8547fi
John Criswell7a73b802003-06-30 21:59:07 +00008548if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551_ACEOF
8552
8553fi
8554
8555done
8556
Reid Spencera773bd52006-08-04 18:18:08 +00008557# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008558if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008559 enableval=$enable_ltdl_install;
8560fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008561
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008562
8563
8564
8565if test x"${enable_ltdl_install-no}" != xno; then
8566 INSTALL_LTDL_TRUE=
8567 INSTALL_LTDL_FALSE='#'
8568else
8569 INSTALL_LTDL_TRUE='#'
8570 INSTALL_LTDL_FALSE=
8571fi
8572
8573
8574
8575if test x"${enable_ltdl_convenience-no}" != xno; then
8576 CONVENIENCE_LTDL_TRUE=
8577 CONVENIENCE_LTDL_FALSE='#'
8578else
8579 CONVENIENCE_LTDL_TRUE='#'
8580 CONVENIENCE_LTDL_FALSE=
8581fi
8582
8583
Reid Spencera773bd52006-08-04 18:18:08 +00008584{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8585echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008586library_names_spec=
8587libname_spec='lib$name'
8588soname_spec=
8589shrext_cmds=".so"
8590postinstall_cmds=
8591postuninstall_cmds=
8592finish_cmds=
8593finish_eval=
8594shlibpath_var=
8595shlibpath_overrides_runpath=unknown
8596version_type=none
8597dynamic_linker="$host_os ld.so"
8598sys_lib_dlsearch_path_spec="/lib /usr/lib"
8599if test "$GCC" = yes; then
8600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8601 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8602 # if the path contains ";" then we assume it to be the separator
8603 # otherwise default to the standard path separator (i.e. ":") - it is
8604 # assumed that no part of a normal pathname contains ";" but that should
8605 # okay in the real world where ";" in dirpaths is itself problematic.
8606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8607 else
8608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8609 fi
8610else
8611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8612fi
8613need_lib_prefix=unknown
8614hardcode_into_libs=no
8615
8616# when you set need_version to no, make sure it does not cause -set_version
8617# flags to be left without arguments
8618need_version=unknown
8619
8620case $host_os in
8621aix3*)
8622 version_type=linux
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8624 shlibpath_var=LIBPATH
8625
8626 # AIX 3 has no versioning support, so we append a major version to the name.
8627 soname_spec='${libname}${release}${shared_ext}$major'
8628 ;;
8629
8630aix4* | aix5*)
8631 version_type=linux
8632 need_lib_prefix=no
8633 need_version=no
8634 hardcode_into_libs=yes
8635 if test "$host_cpu" = ia64; then
8636 # AIX 5 supports IA64
8637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8638 shlibpath_var=LD_LIBRARY_PATH
8639 else
8640 # With GCC up to 2.95.x, collect2 would create an import file
8641 # for dependence libraries. The import file would start with
8642 # the line `#! .'. This would cause the generated library to
8643 # depend on `.', always an invalid library. This was fixed in
8644 # development snapshots of GCC prior to 3.0.
8645 case $host_os in
8646 aix4 | aix4.[01] | aix4.[01].*)
8647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8648 echo ' yes '
8649 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8650 :
8651 else
8652 can_build_shared=no
8653 fi
8654 ;;
8655 esac
8656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8657 # soname into executable. Probably we can add versioning support to
8658 # collect2, so additional links can be useful in future.
8659 if test "$aix_use_runtimelinking" = yes; then
8660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8661 # instead of lib<name>.a to let people know that these are not
8662 # typical AIX shared libraries.
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 else
8665 # We preserve .a as extension for shared libraries through AIX4.2
8666 # and later when we are not doing run time linking.
8667 library_names_spec='${libname}${release}.a $libname.a'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 fi
8670 shlibpath_var=LIBPATH
8671 fi
8672 ;;
8673
8674amigaos*)
8675 library_names_spec='$libname.ixlibrary $libname.a'
8676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8677 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'
8678 ;;
8679
8680beos*)
8681 library_names_spec='${libname}${shared_ext}'
8682 dynamic_linker="$host_os ld.so"
8683 shlibpath_var=LIBRARY_PATH
8684 ;;
8685
8686bsdi[45]*)
8687 version_type=linux
8688 need_version=no
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8695 # the default ld.so.conf also contains /usr/contrib/lib and
8696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8697 # libtool to hard-code these into programs
8698 ;;
8699
8700cygwin* | mingw* | pw32*)
8701 version_type=windows
8702 shrext_cmds=".dll"
8703 need_version=no
8704 need_lib_prefix=no
8705
8706 case $GCC,$host_os in
8707 yes,cygwin* | yes,mingw* | yes,pw32*)
8708 library_names_spec='$libname.dll.a'
8709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8710 postinstall_cmds='base_file=`basename \${file}`~
8711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8712 dldir=$destdir/`dirname \$dlpath`~
8713 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008714 $install_prog $dir/$dlname \$dldir/$dlname~
8715 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8717 dlpath=$dir/\$dldll~
8718 $rm \$dlpath'
8719 shlibpath_overrides_runpath=yes
8720
8721 case $host_os in
8722 cygwin*)
8723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8726 ;;
8727 mingw*)
8728 # MinGW DLLs use traditional 'lib' prefix
8729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8732 # It is most probably a Windows format PATH printed by
8733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8734 # path with ; separators, and with drive letters. We can handle the
8735 # drive letters (cygwin fileutils understands them), so leave them,
8736 # especially as we might pass files found there to a mingw objdump,
8737 # which wouldn't understand a cygwinified path. Ahh.
8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8739 else
8740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8741 fi
8742 ;;
8743 pw32*)
8744 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008745 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 +00008746 ;;
8747 esac
8748 ;;
8749
8750 *)
8751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8752 ;;
8753 esac
8754 dynamic_linker='Win32 ld.exe'
8755 # FIXME: first we should search . and the directory the executable is in
8756 shlibpath_var=PATH
8757 ;;
8758
8759darwin* | rhapsody*)
8760 dynamic_linker="$host_os dyld"
8761 version_type=darwin
8762 need_lib_prefix=no
8763 need_version=no
8764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8765 soname_spec='${libname}${release}${major}$shared_ext'
8766 shlibpath_overrides_runpath=yes
8767 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008769 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8770 if test "$GCC" = yes; then
8771 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"`
8772 else
8773 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8774 fi
8775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8776 ;;
8777
8778dgux*)
8779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 ;;
8786
8787freebsd1*)
8788 dynamic_linker=no
8789 ;;
8790
8791kfreebsd*-gnu)
8792 version_type=linux
8793 need_lib_prefix=no
8794 need_version=no
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8796 soname_spec='${libname}${release}${shared_ext}$major'
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=no
8799 hardcode_into_libs=yes
8800 dynamic_linker='GNU ld.so'
8801 ;;
8802
Reid Spencera773bd52006-08-04 18:18:08 +00008803freebsd* | dragonfly*)
8804 # DragonFly does not have aout. When/if they implement a new
8805 # versioning mechanism, adjust this.
8806 if test -x /usr/bin/objformat; then
8807 objformat=`/usr/bin/objformat`
8808 else
8809 case $host_os in
8810 freebsd[123]*) objformat=aout ;;
8811 *) objformat=elf ;;
8812 esac
8813 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008814 version_type=freebsd-$objformat
8815 case $version_type in
8816 freebsd-elf*)
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8818 need_version=no
8819 need_lib_prefix=no
8820 ;;
8821 freebsd-*)
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8823 need_version=yes
8824 ;;
8825 esac
8826 shlibpath_var=LD_LIBRARY_PATH
8827 case $host_os in
8828 freebsd2*)
8829 shlibpath_overrides_runpath=yes
8830 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008831 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 shlibpath_overrides_runpath=yes
8833 hardcode_into_libs=yes
8834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008835 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8836 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008837 shlibpath_overrides_runpath=no
8838 hardcode_into_libs=yes
8839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008840 freebsd*) # from 4.6 on
8841 shlibpath_overrides_runpath=yes
8842 hardcode_into_libs=yes
8843 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844 esac
8845 ;;
8846
8847gnu*)
8848 version_type=linux
8849 need_lib_prefix=no
8850 need_version=no
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 hardcode_into_libs=yes
8855 ;;
8856
8857hpux9* | hpux10* | hpux11*)
8858 # Give a soname corresponding to the major version so that dld.sl refuses to
8859 # link against other versions.
8860 version_type=sunos
8861 need_lib_prefix=no
8862 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008863 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008864 ia64*)
8865 shrext_cmds='.so'
8866 hardcode_into_libs=yes
8867 dynamic_linker="$host_os dld.so"
8868 shlibpath_var=LD_LIBRARY_PATH
8869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 if test "X$HPUX_IA64_MODE" = X32; then
8873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8874 else
8875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8876 fi
8877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8878 ;;
8879 hppa*64*)
8880 shrext_cmds='.sl'
8881 hardcode_into_libs=yes
8882 dynamic_linker="$host_os dld.sl"
8883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8889 ;;
8890 *)
8891 shrext_cmds='.sl'
8892 dynamic_linker="$host_os dld.sl"
8893 shlibpath_var=SHLIB_PATH
8894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 ;;
8898 esac
8899 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8900 postinstall_cmds='chmod 555 $lib'
8901 ;;
8902
Reid Spencera773bd52006-08-04 18:18:08 +00008903interix3*)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 shlibpath_overrides_runpath=no
8912 hardcode_into_libs=yes
8913 ;;
8914
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008915irix5* | irix6* | nonstopux*)
8916 case $host_os in
8917 nonstopux*) version_type=nonstopux ;;
8918 *)
8919 if test "$lt_cv_prog_gnu_ld" = yes; then
8920 version_type=linux
8921 else
8922 version_type=irix
8923 fi ;;
8924 esac
8925 need_lib_prefix=no
8926 need_version=no
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8929 case $host_os in
8930 irix5* | nonstopux*)
8931 libsuff= shlibsuff=
8932 ;;
8933 *)
8934 case $LD in # libtool.m4 will add one of these switches to LD
8935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8936 libsuff= shlibsuff= libmagic=32-bit;;
8937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8938 libsuff=32 shlibsuff=N32 libmagic=N32;;
8939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8941 *) libsuff= shlibsuff= libmagic=never-match;;
8942 esac
8943 ;;
8944 esac
8945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8946 shlibpath_overrides_runpath=no
8947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8949 hardcode_into_libs=yes
8950 ;;
8951
8952# No shared lib support for Linux oldld, aout, or coff.
8953linux*oldld* | linux*aout* | linux*coff*)
8954 dynamic_linker=no
8955 ;;
8956
8957# This must be Linux ELF.
8958linux*)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=no
8967 # This implies no fast_install, which is unacceptable.
8968 # Some rework will be needed to allow for fast_install
8969 # before this can be enabled.
8970 hardcode_into_libs=yes
8971
8972 # Append ld.so.conf contents to the search path
8973 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008974 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 +00008975 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8976 fi
8977
8978 # We used to test for /lib/ld.so.1 and disable shared libraries on
8979 # powerpc, because MkLinux only supported shared libraries with the
8980 # GNU dynamic linker. Since this was broken with cross compilers,
8981 # most powerpc-linux boxes support dynamic linking these days and
8982 # people can always --disable-shared, the test was removed, and we
8983 # assume the GNU/Linux dynamic linker is in use.
8984 dynamic_linker='GNU/Linux ld.so'
8985 ;;
8986
8987knetbsd*-gnu)
8988 version_type=linux
8989 need_lib_prefix=no
8990 need_version=no
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 hardcode_into_libs=yes
8996 dynamic_linker='GNU ld.so'
8997 ;;
8998
8999netbsd*)
9000 version_type=sunos
9001 need_lib_prefix=no
9002 need_version=no
9003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9006 dynamic_linker='NetBSD (a.out) ld.so'
9007 else
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 dynamic_linker='NetBSD ld.elf_so'
9011 fi
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9015 ;;
9016
9017newsos6)
9018 version_type=linux
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes
9022 ;;
9023
9024nto-qnx*)
9025 version_type=linux
9026 need_lib_prefix=no
9027 need_version=no
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 ;;
9033
9034openbsd*)
9035 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009036 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009037 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9039 case $host_os in
9040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9041 *) need_version=no ;;
9042 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9047 case $host_os in
9048 openbsd2.[89] | openbsd2.[89].*)
9049 shlibpath_overrides_runpath=no
9050 ;;
9051 *)
9052 shlibpath_overrides_runpath=yes
9053 ;;
9054 esac
9055 else
9056 shlibpath_overrides_runpath=yes
9057 fi
9058 ;;
9059
9060os2*)
9061 libname_spec='$name'
9062 shrext_cmds=".dll"
9063 need_lib_prefix=no
9064 library_names_spec='$libname${shared_ext} $libname.a'
9065 dynamic_linker='OS/2 ld.exe'
9066 shlibpath_var=LIBPATH
9067 ;;
9068
9069osf3* | osf4* | osf5*)
9070 version_type=osf
9071 need_lib_prefix=no
9072 need_version=no
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9078 ;;
9079
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009080solaris*)
9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9089 # ldd complains unless libraries are executable
9090 postinstall_cmds='chmod +x $lib'
9091 ;;
9092
9093sunos4*)
9094 version_type=sunos
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=yes
9099 if test "$with_gnu_ld" = yes; then
9100 need_lib_prefix=no
9101 fi
9102 need_version=yes
9103 ;;
9104
Reid Spencera773bd52006-08-04 18:18:08 +00009105sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009106 version_type=linux
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 case $host_vendor in
9111 sni)
9112 shlibpath_overrides_runpath=no
9113 need_lib_prefix=no
9114 export_dynamic_flag_spec='${wl}-Blargedynsym'
9115 runpath_var=LD_RUN_PATH
9116 ;;
9117 siemens)
9118 need_lib_prefix=no
9119 ;;
9120 motorola)
9121 need_lib_prefix=no
9122 need_version=no
9123 shlibpath_overrides_runpath=no
9124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9125 ;;
9126 esac
9127 ;;
9128
9129sysv4*MP*)
9130 if test -d /usr/nec ;then
9131 version_type=linux
9132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9133 soname_spec='$libname${shared_ext}.$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 fi
9136 ;;
9137
Reid Spencera773bd52006-08-04 18:18:08 +00009138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9139 version_type=freebsd-elf
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 hardcode_into_libs=yes
9146 if test "$with_gnu_ld" = yes; then
9147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9148 shlibpath_overrides_runpath=no
9149 else
9150 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9151 shlibpath_overrides_runpath=yes
9152 case $host_os in
9153 sco3.2v5*)
9154 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9155 ;;
9156 esac
9157 fi
9158 sys_lib_dlsearch_path_spec='/usr/lib'
9159 ;;
9160
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161uts4*)
9162 version_type=linux
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 ;;
9167
9168*)
9169 dynamic_linker=no
9170 ;;
9171esac
Reid Spencera773bd52006-08-04 18:18:08 +00009172{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9173echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009174test "$dynamic_linker" = no && can_build_shared=no
9175
Reid Spencera773bd52006-08-04 18:18:08 +00009176variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9177if test "$GCC" = yes; then
9178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9179fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009180
Reid Spencera773bd52006-08-04 18:18:08 +00009181
9182{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9183echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184if test "${libltdl_cv_shlibext+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186else
9187
9188module=yes
9189eval libltdl_cv_shlibext=$shrext_cmds
9190
9191fi
Reid Spencera773bd52006-08-04 18:18:08 +00009192{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9193echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009194if test -n "$libltdl_cv_shlibext"; then
9195
9196cat >>confdefs.h <<_ACEOF
9197#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9198_ACEOF
9199
9200fi
9201
9202
Reid Spencera773bd52006-08-04 18:18:08 +00009203{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9204echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009205if test "${libltdl_cv_shlibpath_var+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207else
9208 libltdl_cv_shlibpath_var="$shlibpath_var"
9209fi
Reid Spencera773bd52006-08-04 18:18:08 +00009210{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9211echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009212if test -n "$libltdl_cv_shlibpath_var"; then
9213
9214cat >>confdefs.h <<_ACEOF
9215#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9216_ACEOF
9217
9218fi
9219
9220
Reid Spencera773bd52006-08-04 18:18:08 +00009221{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9222echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009223if test "${libltdl_cv_sys_search_path+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225else
9226 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9227fi
Reid Spencera773bd52006-08-04 18:18:08 +00009228{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9229echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230if test -n "$libltdl_cv_sys_search_path"; then
9231 sys_search_path=
9232 for dir in $libltdl_cv_sys_search_path; do
9233 if test -z "$sys_search_path"; then
9234 sys_search_path="$dir"
9235 else
9236 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9237 fi
9238 done
9239
9240cat >>confdefs.h <<_ACEOF
9241#define LTDL_SYSSEARCHPATH "$sys_search_path"
9242_ACEOF
9243
9244fi
9245
Reid Spencera773bd52006-08-04 18:18:08 +00009246{ echo "$as_me:$LINENO: checking for objdir" >&5
9247echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248if test "${libltdl_cv_objdir+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251 libltdl_cv_objdir="$objdir"
9252 if test -n "$objdir"; then
9253 :
9254 else
9255 rm -f .libs 2>/dev/null
9256 mkdir .libs 2>/dev/null
9257 if test -d .libs; then
9258 libltdl_cv_objdir=.libs
9259 else
9260 # MS-DOS does not allow filenames that begin with a dot.
9261 libltdl_cv_objdir=_libs
9262 fi
9263 rmdir .libs 2>/dev/null
9264 fi
9265
9266fi
Reid Spencera773bd52006-08-04 18:18:08 +00009267{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9268echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269
9270cat >>confdefs.h <<_ACEOF
9271#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9272_ACEOF
9273
9274
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275
9276
9277
9278
9279# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009280{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9281echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285
9286# These are sane defaults that work on at least a few old systems.
9287# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9288
9289# Character class describing NM global symbol codes.
9290symcode='[BCDEGRST]'
9291
9292# Regexp to match symbols that can be accessed directly from C.
9293sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9294
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009295# Transform an extracted symbol line into a proper C declaration
9296lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9297
9298# Transform an extracted symbol line into symbol name and symbol address
9299lt_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'"
9300
9301# Define system-specific variables.
9302case $host_os in
9303aix*)
9304 symcode='[BCDT]'
9305 ;;
9306cygwin* | mingw* | pw32*)
9307 symcode='[ABCDGISTW]'
9308 ;;
9309hpux*) # Its linker distinguishes data from code symbols
9310 if test "$host_cpu" = ia64; then
9311 symcode='[ABCDEGRST]'
9312 fi
9313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9314 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'"
9315 ;;
9316linux*)
9317 if test "$host_cpu" = ia64; then
9318 symcode='[ABCDGIRSTW]'
9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9320 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'"
9321 fi
9322 ;;
9323irix* | nonstopux*)
9324 symcode='[BCDEGRST]'
9325 ;;
9326osf*)
9327 symcode='[BCDEGQRST]'
9328 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009329solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330 symcode='[BDRT]'
9331 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009332sco3.2v5*)
9333 symcode='[DT]'
9334 ;;
9335sysv4.2uw2*)
9336 symcode='[DT]'
9337 ;;
9338sysv5* | sco5v6* | unixware* | OpenUNIX*)
9339 symcode='[ABDT]'
9340 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341sysv4)
9342 symcode='[DFNSTU]'
9343 ;;
9344esac
9345
9346# Handle CRLF in mingw tool chain
9347opt_cr=
9348case $build_os in
9349mingw*)
9350 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9351 ;;
9352esac
9353
9354# If we're using GNU nm, then use its standard symbol codes.
9355case `$NM -V 2>&1` in
9356*GNU* | *'with BFD'*)
9357 symcode='[ABCDGIRSTW]' ;;
9358esac
9359
9360# Try without a prefix undercore, then with it.
9361for ac_symprfx in "" "_"; do
9362
Reid Spencera773bd52006-08-04 18:18:08 +00009363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9364 symxfrm="\\1 $ac_symprfx\\2 \\2"
9365
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009367 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 +00009368
9369 # Check to see that the pipe works correctly.
9370 pipe_works=no
9371
9372 rm -f conftest*
9373 cat > conftest.$ac_ext <<EOF
9374#ifdef __cplusplus
9375extern "C" {
9376#endif
9377char nm_test_var;
9378void nm_test_func(){}
9379#ifdef __cplusplus
9380}
9381#endif
9382int main(){nm_test_var='a';nm_test_func();return(0);}
9383EOF
9384
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; then
9390 # Now try to grab the symbols.
9391 nlist=conftest.nm
9392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && test -s "$nlist"; then
9397 # Try sorting and uniquifying the output.
9398 if sort "$nlist" | uniq > "$nlist"T; then
9399 mv -f "$nlist"T "$nlist"
9400 else
9401 rm -f "$nlist"T
9402 fi
9403
9404 # Make sure that we snagged all the symbols we need.
9405 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9406 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9407 cat <<EOF > conftest.$ac_ext
9408#ifdef __cplusplus
9409extern "C" {
9410#endif
9411
9412EOF
9413 # Now generate the symbol file.
9414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9415
9416 cat <<EOF >> conftest.$ac_ext
9417#if defined (__STDC__) && __STDC__
9418# define lt_ptr_t void *
9419#else
9420# define lt_ptr_t char *
9421# define const
9422#endif
9423
9424/* The mapping between symbol names and symbols. */
9425const struct {
9426 const char *name;
9427 lt_ptr_t address;
9428}
9429lt_preloaded_symbols[] =
9430{
9431EOF
9432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9433 cat <<\EOF >> conftest.$ac_ext
9434 {0, (lt_ptr_t) 0}
9435};
9436
9437#ifdef __cplusplus
9438}
9439#endif
9440EOF
9441 # Now try linking the two files.
9442 mv conftest.$ac_objext conftstm.$ac_objext
9443 lt_save_LIBS="$LIBS"
9444 lt_save_CFLAGS="$CFLAGS"
9445 LIBS="conftstm.$ac_objext"
9446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9452 pipe_works=yes
9453 fi
9454 LIBS="$lt_save_LIBS"
9455 CFLAGS="$lt_save_CFLAGS"
9456 else
9457 echo "cannot find nm_test_func in $nlist" >&5
9458 fi
9459 else
9460 echo "cannot find nm_test_var in $nlist" >&5
9461 fi
9462 else
9463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9464 fi
9465 else
9466 echo "$progname: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 fi
9469 rm -f conftest* conftst*
9470
9471 # Do not use the global_symbol_pipe unless it works.
9472 if test "$pipe_works" = yes; then
9473 break
9474 else
9475 lt_cv_sys_global_symbol_pipe=
9476 fi
9477done
9478
9479fi
9480
9481if test -z "$lt_cv_sys_global_symbol_pipe"; then
9482 lt_cv_sys_global_symbol_to_cdecl=
9483fi
9484if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009485 { echo "$as_me:$LINENO: result: failed" >&5
9486echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487else
Reid Spencera773bd52006-08-04 18:18:08 +00009488 { echo "$as_me:$LINENO: result: ok" >&5
9489echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490fi
9491
9492
Reid Spencera773bd52006-08-04 18:18:08 +00009493{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9494echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009495if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497else
9498 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9499 libltdl_cv_preloaded_symbols=yes
9500 else
9501 libltdl_cv_preloaded_symbols=no
9502 fi
9503
9504fi
Reid Spencera773bd52006-08-04 18:18:08 +00009505{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9506echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9508
9509cat >>confdefs.h <<\_ACEOF
9510#define HAVE_PRELOADED_SYMBOLS 1
9511_ACEOF
9512
9513fi
9514
9515LIBADD_DL=
9516
9517ac_ext=c
9518ac_cpp='$CPP $CPPFLAGS'
9519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9521ac_compiler_gnu=$ac_cv_c_compiler_gnu
9522
9523
Reid Spencera773bd52006-08-04 18:18:08 +00009524{ echo "$as_me:$LINENO: checking for shl_load" >&5
9525echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526if test "${ac_cv_func_shl_load+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else
9529 cat >conftest.$ac_ext <<_ACEOF
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9537#define shl_load innocuous_shl_load
9538
9539/* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char shl_load (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */
9543
9544#ifdef __STDC__
9545# include <limits.h>
9546#else
9547# include <assert.h>
9548#endif
9549
9550#undef shl_load
9551
Reid Spencera773bd52006-08-04 18:18:08 +00009552/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009555#ifdef __cplusplus
9556extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009557#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009558char shl_load ();
9559/* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009562#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564#endif
9565
9566int
9567main ()
9568{
Reid Spencera773bd52006-08-04 18:18:08 +00009569return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570 ;
9571 return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009575if { (ac_try="$ac_link"
9576case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009599 { (case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602esac
9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 ac_cv_func_shl_load=yes
9609else
9610 echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
Reid Spencera773bd52006-08-04 18:18:08 +00009613 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614fi
Reid Spencera773bd52006-08-04 18:18:08 +00009615
9616rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617 conftest$ac_exeext conftest.$ac_ext
9618fi
Reid Spencera773bd52006-08-04 18:18:08 +00009619{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9620echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621if test $ac_cv_func_shl_load = yes; then
9622
9623cat >>confdefs.h <<\_ACEOF
9624#define HAVE_SHL_LOAD 1
9625_ACEOF
9626
9627else
Reid Spencera773bd52006-08-04 18:18:08 +00009628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633 ac_check_lib_save_LIBS=$LIBS
9634LIBS="-ldld $LIBS"
9635cat >conftest.$ac_ext <<_ACEOF
9636/* confdefs.h. */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h. */
9641
Reid Spencera773bd52006-08-04 18:18:08 +00009642/* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009645#ifdef __cplusplus
9646extern "C"
9647#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648char shl_load ();
9649int
9650main ()
9651{
Reid Spencera773bd52006-08-04 18:18:08 +00009652return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009658if { (ac_try="$ac_link"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9672 { (case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675esac
9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009682 { (case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685esac
9686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_lib_dld_shl_load=yes
9692else
9693 echo "$as_me: failed program was:" >&5
9694sed 's/^/| /' conftest.$ac_ext >&5
9695
Reid Spencera773bd52006-08-04 18:18:08 +00009696 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009697fi
Reid Spencera773bd52006-08-04 18:18:08 +00009698
9699rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700 conftest$ac_exeext conftest.$ac_ext
9701LIBS=$ac_check_lib_save_LIBS
9702fi
Reid Spencera773bd52006-08-04 18:18:08 +00009703{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9704echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705if test $ac_cv_lib_dld_shl_load = yes; then
9706
9707cat >>confdefs.h <<\_ACEOF
9708#define HAVE_SHL_LOAD 1
9709_ACEOF
9710
9711 LIBADD_DL="$LIBADD_DL -ldld"
9712else
Reid Spencera773bd52006-08-04 18:18:08 +00009713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9714echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717else
9718 ac_check_lib_save_LIBS=$LIBS
9719LIBS="-ldl $LIBS"
9720cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
9726
Reid Spencera773bd52006-08-04 18:18:08 +00009727/* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730#ifdef __cplusplus
9731extern "C"
9732#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733char dlopen ();
9734int
9735main ()
9736{
Reid Spencera773bd52006-08-04 18:18:08 +00009737return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009743if { (ac_try="$ac_link"
9744case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770esac
9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_dl_dlopen=yes
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
Reid Spencera773bd52006-08-04 18:18:08 +00009781 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009782fi
Reid Spencera773bd52006-08-04 18:18:08 +00009783
9784rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785 conftest$ac_exeext conftest.$ac_ext
9786LIBS=$ac_check_lib_save_LIBS
9787fi
Reid Spencera773bd52006-08-04 18:18:08 +00009788{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9789echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790if test $ac_cv_lib_dl_dlopen = yes; then
9791
9792cat >>confdefs.h <<\_ACEOF
9793#define HAVE_LIBDL 1
9794_ACEOF
9795
9796 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9797else
9798 cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
9804#if HAVE_DLFCN_H
9805# include <dlfcn.h>
9806#endif
9807
9808int
9809main ()
9810{
9811dlopen(0, 0);
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009817if { (ac_try="$ac_link"
9818case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850
9851cat >>confdefs.h <<\_ACEOF
9852#define HAVE_LIBDL 1
9853_ACEOF
9854 libltdl_cv_func_dlopen="yes"
9855else
9856 echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
Reid Spencera773bd52006-08-04 18:18:08 +00009859 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9860echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-lsvld $LIBS"
9866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872
Reid Spencera773bd52006-08-04 18:18:08 +00009873/* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876#ifdef __cplusplus
9877extern "C"
9878#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879char dlopen ();
9880int
9881main ()
9882{
Reid Spencera773bd52006-08-04 18:18:08 +00009883return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009889if { (ac_try="$ac_link"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_svld_dlopen=yes
9923else
9924 echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
Reid Spencera773bd52006-08-04 18:18:08 +00009927 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928fi
Reid Spencera773bd52006-08-04 18:18:08 +00009929
9930rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 conftest$ac_exeext conftest.$ac_ext
9932LIBS=$ac_check_lib_save_LIBS
9933fi
Reid Spencera773bd52006-08-04 18:18:08 +00009934{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9935echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936if test $ac_cv_lib_svld_dlopen = yes; then
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define HAVE_LIBDL 1
9940_ACEOF
9941
9942 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9943else
Reid Spencera773bd52006-08-04 18:18:08 +00009944 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9945echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 ac_check_lib_save_LIBS=$LIBS
9950LIBS="-ldld $LIBS"
9951cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h. */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h. */
9957
Reid Spencera773bd52006-08-04 18:18:08 +00009958/* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961#ifdef __cplusplus
9962extern "C"
9963#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964char dld_link ();
9965int
9966main ()
9967{
Reid Spencera773bd52006-08-04 18:18:08 +00009968return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009974if { (ac_try="$ac_link"
9975case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dld_dld_link=yes
10008else
10009 echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
Reid Spencera773bd52006-08-04 18:18:08 +000010012 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013fi
Reid Spencera773bd52006-08-04 18:18:08 +000010014
10015rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016 conftest$ac_exeext conftest.$ac_ext
10017LIBS=$ac_check_lib_save_LIBS
10018fi
Reid Spencera773bd52006-08-04 18:18:08 +000010019{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10020echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021if test $ac_cv_lib_dld_dld_link = yes; then
10022
10023cat >>confdefs.h <<\_ACEOF
10024#define HAVE_DLD 1
10025_ACEOF
10026
10027 LIBADD_DL="$LIBADD_DL -ldld"
10028else
Reid Spencera773bd52006-08-04 18:18:08 +000010029 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10030echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010031if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033else
10034 cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */
10040/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10042#define _dyld_func_lookup innocuous__dyld_func_lookup
10043
10044/* System header to define __stub macros and hopefully few prototypes,
10045 which can conflict with char _dyld_func_lookup (); below.
10046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10047 <limits.h> exists even on freestanding compilers. */
10048
10049#ifdef __STDC__
10050# include <limits.h>
10051#else
10052# include <assert.h>
10053#endif
10054
10055#undef _dyld_func_lookup
10056
Reid Spencera773bd52006-08-04 18:18:08 +000010057/* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060#ifdef __cplusplus
10061extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063char _dyld_func_lookup ();
10064/* The GNU C library defines this for functions which it implements
10065 to always fail with ENOSYS. Some functions are actually named
10066 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010067#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069#endif
10070
10071int
10072main ()
10073{
Reid Spencera773bd52006-08-04 18:18:08 +000010074return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075 ;
10076 return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010080if { (ac_try="$ac_link"
10081case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10094 { (case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_func__dyld_func_lookup=yes
10114else
10115 echo "$as_me: failed program was:" >&5
10116sed 's/^/| /' conftest.$ac_ext >&5
10117
Reid Spencera773bd52006-08-04 18:18:08 +000010118 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119fi
Reid Spencera773bd52006-08-04 18:18:08 +000010120
10121rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122 conftest$ac_exeext conftest.$ac_ext
10123fi
Reid Spencera773bd52006-08-04 18:18:08 +000010124{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10125echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126if test $ac_cv_func__dyld_func_lookup = yes; then
10127
10128cat >>confdefs.h <<\_ACEOF
10129#define HAVE_DYLD 1
10130_ACEOF
10131
10132fi
10133
10134
10135fi
10136
10137
10138fi
10139
10140
10141fi
Reid Spencera773bd52006-08-04 18:18:08 +000010142
10143rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144 conftest$ac_exeext conftest.$ac_ext
10145
10146fi
10147
10148
10149fi
10150
10151
10152fi
10153
10154
10155if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10156then
10157 lt_save_LIBS="$LIBS"
10158 LIBS="$LIBS $LIBADD_DL"
10159
10160for ac_func in dlerror
10161do
10162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010163{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10165if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167else
10168 cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h. */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h. */
10174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10176#define $ac_func innocuous_$ac_func
10177
10178/* System header to define __stub macros and hopefully few prototypes,
10179 which can conflict with char $ac_func (); below.
10180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10181 <limits.h> exists even on freestanding compilers. */
10182
10183#ifdef __STDC__
10184# include <limits.h>
10185#else
10186# include <assert.h>
10187#endif
10188
10189#undef $ac_func
10190
Reid Spencera773bd52006-08-04 18:18:08 +000010191/* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194#ifdef __cplusplus
10195extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197char $ac_func ();
10198/* The GNU C library defines this for functions which it implements
10199 to always fail with ENOSYS. Some functions are actually named
10200 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010201#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010202choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203#endif
10204
10205int
10206main ()
10207{
Reid Spencera773bd52006-08-04 18:18:08 +000010208return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209 ;
10210 return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010214if { (ac_try="$ac_link"
10215case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231esac
10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 eval "$as_ac_var=yes"
10248else
10249 echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
Reid Spencera773bd52006-08-04 18:18:08 +000010252 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010253fi
Reid Spencera773bd52006-08-04 18:18:08 +000010254
10255rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256 conftest$ac_exeext conftest.$ac_ext
10257fi
Reid Spencera773bd52006-08-04 18:18:08 +000010258ac_res=`eval echo '${'$as_ac_var'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261if test `eval echo '${'$as_ac_var'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10264_ACEOF
10265
10266fi
10267done
10268
10269 LIBS="$lt_save_LIBS"
10270fi
10271ac_ext=c
10272ac_cpp='$CPP $CPPFLAGS'
10273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276
10277
10278
Reid Spencera773bd52006-08-04 18:18:08 +000010279{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10280echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 ac_cv_sys_symbol_underscore=no
10285 cat > conftest.$ac_ext <<EOF
10286void nm_test_func(){}
10287int main(){nm_test_func;return 0;}
10288EOF
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290 (eval $ac_compile) 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; then
10294 # Now try to grab the symbols.
10295 ac_nlist=conftest.nm
10296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && test -s "$ac_nlist"; then
10301 # See whether the symbols have a leading underscore.
10302 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10303 ac_cv_sys_symbol_underscore=yes
10304 else
10305 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10306 :
10307 else
10308 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10309 fi
10310 fi
10311 else
10312 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10313 fi
10314 else
10315 echo "configure: failed program was:" >&5
10316 cat conftest.c >&5
10317 fi
10318 rm -rf conftest*
10319
10320fi
Reid Spencera773bd52006-08-04 18:18:08 +000010321{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10322echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323
10324
10325if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10326 if test x"$libltdl_cv_func_dlopen" = xyes ||
10327 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010328 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10329echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330if test "${libltdl_cv_need_uscore+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332else
10333 libltdl_cv_need_uscore=unknown
10334 save_LIBS="$LIBS"
10335 LIBS="$LIBS $LIBADD_DL"
10336 if test "$cross_compiling" = yes; then :
10337 libltdl_cv_need_uscore=cross
10338else
10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340 lt_status=$lt_dlunknown
10341 cat > conftest.$ac_ext <<EOF
Reid Spencer9b5b1822007-01-21 06:32:59 +000010342#line 10342 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343#include "confdefs.h"
10344
10345#if HAVE_DLFCN_H
10346#include <dlfcn.h>
10347#endif
10348
10349#include <stdio.h>
10350
10351#ifdef RTLD_GLOBAL
10352# define LT_DLGLOBAL RTLD_GLOBAL
10353#else
10354# ifdef DL_GLOBAL
10355# define LT_DLGLOBAL DL_GLOBAL
10356# else
10357# define LT_DLGLOBAL 0
10358# endif
10359#endif
10360
10361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362 find out it does not work in some platform. */
10363#ifndef LT_DLLAZY_OR_NOW
10364# ifdef RTLD_LAZY
10365# define LT_DLLAZY_OR_NOW RTLD_LAZY
10366# else
10367# ifdef DL_LAZY
10368# define LT_DLLAZY_OR_NOW DL_LAZY
10369# else
10370# ifdef RTLD_NOW
10371# define LT_DLLAZY_OR_NOW RTLD_NOW
10372# else
10373# ifdef DL_NOW
10374# define LT_DLLAZY_OR_NOW DL_NOW
10375# else
10376# define LT_DLLAZY_OR_NOW 0
10377# endif
10378# endif
10379# endif
10380# endif
10381#endif
10382
10383#ifdef __cplusplus
10384extern "C" void exit (int);
10385#endif
10386
10387void fnord() { int i=42;}
10388int main ()
10389{
10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 int status = $lt_dlunknown;
10392
10393 if (self)
10394 {
10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10397 /* dlclose (self); */
10398 }
Reid Spencera773bd52006-08-04 18:18:08 +000010399 else
10400 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401
10402 exit (status);
10403}
10404EOF
10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406 (eval $ac_link) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010410 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 lt_status=$?
10412 case x$lt_status in
10413 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10414 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010415 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 esac
10417 else :
10418 # compilation failed
10419
10420 fi
10421fi
10422rm -fr conftest*
10423
10424 LIBS="$save_LIBS"
10425
10426fi
Reid Spencera773bd52006-08-04 18:18:08 +000010427{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10428echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429 fi
10430fi
10431
10432if test x"$libltdl_cv_need_uscore" = xyes; then
10433
10434cat >>confdefs.h <<\_ACEOF
10435#define NEED_USCORE 1
10436_ACEOF
10437
10438fi
10439
10440
Reid Spencera773bd52006-08-04 18:18:08 +000010441{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10442echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445else
10446 # PORTME does your system automatically load deplibs for dlopen?
10447 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10448 # For now, we just catch OSes we know something about -- in the
10449 # future, we'll try test this programmatically.
10450 libltdl_cv_sys_dlopen_deplibs=unknown
10451 case "$host_os" in
10452 aix3*|aix4.1.*|aix4.2.*)
10453 # Unknown whether this is true for these versions of AIX, but
10454 # we want this `case' here to explicitly catch those versions.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10456 ;;
10457 aix[45]*)
10458 libltdl_cv_sys_dlopen_deplibs=yes
10459 ;;
10460 darwin*)
10461 # Assuming the user has installed a libdl from somewhere, this is true
10462 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10463 libltdl_cv_sys_dlopen_deplibs=yes
10464 ;;
10465 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10466 # GNU and its variants, using gnu ld.so (Glibc)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
10469 hpux10*|hpux11*)
10470 libltdl_cv_sys_dlopen_deplibs=yes
10471 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010472 interix*)
10473 libltdl_cv_sys_dlopen_deplibs=yes
10474 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475 irix[12345]*|irix6.[01]*)
10476 # Catch all versions of IRIX before 6.2, and indicate that we don't
10477 # know how it worked for any of those versions.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10479 ;;
10480 irix*)
10481 # The case above catches anything before 6.2, and it's known that
10482 # at 6.2 and later dlopen does load deplibs.
10483 libltdl_cv_sys_dlopen_deplibs=yes
10484 ;;
10485 netbsd*)
10486 libltdl_cv_sys_dlopen_deplibs=yes
10487 ;;
10488 openbsd*)
10489 libltdl_cv_sys_dlopen_deplibs=yes
10490 ;;
10491 osf[1234]*)
10492 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10493 # it did *not* use an RPATH in a shared library to find objects the
10494 # library depends on, so we explictly say `no'.
10495 libltdl_cv_sys_dlopen_deplibs=no
10496 ;;
10497 osf5.0|osf5.0a|osf5.1)
10498 # dlopen *does* load deplibs and with the right loader patch applied
10499 # it even uses RPATH in a shared library to search for shared objects
10500 # that the library depends on, but there's no easy way to know if that
10501 # patch is installed. Since this is the case, all we can really
10502 # say is unknown -- it depends on the patch being installed. If
10503 # it is, this changes to `yes'. Without it, it would be `no'.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10505 ;;
10506 osf*)
10507 # the two cases above should catch all versions of osf <= 5.1. Read
10508 # the comments above for what we know about them.
10509 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10510 # is used to find them so we can finally say `yes'.
10511 libltdl_cv_sys_dlopen_deplibs=yes
10512 ;;
10513 solaris*)
10514 libltdl_cv_sys_dlopen_deplibs=yes
10515 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10517 libltdl_cv_sys_dlopen_deplibs=yes
10518 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519 esac
10520
10521fi
Reid Spencera773bd52006-08-04 18:18:08 +000010522{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10523echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10525
10526cat >>confdefs.h <<\_ACEOF
10527#define LTDL_DLOPEN_DEPLIBS 1
10528_ACEOF
10529
10530fi
10531
10532
10533for ac_header in argz.h
10534do
10535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541fi
Reid Spencera773bd52006-08-04 18:18:08 +000010542ac_res=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545else
10546 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549cat >conftest.$ac_ext <<_ACEOF
10550/* confdefs.h. */
10551_ACEOF
10552cat confdefs.h >>conftest.$ac_ext
10553cat >>conftest.$ac_ext <<_ACEOF
10554/* end confdefs.h. */
10555$ac_includes_default
10556#include <$ac_header>
10557_ACEOF
10558rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010559if { (ac_try="$ac_compile"
10560case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563esac
10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10573 { (case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576esac
10577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_header_compiler=yes
10593else
10594 echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
Reid Spencera773bd52006-08-04 18:18:08 +000010597 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598fi
Reid Spencera773bd52006-08-04 18:18:08 +000010599
10600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603
10604# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
10613#include <$ac_header>
10614_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010615if { (ac_try="$ac_cpp conftest.$ac_ext"
10616case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null; then
10628 if test -s conftest.err; then
10629 ac_cpp_err=$ac_c_preproc_warn_flag
10630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10631 else
10632 ac_cpp_err=
10633 fi
10634else
10635 ac_cpp_err=yes
10636fi
10637if test -z "$ac_cpp_err"; then
10638 ac_header_preproc=yes
10639else
10640 echo "$as_me: failed program was:" >&5
10641sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_header_preproc=no
10644fi
Reid Spencera773bd52006-08-04 18:18:08 +000010645
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649
10650# So? What about this header?
10651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 yes:no: )
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10658 ;;
10659 no:yes:* )
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010672 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673## ----------------------------------- ##
10674## Report this to llvmbugs@cs.uiuc.edu ##
10675## ----------------------------------- ##
10676_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010677 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 ;;
10679esac
Reid Spencera773bd52006-08-04 18:18:08 +000010680{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685 eval "$as_ac_Header=\$ac_header_preproc"
10686fi
Reid Spencera773bd52006-08-04 18:18:08 +000010687ac_res=`eval echo '${'$as_ac_Header'}'`
10688 { echo "$as_me:$LINENO: result: $ac_res" >&5
10689echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690
10691fi
10692if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10695_ACEOF
10696
10697fi
10698
10699done
10700
10701
Reid Spencera773bd52006-08-04 18:18:08 +000010702{ echo "$as_me:$LINENO: checking for error_t" >&5
10703echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010704if test "${ac_cv_type_error_t+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706else
10707 cat >conftest.$ac_ext <<_ACEOF
10708/* confdefs.h. */
10709_ACEOF
10710cat confdefs.h >>conftest.$ac_ext
10711cat >>conftest.$ac_ext <<_ACEOF
10712/* end confdefs.h. */
10713#if HAVE_ARGZ_H
10714# include <argz.h>
10715#endif
10716
Reid Spencera773bd52006-08-04 18:18:08 +000010717typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718int
10719main ()
10720{
Reid Spencera773bd52006-08-04 18:18:08 +000010721if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010723if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724 return 0;
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010730if { (ac_try="$ac_compile"
10731case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757esac
10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_cv_type_error_t=yes
10764else
10765 echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
Reid Spencera773bd52006-08-04 18:18:08 +000010768 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769fi
Reid Spencera773bd52006-08-04 18:18:08 +000010770
10771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772fi
Reid Spencera773bd52006-08-04 18:18:08 +000010773{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10774echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775if test $ac_cv_type_error_t = yes; then
10776
10777cat >>confdefs.h <<_ACEOF
10778#define HAVE_ERROR_T 1
10779_ACEOF
10780
10781
10782else
10783
10784cat >>confdefs.h <<\_ACEOF
10785#define error_t int
10786_ACEOF
10787
10788fi
10789
10790
10791
10792
10793
10794
10795
10796for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10797do
10798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803else
10804 cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h. */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h. */
10810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812#define $ac_func innocuous_$ac_func
10813
10814/* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10818
10819#ifdef __STDC__
10820# include <limits.h>
10821#else
10822# include <assert.h>
10823#endif
10824
10825#undef $ac_func
10826
Reid Spencera773bd52006-08-04 18:18:08 +000010827/* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830#ifdef __cplusplus
10831extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833char $ac_func ();
10834/* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010837#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839#endif
10840
10841int
10842main ()
10843{
Reid Spencera773bd52006-08-04 18:18:08 +000010844return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845 ;
10846 return 0;
10847}
10848_ACEOF
10849rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010850if { (ac_try="$ac_link"
10851case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 eval "$as_ac_var=yes"
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
Reid Spencera773bd52006-08-04 18:18:08 +000010888 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889fi
Reid Spencera773bd52006-08-04 18:18:08 +000010890
10891rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892 conftest$ac_exeext conftest.$ac_ext
10893fi
Reid Spencera773bd52006-08-04 18:18:08 +000010894ac_res=`eval echo '${'$as_ac_var'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897if test `eval echo '${'$as_ac_var'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10900_ACEOF
10901
10902fi
10903done
10904
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
10932for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10933 stdio.h unistd.h
10934do
10935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941fi
Reid Spencera773bd52006-08-04 18:18:08 +000010942ac_res=`eval echo '${'$as_ac_Header'}'`
10943 { echo "$as_me:$LINENO: result: $ac_res" >&5
10944echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945else
10946 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010947{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h. */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h. */
10955$ac_includes_default
10956#include <$ac_header>
10957_ACEOF
10958rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010959if { (ac_try="$ac_compile"
10960case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10973 { (case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 ac_header_compiler=yes
10993else
10994 echo "$as_me: failed program was:" >&5
10995sed 's/^/| /' conftest.$ac_ext >&5
10996
Reid Spencera773bd52006-08-04 18:18:08 +000010997 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998fi
Reid Spencera773bd52006-08-04 18:18:08 +000010999
11000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11002echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003
11004# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h. */
11013#include <$ac_header>
11014_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011015if { (ac_try="$ac_cpp conftest.$ac_ext"
11016case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } >/dev/null; then
11028 if test -s conftest.err; then
11029 ac_cpp_err=$ac_c_preproc_warn_flag
11030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11031 else
11032 ac_cpp_err=
11033 fi
11034else
11035 ac_cpp_err=yes
11036fi
11037if test -z "$ac_cpp_err"; then
11038 ac_header_preproc=yes
11039else
11040 echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_header_preproc=no
11044fi
Reid Spencera773bd52006-08-04 18:18:08 +000011045
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11048echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049
11050# So? What about this header?
11051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11052 yes:no: )
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11057 ac_header_preproc=yes
11058 ;;
11059 no:yes:* )
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011072 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073## ----------------------------------- ##
11074## Report this to llvmbugs@cs.uiuc.edu ##
11075## ----------------------------------- ##
11076_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011077 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 ;;
11079esac
Reid Spencera773bd52006-08-04 18:18:08 +000011080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084else
11085 eval "$as_ac_Header=\$ac_header_preproc"
11086fi
Reid Spencera773bd52006-08-04 18:18:08 +000011087ac_res=`eval echo '${'$as_ac_Header'}'`
11088 { echo "$as_me:$LINENO: result: $ac_res" >&5
11089echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011090
11091fi
11092if test `eval echo '${'$as_ac_Header'}'` = yes; then
11093 cat >>confdefs.h <<_ACEOF
11094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11095_ACEOF
11096
11097fi
11098
11099done
11100
11101
11102
11103
11104
11105for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11106do
11107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113fi
Reid Spencera773bd52006-08-04 18:18:08 +000011114ac_res=`eval echo '${'$as_ac_Header'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117else
11118 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h. */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h. */
11127$ac_includes_default
11128#include <$ac_header>
11129_ACEOF
11130rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011131if { (ac_try="$ac_compile"
11132case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148esac
11149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158esac
11159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 ac_header_compiler=yes
11165else
11166 echo "$as_me: failed program was:" >&5
11167sed 's/^/| /' conftest.$ac_ext >&5
11168
Reid Spencera773bd52006-08-04 18:18:08 +000011169 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170fi
Reid Spencera773bd52006-08-04 18:18:08 +000011171
11172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11174echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011175
11176# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179cat >conftest.$ac_ext <<_ACEOF
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
11184/* end confdefs.h. */
11185#include <$ac_header>
11186_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011187if { (ac_try="$ac_cpp conftest.$ac_ext"
11188case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev/null; then
11200 if test -s conftest.err; then
11201 ac_cpp_err=$ac_c_preproc_warn_flag
11202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11203 else
11204 ac_cpp_err=
11205 fi
11206else
11207 ac_cpp_err=yes
11208fi
11209if test -z "$ac_cpp_err"; then
11210 ac_header_preproc=yes
11211else
11212 echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_preproc=no
11216fi
Reid Spencera773bd52006-08-04 18:18:08 +000011217
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11220echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221
11222# So? What about this header?
11223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11224 yes:no: )
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11229 ac_header_preproc=yes
11230 ;;
11231 no:yes:* )
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011244 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245## ----------------------------------- ##
11246## Report this to llvmbugs@cs.uiuc.edu ##
11247## ----------------------------------- ##
11248_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011249 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 ;;
11251esac
Reid Spencera773bd52006-08-04 18:18:08 +000011252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257 eval "$as_ac_Header=\$ac_header_preproc"
11258fi
Reid Spencera773bd52006-08-04 18:18:08 +000011259ac_res=`eval echo '${'$as_ac_Header'}'`
11260 { echo "$as_me:$LINENO: result: $ac_res" >&5
11261echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262
11263fi
11264if test `eval echo '${'$as_ac_Header'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267_ACEOF
11268
11269fi
11270
11271done
11272
11273
11274
11275for ac_header in string.h strings.h
11276do
11277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283fi
Reid Spencera773bd52006-08-04 18:18:08 +000011284ac_res=`eval echo '${'$as_ac_Header'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287else
11288 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011289{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297$ac_includes_default
11298#include <$ac_header>
11299_ACEOF
11300rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011301if { (ac_try="$ac_compile"
11302case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011325 { (case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328esac
11329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 ac_header_compiler=yes
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
Reid Spencera773bd52006-08-04 18:18:08 +000011339 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340fi
Reid Spencera773bd52006-08-04 18:18:08 +000011341
11342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11344echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345
11346# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011347{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349cat >conftest.$ac_ext <<_ACEOF
11350/* confdefs.h. */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
11354/* end confdefs.h. */
11355#include <$ac_header>
11356_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011357if { (ac_try="$ac_cpp conftest.$ac_ext"
11358case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null; then
11370 if test -s conftest.err; then
11371 ac_cpp_err=$ac_c_preproc_warn_flag
11372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11373 else
11374 ac_cpp_err=
11375 fi
11376else
11377 ac_cpp_err=yes
11378fi
11379if test -z "$ac_cpp_err"; then
11380 ac_header_preproc=yes
11381else
11382 echo "$as_me: failed program was:" >&5
11383sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 ac_header_preproc=no
11386fi
Reid Spencera773bd52006-08-04 18:18:08 +000011387
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011388rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011389{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391
11392# So? What about this header?
11393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 yes:no: )
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc=yes
11400 ;;
11401 no:yes:* )
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011414 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415## ----------------------------------- ##
11416## Report this to llvmbugs@cs.uiuc.edu ##
11417## ----------------------------------- ##
11418_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011419 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 ;;
11421esac
Reid Spencera773bd52006-08-04 18:18:08 +000011422{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426else
11427 eval "$as_ac_Header=\$ac_header_preproc"
11428fi
Reid Spencera773bd52006-08-04 18:18:08 +000011429ac_res=`eval echo '${'$as_ac_Header'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432
11433fi
11434if test `eval echo '${'$as_ac_Header'}'` = yes; then
11435 cat >>confdefs.h <<_ACEOF
11436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11437_ACEOF
11438 break
11439fi
11440
11441done
11442
11443
11444
11445
11446for ac_func in strchr index
11447do
11448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011449{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11451if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454 cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
11460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11462#define $ac_func innocuous_$ac_func
11463
11464/* System header to define __stub macros and hopefully few prototypes,
11465 which can conflict with char $ac_func (); below.
11466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11467 <limits.h> exists even on freestanding compilers. */
11468
11469#ifdef __STDC__
11470# include <limits.h>
11471#else
11472# include <assert.h>
11473#endif
11474
11475#undef $ac_func
11476
Reid Spencera773bd52006-08-04 18:18:08 +000011477/* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480#ifdef __cplusplus
11481extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483char $ac_func ();
11484/* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011487#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489#endif
11490
11491int
11492main ()
11493{
Reid Spencera773bd52006-08-04 18:18:08 +000011494return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495 ;
11496 return 0;
11497}
11498_ACEOF
11499rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011500if { (ac_try="$ac_link"
11501case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11514 { (case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517esac
11518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 eval "$as_ac_var=yes"
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
Reid Spencera773bd52006-08-04 18:18:08 +000011538 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539fi
Reid Spencera773bd52006-08-04 18:18:08 +000011540
11541rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542 conftest$ac_exeext conftest.$ac_ext
11543fi
Reid Spencera773bd52006-08-04 18:18:08 +000011544ac_res=`eval echo '${'$as_ac_var'}'`
11545 { echo "$as_me:$LINENO: result: $ac_res" >&5
11546echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547if test `eval echo '${'$as_ac_var'}'` = yes; then
11548 cat >>confdefs.h <<_ACEOF
11549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11550_ACEOF
11551 break
11552fi
11553done
11554
11555
11556
11557for ac_func in strrchr rindex
11558do
11559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 cat >conftest.$ac_ext <<_ACEOF
11566/* confdefs.h. */
11567_ACEOF
11568cat confdefs.h >>conftest.$ac_ext
11569cat >>conftest.$ac_ext <<_ACEOF
11570/* end confdefs.h. */
11571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573#define $ac_func innocuous_$ac_func
11574
11575/* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11579
11580#ifdef __STDC__
11581# include <limits.h>
11582#else
11583# include <assert.h>
11584#endif
11585
11586#undef $ac_func
11587
Reid Spencera773bd52006-08-04 18:18:08 +000011588/* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591#ifdef __cplusplus
11592extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594char $ac_func ();
11595/* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011598#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600#endif
11601
11602int
11603main ()
11604{
Reid Spencera773bd52006-08-04 18:18:08 +000011605return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011611if { (ac_try="$ac_link"
11612case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 eval "$as_ac_var=yes"
11645else
11646 echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
Reid Spencera773bd52006-08-04 18:18:08 +000011649 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650fi
Reid Spencera773bd52006-08-04 18:18:08 +000011651
11652rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653 conftest$ac_exeext conftest.$ac_ext
11654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655ac_res=`eval echo '${'$as_ac_var'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658if test `eval echo '${'$as_ac_var'}'` = yes; then
11659 cat >>confdefs.h <<_ACEOF
11660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11661_ACEOF
11662 break
11663fi
11664done
11665
11666
11667
11668for ac_func in memcpy bcopy
11669do
11670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675else
11676 cat >conftest.$ac_ext <<_ACEOF
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684#define $ac_func innocuous_$ac_func
11685
11686/* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11690
11691#ifdef __STDC__
11692# include <limits.h>
11693#else
11694# include <assert.h>
11695#endif
11696
11697#undef $ac_func
11698
Reid Spencera773bd52006-08-04 18:18:08 +000011699/* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702#ifdef __cplusplus
11703extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705char $ac_func ();
11706/* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011709#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711#endif
11712
11713int
11714main ()
11715{
Reid Spencera773bd52006-08-04 18:18:08 +000011716return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717 ;
11718 return 0;
11719}
11720_ACEOF
11721rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011722if { (ac_try="$ac_link"
11723case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 eval "$as_ac_var=yes"
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
Reid Spencera773bd52006-08-04 18:18:08 +000011760 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011761fi
Reid Spencera773bd52006-08-04 18:18:08 +000011762
11763rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764 conftest$ac_exeext conftest.$ac_ext
11765fi
Reid Spencera773bd52006-08-04 18:18:08 +000011766ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772_ACEOF
11773 break
11774fi
11775done
11776
11777
11778
11779for ac_func in memmove strcmp
11780do
11781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786else
11787 cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11795#define $ac_func innocuous_$ac_func
11796
11797/* System header to define __stub macros and hopefully few prototypes,
11798 which can conflict with char $ac_func (); below.
11799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800 <limits.h> exists even on freestanding compilers. */
11801
11802#ifdef __STDC__
11803# include <limits.h>
11804#else
11805# include <assert.h>
11806#endif
11807
11808#undef $ac_func
11809
Reid Spencera773bd52006-08-04 18:18:08 +000011810/* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813#ifdef __cplusplus
11814extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816char $ac_func ();
11817/* The GNU C library defines this for functions which it implements
11818 to always fail with ENOSYS. Some functions are actually named
11819 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011820#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822#endif
11823
11824int
11825main ()
11826{
Reid Spencera773bd52006-08-04 18:18:08 +000011827return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828 ;
11829 return 0;
11830}
11831_ACEOF
11832rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011833if { (ac_try="$ac_link"
11834case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850esac
11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 eval "$as_ac_var=yes"
11867else
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
Reid Spencera773bd52006-08-04 18:18:08 +000011871 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872fi
Reid Spencera773bd52006-08-04 18:18:08 +000011873
11874rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011875 conftest$ac_exeext conftest.$ac_ext
11876fi
Reid Spencera773bd52006-08-04 18:18:08 +000011877ac_res=`eval echo '${'$as_ac_var'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880if test `eval echo '${'$as_ac_var'}'` = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883_ACEOF
11884
11885fi
11886done
11887
11888
11889
11890
11891for ac_func in closedir opendir readdir
11892do
11893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 cat >conftest.$ac_ext <<_ACEOF
11900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
11905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11907#define $ac_func innocuous_$ac_func
11908
11909/* System header to define __stub macros and hopefully few prototypes,
11910 which can conflict with char $ac_func (); below.
11911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 <limits.h> exists even on freestanding compilers. */
11913
11914#ifdef __STDC__
11915# include <limits.h>
11916#else
11917# include <assert.h>
11918#endif
11919
11920#undef $ac_func
11921
Reid Spencera773bd52006-08-04 18:18:08 +000011922/* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925#ifdef __cplusplus
11926extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928char $ac_func ();
11929/* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011932#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934#endif
11935
11936int
11937main ()
11938{
Reid Spencera773bd52006-08-04 18:18:08 +000011939return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940 ;
11941 return 0;
11942}
11943_ACEOF
11944rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011945if { (ac_try="$ac_link"
11946case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 eval "$as_ac_var=yes"
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
Reid Spencera773bd52006-08-04 18:18:08 +000011983 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984fi
Reid Spencera773bd52006-08-04 18:18:08 +000011985
11986rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987 conftest$ac_exeext conftest.$ac_ext
11988fi
Reid Spencera773bd52006-08-04 18:18:08 +000011989ac_res=`eval echo '${'$as_ac_var'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992if test `eval echo '${'$as_ac_var'}'` = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995_ACEOF
11996
11997fi
11998done
11999
12000
Reid Spencera773bd52006-08-04 18:18:08 +000012001# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012003 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004 case $enableval in
12005 yes) enable_shared=yes ;;
12006 no) enable_shared=no ;;
12007 *)
12008 enable_shared=no
12009 # Look at the argument we got. We use all the common list separators.
12010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12011 for pkg in $enableval; do
12012 IFS="$lt_save_ifs"
12013 if test "X$pkg" = "X$p"; then
12014 enable_shared=yes
12015 fi
12016 done
12017 IFS="$lt_save_ifs"
12018 ;;
12019 esac
12020else
12021 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012022fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012023
Reid Spencera773bd52006-08-04 18:18:08 +000012024
12025# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012027 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028 case $enableval in
12029 yes) enable_static=yes ;;
12030 no) enable_static=no ;;
12031 *)
12032 enable_static=no
12033 # Look at the argument we got. We use all the common list separators.
12034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12035 for pkg in $enableval; do
12036 IFS="$lt_save_ifs"
12037 if test "X$pkg" = "X$p"; then
12038 enable_static=yes
12039 fi
12040 done
12041 IFS="$lt_save_ifs"
12042 ;;
12043 esac
12044else
12045 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012046fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047
Reid Spencera773bd52006-08-04 18:18:08 +000012048
12049# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012051 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052 case $enableval in
12053 yes) enable_fast_install=yes ;;
12054 no) enable_fast_install=no ;;
12055 *)
12056 enable_fast_install=no
12057 # Look at the argument we got. We use all the common list separators.
12058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12059 for pkg in $enableval; do
12060 IFS="$lt_save_ifs"
12061 if test "X$pkg" = "X$p"; then
12062 enable_fast_install=yes
12063 fi
12064 done
12065 IFS="$lt_save_ifs"
12066 ;;
12067 esac
12068else
12069 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012070fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071
Reid Spencera773bd52006-08-04 18:18:08 +000012072
12073{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12074echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075if test "${lt_cv_path_SED+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077else
12078 # Loop through the user's path and test for sed and gsed.
12079# Then use that list of sed's as ones to test for truncation.
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for lt_ac_prog in sed gsed; do
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12088 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12089 fi
12090 done
12091 done
12092done
12093lt_ac_max=0
12094lt_ac_count=0
12095# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12096# along with /bin/sed that truncates output.
12097for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012098 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012099 cat /dev/null > conftest.in
12100 lt_ac_count=0
12101 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12102 # Check for GNU sed and select it if it is found.
12103 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12104 lt_cv_path_SED=$lt_ac_sed
12105 break
12106 fi
12107 while true; do
12108 cat conftest.in conftest.in >conftest.tmp
12109 mv conftest.tmp conftest.in
12110 cp conftest.in conftest.nl
12111 echo >>conftest.nl
12112 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12113 cmp -s conftest.out conftest.nl || break
12114 # 10000 chars as input seems more than enough
12115 test $lt_ac_count -gt 10 && break
12116 lt_ac_count=`expr $lt_ac_count + 1`
12117 if test $lt_ac_count -gt $lt_ac_max; then
12118 lt_ac_max=$lt_ac_count
12119 lt_cv_path_SED=$lt_ac_sed
12120 fi
12121 done
12122done
12123
12124fi
12125
12126SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012127{ echo "$as_me:$LINENO: result: $SED" >&5
12128echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129
12130
Reid Spencera773bd52006-08-04 18:18:08 +000012131# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012133 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134else
12135 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012136fi
12137
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138ac_prog=ld
12139if test "$GCC" = yes; then
12140 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012141 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12142echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143 case $host in
12144 *-*-mingw*)
12145 # gcc leaves a trailing carriage return which upsets mingw
12146 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12147 *)
12148 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12149 esac
12150 case $ac_prog in
12151 # Accept absolute paths.
12152 [\\/]* | ?:[\\/]*)
12153 re_direlt='/[^/][^/]*/\.\./'
12154 # Canonicalize the pathname of ld
12155 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12156 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12157 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12158 done
12159 test -z "$LD" && LD="$ac_prog"
12160 ;;
12161 "")
12162 # If it fails, then pretend we aren't using GCC.
12163 ac_prog=ld
12164 ;;
12165 *)
12166 # If it is relative, then search for the first ld in PATH.
12167 with_gnu_ld=unknown
12168 ;;
12169 esac
12170elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012171 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12172echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173else
Reid Spencera773bd52006-08-04 18:18:08 +000012174 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12175echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176fi
12177if test "${lt_cv_path_LD+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180 if test -z "$LD"; then
12181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12182 for ac_dir in $PATH; do
12183 IFS="$lt_save_ifs"
12184 test -z "$ac_dir" && ac_dir=.
12185 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12186 lt_cv_path_LD="$ac_dir/$ac_prog"
12187 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012188 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189 # Break only if it was the GNU/non-GNU ld that we prefer.
12190 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12191 *GNU* | *'with BFD'*)
12192 test "$with_gnu_ld" != no && break
12193 ;;
12194 *)
12195 test "$with_gnu_ld" != yes && break
12196 ;;
12197 esac
12198 fi
12199 done
12200 IFS="$lt_save_ifs"
12201else
12202 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12203fi
12204fi
12205
12206LD="$lt_cv_path_LD"
12207if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012208 { echo "$as_me:$LINENO: result: $LD" >&5
12209echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210else
Reid Spencera773bd52006-08-04 18:18:08 +000012211 { echo "$as_me:$LINENO: result: no" >&5
12212echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213fi
12214test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12215echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12216 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012217{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12218echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012219if test "${lt_cv_prog_gnu_ld+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
Reid Spencera773bd52006-08-04 18:18:08 +000012222 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223case `$LD -v 2>&1 </dev/null` in
12224*GNU* | *'with BFD'*)
12225 lt_cv_prog_gnu_ld=yes
12226 ;;
12227*)
12228 lt_cv_prog_gnu_ld=no
12229 ;;
12230esac
12231fi
Reid Spencera773bd52006-08-04 18:18:08 +000012232{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12233echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234with_gnu_ld=$lt_cv_prog_gnu_ld
12235
12236
Reid Spencera773bd52006-08-04 18:18:08 +000012237{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12238echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239if test "${lt_cv_ld_reload_flag+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241else
12242 lt_cv_ld_reload_flag='-r'
12243fi
Reid Spencera773bd52006-08-04 18:18:08 +000012244{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12245echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246reload_flag=$lt_cv_ld_reload_flag
12247case $reload_flag in
12248"" | " "*) ;;
12249*) reload_flag=" $reload_flag" ;;
12250esac
12251reload_cmds='$LD$reload_flag -o $output$reload_objs'
12252case $host_os in
12253 darwin*)
12254 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012255 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012256 else
12257 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12258 fi
12259 ;;
12260esac
12261
Reid Spencera773bd52006-08-04 18:18:08 +000012262{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12263echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264if test "${lt_cv_deplibs_check_method+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266else
12267 lt_cv_file_magic_cmd='$MAGIC_CMD'
12268lt_cv_file_magic_test_file=
12269lt_cv_deplibs_check_method='unknown'
12270# Need to set the preceding variable on all platforms that support
12271# interlibrary dependencies.
12272# 'none' -- dependencies not supported.
12273# `unknown' -- same as none, but documents that we really don't know.
12274# 'pass_all' -- all dependencies passed with no checks.
12275# 'test_compile' -- check by making test program.
12276# 'file_magic [[regex]]' -- check by looking for files in library path
12277# which responds to the $file_magic_cmd with a given extended regex.
12278# If you have `file' or equivalent on your system and you're not sure
12279# whether `pass_all' will *always* work, you probably want this one.
12280
12281case $host_os in
12282aix4* | aix5*)
12283 lt_cv_deplibs_check_method=pass_all
12284 ;;
12285
12286beos*)
12287 lt_cv_deplibs_check_method=pass_all
12288 ;;
12289
12290bsdi[45]*)
12291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12292 lt_cv_file_magic_cmd='/usr/bin/file -L'
12293 lt_cv_file_magic_test_file=/shlib/libc.so
12294 ;;
12295
12296cygwin*)
12297 # func_win32_libid is a shell function defined in ltmain.sh
12298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12299 lt_cv_file_magic_cmd='func_win32_libid'
12300 ;;
12301
12302mingw* | pw32*)
12303 # Base MSYS/MinGW do not provide the 'file' command needed by
12304 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12306 lt_cv_file_magic_cmd='$OBJDUMP -f'
12307 ;;
12308
12309darwin* | rhapsody*)
12310 lt_cv_deplibs_check_method=pass_all
12311 ;;
12312
Reid Spencera773bd52006-08-04 18:18:08 +000012313freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12315 case $host_cpu in
12316 i*86 )
12317 # Not sure whether the presence of OpenBSD here was a mistake.
12318 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012319 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 +000012320 lt_cv_file_magic_cmd=/usr/bin/file
12321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12322 ;;
12323 esac
12324 else
12325 lt_cv_deplibs_check_method=pass_all
12326 fi
12327 ;;
12328
12329gnu*)
12330 lt_cv_deplibs_check_method=pass_all
12331 ;;
12332
12333hpux10.20* | hpux11*)
12334 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012335 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336 ia64*)
12337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12339 ;;
12340 hppa*64*)
12341 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]'
12342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12343 ;;
12344 *)
12345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12346 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12347 ;;
12348 esac
12349 ;;
12350
Reid Spencera773bd52006-08-04 18:18:08 +000012351interix3*)
12352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12354 ;;
12355
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012356irix5* | irix6* | nonstopux*)
12357 case $LD in
12358 *-32|*"-32 ") libmagic=32-bit;;
12359 *-n32|*"-n32 ") libmagic=N32;;
12360 *-64|*"-64 ") libmagic=64-bit;;
12361 *) libmagic=never-match;;
12362 esac
12363 lt_cv_deplibs_check_method=pass_all
12364 ;;
12365
12366# This must be Linux ELF.
12367linux*)
12368 lt_cv_deplibs_check_method=pass_all
12369 ;;
12370
12371netbsd*)
12372 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12374 else
12375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12376 fi
12377 ;;
12378
12379newos6*)
12380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12381 lt_cv_file_magic_cmd=/usr/bin/file
12382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12383 ;;
12384
12385nto-qnx*)
12386 lt_cv_deplibs_check_method=unknown
12387 ;;
12388
12389openbsd*)
12390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12392 else
12393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12394 fi
12395 ;;
12396
12397osf3* | osf4* | osf5*)
12398 lt_cv_deplibs_check_method=pass_all
12399 ;;
12400
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012401solaris*)
12402 lt_cv_deplibs_check_method=pass_all
12403 ;;
12404
Reid Spencera773bd52006-08-04 18:18:08 +000012405sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406 case $host_vendor in
12407 motorola)
12408 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]'
12409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12410 ;;
12411 ncr)
12412 lt_cv_deplibs_check_method=pass_all
12413 ;;
12414 sequent)
12415 lt_cv_file_magic_cmd='/bin/file'
12416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12417 ;;
12418 sni)
12419 lt_cv_file_magic_cmd='/bin/file'
12420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12421 lt_cv_file_magic_test_file=/lib/libc.so
12422 ;;
12423 siemens)
12424 lt_cv_deplibs_check_method=pass_all
12425 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012426 pc)
12427 lt_cv_deplibs_check_method=pass_all
12428 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429 esac
12430 ;;
12431
Reid Spencera773bd52006-08-04 18:18:08 +000012432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433 lt_cv_deplibs_check_method=pass_all
12434 ;;
12435esac
12436
12437fi
Reid Spencera773bd52006-08-04 18:18:08 +000012438{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12439echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440file_magic_cmd=$lt_cv_file_magic_cmd
12441deplibs_check_method=$lt_cv_deplibs_check_method
12442test -z "$deplibs_check_method" && deplibs_check_method=unknown
12443
12444
12445
12446# If no C compiler was specified, use CC.
12447LTCC=${LTCC-"$CC"}
12448
Reid Spencera773bd52006-08-04 18:18:08 +000012449# If no C compiler flags were specified, use CFLAGS.
12450LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12451
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012452# Allow CC to be a program name with arguments.
12453compiler=$CC
12454
Reid Spencera773bd52006-08-04 18:18:08 +000012455# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012457 enableval=$enable_libtool_lock;
12458fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012459
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12461
12462# Some flags need to be propagated to the compiler or linker for good
12463# libtool support.
12464case $host in
12465ia64-*-hpux*)
12466 # Find out which ABI we are using.
12467 echo 'int i;' > conftest.$ac_ext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; then
12473 case `/usr/bin/file conftest.$ac_objext` in
12474 *ELF-32*)
12475 HPUX_IA64_MODE="32"
12476 ;;
12477 *ELF-64*)
12478 HPUX_IA64_MODE="64"
12479 ;;
12480 esac
12481 fi
12482 rm -rf conftest*
12483 ;;
12484*-*-irix6*)
12485 # Find out which ABI we are using.
Reid Spencer9b5b1822007-01-21 06:32:59 +000012486 echo '#line 12486 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488 (eval $ac_compile) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; then
12492 if test "$lt_cv_prog_gnu_ld" = yes; then
12493 case `/usr/bin/file conftest.$ac_objext` in
12494 *32-bit*)
12495 LD="${LD-ld} -melf32bsmip"
12496 ;;
12497 *N32*)
12498 LD="${LD-ld} -melf32bmipn32"
12499 ;;
12500 *64-bit*)
12501 LD="${LD-ld} -melf64bmip"
12502 ;;
12503 esac
12504 else
12505 case `/usr/bin/file conftest.$ac_objext` in
12506 *32-bit*)
12507 LD="${LD-ld} -32"
12508 ;;
12509 *N32*)
12510 LD="${LD-ld} -n32"
12511 ;;
12512 *64-bit*)
12513 LD="${LD-ld} -64"
12514 ;;
12515 esac
12516 fi
12517 fi
12518 rm -rf conftest*
12519 ;;
12520
12521x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12522 # Find out which ABI we are using.
12523 echo 'int i;' > conftest.$ac_ext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012529 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530 *32-bit*)
12531 case $host in
12532 x86_64-*linux*)
12533 LD="${LD-ld} -m elf_i386"
12534 ;;
12535 ppc64-*linux*|powerpc64-*linux*)
12536 LD="${LD-ld} -m elf32ppclinux"
12537 ;;
12538 s390x-*linux*)
12539 LD="${LD-ld} -m elf_s390"
12540 ;;
12541 sparc64-*linux*)
12542 LD="${LD-ld} -m elf32_sparc"
12543 ;;
12544 esac
12545 ;;
12546 *64-bit*)
12547 case $host in
12548 x86_64-*linux*)
12549 LD="${LD-ld} -m elf_x86_64"
12550 ;;
12551 ppc*-*linux*|powerpc*-*linux*)
12552 LD="${LD-ld} -m elf64ppc"
12553 ;;
12554 s390*-*linux*)
12555 LD="${LD-ld} -m elf64_s390"
12556 ;;
12557 sparc*-*linux*)
12558 LD="${LD-ld} -m elf64_sparc"
12559 ;;
12560 esac
12561 ;;
12562 esac
12563 fi
12564 rm -rf conftest*
12565 ;;
12566
12567*-*-sco3.2v5*)
12568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12569 SAVE_CFLAGS="$CFLAGS"
12570 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012571 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12572echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012573if test "${lt_cv_cc_needs_belf+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575else
12576 ac_ext=c
12577ac_cpp='$CPP $CPPFLAGS'
12578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582 cat >conftest.$ac_ext <<_ACEOF
12583/* confdefs.h. */
12584_ACEOF
12585cat confdefs.h >>conftest.$ac_ext
12586cat >>conftest.$ac_ext <<_ACEOF
12587/* end confdefs.h. */
12588
Reid Spencera773bd52006-08-04 18:18:08 +000012589int
12590main ()
12591{
12592
12593 ;
12594 return 0;
12595}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596_ACEOF
12597rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012598if { (ac_try="$ac_link"
12599case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012622 { (case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625esac
12626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 lt_cv_cc_needs_belf=yes
12632else
12633 echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
Reid Spencera773bd52006-08-04 18:18:08 +000012636 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637fi
Reid Spencera773bd52006-08-04 18:18:08 +000012638
12639rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640 conftest$ac_exeext conftest.$ac_ext
12641 ac_ext=c
12642ac_cpp='$CPP $CPPFLAGS'
12643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12645ac_compiler_gnu=$ac_cv_c_compiler_gnu
12646
12647fi
Reid Spencera773bd52006-08-04 18:18:08 +000012648{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12649echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012650 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12651 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12652 CFLAGS="$SAVE_CFLAGS"
12653 fi
12654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012655sparc*-*solaris*)
12656 # Find out which ABI we are using.
12657 echo 'int i;' > conftest.$ac_ext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; then
12663 case `/usr/bin/file conftest.o` in
12664 *64-bit*)
12665 case $lt_cv_prog_gnu_ld in
12666 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12667 *) LD="${LD-ld} -64" ;;
12668 esac
12669 ;;
12670 esac
12671 fi
12672 rm -rf conftest*
12673 ;;
12674
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012675
12676esac
12677
12678need_locks="$enable_libtool_lock"
12679
12680
Reid Spencer2706f8c2004-09-19 23:53:36 +000012681
12682
12683if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12684 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12685 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012686 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012687ac_cpp='$CXXCPP $CPPFLAGS'
12688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012691{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12692echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012693if test -z "$CXXCPP"; then
12694 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
John Criswell47fdd832003-07-14 16:52:07 +000012697 # Double quotes because CXXCPP needs to be expanded
12698 for CXXCPP in "$CXX -E" "/lib/cpp"
12699 do
12700 ac_preproc_ok=false
12701for ac_cxx_preproc_warn_flag in '' yes
12702do
12703 # Use a header file that comes with gcc, so configuring glibc
12704 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012707 # On the NeXT, cc -E runs the code through the compiler's parser,
12708 # not just through cpp. "Syntax error" is here to catch this case.
12709 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715#ifdef __STDC__
12716# include <limits.h>
12717#else
12718# include <assert.h>
12719#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012720 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012721_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012722if { (ac_try="$ac_cpp conftest.$ac_ext"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012729 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012730 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } >/dev/null; then
12735 if test -s conftest.err; then
12736 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012737 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012738 else
John Criswell47fdd832003-07-14 16:52:07 +000012739 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012740 fi
John Criswell47fdd832003-07-14 16:52:07 +000012741else
12742 ac_cpp_err=yes
12743fi
12744if test -z "$ac_cpp_err"; then
12745 :
12746else
12747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012748sed 's/^/| /' conftest.$ac_ext >&5
12749
John Criswell47fdd832003-07-14 16:52:07 +000012750 # Broken: fails on valid input.
12751continue
12752fi
Reid Spencera773bd52006-08-04 18:18:08 +000012753
John Criswell47fdd832003-07-14 16:52:07 +000012754rm -f conftest.err conftest.$ac_ext
12755
Reid Spencera773bd52006-08-04 18:18:08 +000012756 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012757 # can be detected and how.
12758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012764#include <ac_nonexistent.h>
12765_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012766if { (ac_try="$ac_cpp conftest.$ac_ext"
12767case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770esac
12771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012773 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012774 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012782 else
12783 ac_cpp_err=
12784 fi
12785else
12786 ac_cpp_err=yes
12787fi
12788if test -z "$ac_cpp_err"; then
12789 # Broken: success on invalid input.
12790continue
12791else
12792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012793sed 's/^/| /' conftest.$ac_ext >&5
12794
John Criswell47fdd832003-07-14 16:52:07 +000012795 # Passes both tests.
12796ac_preproc_ok=:
12797break
12798fi
Reid Spencera773bd52006-08-04 18:18:08 +000012799
John Criswell47fdd832003-07-14 16:52:07 +000012800rm -f conftest.err conftest.$ac_ext
12801
12802done
12803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12804rm -f conftest.err conftest.$ac_ext
12805if $ac_preproc_ok; then
12806 break
John Criswell7a73b802003-06-30 21:59:07 +000012807fi
12808
John Criswell47fdd832003-07-14 16:52:07 +000012809 done
12810 ac_cv_prog_CXXCPP=$CXXCPP
12811
12812fi
12813 CXXCPP=$ac_cv_prog_CXXCPP
12814else
12815 ac_cv_prog_CXXCPP=$CXXCPP
12816fi
Reid Spencera773bd52006-08-04 18:18:08 +000012817{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12818echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012819ac_preproc_ok=false
12820for ac_cxx_preproc_warn_flag in '' yes
12821do
12822 # Use a header file that comes with gcc, so configuring glibc
12823 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12825 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012826 # On the NeXT, cc -E runs the code through the compiler's parser,
12827 # not just through cpp. "Syntax error" is here to catch this case.
12828 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834#ifdef __STDC__
12835# include <limits.h>
12836#else
12837# include <assert.h>
12838#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012839 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012840_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012841if { (ac_try="$ac_cpp conftest.$ac_ext"
12842case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012848 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012849 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012857 else
12858 ac_cpp_err=
12859 fi
12860else
12861 ac_cpp_err=yes
12862fi
12863if test -z "$ac_cpp_err"; then
12864 :
12865else
12866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012867sed 's/^/| /' conftest.$ac_ext >&5
12868
John Criswell47fdd832003-07-14 16:52:07 +000012869 # Broken: fails on valid input.
12870continue
12871fi
Reid Spencera773bd52006-08-04 18:18:08 +000012872
John Criswell47fdd832003-07-14 16:52:07 +000012873rm -f conftest.err conftest.$ac_ext
12874
Reid Spencera773bd52006-08-04 18:18:08 +000012875 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012876 # can be detected and how.
12877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012878/* confdefs.h. */
12879_ACEOF
12880cat confdefs.h >>conftest.$ac_ext
12881cat >>conftest.$ac_ext <<_ACEOF
12882/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012883#include <ac_nonexistent.h>
12884_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012885if { (ac_try="$ac_cpp conftest.$ac_ext"
12886case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012892 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012893 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null; then
12898 if test -s conftest.err; then
12899 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012901 else
12902 ac_cpp_err=
12903 fi
12904else
12905 ac_cpp_err=yes
12906fi
12907if test -z "$ac_cpp_err"; then
12908 # Broken: success on invalid input.
12909continue
12910else
12911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012912sed 's/^/| /' conftest.$ac_ext >&5
12913
John Criswell47fdd832003-07-14 16:52:07 +000012914 # Passes both tests.
12915ac_preproc_ok=:
12916break
12917fi
Reid Spencera773bd52006-08-04 18:18:08 +000012918
John Criswell47fdd832003-07-14 16:52:07 +000012919rm -f conftest.err conftest.$ac_ext
12920
12921done
12922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12923rm -f conftest.err conftest.$ac_ext
12924if $ac_preproc_ok; then
12925 :
12926else
John Criswell0c38eaf2003-09-10 15:17:25 +000012927 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12928See \`config.log' for more details." >&5
12929echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12930See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012931 { (exit 1); exit 1; }; }
12932fi
12933
Reid Spencera773bd52006-08-04 18:18:08 +000012934ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012935ac_cpp='$CXXCPP $CPPFLAGS'
12936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12939
Reid Spencer2706f8c2004-09-19 23:53:36 +000012940fi
12941
John Criswell47fdd832003-07-14 16:52:07 +000012942
12943ac_ext=f
12944ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12947if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012948 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 +000012949 do
12950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012954if test "${ac_cv_prog_F77+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956else
12957 if test -n "$F77"; then
12958 ac_cv_prog_F77="$F77" # Let the user override the test.
12959else
12960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961for as_dir in $PATH
12962do
12963 IFS=$as_save_IFS
12964 test -z "$as_dir" && as_dir=.
12965 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012966 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 +000012967 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12969 break 2
12970 fi
12971done
12972done
Reid Spencera773bd52006-08-04 18:18:08 +000012973IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012974
12975fi
12976fi
12977F77=$ac_cv_prog_F77
12978if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012979 { echo "$as_me:$LINENO: result: $F77" >&5
12980echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012981else
Reid Spencera773bd52006-08-04 18:18:08 +000012982 { echo "$as_me:$LINENO: result: no" >&5
12983echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012984fi
12985
Reid Spencera773bd52006-08-04 18:18:08 +000012986
John Criswell47fdd832003-07-14 16:52:07 +000012987 test -n "$F77" && break
12988 done
12989fi
12990if test -z "$F77"; then
12991 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012992 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 +000012993do
12994 # Extract the first word of "$ac_prog", so it can be a program name with args.
12995set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012998if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001 if test -n "$ac_ct_F77"; then
13002 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013010 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 +000013011 ac_cv_prog_ac_ct_F77="$ac_prog"
13012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015done
13016done
Reid Spencera773bd52006-08-04 18:18:08 +000013017IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013018
13019fi
13020fi
13021ac_ct_F77=$ac_cv_prog_ac_ct_F77
13022if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013023 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13024echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013025else
Reid Spencera773bd52006-08-04 18:18:08 +000013026 { echo "$as_me:$LINENO: result: no" >&5
13027echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013028fi
13029
Reid Spencera773bd52006-08-04 18:18:08 +000013030
John Criswell47fdd832003-07-14 16:52:07 +000013031 test -n "$ac_ct_F77" && break
13032done
13033
Reid Spencera773bd52006-08-04 18:18:08 +000013034 if test "x$ac_ct_F77" = x; then
13035 F77=""
13036 else
13037 case $cross_compiling:$ac_tool_warned in
13038yes:)
13039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13040whose name does not start with the host triplet. If you think this
13041configuration is useful to you, please write to autoconf@gnu.org." >&5
13042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13043whose name does not start with the host triplet. If you think this
13044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13045ac_tool_warned=yes ;;
13046esac
13047 F77=$ac_ct_F77
13048 fi
John Criswell47fdd832003-07-14 16:52:07 +000013049fi
13050
13051
13052# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013053echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013054ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013055{ (ac_try="$ac_compiler --version >&5"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013065{ (ac_try="$ac_compiler -v >&5"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013075{ (ac_try="$ac_compiler -V >&5"
13076case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079esac
13080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013085rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013086
13087# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013088# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013089ac_save_ext=$ac_ext
13090ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013091{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13092echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013093if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095else
13096 cat >conftest.$ac_ext <<_ACEOF
13097 program main
13098#ifndef __GNUC__
13099 choke me
13100#endif
13101
13102 end
13103_ACEOF
13104rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013105if { (ac_try="$ac_compile"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013118 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_compiler_gnu=yes
13139else
13140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013141sed 's/^/| /' conftest.$ac_ext >&5
13142
Reid Spencera773bd52006-08-04 18:18:08 +000013143 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013144fi
Reid Spencera773bd52006-08-04 18:18:08 +000013145
13146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013147ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13148
13149fi
Reid Spencera773bd52006-08-04 18:18:08 +000013150{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13151echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013152ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013153ac_test_FFLAGS=${FFLAGS+set}
13154ac_save_FFLAGS=$FFLAGS
13155FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013156{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13157echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013158if test "${ac_cv_prog_f77_g+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 FFLAGS=-g
13162cat >conftest.$ac_ext <<_ACEOF
13163 program main
13164
13165 end
13166_ACEOF
13167rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013168if { (ac_try="$ac_compile"
13169case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013181 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185esac
13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195esac
13196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_cv_prog_f77_g=yes
13202else
13203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013204sed 's/^/| /' conftest.$ac_ext >&5
13205
Reid Spencera773bd52006-08-04 18:18:08 +000013206 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013207fi
Reid Spencera773bd52006-08-04 18:18:08 +000013208
13209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013210
13211fi
Reid Spencera773bd52006-08-04 18:18:08 +000013212{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13213echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013214if test "$ac_test_FFLAGS" = set; then
13215 FFLAGS=$ac_save_FFLAGS
13216elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013217 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013218 FFLAGS="-g -O2"
13219 else
13220 FFLAGS="-g"
13221 fi
13222else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013223 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013224 FFLAGS="-O2"
13225 else
13226 FFLAGS=
13227 fi
13228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013229
13230G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013231ac_ext=c
13232ac_cpp='$CPP $CPPFLAGS'
13233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237
13238
13239# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13240
13241# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013242{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13243echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013244if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013248 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013249
13250 case $build_os in
13251 msdosdjgpp*)
13252 # On DJGPP, this test can blow up pretty badly due to problems in libc
13253 # (any single argument exceeding 2000 bytes causes a buffer overrun
13254 # during glob expansion). Even if it were fixed, the result of this
13255 # check would be larger than it should be.
13256 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13257 ;;
13258
13259 gnu*)
13260 # Under GNU Hurd, this test is not required because there is
13261 # no limit to the length of command line arguments.
13262 # Libtool will interpret -1 as no limit whatsoever
13263 lt_cv_sys_max_cmd_len=-1;
13264 ;;
13265
13266 cygwin* | mingw*)
13267 # On Win9x/ME, this test blows up -- it succeeds, but takes
13268 # about 5 minutes as the teststring grows exponentially.
13269 # Worse, since 9x/ME are not pre-emptively multitasking,
13270 # you end up with a "frozen" computer, even though with patience
13271 # the test eventually succeeds (with a max line length of 256k).
13272 # Instead, let's just punt: use the minimum linelength reported by
13273 # all of the supported platforms: 8192 (on NT/2K/XP).
13274 lt_cv_sys_max_cmd_len=8192;
13275 ;;
13276
Reid Spencer2706f8c2004-09-19 23:53:36 +000013277 amigaos*)
13278 # On AmigaOS with pdksh, this test takes hours, literally.
13279 # So we just punt and use a minimum line length of 8192.
13280 lt_cv_sys_max_cmd_len=8192;
13281 ;;
13282
Reid Spencera773bd52006-08-04 18:18:08 +000013283 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013284 # This has been around since 386BSD, at least. Likely further.
13285 if test -x /sbin/sysctl; then
13286 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13287 elif test -x /usr/sbin/sysctl; then
13288 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13289 else
Reid Spencera773bd52006-08-04 18:18:08 +000013290 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013291 fi
13292 # And add a safety zone
13293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013295 ;;
13296
Reid Spencera773bd52006-08-04 18:18:08 +000013297 interix*)
13298 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13299 lt_cv_sys_max_cmd_len=196608
13300 ;;
13301
13302 osf*)
13303 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13304 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13305 # nice to cause kernel panics so lets avoid the loop below.
13306 # First set a reasonable default.
13307 lt_cv_sys_max_cmd_len=16384
13308 #
13309 if test -x /sbin/sysconfig; then
13310 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13311 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13312 esac
13313 fi
13314 ;;
13315 sco3.2v5*)
13316 lt_cv_sys_max_cmd_len=102400
13317 ;;
13318 sysv5* | sco5v6* | sysv4.2uw2*)
13319 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13320 if test -n "$kargmax"; then
13321 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13322 else
13323 lt_cv_sys_max_cmd_len=32768
13324 fi
13325 ;;
13326 *)
John Criswell47fdd832003-07-14 16:52:07 +000013327 # If test is not a shell built-in, we'll probably end up computing a
13328 # maximum length that is only half of the actual maximum length, but
13329 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13331 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13332 = "XX$teststring") >/dev/null 2>&1 &&
13333 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013334 lt_cv_sys_max_cmd_len=$new_result &&
13335 test $i != 17 # 1/2 MB should be enough
13336 do
13337 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013338 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013339 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013340 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013341 # Add a significant safety factor because C++ compilers can tack on massive
13342 # amounts of additional arguments before passing them to the linker.
13343 # It appears as though 1/2 is a usable value.
13344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13345 ;;
13346 esac
13347
13348fi
13349
13350if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013351 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13352echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013353else
Reid Spencera773bd52006-08-04 18:18:08 +000013354 { echo "$as_me:$LINENO: result: none" >&5
13355echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013356fi
13357
13358
13359
13360
13361# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013362{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13363echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013364if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367
13368# These are sane defaults that work on at least a few old systems.
13369# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13370
13371# Character class describing NM global symbol codes.
13372symcode='[BCDEGRST]'
13373
13374# Regexp to match symbols that can be accessed directly from C.
13375sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13376
John Criswell47fdd832003-07-14 16:52:07 +000013377# Transform an extracted symbol line into a proper C declaration
13378lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13379
13380# Transform an extracted symbol line into symbol name and symbol address
13381lt_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'"
13382
13383# Define system-specific variables.
13384case $host_os in
13385aix*)
13386 symcode='[BCDT]'
13387 ;;
13388cygwin* | mingw* | pw32*)
13389 symcode='[ABCDGISTW]'
13390 ;;
13391hpux*) # Its linker distinguishes data from code symbols
13392 if test "$host_cpu" = ia64; then
13393 symcode='[ABCDEGRST]'
13394 fi
13395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13396 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'"
13397 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013398linux*)
13399 if test "$host_cpu" = ia64; then
13400 symcode='[ABCDGIRSTW]'
13401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13402 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'"
13403 fi
13404 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013405irix* | nonstopux*)
13406 symcode='[BCDEGRST]'
13407 ;;
13408osf*)
13409 symcode='[BCDEGQRST]'
13410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013411solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013412 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013414sco3.2v5*)
13415 symcode='[DT]'
13416 ;;
13417sysv4.2uw2*)
13418 symcode='[DT]'
13419 ;;
13420sysv5* | sco5v6* | unixware* | OpenUNIX*)
13421 symcode='[ABDT]'
13422 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013423sysv4)
13424 symcode='[DFNSTU]'
13425 ;;
13426esac
13427
13428# Handle CRLF in mingw tool chain
13429opt_cr=
13430case $build_os in
13431mingw*)
13432 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13433 ;;
13434esac
13435
13436# If we're using GNU nm, then use its standard symbol codes.
13437case `$NM -V 2>&1` in
13438*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013439 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013440esac
13441
13442# Try without a prefix undercore, then with it.
13443for ac_symprfx in "" "_"; do
13444
Reid Spencera773bd52006-08-04 18:18:08 +000013445 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13446 symxfrm="\\1 $ac_symprfx\\2 \\2"
13447
John Criswell47fdd832003-07-14 16:52:07 +000013448 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013449 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 +000013450
13451 # Check to see that the pipe works correctly.
13452 pipe_works=no
13453
13454 rm -f conftest*
13455 cat > conftest.$ac_ext <<EOF
13456#ifdef __cplusplus
13457extern "C" {
13458#endif
13459char nm_test_var;
13460void nm_test_func(){}
13461#ifdef __cplusplus
13462}
13463#endif
13464int main(){nm_test_var='a';nm_test_func();return(0);}
13465EOF
13466
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; then
13472 # Now try to grab the symbols.
13473 nlist=conftest.nm
13474 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13475 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && test -s "$nlist"; then
13479 # Try sorting and uniquifying the output.
13480 if sort "$nlist" | uniq > "$nlist"T; then
13481 mv -f "$nlist"T "$nlist"
13482 else
13483 rm -f "$nlist"T
13484 fi
13485
13486 # Make sure that we snagged all the symbols we need.
13487 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13488 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13489 cat <<EOF > conftest.$ac_ext
13490#ifdef __cplusplus
13491extern "C" {
13492#endif
13493
13494EOF
13495 # Now generate the symbol file.
13496 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13497
13498 cat <<EOF >> conftest.$ac_ext
13499#if defined (__STDC__) && __STDC__
13500# define lt_ptr_t void *
13501#else
13502# define lt_ptr_t char *
13503# define const
13504#endif
13505
13506/* The mapping between symbol names and symbols. */
13507const struct {
13508 const char *name;
13509 lt_ptr_t address;
13510}
13511lt_preloaded_symbols[] =
13512{
13513EOF
13514 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13515 cat <<\EOF >> conftest.$ac_ext
13516 {0, (lt_ptr_t) 0}
13517};
13518
13519#ifdef __cplusplus
13520}
13521#endif
13522EOF
13523 # Now try linking the two files.
13524 mv conftest.$ac_objext conftstm.$ac_objext
13525 lt_save_LIBS="$LIBS"
13526 lt_save_CFLAGS="$CFLAGS"
13527 LIBS="conftstm.$ac_objext"
13528 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13534 pipe_works=yes
13535 fi
13536 LIBS="$lt_save_LIBS"
13537 CFLAGS="$lt_save_CFLAGS"
13538 else
13539 echo "cannot find nm_test_func in $nlist" >&5
13540 fi
13541 else
13542 echo "cannot find nm_test_var in $nlist" >&5
13543 fi
13544 else
13545 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13546 fi
13547 else
13548 echo "$progname: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13550 fi
13551 rm -f conftest* conftst*
13552
13553 # Do not use the global_symbol_pipe unless it works.
13554 if test "$pipe_works" = yes; then
13555 break
13556 else
13557 lt_cv_sys_global_symbol_pipe=
13558 fi
13559done
13560
13561fi
13562
13563if test -z "$lt_cv_sys_global_symbol_pipe"; then
13564 lt_cv_sys_global_symbol_to_cdecl=
13565fi
13566if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013567 { echo "$as_me:$LINENO: result: failed" >&5
13568echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013569else
Reid Spencera773bd52006-08-04 18:18:08 +000013570 { echo "$as_me:$LINENO: result: ok" >&5
13571echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013572fi
13573
Reid Spencera773bd52006-08-04 18:18:08 +000013574{ echo "$as_me:$LINENO: checking for objdir" >&5
13575echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013576if test "${lt_cv_objdir+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579 rm -f .libs 2>/dev/null
13580mkdir .libs 2>/dev/null
13581if test -d .libs; then
13582 lt_cv_objdir=.libs
13583else
13584 # MS-DOS does not allow filenames that begin with a dot.
13585 lt_cv_objdir=_libs
13586fi
13587rmdir .libs 2>/dev/null
13588fi
Reid Spencera773bd52006-08-04 18:18:08 +000013589{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13590echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013591objdir=$lt_cv_objdir
13592
13593
13594
13595
13596
13597case $host_os in
13598aix3*)
13599 # AIX sometimes has problems with the GCC collect2 program. For some
13600 # reason, if we set the COLLECT_NAMES environment variable, the problems
13601 # vanish in a puff of smoke.
13602 if test "X${COLLECT_NAMES+set}" != Xset; then
13603 COLLECT_NAMES=
13604 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013605 fi
13606 ;;
13607esac
13608
John Criswell47fdd832003-07-14 16:52:07 +000013609# Sed substitution that helps us do robust quoting. It backslashifies
13610# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013611Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013612sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13613
13614# Same as above, but do not quote variable references.
13615double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13616
13617# Sed substitution to delay expansion of an escaped shell variable in a
13618# double_quote_subst'ed string.
13619delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13620
13621# Sed substitution to avoid accidental globbing in evaled expressions
13622no_glob_subst='s/\*/\\\*/g'
13623
13624# Constants:
13625rm="rm -f"
13626
13627# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013628default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013629can_build_shared=yes
13630
Reid Spencera773bd52006-08-04 18:18:08 +000013631# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013632# which needs '.lib').
13633libext=a
13634ltmain="$ac_aux_dir/ltmain.sh"
13635ofile="$default_ofile"
13636with_gnu_ld="$lt_cv_prog_gnu_ld"
13637
13638if test -n "$ac_tool_prefix"; then
13639 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13640set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013643if test "${ac_cv_prog_AR+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645else
13646 if test -n "$AR"; then
13647 ac_cv_prog_AR="$AR" # Let the user override the test.
13648else
13649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650for as_dir in $PATH
13651do
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013655 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 +000013656 ac_cv_prog_AR="${ac_tool_prefix}ar"
13657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13659 fi
13660done
13661done
Reid Spencera773bd52006-08-04 18:18:08 +000013662IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013663
13664fi
13665fi
13666AR=$ac_cv_prog_AR
13667if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013668 { echo "$as_me:$LINENO: result: $AR" >&5
13669echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013670else
Reid Spencera773bd52006-08-04 18:18:08 +000013671 { echo "$as_me:$LINENO: result: no" >&5
13672echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013673fi
13674
Reid Spencera773bd52006-08-04 18:18:08 +000013675
John Criswell47fdd832003-07-14 16:52:07 +000013676fi
13677if test -z "$ac_cv_prog_AR"; then
13678 ac_ct_AR=$AR
13679 # Extract the first word of "ar", so it can be a program name with args.
13680set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013683if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685else
13686 if test -n "$ac_ct_AR"; then
13687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13688else
13689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690for as_dir in $PATH
13691do
13692 IFS=$as_save_IFS
13693 test -z "$as_dir" && as_dir=.
13694 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013695 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 +000013696 ac_cv_prog_ac_ct_AR="ar"
13697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 break 2
13699 fi
13700done
13701done
Reid Spencera773bd52006-08-04 18:18:08 +000013702IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013703
John Criswell47fdd832003-07-14 16:52:07 +000013704fi
13705fi
13706ac_ct_AR=$ac_cv_prog_ac_ct_AR
13707if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013708 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13709echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013710else
Reid Spencera773bd52006-08-04 18:18:08 +000013711 { echo "$as_me:$LINENO: result: no" >&5
13712echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013713fi
13714
Reid Spencera773bd52006-08-04 18:18:08 +000013715 if test "x$ac_ct_AR" = x; then
13716 AR="false"
13717 else
13718 case $cross_compiling:$ac_tool_warned in
13719yes:)
13720{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13721whose name does not start with the host triplet. If you think this
13722configuration is useful to you, please write to autoconf@gnu.org." >&5
13723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13724whose name does not start with the host triplet. If you think this
13725configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13726ac_tool_warned=yes ;;
13727esac
13728 AR=$ac_ct_AR
13729 fi
John Criswell47fdd832003-07-14 16:52:07 +000013730else
13731 AR="$ac_cv_prog_AR"
13732fi
13733
John Criswell7a73b802003-06-30 21:59:07 +000013734if test -n "$ac_tool_prefix"; then
13735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13736set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013739if test "${ac_cv_prog_RANLIB+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741else
13742 if test -n "$RANLIB"; then
13743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13744else
13745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746for as_dir in $PATH
13747do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013751 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 +000013752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13755 fi
13756done
13757done
Reid Spencera773bd52006-08-04 18:18:08 +000013758IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013759
13760fi
13761fi
13762RANLIB=$ac_cv_prog_RANLIB
13763if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013764 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13765echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013766else
Reid Spencera773bd52006-08-04 18:18:08 +000013767 { echo "$as_me:$LINENO: result: no" >&5
13768echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013769fi
13770
Reid Spencera773bd52006-08-04 18:18:08 +000013771
John Criswell7a73b802003-06-30 21:59:07 +000013772fi
13773if test -z "$ac_cv_prog_RANLIB"; then
13774 ac_ct_RANLIB=$RANLIB
13775 # Extract the first word of "ranlib", so it can be a program name with args.
13776set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013779if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782 if test -n "$ac_ct_RANLIB"; then
13783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13784else
13785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786for as_dir in $PATH
13787do
13788 IFS=$as_save_IFS
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013791 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 +000013792 ac_cv_prog_ac_ct_RANLIB="ranlib"
13793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13794 break 2
13795 fi
13796done
13797done
Reid Spencera773bd52006-08-04 18:18:08 +000013798IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013799
John Criswell7a73b802003-06-30 21:59:07 +000013800fi
13801fi
13802ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13803if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013804 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13805echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013806else
Reid Spencera773bd52006-08-04 18:18:08 +000013807 { echo "$as_me:$LINENO: result: no" >&5
13808echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013809fi
13810
Reid Spencera773bd52006-08-04 18:18:08 +000013811 if test "x$ac_ct_RANLIB" = x; then
13812 RANLIB=":"
13813 else
13814 case $cross_compiling:$ac_tool_warned in
13815yes:)
13816{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13817whose name does not start with the host triplet. If you think this
13818configuration is useful to you, please write to autoconf@gnu.org." >&5
13819echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13820whose name does not start with the host triplet. If you think this
13821configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13822ac_tool_warned=yes ;;
13823esac
13824 RANLIB=$ac_ct_RANLIB
13825 fi
John Criswell7a73b802003-06-30 21:59:07 +000013826else
13827 RANLIB="$ac_cv_prog_RANLIB"
13828fi
13829
13830if test -n "$ac_tool_prefix"; then
13831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13832set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013835if test "${ac_cv_prog_STRIP+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 if test -n "$STRIP"; then
13839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13840else
13841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842for as_dir in $PATH
13843do
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013847 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 +000013848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 break 2
13851 fi
13852done
13853done
Reid Spencera773bd52006-08-04 18:18:08 +000013854IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013855
13856fi
13857fi
13858STRIP=$ac_cv_prog_STRIP
13859if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013860 { echo "$as_me:$LINENO: result: $STRIP" >&5
13861echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013862else
Reid Spencera773bd52006-08-04 18:18:08 +000013863 { echo "$as_me:$LINENO: result: no" >&5
13864echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013865fi
13866
Reid Spencera773bd52006-08-04 18:18:08 +000013867
John Criswell7a73b802003-06-30 21:59:07 +000013868fi
13869if test -z "$ac_cv_prog_STRIP"; then
13870 ac_ct_STRIP=$STRIP
13871 # Extract the first word of "strip", so it can be a program name with args.
13872set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013875if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878 if test -n "$ac_ct_STRIP"; then
13879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13880else
13881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882for as_dir in $PATH
13883do
13884 IFS=$as_save_IFS
13885 test -z "$as_dir" && as_dir=.
13886 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013887 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 +000013888 ac_cv_prog_ac_ct_STRIP="strip"
13889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13890 break 2
13891 fi
13892done
13893done
Reid Spencera773bd52006-08-04 18:18:08 +000013894IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013895
John Criswell7a73b802003-06-30 21:59:07 +000013896fi
13897fi
13898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13899if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013900 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13901echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013902else
Reid Spencera773bd52006-08-04 18:18:08 +000013903 { echo "$as_me:$LINENO: result: no" >&5
13904echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013905fi
13906
Reid Spencera773bd52006-08-04 18:18:08 +000013907 if test "x$ac_ct_STRIP" = x; then
13908 STRIP=":"
13909 else
13910 case $cross_compiling:$ac_tool_warned in
13911yes:)
13912{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13913whose name does not start with the host triplet. If you think this
13914configuration is useful to you, please write to autoconf@gnu.org." >&5
13915echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13916whose name does not start with the host triplet. If you think this
13917configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13918ac_tool_warned=yes ;;
13919esac
13920 STRIP=$ac_ct_STRIP
13921 fi
John Criswell7a73b802003-06-30 21:59:07 +000013922else
13923 STRIP="$ac_cv_prog_STRIP"
13924fi
13925
13926
John Criswell7a73b802003-06-30 21:59:07 +000013927old_CC="$CC"
13928old_CFLAGS="$CFLAGS"
13929
13930# Set sane defaults for various variables
13931test -z "$AR" && AR=ar
13932test -z "$AR_FLAGS" && AR_FLAGS=cru
13933test -z "$AS" && AS=as
13934test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013935test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013936test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013937test -z "$DLLTOOL" && DLLTOOL=dlltool
13938test -z "$LD" && LD=ld
13939test -z "$LN_S" && LN_S="ln -s"
13940test -z "$MAGIC_CMD" && MAGIC_CMD=file
13941test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013942test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013943test -z "$OBJDUMP" && OBJDUMP=objdump
13944test -z "$RANLIB" && RANLIB=:
13945test -z "$STRIP" && STRIP=:
13946test -z "$ac_objext" && ac_objext=o
13947
John Criswell7a73b802003-06-30 21:59:07 +000013948# Determine commands to create old-style static archives.
13949old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13950old_postinstall_cmds='chmod 644 $oldlib'
13951old_postuninstall_cmds=
13952
13953if test -n "$RANLIB"; then
13954 case $host_os in
13955 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013957 ;;
13958 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013960 ;;
13961 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013962 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013963fi
13964
Reid Spencera773bd52006-08-04 18:18:08 +000013965for cc_temp in $compiler""; do
13966 case $cc_temp in
13967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13969 \-*) ;;
13970 *) break;;
13971 esac
13972done
13973cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13974
Reid Spencer2706f8c2004-09-19 23:53:36 +000013975
John Criswell47fdd832003-07-14 16:52:07 +000013976# Only perform the check for file, if the check method requires it
13977case $deplibs_check_method in
13978file_magic*)
13979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013980 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13981echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013982if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013984else
John Criswell47fdd832003-07-14 16:52:07 +000013985 case $MAGIC_CMD in
13986[\\/*] | ?:[\\/]*)
13987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13988 ;;
13989*)
13990 lt_save_MAGIC_CMD="$MAGIC_CMD"
13991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13993 for ac_dir in $ac_dummy; do
13994 IFS="$lt_save_ifs"
13995 test -z "$ac_dir" && ac_dir=.
13996 if test -f $ac_dir/${ac_tool_prefix}file; then
13997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13998 if test -n "$file_magic_test_file"; then
13999 case $deplibs_check_method in
14000 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14004 $EGREP "$file_magic_regex" > /dev/null; then
14005 :
14006 else
14007 cat <<EOF 1>&2
14008
14009*** Warning: the command libtool uses to detect shared libraries,
14010*** $file_magic_cmd, produces output that libtool cannot recognize.
14011*** The result is that libtool may fail to recognize shared libraries
14012*** as such. This will affect the creation of libtool libraries that
14013*** depend on shared libraries, but programs linked with such libtool
14014*** libraries will work regardless of this problem. Nevertheless, you
14015*** may want to report the problem to your system manager and/or to
14016*** bug-libtool@gnu.org
14017
14018EOF
14019 fi ;;
14020 esac
14021 fi
14022 break
14023 fi
14024 done
14025 IFS="$lt_save_ifs"
14026 MAGIC_CMD="$lt_save_MAGIC_CMD"
14027 ;;
14028esac
John Criswell7a73b802003-06-30 21:59:07 +000014029fi
John Criswell7a73b802003-06-30 21:59:07 +000014030
John Criswell47fdd832003-07-14 16:52:07 +000014031MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14032if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014033 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14034echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014035else
Reid Spencera773bd52006-08-04 18:18:08 +000014036 { echo "$as_me:$LINENO: result: no" >&5
14037echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014038fi
John Criswell7a73b802003-06-30 21:59:07 +000014039
John Criswell47fdd832003-07-14 16:52:07 +000014040if test -z "$lt_cv_path_MAGIC_CMD"; then
14041 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014042 { echo "$as_me:$LINENO: checking for file" >&5
14043echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014044if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046else
14047 case $MAGIC_CMD in
14048[\\/*] | ?:[\\/]*)
14049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14050 ;;
14051*)
14052 lt_save_MAGIC_CMD="$MAGIC_CMD"
14053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14055 for ac_dir in $ac_dummy; do
14056 IFS="$lt_save_ifs"
14057 test -z "$ac_dir" && ac_dir=.
14058 if test -f $ac_dir/file; then
14059 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14060 if test -n "$file_magic_test_file"; then
14061 case $deplibs_check_method in
14062 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14066 $EGREP "$file_magic_regex" > /dev/null; then
14067 :
14068 else
14069 cat <<EOF 1>&2
14070
14071*** Warning: the command libtool uses to detect shared libraries,
14072*** $file_magic_cmd, produces output that libtool cannot recognize.
14073*** The result is that libtool may fail to recognize shared libraries
14074*** as such. This will affect the creation of libtool libraries that
14075*** depend on shared libraries, but programs linked with such libtool
14076*** libraries will work regardless of this problem. Nevertheless, you
14077*** may want to report the problem to your system manager and/or to
14078*** bug-libtool@gnu.org
14079
14080EOF
14081 fi ;;
14082 esac
14083 fi
14084 break
14085 fi
14086 done
14087 IFS="$lt_save_ifs"
14088 MAGIC_CMD="$lt_save_MAGIC_CMD"
14089 ;;
14090esac
14091fi
14092
14093MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14094if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014095 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14096echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014097else
Reid Spencera773bd52006-08-04 18:18:08 +000014098 { echo "$as_me:$LINENO: result: no" >&5
14099echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014100fi
14101
14102 else
14103 MAGIC_CMD=:
14104 fi
14105fi
14106
14107 fi
14108 ;;
14109esac
14110
Reid Spencer17795972004-11-18 09:47:37 +000014111enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014112enable_win32_dll=no
14113
Reid Spencera773bd52006-08-04 18:18:08 +000014114# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014115if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014116 enableval=$enable_libtool_lock;
14117fi
John Criswell47fdd832003-07-14 16:52:07 +000014118
John Criswell47fdd832003-07-14 16:52:07 +000014119test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14120
John Criswell7a73b802003-06-30 21:59:07 +000014121
Reid Spencera773bd52006-08-04 18:18:08 +000014122# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014123if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014124 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014125else
14126 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014127fi
14128
John Criswell7a73b802003-06-30 21:59:07 +000014129test -z "$pic_mode" && pic_mode=default
14130
John Criswell47fdd832003-07-14 16:52:07 +000014131# Use C for the default configuration in the libtool script
14132tagname=
14133lt_save_CC="$CC"
14134ac_ext=c
14135ac_cpp='$CPP $CPPFLAGS'
14136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138ac_compiler_gnu=$ac_cv_c_compiler_gnu
14139
14140
14141# Source file extension for C test sources.
14142ac_ext=c
14143
14144# Object file extension for compiled C test sources.
14145objext=o
14146objext=$objext
14147
14148# Code to be used in simple compile tests
14149lt_simple_compile_test_code="int some_variable = 0;\n"
14150
14151# Code to be used in simple link tests
14152lt_simple_link_test_code='int main(){return(0);}\n'
14153
14154
14155# If no C compiler was specified, use CC.
14156LTCC=${LTCC-"$CC"}
14157
Reid Spencera773bd52006-08-04 18:18:08 +000014158# If no C compiler flags were specified, use CFLAGS.
14159LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14160
John Criswell47fdd832003-07-14 16:52:07 +000014161# Allow CC to be a program name with arguments.
14162compiler=$CC
14163
14164
Reid Spencera773bd52006-08-04 18:18:08 +000014165# save warnings/boilerplate of simple test code
14166ac_outfile=conftest.$ac_objext
14167printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14168eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14169_lt_compiler_boilerplate=`cat conftest.err`
14170$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014171
Reid Spencera773bd52006-08-04 18:18:08 +000014172ac_outfile=conftest.$ac_objext
14173printf "$lt_simple_link_test_code" >conftest.$ac_ext
14174eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14175_lt_linker_boilerplate=`cat conftest.err`
14176$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014177
14178
John Criswell47fdd832003-07-14 16:52:07 +000014179
14180lt_prog_compiler_no_builtin_flag=
14181
14182if test "$GCC" = yes; then
14183 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14184
Reid Spencer2706f8c2004-09-19 23:53:36 +000014185
Reid Spencera773bd52006-08-04 18:18:08 +000014186{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14187echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014188if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190else
14191 lt_cv_prog_compiler_rtti_exceptions=no
14192 ac_outfile=conftest.$ac_objext
14193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194 lt_compiler_flag="-fno-rtti -fno-exceptions"
14195 # Insert the option either (1) after the last *FLAGS variable, or
14196 # (2) before a word containing "conftest.", or (3) at the end.
14197 # Note that $ac_compile itself does not contain backslashes and begins
14198 # with a dollar sign (not a hyphen), so the echo should work correctly.
14199 # The option is referenced via a variable to avoid confusing sed.
14200 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000014204 (eval echo "\"\$as_me:14204: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014205 (eval "$lt_compile" 2>conftest.err)
14206 ac_status=$?
14207 cat conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000014208 echo "$as_me:14208: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014209 if (exit $ac_status) && test -s "$ac_outfile"; then
14210 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014211 # So say no if there are warnings other than the usual output.
14212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014215 lt_cv_prog_compiler_rtti_exceptions=yes
14216 fi
14217 fi
14218 $rm conftest*
14219
14220fi
Reid Spencera773bd52006-08-04 18:18:08 +000014221{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14222echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014223
14224if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14225 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14226else
14227 :
14228fi
14229
14230fi
14231
14232lt_prog_compiler_wl=
14233lt_prog_compiler_pic=
14234lt_prog_compiler_static=
14235
Reid Spencera773bd52006-08-04 18:18:08 +000014236{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14237echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014238
14239 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014240 lt_prog_compiler_wl='-Wl,'
14241 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014242
14243 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014244 aix*)
14245 # All AIX code is PIC.
14246 if test "$host_cpu" = ia64; then
14247 # AIX 5 now supports IA64 processor
14248 lt_prog_compiler_static='-Bstatic'
14249 fi
John Criswell7a73b802003-06-30 21:59:07 +000014250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014251
John Criswell7a73b802003-06-30 21:59:07 +000014252 amigaos*)
14253 # FIXME: we need at least 68020 code to build shared libraries, but
14254 # adding the `-m68020' flag to GCC prevents building anything better,
14255 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014256 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014257 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014258
14259 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014260 # PIC is the default for these OSes.
14261 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014262
14263 mingw* | pw32* | os2*)
14264 # This hack is so that the source file can tell whether it is being
14265 # built for inclusion in a dll (and should export symbols for example).
14266 lt_prog_compiler_pic='-DDLL_EXPORT'
14267 ;;
14268
John Criswell7a73b802003-06-30 21:59:07 +000014269 darwin* | rhapsody*)
14270 # PIC is the default on this platform
14271 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014272 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014274
Reid Spencera773bd52006-08-04 18:18:08 +000014275 interix3*)
14276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14277 # Instead, we relocate shared libraries at runtime.
14278 ;;
14279
John Criswell47fdd832003-07-14 16:52:07 +000014280 msdosdjgpp*)
14281 # Just because we use GCC doesn't mean we suddenly get shared libraries
14282 # on systems that don't support them.
14283 lt_prog_compiler_can_build_shared=no
14284 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014285 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014286
John Criswell7a73b802003-06-30 21:59:07 +000014287 sysv4*MP*)
14288 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014289 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014290 fi
14291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014292
14293 hpux*)
14294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14295 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014296 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014297 hppa*64*|ia64*)
14298 # +Z the default
14299 ;;
14300 *)
14301 lt_prog_compiler_pic='-fPIC'
14302 ;;
14303 esac
14304 ;;
14305
John Criswell7a73b802003-06-30 21:59:07 +000014306 *)
John Criswell47fdd832003-07-14 16:52:07 +000014307 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014308 ;;
14309 esac
14310 else
John Criswell47fdd832003-07-14 16:52:07 +000014311 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014312 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014313 aix*)
14314 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014315 if test "$host_cpu" = ia64; then
14316 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014317 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014318 else
John Criswell47fdd832003-07-14 16:52:07 +000014319 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014320 fi
14321 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014322 darwin*)
14323 # PIC is the default on this platform
14324 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014325 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014326 xlc*)
14327 lt_prog_compiler_pic='-qnocommon'
14328 lt_prog_compiler_wl='-Wl,'
14329 ;;
14330 esac
14331 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014332
John Criswell47fdd832003-07-14 16:52:07 +000014333 mingw* | pw32* | os2*)
14334 # This hack is so that the source file can tell whether it is being
14335 # built for inclusion in a dll (and should export symbols for example).
14336 lt_prog_compiler_pic='-DDLL_EXPORT'
14337 ;;
14338
John Criswell7a73b802003-06-30 21:59:07 +000014339 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014340 lt_prog_compiler_wl='-Wl,'
14341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14342 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014343 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014344 hppa*64*|ia64*)
14345 # +Z the default
14346 ;;
14347 *)
14348 lt_prog_compiler_pic='+Z'
14349 ;;
14350 esac
14351 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14352 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014353 ;;
14354
John Criswell47fdd832003-07-14 16:52:07 +000014355 irix5* | irix6* | nonstopux*)
14356 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014357 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014358 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014359 ;;
14360
14361 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014362 lt_prog_compiler_pic='-KPIC'
14363 lt_prog_compiler_static='-Bstatic'
14364 ;;
14365
14366 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014367 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014368 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014369 lt_prog_compiler_wl='-Wl,'
14370 lt_prog_compiler_pic='-KPIC'
14371 lt_prog_compiler_static='-static'
14372 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014373 pgcc* | pgf77* | pgf90* | pgf95*)
14374 # Portland Group compilers (*not* the Pentium gcc compiler,
14375 # which looks to be a dead project)
14376 lt_prog_compiler_wl='-Wl,'
14377 lt_prog_compiler_pic='-fpic'
14378 lt_prog_compiler_static='-Bstatic'
14379 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014380 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014381 lt_prog_compiler_wl='-Wl,'
14382 # All Alpha code is PIC.
14383 lt_prog_compiler_static='-non_shared'
14384 ;;
14385 esac
John Criswell7a73b802003-06-30 21:59:07 +000014386 ;;
14387
14388 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014389 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014390 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014391 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014392 ;;
14393
John Criswell7a73b802003-06-30 21:59:07 +000014394 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014395 lt_prog_compiler_pic='-KPIC'
14396 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014397 case $cc_basename in
14398 f77* | f90* | f95*)
14399 lt_prog_compiler_wl='-Qoption ld ';;
14400 *)
14401 lt_prog_compiler_wl='-Wl,';;
14402 esac
John Criswell7a73b802003-06-30 21:59:07 +000014403 ;;
14404
14405 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014406 lt_prog_compiler_wl='-Qoption ld '
14407 lt_prog_compiler_pic='-PIC'
14408 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014409 ;;
14410
Reid Spencera773bd52006-08-04 18:18:08 +000014411 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014412 lt_prog_compiler_wl='-Wl,'
14413 lt_prog_compiler_pic='-KPIC'
14414 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014415 ;;
14416
14417 sysv4*MP*)
14418 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014419 lt_prog_compiler_pic='-Kconform_pic'
14420 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014421 fi
14422 ;;
14423
Reid Spencera773bd52006-08-04 18:18:08 +000014424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14425 lt_prog_compiler_wl='-Wl,'
14426 lt_prog_compiler_pic='-KPIC'
14427 lt_prog_compiler_static='-Bstatic'
14428 ;;
14429
14430 unicos*)
14431 lt_prog_compiler_wl='-Wl,'
14432 lt_prog_compiler_can_build_shared=no
14433 ;;
14434
John Criswell47fdd832003-07-14 16:52:07 +000014435 uts4*)
14436 lt_prog_compiler_pic='-pic'
14437 lt_prog_compiler_static='-Bstatic'
14438 ;;
14439
John Criswell7a73b802003-06-30 21:59:07 +000014440 *)
John Criswell47fdd832003-07-14 16:52:07 +000014441 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014442 ;;
14443 esac
14444 fi
14445
Reid Spencera773bd52006-08-04 18:18:08 +000014446{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14447echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014448
John Criswell47fdd832003-07-14 16:52:07 +000014449#
14450# Check to make sure the PIC flag actually works.
14451#
14452if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014453
Reid Spencera773bd52006-08-04 18:18:08 +000014454{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14455echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014456if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014457 echo $ECHO_N "(cached) $ECHO_C" >&6
14458else
John Criswell47fdd832003-07-14 16:52:07 +000014459 lt_prog_compiler_pic_works=no
14460 ac_outfile=conftest.$ac_objext
14461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14463 # Insert the option either (1) after the last *FLAGS variable, or
14464 # (2) before a word containing "conftest.", or (3) at the end.
14465 # Note that $ac_compile itself does not contain backslashes and begins
14466 # with a dollar sign (not a hyphen), so the echo should work correctly.
14467 # The option is referenced via a variable to avoid confusing sed.
14468 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14471 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000014472 (eval echo "\"\$as_me:14472: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014473 (eval "$lt_compile" 2>conftest.err)
14474 ac_status=$?
14475 cat conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000014476 echo "$as_me:14476: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014477 if (exit $ac_status) && test -s "$ac_outfile"; then
14478 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014479 # So say no if there are warnings other than the usual output.
14480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014483 lt_prog_compiler_pic_works=yes
14484 fi
14485 fi
14486 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014487
John Criswell47fdd832003-07-14 16:52:07 +000014488fi
Reid Spencera773bd52006-08-04 18:18:08 +000014489{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14490echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014491
John Criswell47fdd832003-07-14 16:52:07 +000014492if test x"$lt_prog_compiler_pic_works" = xyes; then
14493 case $lt_prog_compiler_pic in
14494 "" | " "*) ;;
14495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14496 esac
John Criswell7a73b802003-06-30 21:59:07 +000014497else
John Criswell47fdd832003-07-14 16:52:07 +000014498 lt_prog_compiler_pic=
14499 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014500fi
14501
John Criswell7a73b802003-06-30 21:59:07 +000014502fi
Reid Spencera773bd52006-08-04 18:18:08 +000014503case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014504 # For platforms which do not support PIC, -DPIC is meaningless:
14505 *djgpp*)
14506 lt_prog_compiler_pic=
14507 ;;
14508 *)
14509 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14510 ;;
14511esac
John Criswell7a73b802003-06-30 21:59:07 +000014512
Reid Spencera773bd52006-08-04 18:18:08 +000014513#
14514# Check to make sure the static flag actually works.
14515#
14516wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14517{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14518echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14519if test "${lt_prog_compiler_static_works+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521else
14522 lt_prog_compiler_static_works=no
14523 save_LDFLAGS="$LDFLAGS"
14524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14525 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14527 # The linker can only warn and ignore the option if not recognized
14528 # So say no if there are warnings
14529 if test -s conftest.err; then
14530 # Append any errors to the config.log.
14531 cat conftest.err 1>&5
14532 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14534 if diff conftest.exp conftest.er2 >/dev/null; then
14535 lt_prog_compiler_static_works=yes
14536 fi
14537 else
14538 lt_prog_compiler_static_works=yes
14539 fi
14540 fi
14541 $rm conftest*
14542 LDFLAGS="$save_LDFLAGS"
14543
14544fi
14545{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14546echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14547
14548if test x"$lt_prog_compiler_static_works" = xyes; then
14549 :
14550else
14551 lt_prog_compiler_static=
14552fi
14553
14554
14555{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14556echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014557if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559else
John Criswell47fdd832003-07-14 16:52:07 +000014560 lt_cv_prog_compiler_c_o=no
14561 $rm -r conftest 2>/dev/null
14562 mkdir conftest
14563 cd conftest
14564 mkdir out
14565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014566
John Criswell47fdd832003-07-14 16:52:07 +000014567 lt_compiler_flag="-o out/conftest2.$ac_objext"
14568 # Insert the option either (1) after the last *FLAGS variable, or
14569 # (2) before a word containing "conftest.", or (3) at the end.
14570 # Note that $ac_compile itself does not contain backslashes and begins
14571 # with a dollar sign (not a hyphen), so the echo should work correctly.
14572 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14575 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000014576 (eval echo "\"\$as_me:14576: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014577 (eval "$lt_compile" 2>out/conftest.err)
14578 ac_status=$?
14579 cat out/conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000014580 echo "$as_me:14580: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14582 then
14583 # The compiler can only warn and ignore the option if not recognized
14584 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014588 lt_cv_prog_compiler_c_o=yes
14589 fi
14590 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014591 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014592 $rm conftest*
14593 # SGI C++ compiler will create directory out/ii_files/ for
14594 # template instantiation
14595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14596 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014597 cd ..
14598 rmdir conftest
14599 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014600
14601fi
Reid Spencera773bd52006-08-04 18:18:08 +000014602{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14603echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014604
John Criswell7a73b802003-06-30 21:59:07 +000014605
John Criswell7a73b802003-06-30 21:59:07 +000014606hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014607if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014608 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014609 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14610echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014611 hard_links=yes
14612 $rm conftest*
14613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14614 touch conftest.a
14615 ln conftest.a conftest.b 2>&5 || hard_links=no
14616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014617 { echo "$as_me:$LINENO: result: $hard_links" >&5
14618echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014619 if test "$hard_links" = no; then
14620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14621echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14622 need_locks=warn
14623 fi
14624else
14625 need_locks=no
14626fi
John Criswell7a73b802003-06-30 21:59:07 +000014627
Reid Spencera773bd52006-08-04 18:18:08 +000014628{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014630
14631 runpath_var=
14632 allow_undefined_flag=
14633 enable_shared_with_static_runtimes=no
14634 archive_cmds=
14635 archive_expsym_cmds=
14636 old_archive_From_new_cmds=
14637 old_archive_from_expsyms_cmds=
14638 export_dynamic_flag_spec=
14639 whole_archive_flag_spec=
14640 thread_safe_flag_spec=
14641 hardcode_libdir_flag_spec=
14642 hardcode_libdir_flag_spec_ld=
14643 hardcode_libdir_separator=
14644 hardcode_direct=no
14645 hardcode_minus_L=no
14646 hardcode_shlibpath_var=unsupported
14647 link_all_deplibs=unknown
14648 hardcode_automatic=no
14649 module_cmds=
14650 module_expsym_cmds=
14651 always_export_symbols=no
14652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14653 # include_expsyms should be a list of space-separated symbols to be *always*
14654 # included in the symbol list
14655 include_expsyms=
14656 # exclude_expsyms can be an extended regexp of symbols to exclude
14657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14659 # as well as any symbol that contains `d'.
14660 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14662 # platforms (ab)use it in PIC code, but their linkers get confused if
14663 # the symbol is explicitly referenced. Since portable code cannot
14664 # rely on this symbol name, it's probably fine to never include it in
14665 # preloaded symbol tables.
14666 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014667 # Just being paranoid about ensuring that cc_basename is set.
14668 for cc_temp in $compiler""; do
14669 case $cc_temp in
14670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14672 \-*) ;;
14673 *) break;;
14674 esac
14675done
14676cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014677
14678 case $host_os in
14679 cygwin* | mingw* | pw32*)
14680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14681 # When not using gcc, we currently assume that we are using
14682 # Microsoft Visual C++.
14683 if test "$GCC" != yes; then
14684 with_gnu_ld=no
14685 fi
14686 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014687 interix*)
14688 # we just hope/assume this is gcc and not c89 (= MSVC++)
14689 with_gnu_ld=yes
14690 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014691 openbsd*)
14692 with_gnu_ld=no
14693 ;;
14694 esac
14695
14696 ld_shlibs=yes
14697 if test "$with_gnu_ld" = yes; then
14698 # If archive_cmds runs LD, not CC, wlarc should be empty
14699 wlarc='${wl}'
14700
Reid Spencera773bd52006-08-04 18:18:08 +000014701 # Set some defaults for GNU ld with shared library support. These
14702 # are reset later if shared libraries are not supported. Putting them
14703 # here allows them to be overridden if necessary.
14704 runpath_var=LD_RUN_PATH
14705 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14706 export_dynamic_flag_spec='${wl}--export-dynamic'
14707 # ancient GNU ld didn't support --whole-archive et. al.
14708 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14709 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14710 else
14711 whole_archive_flag_spec=
14712 fi
14713 supports_anon_versioning=no
14714 case `$LD -v 2>/dev/null` in
14715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14718 *\ 2.11.*) ;; # other 2.11 versions
14719 *) supports_anon_versioning=yes ;;
14720 esac
14721
John Criswell47fdd832003-07-14 16:52:07 +000014722 # See if GNU ld supports shared libraries.
14723 case $host_os in
14724 aix3* | aix4* | aix5*)
14725 # On AIX/PPC, the GNU linker is very broken
14726 if test "$host_cpu" != ia64; then
14727 ld_shlibs=no
14728 cat <<EOF 1>&2
14729
14730*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14731*** to be unable to reliably create shared libraries on AIX.
14732*** Therefore, libtool is disabling shared libraries support. If you
14733*** really care for shared libraries, you may want to modify your PATH
14734*** so that a non-GNU linker is found, and then restart.
14735
14736EOF
14737 fi
14738 ;;
14739
14740 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014741 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 +000014742 hardcode_libdir_flag_spec='-L$libdir'
14743 hardcode_minus_L=yes
14744
14745 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14746 # that the semantics of dynamic libraries on AmigaOS, at least up
14747 # to version 4, is to share data among multiple programs linked
14748 # with the same dynamic library. Since this doesn't match the
14749 # behavior of shared libraries on other platforms, we can't use
14750 # them.
14751 ld_shlibs=no
14752 ;;
14753
14754 beos*)
14755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14756 allow_undefined_flag=unsupported
14757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14758 # support --undefined. This deserves some investigation. FIXME
14759 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14760 else
14761 ld_shlibs=no
14762 fi
14763 ;;
14764
14765 cygwin* | mingw* | pw32*)
14766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14767 # as there is no search path for DLLs.
14768 hardcode_libdir_flag_spec='-L$libdir'
14769 allow_undefined_flag=unsupported
14770 always_export_symbols=no
14771 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014772 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 +000014773
14774 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014775 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 +000014776 # If the export-symbols file already is a .def file (1st line
14777 # is EXPORTS), use it as is; otherwise, prepend...
14778 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14779 cp $export_symbols $output_objdir/$soname.def;
14780 else
14781 echo EXPORTS > $output_objdir/$soname.def;
14782 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014783 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014784 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14785 else
14786 ld_shlibs=no
14787 fi
14788 ;;
14789
14790 interix3*)
14791 hardcode_direct=no
14792 hardcode_shlibpath_var=no
14793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14794 export_dynamic_flag_spec='${wl}-E'
14795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14796 # Instead, shared libraries are loaded at an image base (0x10000000 by
14797 # default) and relocated if they conflict, which is a slow very memory
14798 # consuming and fragmenting process. To avoid this, we pick a random,
14799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14802 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'
14803 ;;
14804
14805 linux*)
14806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14807 tmp_addflag=
14808 case $cc_basename,$host_cpu in
14809 pgcc*) # Portland Group C compiler
14810 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'
14811 tmp_addflag=' $pic_flag'
14812 ;;
14813 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14814 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'
14815 tmp_addflag=' $pic_flag -Mnomain' ;;
14816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14817 tmp_addflag=' -i_dynamic' ;;
14818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14819 tmp_addflag=' -i_dynamic -nofor_main' ;;
14820 ifc* | ifort*) # Intel Fortran compiler
14821 tmp_addflag=' -nofor_main' ;;
14822 esac
14823 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824
14825 if test $supports_anon_versioning = yes; then
14826 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14828 $echo "local: *; };" >> $output_objdir/$libname.ver~
14829 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14830 fi
John Criswell47fdd832003-07-14 16:52:07 +000014831 else
14832 ld_shlibs=no
14833 fi
14834 ;;
14835
14836 netbsd*)
14837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14839 wlarc=
14840 else
14841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14843 fi
14844 ;;
14845
Reid Spencera773bd52006-08-04 18:18:08 +000014846 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14848 ld_shlibs=no
14849 cat <<EOF 1>&2
14850
14851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14852*** create shared libraries on Solaris systems. Therefore, libtool
14853*** is disabling shared libraries support. We urge you to upgrade GNU
14854*** binutils to release 2.9.1 or newer. Another option is to modify
14855*** your PATH or compiler configuration so that the native linker is
14856*** used, and then restart.
14857
14858EOF
14859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14862 else
14863 ld_shlibs=no
14864 fi
14865 ;;
14866
Reid Spencera773bd52006-08-04 18:18:08 +000014867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14868 case `$LD -v 2>&1` in
14869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14870 ld_shlibs=no
14871 cat <<_LT_EOF 1>&2
14872
14873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14874*** reliably create shared libraries on SCO systems. Therefore, libtool
14875*** is disabling shared libraries support. We urge you to upgrade GNU
14876*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14877*** your PATH or compiler configuration so that the native linker is
14878*** used, and then restart.
14879
14880_LT_EOF
14881 ;;
14882 *)
14883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14884 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14887 else
14888 ld_shlibs=no
14889 fi
14890 ;;
14891 esac
14892 ;;
14893
John Criswell47fdd832003-07-14 16:52:07 +000014894 sunos4*)
14895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14896 wlarc=
14897 hardcode_direct=yes
14898 hardcode_shlibpath_var=no
14899 ;;
14900
14901 *)
14902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14905 else
14906 ld_shlibs=no
14907 fi
14908 ;;
14909 esac
14910
Reid Spencera773bd52006-08-04 18:18:08 +000014911 if test "$ld_shlibs" = no; then
14912 runpath_var=
14913 hardcode_libdir_flag_spec=
14914 export_dynamic_flag_spec=
14915 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014916 fi
14917 else
14918 # PORTME fill in a description of your system's linker (not GNU ld)
14919 case $host_os in
14920 aix3*)
14921 allow_undefined_flag=unsupported
14922 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014923 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 +000014924 # Note: this linker hardcodes the directories in LIBPATH if there
14925 # are no directories specified by -L.
14926 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014928 # Neither direct hardcoding nor static linking is supported with a
14929 # broken collect2.
14930 hardcode_direct=unsupported
14931 fi
14932 ;;
14933
14934 aix4* | aix5*)
14935 if test "$host_cpu" = ia64; then
14936 # On IA64, the linker does run time linking by default, so we don't
14937 # have to do anything special.
14938 aix_use_runtimelinking=no
14939 exp_sym_flag='-Bexport'
14940 no_entry_flag=""
14941 else
14942 # If we're using GNU nm, then we don't want the "-C" option.
14943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14944 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14945 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'
14946 else
14947 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'
14948 fi
14949 aix_use_runtimelinking=no
14950
14951 # Test if we are trying to use run time linking or normal
14952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14953 # need to do runtime linking.
14954 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14955 for ld_flag in $LDFLAGS; do
14956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14957 aix_use_runtimelinking=yes
14958 break
14959 fi
14960 done
Reid Spencera773bd52006-08-04 18:18:08 +000014961 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014962 esac
14963
14964 exp_sym_flag='-bexport'
14965 no_entry_flag='-bnoentry'
14966 fi
14967
14968 # When large executables or shared objects are built, AIX ld can
14969 # have problems creating the table of contents. If linking a library
14970 # or program results in "error TOC overflow" add -mminimal-toc to
14971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14973
14974 archive_cmds=''
14975 hardcode_direct=yes
14976 hardcode_libdir_separator=':'
14977 link_all_deplibs=yes
14978
14979 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014980 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014981 # We only want to do this on AIX 4.2 and lower, the check
14982 # below for broken collect2 doesn't work under 4.3+
14983 collect2name=`${CC} -print-prog-name=collect2`
14984 if test -f "$collect2name" && \
14985 strings "$collect2name" | grep resolve_lib_name >/dev/null
14986 then
14987 # We have reworked collect2
14988 hardcode_direct=yes
14989 else
14990 # We have old collect2
14991 hardcode_direct=unsupported
14992 # It fails to find uninstalled libraries when the uninstalled
14993 # path is not listed in the libpath. Setting hardcode_minus_L
14994 # to unsupported forces relinking
14995 hardcode_minus_L=yes
14996 hardcode_libdir_flag_spec='-L$libdir'
14997 hardcode_libdir_separator=
14998 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014999 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015000 esac
15001 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015002 if test "$aix_use_runtimelinking" = yes; then
15003 shared_flag="$shared_flag "'${wl}-G'
15004 fi
John Criswell47fdd832003-07-14 16:52:07 +000015005 else
15006 # not using gcc
15007 if test "$host_cpu" = ia64; then
15008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15009 # chokes on -Wl,-G. The following line is correct:
15010 shared_flag='-G'
15011 else
Reid Spencera773bd52006-08-04 18:18:08 +000015012 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015013 shared_flag='${wl}-G'
15014 else
15015 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015016 fi
John Criswell47fdd832003-07-14 16:52:07 +000015017 fi
15018 fi
15019
15020 # It seems that -bexpall does not export symbols beginning with
15021 # underscore (_), so it is better to generate a list of symbols to export.
15022 always_export_symbols=yes
15023 if test "$aix_use_runtimelinking" = yes; then
15024 # Warning - without using the other runtime loading flags (-brtl),
15025 # -berok will link without error, but may produce a broken library.
15026 allow_undefined_flag='-berok'
15027 # Determine the default libpath from the value encoded in an empty executable.
15028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015034
John Criswell7a73b802003-06-30 21:59:07 +000015035int
15036main ()
15037{
John Criswell47fdd832003-07-14 16:52:07 +000015038
John Criswell7a73b802003-06-30 21:59:07 +000015039 ;
15040 return 0;
15041}
15042_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015043rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015044if { (ac_try="$ac_link"
15045case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048esac
15049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061esac
15062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015077
John Criswell47fdd832003-07-14 16:52:07 +000015078aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15079}'`
15080# Check for a 64-bit object if we didn't find anything.
15081if 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; }
15082}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015083else
15084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015085sed 's/^/| /' conftest.$ac_ext >&5
15086
Reid Spencera773bd52006-08-04 18:18:08 +000015087
John Criswell7a73b802003-06-30 21:59:07 +000015088fi
Reid Spencera773bd52006-08-04 18:18:08 +000015089
15090rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015091 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015092if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015093
John Criswell47fdd832003-07-14 16:52:07 +000015094 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015095 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 +000015096 else
15097 if test "$host_cpu" = ia64; then
15098 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15099 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015100 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 +000015101 else
15102 # Determine the default libpath from the value encoded in an empty executable.
15103 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015109
John Criswell47fdd832003-07-14 16:52:07 +000015110int
15111main ()
15112{
John Criswell7a73b802003-06-30 21:59:07 +000015113
John Criswell47fdd832003-07-14 16:52:07 +000015114 ;
15115 return 0;
15116}
15117_ACEOF
15118rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015119if { (ac_try="$ac_link"
15120case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015126 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15133 { (case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136esac
15137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015143 { (case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146esac
15147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015152
John Criswell47fdd832003-07-14 16:52:07 +000015153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15154}'`
15155# Check for a 64-bit object if we didn't find anything.
15156if 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; }
15157}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015158else
John Criswell47fdd832003-07-14 16:52:07 +000015159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015160sed 's/^/| /' conftest.$ac_ext >&5
15161
Reid Spencera773bd52006-08-04 18:18:08 +000015162
John Criswell47fdd832003-07-14 16:52:07 +000015163fi
Reid Spencera773bd52006-08-04 18:18:08 +000015164
15165rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015166 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015168
John Criswell47fdd832003-07-14 16:52:07 +000015169 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15170 # Warning - without using the other run time loading flags,
15171 # -berok will link without error, but may produce a broken library.
15172 no_undefined_flag=' ${wl}-bernotok'
15173 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015174 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015175 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015176 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015177 # This is similar to how AIX traditionally builds its shared libraries.
15178 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 +000015179 fi
15180 fi
John Criswell7a73b802003-06-30 21:59:07 +000015181 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015182
15183 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015184 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 +000015185 hardcode_libdir_flag_spec='-L$libdir'
15186 hardcode_minus_L=yes
15187 # see comment about different semantics on the GNU ld section
15188 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015189 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015190
Reid Spencer2706f8c2004-09-19 23:53:36 +000015191 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015192 export_dynamic_flag_spec=-rdynamic
15193 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015194
John Criswell47fdd832003-07-14 16:52:07 +000015195 cygwin* | mingw* | pw32*)
15196 # When not using gcc, we currently assume that we are using
15197 # Microsoft Visual C++.
15198 # hardcode_libdir_flag_spec is actually meaningless, as there is
15199 # no search path for DLLs.
15200 hardcode_libdir_flag_spec=' '
15201 allow_undefined_flag=unsupported
15202 # Tell ltmain to make .lib files, not .a files.
15203 libext=lib
15204 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015205 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015206 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015208 # The linker will automatically build a .lib file if we build a DLL.
15209 old_archive_From_new_cmds='true'
15210 # FIXME: Should let the user specify the lib program.
15211 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15212 fix_srcfile_path='`cygpath -w "$srcfile"`'
15213 enable_shared_with_static_runtimes=yes
15214 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015215
John Criswell47fdd832003-07-14 16:52:07 +000015216 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015217 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015218 rhapsody* | darwin1.[012])
15219 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15220 ;;
15221 *) # Darwin 1.3 on
15222 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15223 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15224 else
15225 case ${MACOSX_DEPLOYMENT_TARGET} in
15226 10.[012])
15227 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228 ;;
15229 10.*)
15230 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15231 ;;
15232 esac
15233 fi
15234 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015235 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015236 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015237 hardcode_direct=no
15238 hardcode_automatic=yes
15239 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015240 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015241 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015242 if test "$GCC" = yes ; then
15243 output_verbose_link_cmd='echo'
15244 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15245 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015246 # 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 +000015247 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}'
15248 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 +000015249 else
Reid Spencera773bd52006-08-04 18:18:08 +000015250 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015251 xlc*)
15252 output_verbose_link_cmd='echo'
15253 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15254 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015255 # 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 +000015256 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}'
15257 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 +000015258 ;;
15259 *)
15260 ld_shlibs=no
15261 ;;
15262 esac
John Criswell7a73b802003-06-30 21:59:07 +000015263 fi
John Criswell47fdd832003-07-14 16:52:07 +000015264 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015265
John Criswell47fdd832003-07-14 16:52:07 +000015266 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015268 hardcode_libdir_flag_spec='-L$libdir'
15269 hardcode_shlibpath_var=no
15270 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015271
John Criswell47fdd832003-07-14 16:52:07 +000015272 freebsd1*)
15273 ld_shlibs=no
15274 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015275
John Criswell47fdd832003-07-14 16:52:07 +000015276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15277 # support. Future versions do this automatically, but an explicit c++rt0.o
15278 # does not break anything, and helps significantly (at the cost of a little
15279 # extra space).
15280 freebsd2.2*)
15281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15282 hardcode_libdir_flag_spec='-R$libdir'
15283 hardcode_direct=yes
15284 hardcode_shlibpath_var=no
15285 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015286
John Criswell47fdd832003-07-14 16:52:07 +000015287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15288 freebsd2*)
15289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15290 hardcode_direct=yes
15291 hardcode_minus_L=yes
15292 hardcode_shlibpath_var=no
15293 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015294
John Criswell47fdd832003-07-14 16:52:07 +000015295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015296 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15298 hardcode_libdir_flag_spec='-R$libdir'
15299 hardcode_direct=yes
15300 hardcode_shlibpath_var=no
15301 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015302
John Criswell47fdd832003-07-14 16:52:07 +000015303 hpux9*)
15304 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015305 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 +000015306 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015307 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 +000015308 fi
15309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15310 hardcode_libdir_separator=:
15311 hardcode_direct=yes
15312
15313 # hardcode_minus_L: Not really in the search PATH,
15314 # but as the default location of the library.
15315 hardcode_minus_L=yes
15316 export_dynamic_flag_spec='${wl}-E'
15317 ;;
15318
Reid Spencera773bd52006-08-04 18:18:08 +000015319 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15322 else
15323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15324 fi
15325 if test "$with_gnu_ld" = no; then
15326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15327 hardcode_libdir_separator=:
15328
15329 hardcode_direct=yes
15330 export_dynamic_flag_spec='${wl}-E'
15331
15332 # hardcode_minus_L: Not really in the search PATH,
15333 # but as the default location of the library.
15334 hardcode_minus_L=yes
15335 fi
15336 ;;
15337
15338 hpux11*)
15339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15340 case $host_cpu in
15341 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015344 ia64*)
15345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15346 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015347 *)
15348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15349 ;;
15350 esac
15351 else
Reid Spencera773bd52006-08-04 18:18:08 +000015352 case $host_cpu in
15353 hppa*64*)
15354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15355 ;;
15356 ia64*)
15357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015358 ;;
15359 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015360 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 +000015361 ;;
15362 esac
15363 fi
15364 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15366 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015367
Reid Spencera773bd52006-08-04 18:18:08 +000015368 case $host_cpu in
15369 hppa*64*|ia64*)
15370 hardcode_libdir_flag_spec_ld='+b $libdir'
15371 hardcode_direct=no
15372 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015373 ;;
15374 *)
John Criswell47fdd832003-07-14 16:52:07 +000015375 hardcode_direct=yes
15376 export_dynamic_flag_spec='${wl}-E'
15377
15378 # hardcode_minus_L: Not really in the search PATH,
15379 # but as the default location of the library.
15380 hardcode_minus_L=yes
15381 ;;
15382 esac
15383 fi
15384 ;;
15385
15386 irix5* | irix6* | nonstopux*)
15387 if test "$GCC" = yes; then
15388 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'
15389 else
15390 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'
15391 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15392 fi
15393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15394 hardcode_libdir_separator=:
15395 link_all_deplibs=yes
15396 ;;
15397
15398 netbsd*)
15399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15401 else
15402 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15403 fi
15404 hardcode_libdir_flag_spec='-R$libdir'
15405 hardcode_direct=yes
15406 hardcode_shlibpath_var=no
15407 ;;
15408
15409 newsos6)
15410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411 hardcode_direct=yes
15412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15413 hardcode_libdir_separator=:
15414 hardcode_shlibpath_var=no
15415 ;;
15416
15417 openbsd*)
15418 hardcode_direct=yes
15419 hardcode_shlibpath_var=no
15420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015422 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 +000015423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15424 export_dynamic_flag_spec='${wl}-E'
15425 else
15426 case $host_os in
15427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15429 hardcode_libdir_flag_spec='-R$libdir'
15430 ;;
15431 *)
15432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15434 ;;
15435 esac
15436 fi
15437 ;;
15438
15439 os2*)
15440 hardcode_libdir_flag_spec='-L$libdir'
15441 hardcode_minus_L=yes
15442 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015443 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 +000015444 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15445 ;;
15446
15447 osf3*)
15448 if test "$GCC" = yes; then
15449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15450 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'
15451 else
15452 allow_undefined_flag=' -expect_unresolved \*'
15453 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'
15454 fi
15455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15456 hardcode_libdir_separator=:
15457 ;;
15458
15459 osf4* | osf5*) # as osf3* with the addition of -msym flag
15460 if test "$GCC" = yes; then
15461 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15462 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'
15463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15464 else
15465 allow_undefined_flag=' -expect_unresolved \*'
15466 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 +000015467 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 +000015468 $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 +000015469
John Criswell47fdd832003-07-14 16:52:07 +000015470 # Both c and cxx compiler support -rpath directly
15471 hardcode_libdir_flag_spec='-rpath $libdir'
15472 fi
15473 hardcode_libdir_separator=:
15474 ;;
15475
John Criswell47fdd832003-07-14 16:52:07 +000015476 solaris*)
15477 no_undefined_flag=' -z text'
15478 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015479 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015480 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015481 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482 $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 +000015483 else
Reid Spencera773bd52006-08-04 18:18:08 +000015484 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015485 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015486 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15487 $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 +000015488 fi
15489 hardcode_libdir_flag_spec='-R$libdir'
15490 hardcode_shlibpath_var=no
15491 case $host_os in
15492 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015493 *)
15494 # The compiler driver will combine linker options so we
15495 # cannot just pass the convience library names through
15496 # without $wl, iff we do not link with $LD.
15497 # Luckily, gcc supports the same syntax we need for Sun Studio.
15498 # Supported since Solaris 2.6 (maybe 2.5.1?)
15499 case $wlarc in
15500 '')
15501 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15502 *)
15503 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' ;;
15504 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015505 esac
15506 link_all_deplibs=yes
15507 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015508
John Criswell47fdd832003-07-14 16:52:07 +000015509 sunos4*)
15510 if test "x$host_vendor" = xsequent; then
15511 # Use $CC to link under sequent, because it throws in some extra .o
15512 # files that make .init and .fini sections work.
15513 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15514 else
15515 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15516 fi
15517 hardcode_libdir_flag_spec='-L$libdir'
15518 hardcode_direct=yes
15519 hardcode_minus_L=yes
15520 hardcode_shlibpath_var=no
15521 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015522
John Criswell47fdd832003-07-14 16:52:07 +000015523 sysv4)
15524 case $host_vendor in
15525 sni)
15526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15527 hardcode_direct=yes # is this really true???
15528 ;;
15529 siemens)
15530 ## LD is ld it makes a PLAMLIB
15531 ## CC just makes a GrossModule.
15532 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15533 reload_cmds='$CC -r -o $output$reload_objs'
15534 hardcode_direct=no
15535 ;;
15536 motorola)
15537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15538 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15539 ;;
15540 esac
15541 runpath_var='LD_RUN_PATH'
15542 hardcode_shlibpath_var=no
15543 ;;
15544
15545 sysv4.3*)
15546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 hardcode_shlibpath_var=no
15548 export_dynamic_flag_spec='-Bexport'
15549 ;;
15550
15551 sysv4*MP*)
15552 if test -d /usr/nec; then
15553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_shlibpath_var=no
15555 runpath_var=LD_RUN_PATH
15556 hardcode_runpath_var=yes
15557 ld_shlibs=yes
15558 fi
15559 ;;
15560
Reid Spencera773bd52006-08-04 18:18:08 +000015561 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15562 no_undefined_flag='${wl}-z,text'
15563 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015564 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015565 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015566
John Criswell47fdd832003-07-14 16:52:07 +000015567 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015568 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 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 +000015570 else
Reid Spencera773bd52006-08-04 18:18:08 +000015571 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 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 +000015573 fi
John Criswell47fdd832003-07-14 16:52:07 +000015574 ;;
15575
Reid Spencera773bd52006-08-04 18:18:08 +000015576 sysv5* | sco3.2v5* | sco5v6*)
15577 # Note: We can NOT use -z defs as we might desire, because we do not
15578 # link with -lc, and that would cause any symbols used from libc to
15579 # always be unresolved, which means just about no library would
15580 # ever link correctly. If we're not using GNU ld we use -z text
15581 # though, which does catch some bad symbols but isn't as heavy-handed
15582 # as -z defs.
15583 no_undefined_flag='${wl}-z,text'
15584 allow_undefined_flag='${wl}-z,nodefs'
15585 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015586 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015587 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15588 hardcode_libdir_separator=':'
15589 link_all_deplibs=yes
15590 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015591 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015592
15593 if test "$GCC" = yes; then
15594 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 else
15597 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 fi
John Criswell47fdd832003-07-14 16:52:07 +000015600 ;;
15601
15602 uts4*)
15603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15604 hardcode_libdir_flag_spec='-L$libdir'
15605 hardcode_shlibpath_var=no
15606 ;;
15607
15608 *)
15609 ld_shlibs=no
15610 ;;
15611 esac
15612 fi
15613
Reid Spencera773bd52006-08-04 18:18:08 +000015614{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15615echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015616test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015617
John Criswell47fdd832003-07-14 16:52:07 +000015618#
15619# Do we need to explicitly link libc?
15620#
15621case "x$archive_cmds_need_lc" in
15622x|xyes)
15623 # Assume -lc should be added
15624 archive_cmds_need_lc=yes
15625
15626 if test "$enable_shared" = yes && test "$GCC" = yes; then
15627 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015628 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015629 # FIXME: we may have to deal with multi-command sequences.
15630 ;;
15631 '$CC '*)
15632 # Test whether the compiler implicitly links with -lc since on some
15633 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15634 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015635 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15636echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015637 $rm conftest*
15638 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15639
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } 2>conftest.err; then
15645 soname=conftest
15646 lib=conftest
15647 libobjs=conftest.$ac_objext
15648 deplibs=
15649 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015650 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015651 compiler_flags=-v
15652 linker_flags=-v
15653 verstring=
15654 output_objdir=.
15655 libname=conftest
15656 lt_save_allow_undefined_flag=$allow_undefined_flag
15657 allow_undefined_flag=
15658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15659 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }
15663 then
15664 archive_cmds_need_lc=no
15665 else
15666 archive_cmds_need_lc=yes
15667 fi
15668 allow_undefined_flag=$lt_save_allow_undefined_flag
15669 else
15670 cat conftest.err 1>&5
15671 fi
15672 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015673 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15674echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015675 ;;
15676 esac
15677 fi
15678 ;;
15679esac
15680
Reid Spencera773bd52006-08-04 18:18:08 +000015681{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15682echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015683library_names_spec=
15684libname_spec='lib$name'
15685soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015686shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015687postinstall_cmds=
15688postuninstall_cmds=
15689finish_cmds=
15690finish_eval=
15691shlibpath_var=
15692shlibpath_overrides_runpath=unknown
15693version_type=none
15694dynamic_linker="$host_os ld.so"
15695sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015696if test "$GCC" = yes; then
15697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15699 # if the path contains ";" then we assume it to be the separator
15700 # otherwise default to the standard path separator (i.e. ":") - it is
15701 # assumed that no part of a normal pathname contains ";" but that should
15702 # okay in the real world where ";" in dirpaths is itself problematic.
15703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15704 else
15705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15706 fi
15707else
15708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15709fi
15710need_lib_prefix=unknown
15711hardcode_into_libs=no
15712
15713# when you set need_version to no, make sure it does not cause -set_version
15714# flags to be left without arguments
15715need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015716
15717case $host_os in
15718aix3*)
15719 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015721 shlibpath_var=LIBPATH
15722
John Criswell47fdd832003-07-14 16:52:07 +000015723 # AIX 3 has no versioning support, so we append a major version to the name.
15724 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015725 ;;
15726
15727aix4* | aix5*)
15728 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015729 need_lib_prefix=no
15730 need_version=no
15731 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015732 if test "$host_cpu" = ia64; then
15733 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015735 shlibpath_var=LD_LIBRARY_PATH
15736 else
15737 # With GCC up to 2.95.x, collect2 would create an import file
15738 # for dependence libraries. The import file would start with
15739 # the line `#! .'. This would cause the generated library to
15740 # depend on `.', always an invalid library. This was fixed in
15741 # development snapshots of GCC prior to 3.0.
15742 case $host_os in
15743 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15745 echo ' yes '
15746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15747 :
15748 else
15749 can_build_shared=no
15750 fi
15751 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015752 esac
John Criswell47fdd832003-07-14 16:52:07 +000015753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15754 # soname into executable. Probably we can add versioning support to
15755 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015756 if test "$aix_use_runtimelinking" = yes; then
15757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15758 # instead of lib<name>.a to let people know that these are not
15759 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015761 else
15762 # We preserve .a as extension for shared libraries through AIX4.2
15763 # and later when we are not doing run time linking.
15764 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015765 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015766 fi
15767 shlibpath_var=LIBPATH
15768 fi
15769 ;;
15770
15771amigaos*)
15772 library_names_spec='$libname.ixlibrary $libname.a'
15773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015774 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 +000015775 ;;
15776
15777beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015778 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015779 dynamic_linker="$host_os ld.so"
15780 shlibpath_var=LIBRARY_PATH
15781 ;;
15782
Reid Spencer2706f8c2004-09-19 23:53:36 +000015783bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015784 version_type=linux
15785 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015792 # the default ld.so.conf also contains /usr/contrib/lib and
15793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15794 # libtool to hard-code these into programs
15795 ;;
15796
15797cygwin* | mingw* | pw32*)
15798 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015799 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015800 need_version=no
15801 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015802
John Criswell7a73b802003-06-30 21:59:07 +000015803 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015804 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015805 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015807 postinstall_cmds='base_file=`basename \${file}`~
15808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15809 dldir=$destdir/`dirname \$dlpath`~
15810 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015811 $install_prog $dir/$dlname \$dldir/$dlname~
15812 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15814 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015815 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015816 shlibpath_overrides_runpath=yes
15817
15818 case $host_os in
15819 cygwin*)
15820 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15821 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 +000015822 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015823 ;;
15824 mingw*)
15825 # MinGW DLLs use traditional 'lib' prefix
15826 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15827 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15828 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15829 # It is most probably a Windows format PATH printed by
15830 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15831 # path with ; separators, and with drive letters. We can handle the
15832 # drive letters (cygwin fileutils understands them), so leave them,
15833 # especially as we might pass files found there to a mingw objdump,
15834 # which wouldn't understand a cygwinified path. Ahh.
15835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15836 else
15837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15838 fi
15839 ;;
15840 pw32*)
15841 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015842 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 +000015843 ;;
15844 esac
John Criswell7a73b802003-06-30 21:59:07 +000015845 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015846
John Criswell7a73b802003-06-30 21:59:07 +000015847 *)
John Criswell47fdd832003-07-14 16:52:07 +000015848 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015849 ;;
15850 esac
15851 dynamic_linker='Win32 ld.exe'
15852 # FIXME: first we should search . and the directory the executable is in
15853 shlibpath_var=PATH
15854 ;;
15855
15856darwin* | rhapsody*)
15857 dynamic_linker="$host_os dyld"
15858 version_type=darwin
15859 need_lib_prefix=no
15860 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015862 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015863 shlibpath_overrides_runpath=yes
15864 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015865 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015867 if test "$GCC" = yes; then
15868 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"`
15869 else
15870 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015871 fi
15872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15873 ;;
15874
15875dgux*)
15876 version_type=linux
15877 need_lib_prefix=no
15878 need_version=no
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015882 ;;
15883
15884freebsd1*)
15885 dynamic_linker=no
15886 ;;
15887
Reid Spencer2706f8c2004-09-19 23:53:36 +000015888kfreebsd*-gnu)
15889 version_type=linux
15890 need_lib_prefix=no
15891 need_version=no
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=no
15896 hardcode_into_libs=yes
15897 dynamic_linker='GNU ld.so'
15898 ;;
15899
Reid Spencera773bd52006-08-04 18:18:08 +000015900freebsd* | dragonfly*)
15901 # DragonFly does not have aout. When/if they implement a new
15902 # versioning mechanism, adjust this.
15903 if test -x /usr/bin/objformat; then
15904 objformat=`/usr/bin/objformat`
15905 else
15906 case $host_os in
15907 freebsd[123]*) objformat=aout ;;
15908 *) objformat=elf ;;
15909 esac
15910 fi
John Criswell7a73b802003-06-30 21:59:07 +000015911 version_type=freebsd-$objformat
15912 case $version_type in
15913 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015915 need_version=no
15916 need_lib_prefix=no
15917 ;;
15918 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015920 need_version=yes
15921 ;;
15922 esac
15923 shlibpath_var=LD_LIBRARY_PATH
15924 case $host_os in
15925 freebsd2*)
15926 shlibpath_overrides_runpath=yes
15927 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015928 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015929 shlibpath_overrides_runpath=yes
15930 hardcode_into_libs=yes
15931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015934 shlibpath_overrides_runpath=no
15935 hardcode_into_libs=yes
15936 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015937 freebsd*) # from 4.6 on
15938 shlibpath_overrides_runpath=yes
15939 hardcode_into_libs=yes
15940 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015941 esac
15942 ;;
15943
15944gnu*)
15945 version_type=linux
15946 need_lib_prefix=no
15947 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015950 shlibpath_var=LD_LIBRARY_PATH
15951 hardcode_into_libs=yes
15952 ;;
15953
15954hpux9* | hpux10* | hpux11*)
15955 # Give a soname corresponding to the major version so that dld.sl refuses to
15956 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015957 version_type=sunos
15958 need_lib_prefix=no
15959 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015960 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015961 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015962 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015963 hardcode_into_libs=yes
15964 dynamic_linker="$host_os dld.so"
15965 shlibpath_var=LD_LIBRARY_PATH
15966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 if test "X$HPUX_IA64_MODE" = X32; then
15970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15971 else
15972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15973 fi
15974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15975 ;;
15976 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015977 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015978 hardcode_into_libs=yes
15979 dynamic_linker="$host_os dld.sl"
15980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15986 ;;
15987 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015988 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015989 dynamic_linker="$host_os dld.sl"
15990 shlibpath_var=SHLIB_PATH
15991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 ;;
15995 esac
John Criswell7a73b802003-06-30 21:59:07 +000015996 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15997 postinstall_cmds='chmod 555 $lib'
15998 ;;
15999
Reid Spencera773bd52006-08-04 18:18:08 +000016000interix3*)
16001 version_type=linux
16002 need_lib_prefix=no
16003 need_version=no
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 shlibpath_overrides_runpath=no
16009 hardcode_into_libs=yes
16010 ;;
16011
John Criswell47fdd832003-07-14 16:52:07 +000016012irix5* | irix6* | nonstopux*)
16013 case $host_os in
16014 nonstopux*) version_type=nonstopux ;;
16015 *)
16016 if test "$lt_cv_prog_gnu_ld" = yes; then
16017 version_type=linux
16018 else
16019 version_type=irix
16020 fi ;;
16021 esac
John Criswell7a73b802003-06-30 21:59:07 +000016022 need_lib_prefix=no
16023 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016024 soname_spec='${libname}${release}${shared_ext}$major'
16025 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 +000016026 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016027 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016028 libsuff= shlibsuff=
16029 ;;
16030 *)
16031 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16033 libsuff= shlibsuff= libmagic=32-bit;;
16034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16035 libsuff=32 shlibsuff=N32 libmagic=N32;;
16036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016038 *) libsuff= shlibsuff= libmagic=never-match;;
16039 esac
16040 ;;
16041 esac
16042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16043 shlibpath_overrides_runpath=no
16044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016046 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016047 ;;
16048
16049# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016050linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016051 dynamic_linker=no
16052 ;;
16053
16054# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016055linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016056 version_type=linux
16057 need_lib_prefix=no
16058 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=no
16064 # This implies no fast_install, which is unacceptable.
16065 # Some rework will be needed to allow for fast_install
16066 # before this can be enabled.
16067 hardcode_into_libs=yes
16068
Reid Spencer2706f8c2004-09-19 23:53:36 +000016069 # Append ld.so.conf contents to the search path
16070 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016071 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 +000016072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16073 fi
16074
John Criswell7a73b802003-06-30 21:59:07 +000016075 # We used to test for /lib/ld.so.1 and disable shared libraries on
16076 # powerpc, because MkLinux only supported shared libraries with the
16077 # GNU dynamic linker. Since this was broken with cross compilers,
16078 # most powerpc-linux boxes support dynamic linking these days and
16079 # people can always --disable-shared, the test was removed, and we
16080 # assume the GNU/Linux dynamic linker is in use.
16081 dynamic_linker='GNU/Linux ld.so'
16082 ;;
16083
Reid Spencer2706f8c2004-09-19 23:53:36 +000016084knetbsd*-gnu)
16085 version_type=linux
16086 need_lib_prefix=no
16087 need_version=no
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 shlibpath_var=LD_LIBRARY_PATH
16091 shlibpath_overrides_runpath=no
16092 hardcode_into_libs=yes
16093 dynamic_linker='GNU ld.so'
16094 ;;
16095
John Criswell7a73b802003-06-30 21:59:07 +000016096netbsd*)
16097 version_type=sunos
16098 need_lib_prefix=no
16099 need_version=no
16100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16103 dynamic_linker='NetBSD (a.out) ld.so'
16104 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016106 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016107 dynamic_linker='NetBSD ld.elf_so'
16108 fi
16109 shlibpath_var=LD_LIBRARY_PATH
16110 shlibpath_overrides_runpath=yes
16111 hardcode_into_libs=yes
16112 ;;
16113
16114newsos6)
16115 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=yes
16119 ;;
16120
Reid Spencer2706f8c2004-09-19 23:53:36 +000016121nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016122 version_type=linux
16123 need_lib_prefix=no
16124 need_version=no
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016127 shlibpath_var=LD_LIBRARY_PATH
16128 shlibpath_overrides_runpath=yes
16129 ;;
16130
16131openbsd*)
16132 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016133 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016134 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16136 case $host_os in
16137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16138 *) need_version=no ;;
16139 esac
John Criswell47fdd832003-07-14 16:52:07 +000016140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016143 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 +000016144 case $host_os in
16145 openbsd2.[89] | openbsd2.[89].*)
16146 shlibpath_overrides_runpath=no
16147 ;;
16148 *)
16149 shlibpath_overrides_runpath=yes
16150 ;;
16151 esac
John Criswell7a73b802003-06-30 21:59:07 +000016152 else
16153 shlibpath_overrides_runpath=yes
16154 fi
John Criswell7a73b802003-06-30 21:59:07 +000016155 ;;
16156
16157os2*)
16158 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016159 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016160 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016161 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016162 dynamic_linker='OS/2 ld.exe'
16163 shlibpath_var=LIBPATH
16164 ;;
16165
16166osf3* | osf4* | osf5*)
16167 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016168 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016169 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016170 soname_spec='${libname}${release}${shared_ext}$major'
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016172 shlibpath_var=LD_LIBRARY_PATH
16173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16175 ;;
16176
John Criswell7a73b802003-06-30 21:59:07 +000016177solaris*)
16178 version_type=linux
16179 need_lib_prefix=no
16180 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16186 # ldd complains unless libraries are executable
16187 postinstall_cmds='chmod +x $lib'
16188 ;;
16189
16190sunos4*)
16191 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16196 if test "$with_gnu_ld" = yes; then
16197 need_lib_prefix=no
16198 fi
16199 need_version=yes
16200 ;;
16201
Reid Spencera773bd52006-08-04 18:18:08 +000016202sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016203 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016206 shlibpath_var=LD_LIBRARY_PATH
16207 case $host_vendor in
16208 sni)
16209 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016210 need_lib_prefix=no
16211 export_dynamic_flag_spec='${wl}-Blargedynsym'
16212 runpath_var=LD_RUN_PATH
16213 ;;
16214 siemens)
16215 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016216 ;;
16217 motorola)
16218 need_lib_prefix=no
16219 need_version=no
16220 shlibpath_overrides_runpath=no
16221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16222 ;;
16223 esac
16224 ;;
16225
John Criswell7a73b802003-06-30 21:59:07 +000016226sysv4*MP*)
16227 if test -d /usr/nec ;then
16228 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16230 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016231 shlibpath_var=LD_LIBRARY_PATH
16232 fi
16233 ;;
16234
Reid Spencera773bd52006-08-04 18:18:08 +000016235sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16236 version_type=freebsd-elf
16237 need_lib_prefix=no
16238 need_version=no
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 hardcode_into_libs=yes
16243 if test "$with_gnu_ld" = yes; then
16244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16245 shlibpath_overrides_runpath=no
16246 else
16247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16248 shlibpath_overrides_runpath=yes
16249 case $host_os in
16250 sco3.2v5*)
16251 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16252 ;;
16253 esac
16254 fi
16255 sys_lib_dlsearch_path_spec='/usr/lib'
16256 ;;
16257
John Criswell47fdd832003-07-14 16:52:07 +000016258uts4*)
16259 version_type=linux
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 shlibpath_var=LD_LIBRARY_PATH
16263 ;;
16264
John Criswell7a73b802003-06-30 21:59:07 +000016265*)
16266 dynamic_linker=no
16267 ;;
16268esac
Reid Spencera773bd52006-08-04 18:18:08 +000016269{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16270echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016271test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016272
Reid Spencera773bd52006-08-04 18:18:08 +000016273variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16274if test "$GCC" = yes; then
16275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16276fi
16277
16278{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16279echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016280hardcode_action=
16281if test -n "$hardcode_libdir_flag_spec" || \
16282 test -n "$runpath_var" || \
16283 test "X$hardcode_automatic" = "Xyes" ; then
16284
16285 # We can hardcode non-existant directories.
16286 if test "$hardcode_direct" != no &&
16287 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16288 # have to relink, otherwise we might link with an installed library
16289 # when we should be linking with a yet-to-be-installed one
16290 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16291 test "$hardcode_minus_L" != no; then
16292 # Linking always hardcodes the temporary library directory.
16293 hardcode_action=relink
16294 else
16295 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16296 hardcode_action=immediate
16297 fi
16298else
16299 # We cannot hardcode anything, or else we can only hardcode existing
16300 # directories.
16301 hardcode_action=unsupported
16302fi
Reid Spencera773bd52006-08-04 18:18:08 +000016303{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16304echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016305
16306if test "$hardcode_action" = relink; then
16307 # Fast installation is not supported
16308 enable_fast_install=no
16309elif test "$shlibpath_overrides_runpath" = yes ||
16310 test "$enable_shared" = no; then
16311 # Fast installation is not necessary
16312 enable_fast_install=needless
16313fi
16314
16315striplib=
16316old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016317{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16318echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016319if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16320 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16321 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016322 { echo "$as_me:$LINENO: result: yes" >&5
16323echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016324else
16325# FIXME - insert some real tests, host_os isn't really good enough
16326 case $host_os in
16327 darwin*)
16328 if test -n "$STRIP" ; then
16329 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016330 { echo "$as_me:$LINENO: result: yes" >&5
16331echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016332 else
Reid Spencera773bd52006-08-04 18:18:08 +000016333 { echo "$as_me:$LINENO: result: no" >&5
16334echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016335fi
16336 ;;
16337 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016338 { echo "$as_me:$LINENO: result: no" >&5
16339echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016340 ;;
16341 esac
16342fi
16343
John Criswell7a73b802003-06-30 21:59:07 +000016344if test "x$enable_dlopen" != xyes; then
16345 enable_dlopen=unknown
16346 enable_dlopen_self=unknown
16347 enable_dlopen_self_static=unknown
16348else
16349 lt_cv_dlopen=no
16350 lt_cv_dlopen_libs=
16351
16352 case $host_os in
16353 beos*)
16354 lt_cv_dlopen="load_add_on"
16355 lt_cv_dlopen_libs=
16356 lt_cv_dlopen_self=yes
16357 ;;
16358
John Criswell47fdd832003-07-14 16:52:07 +000016359 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016360 lt_cv_dlopen="LoadLibrary"
16361 lt_cv_dlopen_libs=
16362 ;;
16363
John Criswell47fdd832003-07-14 16:52:07 +000016364 cygwin*)
16365 lt_cv_dlopen="dlopen"
16366 lt_cv_dlopen_libs=
16367 ;;
16368
16369 darwin*)
16370 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016371 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16372echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016373if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375else
16376 ac_check_lib_save_LIBS=$LIBS
16377LIBS="-ldl $LIBS"
16378cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016384
Reid Spencera773bd52006-08-04 18:18:08 +000016385/* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016388#ifdef __cplusplus
16389extern "C"
16390#endif
John Criswell47fdd832003-07-14 16:52:07 +000016391char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016392int
16393main ()
16394{
Reid Spencera773bd52006-08-04 18:18:08 +000016395return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016396 ;
16397 return 0;
16398}
16399_ACEOF
16400rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016401if { (ac_try="$ac_link"
16402case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
16419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428esac
16429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_cv_lib_dl_dlopen=yes
16435else
16436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016437sed 's/^/| /' conftest.$ac_ext >&5
16438
Reid Spencera773bd52006-08-04 18:18:08 +000016439 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016440fi
Reid Spencera773bd52006-08-04 18:18:08 +000016441
16442rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016443 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016444LIBS=$ac_check_lib_save_LIBS
16445fi
Reid Spencera773bd52006-08-04 18:18:08 +000016446{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16447echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016448if test $ac_cv_lib_dl_dlopen = yes; then
16449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16450else
16451
16452 lt_cv_dlopen="dyld"
16453 lt_cv_dlopen_libs=
16454 lt_cv_dlopen_self=yes
16455
16456fi
16457
16458 ;;
16459
John Criswell7a73b802003-06-30 21:59:07 +000016460 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016461 { echo "$as_me:$LINENO: checking for shl_load" >&5
16462echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016463if test "${ac_cv_func_shl_load+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465else
16466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016472/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16474#define shl_load innocuous_shl_load
16475
John Criswell7a73b802003-06-30 21:59:07 +000016476/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016477 which can conflict with char shl_load (); below.
16478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16479 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016480
John Criswell0c38eaf2003-09-10 15:17:25 +000016481#ifdef __STDC__
16482# include <limits.h>
16483#else
16484# include <assert.h>
16485#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016486
16487#undef shl_load
16488
Reid Spencera773bd52006-08-04 18:18:08 +000016489/* Override any GCC internal prototype to avoid an error.
16490 Use char because int might match the return type of a GCC
16491 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016492#ifdef __cplusplus
16493extern "C"
16494#endif
John Criswell7a73b802003-06-30 21:59:07 +000016495char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016496/* The GNU C library defines this for functions which it implements
16497 to always fail with ENOSYS. Some functions are actually named
16498 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016499#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016500choke me
John Criswell7a73b802003-06-30 21:59:07 +000016501#endif
16502
John Criswell0c38eaf2003-09-10 15:17:25 +000016503int
16504main ()
16505{
Reid Spencera773bd52006-08-04 18:18:08 +000016506return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016512if { (ac_try="$ac_link"
16513case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_func_shl_load=yes
16546else
16547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016548sed 's/^/| /' conftest.$ac_ext >&5
16549
Reid Spencera773bd52006-08-04 18:18:08 +000016550 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016551fi
Reid Spencera773bd52006-08-04 18:18:08 +000016552
16553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016554 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016555fi
Reid Spencera773bd52006-08-04 18:18:08 +000016556{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16557echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016558if test $ac_cv_func_shl_load = yes; then
16559 lt_cv_dlopen="shl_load"
16560else
Reid Spencera773bd52006-08-04 18:18:08 +000016561 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16562echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016563if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16565else
16566 ac_check_lib_save_LIBS=$LIBS
16567LIBS="-ldld $LIBS"
16568cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016569/* confdefs.h. */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016574
Reid Spencera773bd52006-08-04 18:18:08 +000016575/* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016578#ifdef __cplusplus
16579extern "C"
16580#endif
John Criswell7a73b802003-06-30 21:59:07 +000016581char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016582int
16583main ()
16584{
Reid Spencera773bd52006-08-04 18:18:08 +000016585return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016586 ;
16587 return 0;
16588}
16589_ACEOF
16590rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016591if { (ac_try="$ac_link"
16592case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608esac
16609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016615 { (case "(($ac_try" in
16616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617 *) ac_try_echo=$ac_try;;
16618esac
16619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_dld_shl_load=yes
16625else
16626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016627sed 's/^/| /' conftest.$ac_ext >&5
16628
Reid Spencera773bd52006-08-04 18:18:08 +000016629 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016630fi
Reid Spencera773bd52006-08-04 18:18:08 +000016631
16632rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016633 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016634LIBS=$ac_check_lib_save_LIBS
16635fi
Reid Spencera773bd52006-08-04 18:18:08 +000016636{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16637echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016638if test $ac_cv_lib_dld_shl_load = yes; then
16639 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16640else
Reid Spencera773bd52006-08-04 18:18:08 +000016641 { echo "$as_me:$LINENO: checking for dlopen" >&5
16642echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016643if test "${ac_cv_func_dlopen+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645else
16646 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016652/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16654#define dlopen innocuous_dlopen
16655
John Criswell7a73b802003-06-30 21:59:07 +000016656/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016657 which can conflict with char dlopen (); below.
16658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16659 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016660
John Criswell0c38eaf2003-09-10 15:17:25 +000016661#ifdef __STDC__
16662# include <limits.h>
16663#else
16664# include <assert.h>
16665#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016666
16667#undef dlopen
16668
Reid Spencera773bd52006-08-04 18:18:08 +000016669/* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016672#ifdef __cplusplus
16673extern "C"
16674#endif
John Criswell7a73b802003-06-30 21:59:07 +000016675char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016676/* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016679#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016680choke me
John Criswell7a73b802003-06-30 21:59:07 +000016681#endif
16682
John Criswell0c38eaf2003-09-10 15:17:25 +000016683int
16684main ()
16685{
Reid Spencera773bd52006-08-04 18:18:08 +000016686return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016692if { (ac_try="$ac_link"
16693case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709esac
16710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719esac
16720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_func_dlopen=yes
16726else
16727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016728sed 's/^/| /' conftest.$ac_ext >&5
16729
Reid Spencera773bd52006-08-04 18:18:08 +000016730 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016731fi
Reid Spencera773bd52006-08-04 18:18:08 +000016732
16733rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016734 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016735fi
Reid Spencera773bd52006-08-04 18:18:08 +000016736{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16737echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016738if test $ac_cv_func_dlopen = yes; then
16739 lt_cv_dlopen="dlopen"
16740else
Reid Spencera773bd52006-08-04 18:18:08 +000016741 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16742echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016743if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745else
16746 ac_check_lib_save_LIBS=$LIBS
16747LIBS="-ldl $LIBS"
16748cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016754
Reid Spencera773bd52006-08-04 18:18:08 +000016755/* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016758#ifdef __cplusplus
16759extern "C"
16760#endif
John Criswell7a73b802003-06-30 21:59:07 +000016761char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016762int
16763main ()
16764{
Reid Spencera773bd52006-08-04 18:18:08 +000016765return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016771if { (ac_try="$ac_link"
16772case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775esac
16776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788esac
16789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798esac
16799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_lib_dl_dlopen=yes
16805else
16806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016807sed 's/^/| /' conftest.$ac_ext >&5
16808
Reid Spencera773bd52006-08-04 18:18:08 +000016809 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016810fi
Reid Spencera773bd52006-08-04 18:18:08 +000016811
16812rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016813 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016814LIBS=$ac_check_lib_save_LIBS
16815fi
Reid Spencera773bd52006-08-04 18:18:08 +000016816{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16817echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016818if test $ac_cv_lib_dl_dlopen = yes; then
16819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16820else
Reid Spencera773bd52006-08-04 18:18:08 +000016821 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16822echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016823if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826 ac_check_lib_save_LIBS=$LIBS
16827LIBS="-lsvld $LIBS"
16828cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016829/* confdefs.h. */
16830_ACEOF
16831cat confdefs.h >>conftest.$ac_ext
16832cat >>conftest.$ac_ext <<_ACEOF
16833/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016834
Reid Spencera773bd52006-08-04 18:18:08 +000016835/* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016838#ifdef __cplusplus
16839extern "C"
16840#endif
John Criswell7a73b802003-06-30 21:59:07 +000016841char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016842int
16843main ()
16844{
Reid Spencera773bd52006-08-04 18:18:08 +000016845return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016846 ;
16847 return 0;
16848}
16849_ACEOF
16850rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016851if { (ac_try="$ac_link"
16852case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855esac
16856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868esac
16869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878esac
16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_cv_lib_svld_dlopen=yes
16885else
16886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016887sed 's/^/| /' conftest.$ac_ext >&5
16888
Reid Spencera773bd52006-08-04 18:18:08 +000016889 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016890fi
Reid Spencera773bd52006-08-04 18:18:08 +000016891
16892rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016894LIBS=$ac_check_lib_save_LIBS
16895fi
Reid Spencera773bd52006-08-04 18:18:08 +000016896{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16897echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016898if test $ac_cv_lib_svld_dlopen = yes; then
16899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16900else
Reid Spencera773bd52006-08-04 18:18:08 +000016901 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16902echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016903if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905else
16906 ac_check_lib_save_LIBS=$LIBS
16907LIBS="-ldld $LIBS"
16908cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016914
Reid Spencera773bd52006-08-04 18:18:08 +000016915/* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016918#ifdef __cplusplus
16919extern "C"
16920#endif
John Criswell7a73b802003-06-30 21:59:07 +000016921char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016922int
16923main ()
16924{
Reid Spencera773bd52006-08-04 18:18:08 +000016925return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016926 ;
16927 return 0;
16928}
16929_ACEOF
16930rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016931if { (ac_try="$ac_link"
16932case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948esac
16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_lib_dld_dld_link=yes
16965else
16966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016967sed 's/^/| /' conftest.$ac_ext >&5
16968
Reid Spencera773bd52006-08-04 18:18:08 +000016969 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016970fi
Reid Spencera773bd52006-08-04 18:18:08 +000016971
16972rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016973 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016974LIBS=$ac_check_lib_save_LIBS
16975fi
Reid Spencera773bd52006-08-04 18:18:08 +000016976{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16977echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016978if test $ac_cv_lib_dld_dld_link = yes; then
16979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16980fi
16981
16982
16983fi
16984
16985
16986fi
16987
16988
16989fi
16990
16991
16992fi
16993
16994
16995fi
16996
16997 ;;
16998 esac
16999
17000 if test "x$lt_cv_dlopen" != xno; then
17001 enable_dlopen=yes
17002 else
17003 enable_dlopen=no
17004 fi
17005
17006 case $lt_cv_dlopen in
17007 dlopen)
17008 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017010
17011 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017013
17014 save_LIBS="$LIBS"
17015 LIBS="$lt_cv_dlopen_libs $LIBS"
17016
Reid Spencera773bd52006-08-04 18:18:08 +000017017 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17018echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017019if test "${lt_cv_dlopen_self+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022 if test "$cross_compiling" = yes; then :
17023 lt_cv_dlopen_self=cross
17024else
John Criswell47fdd832003-07-14 16:52:07 +000017025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017026 lt_status=$lt_dlunknown
17027 cat > conftest.$ac_ext <<EOF
Reid Spencer9b5b1822007-01-21 06:32:59 +000017028#line 17028 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017029#include "confdefs.h"
17030
17031#if HAVE_DLFCN_H
17032#include <dlfcn.h>
17033#endif
17034
17035#include <stdio.h>
17036
17037#ifdef RTLD_GLOBAL
17038# define LT_DLGLOBAL RTLD_GLOBAL
17039#else
17040# ifdef DL_GLOBAL
17041# define LT_DLGLOBAL DL_GLOBAL
17042# else
17043# define LT_DLGLOBAL 0
17044# endif
17045#endif
17046
17047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17048 find out it does not work in some platform. */
17049#ifndef LT_DLLAZY_OR_NOW
17050# ifdef RTLD_LAZY
17051# define LT_DLLAZY_OR_NOW RTLD_LAZY
17052# else
17053# ifdef DL_LAZY
17054# define LT_DLLAZY_OR_NOW DL_LAZY
17055# else
17056# ifdef RTLD_NOW
17057# define LT_DLLAZY_OR_NOW RTLD_NOW
17058# else
17059# ifdef DL_NOW
17060# define LT_DLLAZY_OR_NOW DL_NOW
17061# else
17062# define LT_DLLAZY_OR_NOW 0
17063# endif
17064# endif
17065# endif
17066# endif
17067#endif
17068
17069#ifdef __cplusplus
17070extern "C" void exit (int);
17071#endif
17072
17073void fnord() { int i=42;}
17074int main ()
17075{
17076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17077 int status = $lt_dlunknown;
17078
17079 if (self)
17080 {
17081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17083 /* dlclose (self); */
17084 }
Reid Spencera773bd52006-08-04 18:18:08 +000017085 else
17086 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017087
17088 exit (status);
17089}
17090EOF
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017096 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017097 lt_status=$?
17098 case x$lt_status in
17099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017102 esac
17103 else :
17104 # compilation failed
17105 lt_cv_dlopen_self=no
17106 fi
17107fi
17108rm -fr conftest*
17109
17110
17111fi
Reid Spencera773bd52006-08-04 18:18:08 +000017112{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17113echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017114
17115 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17117 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17118echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017119if test "${lt_cv_dlopen_self_static+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121else
17122 if test "$cross_compiling" = yes; then :
17123 lt_cv_dlopen_self_static=cross
17124else
John Criswell47fdd832003-07-14 16:52:07 +000017125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017126 lt_status=$lt_dlunknown
17127 cat > conftest.$ac_ext <<EOF
Reid Spencer9b5b1822007-01-21 06:32:59 +000017128#line 17128 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017129#include "confdefs.h"
17130
17131#if HAVE_DLFCN_H
17132#include <dlfcn.h>
17133#endif
17134
17135#include <stdio.h>
17136
17137#ifdef RTLD_GLOBAL
17138# define LT_DLGLOBAL RTLD_GLOBAL
17139#else
17140# ifdef DL_GLOBAL
17141# define LT_DLGLOBAL DL_GLOBAL
17142# else
17143# define LT_DLGLOBAL 0
17144# endif
17145#endif
17146
17147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17148 find out it does not work in some platform. */
17149#ifndef LT_DLLAZY_OR_NOW
17150# ifdef RTLD_LAZY
17151# define LT_DLLAZY_OR_NOW RTLD_LAZY
17152# else
17153# ifdef DL_LAZY
17154# define LT_DLLAZY_OR_NOW DL_LAZY
17155# else
17156# ifdef RTLD_NOW
17157# define LT_DLLAZY_OR_NOW RTLD_NOW
17158# else
17159# ifdef DL_NOW
17160# define LT_DLLAZY_OR_NOW DL_NOW
17161# else
17162# define LT_DLLAZY_OR_NOW 0
17163# endif
17164# endif
17165# endif
17166# endif
17167#endif
17168
17169#ifdef __cplusplus
17170extern "C" void exit (int);
17171#endif
17172
17173void fnord() { int i=42;}
17174int main ()
17175{
17176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17177 int status = $lt_dlunknown;
17178
17179 if (self)
17180 {
17181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17183 /* dlclose (self); */
17184 }
Reid Spencera773bd52006-08-04 18:18:08 +000017185 else
17186 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017187
17188 exit (status);
17189}
17190EOF
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017196 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017197 lt_status=$?
17198 case x$lt_status in
17199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017202 esac
17203 else :
17204 # compilation failed
17205 lt_cv_dlopen_self_static=no
17206 fi
17207fi
17208rm -fr conftest*
17209
17210
17211fi
Reid Spencera773bd52006-08-04 18:18:08 +000017212{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17213echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017214 fi
17215
17216 CPPFLAGS="$save_CPPFLAGS"
17217 LDFLAGS="$save_LDFLAGS"
17218 LIBS="$save_LIBS"
17219 ;;
17220 esac
17221
17222 case $lt_cv_dlopen_self in
17223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17224 *) enable_dlopen_self=unknown ;;
17225 esac
17226
17227 case $lt_cv_dlopen_self_static in
17228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17229 *) enable_dlopen_self_static=unknown ;;
17230 esac
17231fi
17232
17233
Reid Spencera773bd52006-08-04 18:18:08 +000017234# Report which library types will actually be built
17235{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17236echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17237{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17238echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017239
Reid Spencera773bd52006-08-04 18:18:08 +000017240{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17241echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017242test "$can_build_shared" = "no" && enable_shared=no
17243
17244# On AIX, shared libraries and static libraries use the same namespace, and
17245# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017246case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017247aix3*)
17248 test "$enable_shared" = yes && enable_static=no
17249 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017251 postinstall_cmds='$RANLIB $lib'
17252 fi
17253 ;;
17254
Reid Spencer2706f8c2004-09-19 23:53:36 +000017255aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17257 test "$enable_shared" = yes && enable_static=no
17258 fi
John Criswell7a73b802003-06-30 21:59:07 +000017259 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017260esac
Reid Spencera773bd52006-08-04 18:18:08 +000017261{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17262echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017263
Reid Spencera773bd52006-08-04 18:18:08 +000017264{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17265echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017266# Make sure either enable_shared or enable_static is yes.
17267test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017268{ echo "$as_me:$LINENO: result: $enable_static" >&5
17269echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017270
17271# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017272# libtool distribution, otherwise you forgot to ship ltmain.sh
17273# with your package, and you will get complaints that there are
17274# no rules to generate ltmain.sh.
17275if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017276 # See if we are running on zsh, and set the options which allow our commands through
17277 # without removal of \ escapes.
17278 if test -n "${ZSH_VERSION+set}" ; then
17279 setopt NO_GLOB_SUBST
17280 fi
John Criswell7a73b802003-06-30 21:59:07 +000017281 # Now quote all the things that may contain metacharacters while being
17282 # careful not to overquote the AC_SUBSTed values. We take copies of the
17283 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017284 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 +000017285 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17288 deplibs_check_method reload_flag reload_cmds need_locks \
17289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17290 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017292 old_postinstall_cmds old_postuninstall_cmds \
17293 compiler \
17294 CC \
17295 LD \
17296 lt_prog_compiler_wl \
17297 lt_prog_compiler_pic \
17298 lt_prog_compiler_static \
17299 lt_prog_compiler_no_builtin_flag \
17300 export_dynamic_flag_spec \
17301 thread_safe_flag_spec \
17302 whole_archive_flag_spec \
17303 enable_shared_with_static_runtimes \
17304 old_archive_cmds \
17305 old_archive_from_new_cmds \
17306 predep_objects \
17307 postdep_objects \
17308 predeps \
17309 postdeps \
17310 compiler_lib_search_path \
17311 archive_cmds \
17312 archive_expsym_cmds \
17313 postinstall_cmds \
17314 postuninstall_cmds \
17315 old_archive_from_expsyms_cmds \
17316 allow_undefined_flag \
17317 no_undefined_flag \
17318 export_symbols_cmds \
17319 hardcode_libdir_flag_spec \
17320 hardcode_libdir_flag_spec_ld \
17321 hardcode_libdir_separator \
17322 hardcode_automatic \
17323 module_cmds \
17324 module_expsym_cmds \
17325 lt_cv_prog_compiler_c_o \
17326 exclude_expsyms \
17327 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017328
17329 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017330 old_archive_cmds | \
17331 old_archive_from_new_cmds | \
17332 archive_cmds | \
17333 archive_expsym_cmds | \
17334 module_cmds | \
17335 module_expsym_cmds | \
17336 old_archive_from_expsyms_cmds | \
17337 export_symbols_cmds | \
17338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017339 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017340 old_postinstall_cmds | old_postuninstall_cmds | \
17341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017342 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017343 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 +000017344 ;;
17345 *)
17346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17347 ;;
17348 esac
17349 done
17350
John Criswell47fdd832003-07-14 16:52:07 +000017351 case $lt_echo in
17352 *'\$0 --fallback-echo"')
17353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17354 ;;
17355 esac
17356
17357cfgfile="${ofile}T"
17358 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17359 $rm -f "$cfgfile"
17360 { echo "$as_me:$LINENO: creating $ofile" >&5
17361echo "$as_me: creating $ofile" >&6;}
17362
17363 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017364#! $SHELL
17365
John Criswell47fdd832003-07-14 16:52:07 +000017366# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017367# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17368# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17369#
John Criswell47fdd832003-07-14 16:52:07 +000017370# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17371# Free Software Foundation, Inc.
17372#
17373# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017374# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17375#
17376# This program is free software; you can redistribute it and/or modify
17377# it under the terms of the GNU General Public License as published by
17378# the Free Software Foundation; either version 2 of the License, or
17379# (at your option) any later version.
17380#
17381# This program is distributed in the hope that it will be useful, but
17382# WITHOUT ANY WARRANTY; without even the implied warranty of
17383# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17384# General Public License for more details.
17385#
17386# You should have received a copy of the GNU General Public License
17387# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017388# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017389#
17390# As a special exception to the GNU General Public License, if you
17391# distribute this file as part of a program that contains a
17392# configuration script generated by Autoconf, you may include it under
17393# the same distribution terms that you use for the rest of that program.
17394
John Criswell47fdd832003-07-14 16:52:07 +000017395# A sed program that does not truncate output.
17396SED=$lt_SED
17397
John Criswell7a73b802003-06-30 21:59:07 +000017398# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017399Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017400
17401# The HP-UX ksh and POSIX shell print the target directory to stdout
17402# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017404
John Criswell47fdd832003-07-14 16:52:07 +000017405# The names of the tagged configurations supported by this script.
17406available_tags=
17407
John Criswell7a73b802003-06-30 21:59:07 +000017408# ### BEGIN LIBTOOL CONFIG
17409
17410# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17411
17412# Shell to use when invoking shell scripts.
17413SHELL=$lt_SHELL
17414
17415# Whether or not to build shared libraries.
17416build_libtool_libs=$enable_shared
17417
17418# Whether or not to build static libraries.
17419build_old_libs=$enable_static
17420
17421# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017422build_libtool_need_lc=$archive_cmds_need_lc
17423
17424# Whether or not to disallow shared libs when runtime libs are static
17425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017426
17427# Whether or not to optimize for fast installation.
17428fast_install=$enable_fast_install
17429
17430# The host system.
17431host_alias=$host_alias
17432host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017433host_os=$host_os
17434
17435# The build system.
17436build_alias=$build_alias
17437build=$build
17438build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017439
17440# An echo program that does not interpret backslashes.
17441echo=$lt_echo
17442
17443# The archiver.
17444AR=$lt_AR
17445AR_FLAGS=$lt_AR_FLAGS
17446
John Criswell47fdd832003-07-14 16:52:07 +000017447# A C compiler.
17448LTCC=$lt_LTCC
17449
Reid Spencera773bd52006-08-04 18:18:08 +000017450# LTCC compiler flags.
17451LTCFLAGS=$lt_LTCFLAGS
17452
John Criswell47fdd832003-07-14 16:52:07 +000017453# A language-specific compiler.
17454CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017455
17456# Is the compiler the GNU C compiler?
17457with_gcc=$GCC
17458
John Criswell47fdd832003-07-14 16:52:07 +000017459# An ERE matcher.
17460EGREP=$lt_EGREP
17461
John Criswell7a73b802003-06-30 21:59:07 +000017462# The linker used to build libraries.
17463LD=$lt_LD
17464
17465# Whether we need hard or soft links.
17466LN_S=$lt_LN_S
17467
17468# A BSD-compatible nm program.
17469NM=$lt_NM
17470
17471# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017472STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017473
17474# Used to examine libraries when file_magic_cmd begins "file"
17475MAGIC_CMD=$MAGIC_CMD
17476
17477# Used on cygwin: DLL creation program.
17478DLLTOOL="$DLLTOOL"
17479
17480# Used on cygwin: object dumper.
17481OBJDUMP="$OBJDUMP"
17482
17483# Used on cygwin: assembler.
17484AS="$AS"
17485
17486# The name of the directory that contains temporary libtool files.
17487objdir=$objdir
17488
17489# How to create reloadable object files.
17490reload_flag=$lt_reload_flag
17491reload_cmds=$lt_reload_cmds
17492
17493# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017494wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017495
17496# Object file suffix (normally "o").
17497objext="$ac_objext"
17498
17499# Old archive suffix (normally "a").
17500libext="$libext"
17501
John Criswell47fdd832003-07-14 16:52:07 +000017502# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017503shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017504
John Criswell7a73b802003-06-30 21:59:07 +000017505# Executable file suffix (normally "").
17506exeext="$exeext"
17507
17508# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017509pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017510pic_mode=$pic_mode
17511
John Criswell47fdd832003-07-14 16:52:07 +000017512# What is the maximum length of a command?
17513max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017514
John Criswell47fdd832003-07-14 16:52:07 +000017515# Does compiler simultaneously support -c and -o options?
17516compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017517
Reid Spencera773bd52006-08-04 18:18:08 +000017518# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017519need_locks=$lt_need_locks
17520
17521# Do we need the lib prefix for modules?
17522need_lib_prefix=$need_lib_prefix
17523
17524# Do we need a version for libraries?
17525need_version=$need_version
17526
17527# Whether dlopen is supported.
17528dlopen_support=$enable_dlopen
17529
17530# Whether dlopen of programs is supported.
17531dlopen_self=$enable_dlopen_self
17532
17533# Whether dlopen of statically linked programs is supported.
17534dlopen_self_static=$enable_dlopen_self_static
17535
17536# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017537link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017538
17539# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017540no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017541
17542# Compiler flag to allow reflexive dlopens.
17543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17544
17545# Compiler flag to generate shared objects directly from archives.
17546whole_archive_flag_spec=$lt_whole_archive_flag_spec
17547
17548# Compiler flag to generate thread-safe objects.
17549thread_safe_flag_spec=$lt_thread_safe_flag_spec
17550
17551# Library versioning type.
17552version_type=$version_type
17553
17554# Format of library name prefix.
17555libname_spec=$lt_libname_spec
17556
17557# List of archive names. First name is the real one, the rest are links.
17558# The last name is the one that the linker finds with -lNAME.
17559library_names_spec=$lt_library_names_spec
17560
17561# The coded name of the library, if different from the real name.
17562soname_spec=$lt_soname_spec
17563
17564# Commands used to build and install an old-style archive.
17565RANLIB=$lt_RANLIB
17566old_archive_cmds=$lt_old_archive_cmds
17567old_postinstall_cmds=$lt_old_postinstall_cmds
17568old_postuninstall_cmds=$lt_old_postuninstall_cmds
17569
17570# Create an old-style archive from a shared archive.
17571old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17572
17573# Create a temporary old-style archive to link instead of a shared archive.
17574old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17575
17576# Commands used to build and install a shared archive.
17577archive_cmds=$lt_archive_cmds
17578archive_expsym_cmds=$lt_archive_expsym_cmds
17579postinstall_cmds=$lt_postinstall_cmds
17580postuninstall_cmds=$lt_postuninstall_cmds
17581
John Criswell47fdd832003-07-14 16:52:07 +000017582# Commands used to build a loadable module (assumed same as above if empty)
17583module_cmds=$lt_module_cmds
17584module_expsym_cmds=$lt_module_expsym_cmds
17585
John Criswell7a73b802003-06-30 21:59:07 +000017586# Commands to strip libraries.
17587old_striplib=$lt_old_striplib
17588striplib=$lt_striplib
17589
John Criswell47fdd832003-07-14 16:52:07 +000017590# Dependencies to place before the objects being linked to create a
17591# shared library.
17592predep_objects=$lt_predep_objects
17593
17594# Dependencies to place after the objects being linked to create a
17595# shared library.
17596postdep_objects=$lt_postdep_objects
17597
17598# Dependencies to place before the objects being linked to create a
17599# shared library.
17600predeps=$lt_predeps
17601
17602# Dependencies to place after the objects being linked to create a
17603# shared library.
17604postdeps=$lt_postdeps
17605
17606# The library search path used internally by the compiler when linking
17607# a shared library.
17608compiler_lib_search_path=$lt_compiler_lib_search_path
17609
John Criswell7a73b802003-06-30 21:59:07 +000017610# Method to check whether dependent libraries are shared objects.
17611deplibs_check_method=$lt_deplibs_check_method
17612
17613# Command to use when deplibs_check_method == file_magic.
17614file_magic_cmd=$lt_file_magic_cmd
17615
17616# Flag that allows shared libraries with undefined symbols to be built.
17617allow_undefined_flag=$lt_allow_undefined_flag
17618
17619# Flag that forces no undefined symbols.
17620no_undefined_flag=$lt_no_undefined_flag
17621
17622# Commands used to finish a libtool library installation in a directory.
17623finish_cmds=$lt_finish_cmds
17624
17625# Same as above, but a single script fragment to be evaled but not shown.
17626finish_eval=$lt_finish_eval
17627
17628# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017629global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017630
17631# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017632global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017633
17634# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017635global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017636
17637# This is the shared library runtime path variable.
17638runpath_var=$runpath_var
17639
17640# This is the shared library path variable.
17641shlibpath_var=$shlibpath_var
17642
17643# Is shlibpath searched before the hard-coded library search path?
17644shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17645
17646# How to hardcode a shared library path into an executable.
17647hardcode_action=$hardcode_action
17648
17649# Whether we should hardcode library paths into libraries.
17650hardcode_into_libs=$hardcode_into_libs
17651
17652# Flag to hardcode \$libdir into a binary during linking.
17653# This must work even if \$libdir does not exist.
17654hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17655
John Criswell47fdd832003-07-14 16:52:07 +000017656# If ld is used when linking, flag to hardcode \$libdir into
17657# a binary during linking. This must work even if \$libdir does
17658# not exist.
17659hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17660
John Criswell7a73b802003-06-30 21:59:07 +000017661# Whether we need a single -rpath flag with a separated argument.
17662hardcode_libdir_separator=$lt_hardcode_libdir_separator
17663
John Criswell47fdd832003-07-14 16:52:07 +000017664# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017665# resulting binary.
17666hardcode_direct=$hardcode_direct
17667
17668# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17669# resulting binary.
17670hardcode_minus_L=$hardcode_minus_L
17671
17672# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17673# the resulting binary.
17674hardcode_shlibpath_var=$hardcode_shlibpath_var
17675
John Criswell47fdd832003-07-14 16:52:07 +000017676# Set to yes if building a shared library automatically hardcodes DIR into the library
17677# and all subsequent libraries and executables linked against it.
17678hardcode_automatic=$hardcode_automatic
17679
John Criswell7a73b802003-06-30 21:59:07 +000017680# Variables whose values should be saved in libtool wrapper scripts and
17681# restored at relink time.
17682variables_saved_for_relink="$variables_saved_for_relink"
17683
17684# Whether libtool must link a program against all its dependency libraries.
17685link_all_deplibs=$link_all_deplibs
17686
17687# Compile-time system search path for libraries
17688sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17689
17690# Run-time system search path for libraries
17691sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17692
17693# Fix the shell variable \$srcfile for the compiler.
17694fix_srcfile_path="$fix_srcfile_path"
17695
17696# Set to yes if exported symbols are required.
17697always_export_symbols=$always_export_symbols
17698
17699# The commands to list exported symbols.
17700export_symbols_cmds=$lt_export_symbols_cmds
17701
17702# The commands to extract the exported symbol list from a shared archive.
17703extract_expsyms_cmds=$lt_extract_expsyms_cmds
17704
17705# Symbols that should not be listed in the preloaded symbols.
17706exclude_expsyms=$lt_exclude_expsyms
17707
17708# Symbols that must always be exported.
17709include_expsyms=$lt_include_expsyms
17710
17711# ### END LIBTOOL CONFIG
17712
17713__EOF__
17714
John Criswell47fdd832003-07-14 16:52:07 +000017715
John Criswell7a73b802003-06-30 21:59:07 +000017716 case $host_os in
17717 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017718 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017719
17720# AIX sometimes has problems with the GCC collect2 program. For some
17721# reason, if we set the COLLECT_NAMES environment variable, the problems
17722# vanish in a puff of smoke.
17723if test "X${COLLECT_NAMES+set}" != Xset; then
17724 COLLECT_NAMES=
17725 export COLLECT_NAMES
17726fi
17727EOF
17728 ;;
17729 esac
17730
John Criswell7a73b802003-06-30 21:59:07 +000017731 # We use sed instead of cat because bash on DJGPP gets confused if
17732 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17733 # text mode, it properly converts lines to CR/LF. This bash problem
17734 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017735 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017736
John Criswell47fdd832003-07-14 16:52:07 +000017737 mv -f "$cfgfile" "$ofile" || \
17738 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017739 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017740
17741else
17742 # If there is no Makefile yet, we rely on a make rule to execute
17743 # `config.status --recheck' to rerun these tests and create the
17744 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17746 if test -f "$ltmain_in"; then
17747 test -f Makefile && make "$ltmain"
17748 fi
John Criswell7a73b802003-06-30 21:59:07 +000017749fi
John Criswell7a73b802003-06-30 21:59:07 +000017750
17751
John Criswell47fdd832003-07-14 16:52:07 +000017752ac_ext=c
17753ac_cpp='$CPP $CPPFLAGS'
17754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17756ac_compiler_gnu=$ac_cv_c_compiler_gnu
17757
17758CC="$lt_save_CC"
17759
17760
Reid Spencera773bd52006-08-04 18:18:08 +000017761# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017762if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017763 withval=$with_tags; tagnames="$withval"
17764fi
17765
John Criswell47fdd832003-07-14 16:52:07 +000017766
17767if test -f "$ltmain" && test -n "$tagnames"; then
17768 if test ! -f "${ofile}"; then
17769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17770echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17771 fi
17772
17773 if test -z "$LTCC"; then
17774 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17775 if test -z "$LTCC"; then
17776 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17777echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17778 else
17779 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17780echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17781 fi
17782 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017783 if test -z "$LTCFLAGS"; then
17784 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17785 fi
John Criswell47fdd832003-07-14 16:52:07 +000017786
17787 # Extract list of available tagged configurations in $ofile.
17788 # Note that this assumes the entire list is on one line.
17789 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17790
17791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17792 for tagname in $tagnames; do
17793 IFS="$lt_save_ifs"
17794 # Check whether tagname contains only valid characters
17795 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17796 "") ;;
17797 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17798echo "$as_me: error: invalid tag name: $tagname" >&2;}
17799 { (exit 1); exit 1; }; }
17800 ;;
17801 esac
17802
17803 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17804 then
17805 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17806echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17807 { (exit 1); exit 1; }; }
17808 fi
17809
17810 # Update the list of available tags.
17811 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017812 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017813
17814 case $tagname in
17815 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017816 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17817 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17818 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017819 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017820ac_cpp='$CXXCPP $CPPFLAGS'
17821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17824
17825
17826
17827
17828archive_cmds_need_lc_CXX=no
17829allow_undefined_flag_CXX=
17830always_export_symbols_CXX=no
17831archive_expsym_cmds_CXX=
17832export_dynamic_flag_spec_CXX=
17833hardcode_direct_CXX=no
17834hardcode_libdir_flag_spec_CXX=
17835hardcode_libdir_flag_spec_ld_CXX=
17836hardcode_libdir_separator_CXX=
17837hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017838hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017839hardcode_automatic_CXX=no
17840module_cmds_CXX=
17841module_expsym_cmds_CXX=
17842link_all_deplibs_CXX=unknown
17843old_archive_cmds_CXX=$old_archive_cmds
17844no_undefined_flag_CXX=
17845whole_archive_flag_spec_CXX=
17846enable_shared_with_static_runtimes_CXX=no
17847
17848# Dependencies to place before and after the object being linked:
17849predep_objects_CXX=
17850postdep_objects_CXX=
17851predeps_CXX=
17852postdeps_CXX=
17853compiler_lib_search_path_CXX=
17854
17855# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017856ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017857
17858# Object file extension for compiled C++ test sources.
17859objext=o
17860objext_CXX=$objext
17861
17862# Code to be used in simple compile tests
17863lt_simple_compile_test_code="int some_variable = 0;\n"
17864
17865# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017866lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017867
17868# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17869
17870# If no C compiler was specified, use CC.
17871LTCC=${LTCC-"$CC"}
17872
Reid Spencera773bd52006-08-04 18:18:08 +000017873# If no C compiler flags were specified, use CFLAGS.
17874LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17875
John Criswell47fdd832003-07-14 16:52:07 +000017876# Allow CC to be a program name with arguments.
17877compiler=$CC
17878
17879
Reid Spencera773bd52006-08-04 18:18:08 +000017880# save warnings/boilerplate of simple test code
17881ac_outfile=conftest.$ac_objext
17882printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17883eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17884_lt_compiler_boilerplate=`cat conftest.err`
17885$rm conftest*
17886
17887ac_outfile=conftest.$ac_objext
17888printf "$lt_simple_link_test_code" >conftest.$ac_ext
17889eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17890_lt_linker_boilerplate=`cat conftest.err`
17891$rm conftest*
17892
17893
John Criswell47fdd832003-07-14 16:52:07 +000017894# Allow CC to be a program name with arguments.
17895lt_save_CC=$CC
17896lt_save_LD=$LD
17897lt_save_GCC=$GCC
17898GCC=$GXX
17899lt_save_with_gnu_ld=$with_gnu_ld
17900lt_save_path_LD=$lt_cv_path_LD
17901if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17902 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17903else
Reid Spencera773bd52006-08-04 18:18:08 +000017904 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017905fi
17906if test -n "${lt_cv_path_LDCXX+set}"; then
17907 lt_cv_path_LD=$lt_cv_path_LDCXX
17908else
Reid Spencera773bd52006-08-04 18:18:08 +000017909 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017910fi
17911test -z "${LDCXX+set}" || LD=$LDCXX
17912CC=${CXX-"c++"}
17913compiler=$CC
17914compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017915for cc_temp in $compiler""; do
17916 case $cc_temp in
17917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17919 \-*) ;;
17920 *) break;;
17921 esac
17922done
17923cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17924
John Criswell47fdd832003-07-14 16:52:07 +000017925
17926# We don't want -fno-exception wen compiling C++ code, so set the
17927# no_builtin_flag separately
17928if test "$GXX" = yes; then
17929 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17930else
17931 lt_prog_compiler_no_builtin_flag_CXX=
17932fi
17933
17934if test "$GXX" = yes; then
17935 # Set up default GNU C++ configuration
17936
17937
Reid Spencera773bd52006-08-04 18:18:08 +000017938# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017939if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017941else
17942 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017943fi
17944
John Criswell47fdd832003-07-14 16:52:07 +000017945ac_prog=ld
17946if test "$GCC" = yes; then
17947 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017948 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17949echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017950 case $host in
17951 *-*-mingw*)
17952 # gcc leaves a trailing carriage return which upsets mingw
17953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17954 *)
17955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17956 esac
17957 case $ac_prog in
17958 # Accept absolute paths.
17959 [\\/]* | ?:[\\/]*)
17960 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017961 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017962 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17964 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17965 done
17966 test -z "$LD" && LD="$ac_prog"
17967 ;;
17968 "")
17969 # If it fails, then pretend we aren't using GCC.
17970 ac_prog=ld
17971 ;;
17972 *)
17973 # If it is relative, then search for the first ld in PATH.
17974 with_gnu_ld=unknown
17975 ;;
17976 esac
17977elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017978 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17979echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017980else
Reid Spencera773bd52006-08-04 18:18:08 +000017981 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17982echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017983fi
17984if test "${lt_cv_path_LD+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986else
17987 if test -z "$LD"; then
17988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17989 for ac_dir in $PATH; do
17990 IFS="$lt_save_ifs"
17991 test -z "$ac_dir" && ac_dir=.
17992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17993 lt_cv_path_LD="$ac_dir/$ac_prog"
17994 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017995 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017996 # Break only if it was the GNU/non-GNU ld that we prefer.
17997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17998 *GNU* | *'with BFD'*)
17999 test "$with_gnu_ld" != no && break
18000 ;;
18001 *)
18002 test "$with_gnu_ld" != yes && break
18003 ;;
18004 esac
18005 fi
18006 done
18007 IFS="$lt_save_ifs"
18008else
18009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18010fi
18011fi
18012
18013LD="$lt_cv_path_LD"
18014if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018015 { echo "$as_me:$LINENO: result: $LD" >&5
18016echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018017else
Reid Spencera773bd52006-08-04 18:18:08 +000018018 { echo "$as_me:$LINENO: result: no" >&5
18019echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018020fi
18021test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18022echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18023 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018024{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18025echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018026if test "${lt_cv_prog_gnu_ld+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028else
Reid Spencera773bd52006-08-04 18:18:08 +000018029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018030case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018031*GNU* | *'with BFD'*)
18032 lt_cv_prog_gnu_ld=yes
18033 ;;
18034*)
18035 lt_cv_prog_gnu_ld=no
18036 ;;
18037esac
18038fi
Reid Spencera773bd52006-08-04 18:18:08 +000018039{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18040echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018041with_gnu_ld=$lt_cv_prog_gnu_ld
18042
18043
18044
18045 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18046 # archiving commands below assume that GNU ld is being used.
18047 if test "$with_gnu_ld" = yes; then
18048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18049 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'
18050
18051 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18053
18054 # If archive_cmds runs LD, not CC, wlarc should be empty
18055 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18056 # investigate it a little bit more. (MM)
18057 wlarc='${wl}'
18058
18059 # ancient GNU ld didn't support --whole-archive et. al.
18060 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18061 grep 'no-whole-archive' > /dev/null; then
18062 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18063 else
18064 whole_archive_flag_spec_CXX=
18065 fi
18066 else
18067 with_gnu_ld=no
18068 wlarc=
18069
18070 # A generic and very simple default shared library creation
18071 # command for GNU C++ for the case where it uses the native
18072 # linker, instead of GNU ld. If possible, this setting should
18073 # overridden to take advantage of the native linker features on
18074 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018076 fi
18077
18078 # Commands to make compiler produce verbose output that lists
18079 # what "hidden" libraries, object files and flags are used when
18080 # linking a shared library.
18081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18082
18083else
18084 GXX=no
18085 with_gnu_ld=no
18086 wlarc=
18087fi
18088
18089# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018090{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18091echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018092ld_shlibs_CXX=yes
18093case $host_os in
18094 aix3*)
18095 # FIXME: insert proper C++ library support
18096 ld_shlibs_CXX=no
18097 ;;
18098 aix4* | aix5*)
18099 if test "$host_cpu" = ia64; then
18100 # On IA64, the linker does run time linking by default, so we don't
18101 # have to do anything special.
18102 aix_use_runtimelinking=no
18103 exp_sym_flag='-Bexport'
18104 no_entry_flag=""
18105 else
18106 aix_use_runtimelinking=no
18107
18108 # Test if we are trying to use run time linking or normal
18109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18110 # need to do runtime linking.
18111 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18112 for ld_flag in $LDFLAGS; do
18113 case $ld_flag in
18114 *-brtl*)
18115 aix_use_runtimelinking=yes
18116 break
18117 ;;
18118 esac
18119 done
Reid Spencera773bd52006-08-04 18:18:08 +000018120 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018121 esac
18122
18123 exp_sym_flag='-bexport'
18124 no_entry_flag='-bnoentry'
18125 fi
18126
18127 # When large executables or shared objects are built, AIX ld can
18128 # have problems creating the table of contents. If linking a library
18129 # or program results in "error TOC overflow" add -mminimal-toc to
18130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18132
18133 archive_cmds_CXX=''
18134 hardcode_direct_CXX=yes
18135 hardcode_libdir_separator_CXX=':'
18136 link_all_deplibs_CXX=yes
18137
18138 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018139 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018140 # We only want to do this on AIX 4.2 and lower, the check
18141 # below for broken collect2 doesn't work under 4.3+
18142 collect2name=`${CC} -print-prog-name=collect2`
18143 if test -f "$collect2name" && \
18144 strings "$collect2name" | grep resolve_lib_name >/dev/null
18145 then
18146 # We have reworked collect2
18147 hardcode_direct_CXX=yes
18148 else
18149 # We have old collect2
18150 hardcode_direct_CXX=unsupported
18151 # It fails to find uninstalled libraries when the uninstalled
18152 # path is not listed in the libpath. Setting hardcode_minus_L
18153 # to unsupported forces relinking
18154 hardcode_minus_L_CXX=yes
18155 hardcode_libdir_flag_spec_CXX='-L$libdir'
18156 hardcode_libdir_separator_CXX=
18157 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018158 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018159 esac
18160 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018161 if test "$aix_use_runtimelinking" = yes; then
18162 shared_flag="$shared_flag "'${wl}-G'
18163 fi
John Criswell47fdd832003-07-14 16:52:07 +000018164 else
18165 # not using gcc
18166 if test "$host_cpu" = ia64; then
18167 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18168 # chokes on -Wl,-G. The following line is correct:
18169 shared_flag='-G'
18170 else
18171 if test "$aix_use_runtimelinking" = yes; then
18172 shared_flag='${wl}-G'
18173 else
18174 shared_flag='${wl}-bM:SRE'
18175 fi
18176 fi
18177 fi
18178
18179 # It seems that -bexpall does not export symbols beginning with
18180 # underscore (_), so it is better to generate a list of symbols to export.
18181 always_export_symbols_CXX=yes
18182 if test "$aix_use_runtimelinking" = yes; then
18183 # Warning - without using the other runtime loading flags (-brtl),
18184 # -berok will link without error, but may produce a broken library.
18185 allow_undefined_flag_CXX='-berok'
18186 # Determine the default libpath from the value encoded in an empty executable.
18187 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018188/* confdefs.h. */
18189_ACEOF
18190cat confdefs.h >>conftest.$ac_ext
18191cat >>conftest.$ac_ext <<_ACEOF
18192/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018193
John Criswell47fdd832003-07-14 16:52:07 +000018194int
18195main ()
18196{
18197
18198 ;
18199 return 0;
18200}
18201_ACEOF
18202rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018203if { (ac_try="$ac_link"
18204case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018210 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220esac
18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18230esac
18231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236
18237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18238}'`
18239# Check for a 64-bit object if we didn't find anything.
18240if 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; }
18241}'`; fi
18242else
18243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018244sed 's/^/| /' conftest.$ac_ext >&5
18245
Reid Spencera773bd52006-08-04 18:18:08 +000018246
John Criswell47fdd832003-07-14 16:52:07 +000018247fi
Reid Spencera773bd52006-08-04 18:18:08 +000018248
18249rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018250 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018251if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18252
18253 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18254
Reid Spencera773bd52006-08-04 18:18:08 +000018255 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 +000018256 else
18257 if test "$host_cpu" = ia64; then
18258 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18259 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018260 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 +000018261 else
18262 # Determine the default libpath from the value encoded in an empty executable.
18263 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018264/* confdefs.h. */
18265_ACEOF
18266cat confdefs.h >>conftest.$ac_ext
18267cat >>conftest.$ac_ext <<_ACEOF
18268/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018269
John Criswell47fdd832003-07-14 16:52:07 +000018270int
18271main ()
18272{
18273
18274 ;
18275 return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018279if { (ac_try="$ac_link"
18280case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283esac
18284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018286 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018287 grep -v '^ *+' conftest.er1 >conftest.err
18288 rm -f conftest.er1
18289 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296esac
18297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306esac
18307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18312
18313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18314}'`
18315# Check for a 64-bit object if we didn't find anything.
18316if 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; }
18317}'`; fi
18318else
18319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018320sed 's/^/| /' conftest.$ac_ext >&5
18321
Reid Spencera773bd52006-08-04 18:18:08 +000018322
John Criswell47fdd832003-07-14 16:52:07 +000018323fi
Reid Spencera773bd52006-08-04 18:18:08 +000018324
18325rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018326 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18328
18329 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18330 # Warning - without using the other run time loading flags,
18331 # -berok will link without error, but may produce a broken library.
18332 no_undefined_flag_CXX=' ${wl}-bernotok'
18333 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018334 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018335 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018336 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018337 # This is similar to how AIX traditionally builds its shared libraries.
18338 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 +000018339 fi
18340 fi
18341 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018342
18343 beos*)
18344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18345 allow_undefined_flag_CXX=unsupported
18346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18347 # support --undefined. This deserves some investigation. FIXME
18348 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18349 else
18350 ld_shlibs_CXX=no
18351 fi
18352 ;;
18353
John Criswell47fdd832003-07-14 16:52:07 +000018354 chorus*)
18355 case $cc_basename in
18356 *)
18357 # FIXME: insert proper C++ library support
18358 ld_shlibs_CXX=no
18359 ;;
18360 esac
18361 ;;
18362
18363 cygwin* | mingw* | pw32*)
18364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18365 # as there is no search path for DLLs.
18366 hardcode_libdir_flag_spec_CXX='-L$libdir'
18367 allow_undefined_flag_CXX=unsupported
18368 always_export_symbols_CXX=no
18369 enable_shared_with_static_runtimes_CXX=yes
18370
18371 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018372 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 +000018373 # If the export-symbols file already is a .def file (1st line
18374 # is EXPORTS), use it as is; otherwise, prepend...
18375 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18376 cp $export_symbols $output_objdir/$soname.def;
18377 else
18378 echo EXPORTS > $output_objdir/$soname.def;
18379 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018380 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018381 $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 +000018382 else
18383 ld_shlibs_CXX=no
18384 fi
18385 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018386 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018387 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018388 rhapsody* | darwin1.[012])
18389 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18390 ;;
18391 *) # Darwin 1.3 on
18392 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18393 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18394 else
18395 case ${MACOSX_DEPLOYMENT_TARGET} in
18396 10.[012])
18397 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18398 ;;
18399 10.*)
18400 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18401 ;;
18402 esac
18403 fi
18404 ;;
18405 esac
18406 archive_cmds_need_lc_CXX=no
18407 hardcode_direct_CXX=no
18408 hardcode_automatic_CXX=yes
18409 hardcode_shlibpath_var_CXX=unsupported
18410 whole_archive_flag_spec_CXX=''
18411 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018412
Reid Spencer2706f8c2004-09-19 23:53:36 +000018413 if test "$GXX" = yes ; then
18414 lt_int_apple_cc_single_mod=no
18415 output_verbose_link_cmd='echo'
18416 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18417 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018418 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018419 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018420 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 +000018421 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018422 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 +000018423 fi
18424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018425 # 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 +000018426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018427 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 +000018428 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018429 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 +000018430 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018431 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 +000018432 else
Reid Spencera773bd52006-08-04 18:18:08 +000018433 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018434 xlc*)
18435 output_verbose_link_cmd='echo'
18436 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'
18437 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018438 # 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 +000018439 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}'
18440 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 +000018441 ;;
18442 *)
18443 ld_shlibs_CXX=no
18444 ;;
18445 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018446 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018447 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018448
18449 dgux*)
18450 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018451 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018452 # FIXME: insert proper C++ library support
18453 ld_shlibs_CXX=no
18454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018455 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018456 # Green Hills C++ Compiler
18457 # FIXME: insert proper C++ library support
18458 ld_shlibs_CXX=no
18459 ;;
18460 *)
18461 # FIXME: insert proper C++ library support
18462 ld_shlibs_CXX=no
18463 ;;
18464 esac
18465 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018466 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018467 # C++ shared libraries reported to be fairly broken before switch to ELF
18468 ld_shlibs_CXX=no
18469 ;;
18470 freebsd-elf*)
18471 archive_cmds_need_lc_CXX=no
18472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018473 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018474 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18475 # conventions
18476 ld_shlibs_CXX=yes
18477 ;;
18478 gnu*)
18479 ;;
18480 hpux9*)
18481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18482 hardcode_libdir_separator_CXX=:
18483 export_dynamic_flag_spec_CXX='${wl}-E'
18484 hardcode_direct_CXX=yes
18485 hardcode_minus_L_CXX=yes # Not in the search PATH,
18486 # but as the default
18487 # location of the library.
18488
18489 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018490 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018491 # FIXME: insert proper C++ library support
18492 ld_shlibs_CXX=no
18493 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018494 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018495 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 +000018496 # Commands to make compiler produce verbose output that lists
18497 # what "hidden" libraries, object files and flags are used when
18498 # linking a shared library.
18499 #
18500 # There doesn't appear to be a way to prevent this compiler from
18501 # explicitly linking system object files so we need to strip them
18502 # from the output so that they don't get included in the library
18503 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018504 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 +000018505 ;;
18506 *)
18507 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018508 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 +000018509 else
18510 # FIXME: insert proper C++ library support
18511 ld_shlibs_CXX=no
18512 fi
18513 ;;
18514 esac
18515 ;;
18516 hpux10*|hpux11*)
18517 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018518 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18519 hardcode_libdir_separator_CXX=:
18520
18521 case $host_cpu in
18522 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018523 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018524 ;;
18525 *)
John Criswell47fdd832003-07-14 16:52:07 +000018526 export_dynamic_flag_spec_CXX='${wl}-E'
18527 ;;
18528 esac
18529 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018530 case $host_cpu in
18531 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018532 hardcode_direct_CXX=no
18533 hardcode_shlibpath_var_CXX=no
18534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018535 *)
18536 hardcode_direct_CXX=yes
18537 hardcode_minus_L_CXX=yes # Not in the search PATH,
18538 # but as the default
18539 # location of the library.
18540 ;;
18541 esac
18542
18543 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018544 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018548 aCC*)
18549 case $host_cpu in
18550 hppa*64*)
18551 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18552 ;;
18553 ia64*)
18554 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 +000018555 ;;
18556 *)
18557 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18558 ;;
18559 esac
18560 # Commands to make compiler produce verbose output that lists
18561 # what "hidden" libraries, object files and flags are used when
18562 # linking a shared library.
18563 #
18564 # There doesn't appear to be a way to prevent this compiler from
18565 # explicitly linking system object files so we need to strip them
18566 # from the output so that they don't get included in the library
18567 # dependencies.
18568 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'
18569 ;;
18570 *)
18571 if test "$GXX" = yes; then
18572 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018573 case $host_cpu in
18574 hppa*64*)
18575 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18576 ;;
18577 ia64*)
18578 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 +000018579 ;;
18580 *)
18581 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'
18582 ;;
18583 esac
18584 fi
18585 else
18586 # FIXME: insert proper C++ library support
18587 ld_shlibs_CXX=no
18588 fi
18589 ;;
18590 esac
18591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018592 interix3*)
18593 hardcode_direct_CXX=no
18594 hardcode_shlibpath_var_CXX=no
18595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18596 export_dynamic_flag_spec_CXX='${wl}-E'
18597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18598 # Instead, shared libraries are loaded at an image base (0x10000000 by
18599 # default) and relocated if they conflict, which is a slow very memory
18600 # consuming and fragmenting process. To avoid this, we pick a random,
18601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18603 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'
18604 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'
18605 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018606 irix5* | irix6*)
18607 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018608 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018609 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018610 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 +000018611
18612 # Archives containing C++ object files must be created using
18613 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18614 # necessary to make sure instantiated templates are included
18615 # in the archive.
18616 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18617 ;;
18618 *)
18619 if test "$GXX" = yes; then
18620 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018621 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 +000018622 else
18623 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'
18624 fi
18625 fi
18626 link_all_deplibs_CXX=yes
18627 ;;
18628 esac
18629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18630 hardcode_libdir_separator_CXX=:
18631 ;;
18632 linux*)
18633 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018634 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018635 # Kuck and Associates, Inc. (KAI) C++ Compiler
18636
18637 # KCC will only create a shared library if the output file
18638 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18639 # to its proper name (with version) after linking.
18640 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'
18641 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'
18642 # Commands to make compiler produce verbose output that lists
18643 # what "hidden" libraries, object files and flags are used when
18644 # linking a shared library.
18645 #
18646 # There doesn't appear to be a way to prevent this compiler from
18647 # explicitly linking system object files so we need to strip them
18648 # from the output so that they don't get included in the library
18649 # dependencies.
18650 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'
18651
18652 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18653 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18654
18655 # Archives containing C++ object files must be created using
18656 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18657 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018659 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018660 # Intel C++
18661 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018662 # version 8.0 and above of icpc choke on multiply defined symbols
18663 # if we add $predep_objects and $postdep_objects, however 7.1 and
18664 # earlier do not add the objects themselves.
18665 case `$CC -V 2>&1` in
18666 *"Version 7."*)
18667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18668 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'
18669 ;;
18670 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018671 tmp_idyn=
18672 case $host_cpu in
18673 ia64*) tmp_idyn=' -i_dynamic';;
18674 esac
18675 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18676 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 +000018677 ;;
18678 esac
John Criswell47fdd832003-07-14 16:52:07 +000018679 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18682 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018684 pgCC*)
18685 # Portland Group C++ compiler
18686 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18687 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'
18688
18689 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18691 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'
18692 ;;
18693 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018694 # Compaq C++
18695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18696 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'
18697
18698 runpath_var=LD_RUN_PATH
18699 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18700 hardcode_libdir_separator_CXX=:
18701
18702 # Commands to make compiler produce verbose output that lists
18703 # what "hidden" libraries, object files and flags are used when
18704 # linking a shared library.
18705 #
18706 # There doesn't appear to be a way to prevent this compiler from
18707 # explicitly linking system object files so we need to strip them
18708 # from the output so that they don't get included in the library
18709 # dependencies.
18710 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'
18711 ;;
18712 esac
18713 ;;
18714 lynxos*)
18715 # FIXME: insert proper C++ library support
18716 ld_shlibs_CXX=no
18717 ;;
18718 m88k*)
18719 # FIXME: insert proper C++ library support
18720 ld_shlibs_CXX=no
18721 ;;
18722 mvs*)
18723 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018724 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018725 # FIXME: insert proper C++ library support
18726 ld_shlibs_CXX=no
18727 ;;
18728 *)
18729 # FIXME: insert proper C++ library support
18730 ld_shlibs_CXX=no
18731 ;;
18732 esac
18733 ;;
18734 netbsd*)
18735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18736 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18737 wlarc=
18738 hardcode_libdir_flag_spec_CXX='-R$libdir'
18739 hardcode_direct_CXX=yes
18740 hardcode_shlibpath_var_CXX=no
18741 fi
18742 # Workaround some broken pre-1.5 toolchains
18743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18744 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018745 openbsd2*)
18746 # C++ shared libraries are fairly broken
18747 ld_shlibs_CXX=no
18748 ;;
18749 openbsd*)
18750 hardcode_direct_CXX=yes
18751 hardcode_shlibpath_var_CXX=no
18752 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18755 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18756 export_dynamic_flag_spec_CXX='${wl}-E'
18757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18758 fi
18759 output_verbose_link_cmd='echo'
18760 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018761 osf3*)
18762 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018763 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018764 # Kuck and Associates, Inc. (KAI) C++ Compiler
18765
18766 # KCC will only create a shared library if the output file
18767 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18768 # to its proper name (with version) after linking.
18769 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'
18770
18771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18772 hardcode_libdir_separator_CXX=:
18773
18774 # Archives containing C++ object files must be created using
18775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18777
18778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018779 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018780 # Rational C++ 2.4.1
18781 # FIXME: insert proper C++ library support
18782 ld_shlibs_CXX=no
18783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018784 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018786 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 +000018787
18788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18790
18791 # Commands to make compiler produce verbose output that lists
18792 # what "hidden" libraries, object files and flags are used when
18793 # linking a shared library.
18794 #
18795 # There doesn't appear to be a way to prevent this compiler from
18796 # explicitly linking system object files so we need to strip them
18797 # from the output so that they don't get included in the library
18798 # dependencies.
18799 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'
18800 ;;
18801 *)
18802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18803 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018804 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 +000018805
18806 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18807 hardcode_libdir_separator_CXX=:
18808
18809 # Commands to make compiler produce verbose output that lists
18810 # what "hidden" libraries, object files and flags are used when
18811 # linking a shared library.
18812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18813
18814 else
18815 # FIXME: insert proper C++ library support
18816 ld_shlibs_CXX=no
18817 fi
18818 ;;
18819 esac
18820 ;;
18821 osf4* | osf5*)
18822 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018823 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018824 # Kuck and Associates, Inc. (KAI) C++ Compiler
18825
18826 # KCC will only create a shared library if the output file
18827 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18828 # to its proper name (with version) after linking.
18829 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'
18830
18831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18832 hardcode_libdir_separator_CXX=:
18833
18834 # Archives containing C++ object files must be created using
18835 # the KAI C++ compiler.
18836 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18837 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018838 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 # Rational C++ 2.4.1
18840 # FIXME: insert proper C++ library support
18841 ld_shlibs_CXX=no
18842 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018843 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018844 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018845 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 +000018846 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18847 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018848 $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 +000018849 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018850
18851 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18852 hardcode_libdir_separator_CXX=:
18853
18854 # Commands to make compiler produce verbose output that lists
18855 # what "hidden" libraries, object files and flags are used when
18856 # linking a shared library.
18857 #
18858 # There doesn't appear to be a way to prevent this compiler from
18859 # explicitly linking system object files so we need to strip them
18860 # from the output so that they don't get included in the library
18861 # dependencies.
18862 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'
18863 ;;
18864 *)
18865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018867 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 +000018868
18869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18870 hardcode_libdir_separator_CXX=:
18871
18872 # Commands to make compiler produce verbose output that lists
18873 # what "hidden" libraries, object files and flags are used when
18874 # linking a shared library.
18875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18876
18877 else
18878 # FIXME: insert proper C++ library support
18879 ld_shlibs_CXX=no
18880 fi
18881 ;;
18882 esac
18883 ;;
18884 psos*)
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018888 sunos4*)
18889 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018890 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018891 # Sun C++ 4.x
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018895 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018896 # Lucid
18897 # FIXME: insert proper C++ library support
18898 ld_shlibs_CXX=no
18899 ;;
18900 *)
18901 # FIXME: insert proper C++ library support
18902 ld_shlibs_CXX=no
18903 ;;
18904 esac
18905 ;;
18906 solaris*)
18907 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018908 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018909 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018910 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018911 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018912 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 +000018913 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 +000018914 $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 +000018915
18916 hardcode_libdir_flag_spec_CXX='-R$libdir'
18917 hardcode_shlibpath_var_CXX=no
18918 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018919 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018920 *)
18921 # The C++ compiler is used as linker so we must use $wl
18922 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018923 # linker. We must also pass each convience library through
18924 # to the system linker between allextract/defaultextract.
18925 # The C++ compiler will combine linker options so we
18926 # cannot just pass the convience library names through
18927 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018928 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018929 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 +000018930 ;;
18931 esac
18932 link_all_deplibs_CXX=yes
18933
Reid Spencera773bd52006-08-04 18:18:08 +000018934 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018935
18936 # Archives containing C++ object files must be created using
18937 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18938 # necessary to make sure instantiated templates are included
18939 # in the archive.
18940 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018942 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018943 # Green Hills C++ Compiler
18944 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18945
18946 # The C++ compiler must be used to create the archive.
18947 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18948 ;;
18949 *)
18950 # GNU C++ compiler with Solaris linker
18951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18952 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18953 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018954 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 +000018955 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18956 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18957
John Criswell47fdd832003-07-14 16:52:07 +000018958 # Commands to make compiler produce verbose output that lists
18959 # what "hidden" libraries, object files and flags are used when
18960 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018961 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018962 else
18963 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18964 # platform.
18965 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 +000018966 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18967 $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 +000018968
18969 # Commands to make compiler produce verbose output that lists
18970 # what "hidden" libraries, object files and flags are used when
18971 # linking a shared library.
18972 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18973 fi
18974
18975 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18976 fi
18977 ;;
18978 esac
18979 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18981 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018982 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018983 hardcode_shlibpath_var_CXX=no
18984 runpath_var='LD_RUN_PATH'
18985
18986 case $cc_basename in
18987 CC*)
18988 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 ;;
18991 *)
18992 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 ;;
18995 esac
18996 ;;
18997 sysv5* | sco3.2v5* | sco5v6*)
18998 # Note: We can NOT use -z defs as we might desire, because we do not
18999 # link with -lc, and that would cause any symbols used from libc to
19000 # always be unresolved, which means just about no library would
19001 # ever link correctly. If we're not using GNU ld we use -z text
19002 # though, which does catch some bad symbols but isn't as heavy-handed
19003 # as -z defs.
19004 # For security reasons, it is highly recommended that you always
19005 # use absolute paths for naming shared libraries, and exclude the
19006 # DT_RUNPATH tag from executables and libraries. But doing so
19007 # requires that you compile everything twice, which is a pain.
19008 # So that behaviour is only enabled if SCOABSPATH is set to a
19009 # non-empty value in the environment. Most likely only useful for
19010 # creating official distributions of packages.
19011 # This is a hack until libtool officially supports absolute path
19012 # names for shared libraries.
19013 no_undefined_flag_CXX='${wl}-z,text'
19014 allow_undefined_flag_CXX='${wl}-z,nodefs'
19015 archive_cmds_need_lc_CXX=no
19016 hardcode_shlibpath_var_CXX=no
19017 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19018 hardcode_libdir_separator_CXX=':'
19019 link_all_deplibs_CXX=yes
19020 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19021 runpath_var='LD_RUN_PATH'
19022
19023 case $cc_basename in
19024 CC*)
19025 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19026 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19027 ;;
19028 *)
19029 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031 ;;
19032 esac
John Criswell47fdd832003-07-14 16:52:07 +000019033 ;;
19034 tandem*)
19035 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019036 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019037 # NonStop-UX NCC 3.20
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041 *)
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19044 ;;
19045 esac
19046 ;;
19047 vxworks*)
19048 # FIXME: insert proper C++ library support
19049 ld_shlibs_CXX=no
19050 ;;
19051 *)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055esac
Reid Spencera773bd52006-08-04 18:18:08 +000019056{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19057echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019058test "$ld_shlibs_CXX" = no && can_build_shared=no
19059
19060GCC_CXX="$GXX"
19061LD_CXX="$LD"
19062
John Criswell47fdd832003-07-14 16:52:07 +000019063
19064cat > conftest.$ac_ext <<EOF
19065class Foo
19066{
19067public:
19068 Foo (void) { a = 0; }
19069private:
19070 int a;
19071};
19072EOF
19073
19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075 (eval $ac_compile) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; then
19079 # Parse the compiler output and extract the necessary
19080 # objects, libraries and library flags.
19081
19082 # Sentinel used to keep track of whether or not we are before
19083 # the conftest object file.
19084 pre_test_object_deps_done=no
19085
19086 # The `*' in the case matches for architectures that use `case' in
19087 # $output_verbose_cmd can trigger glob expansion during the loop
19088 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019089 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019090
19091 for p in `eval $output_verbose_link_cmd`; do
19092 case $p in
19093
19094 -L* | -R* | -l*)
19095 # Some compilers place space between "-{L,R}" and the path.
19096 # Remove the space.
19097 if test $p = "-L" \
19098 || test $p = "-R"; then
19099 prev=$p
19100 continue
19101 else
19102 prev=
19103 fi
19104
19105 if test "$pre_test_object_deps_done" = no; then
19106 case $p in
19107 -L* | -R*)
19108 # Internal compiler library paths should come after those
19109 # provided the user. The postdeps already come after the
19110 # user supplied libs so there is no need to process them.
19111 if test -z "$compiler_lib_search_path_CXX"; then
19112 compiler_lib_search_path_CXX="${prev}${p}"
19113 else
19114 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19115 fi
19116 ;;
19117 # The "-l" case would never come before the object being
19118 # linked, so don't bother handling this case.
19119 esac
19120 else
19121 if test -z "$postdeps_CXX"; then
19122 postdeps_CXX="${prev}${p}"
19123 else
19124 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19125 fi
19126 fi
19127 ;;
19128
19129 *.$objext)
19130 # This assumes that the test object file only shows up
19131 # once in the compiler output.
19132 if test "$p" = "conftest.$objext"; then
19133 pre_test_object_deps_done=yes
19134 continue
19135 fi
19136
19137 if test "$pre_test_object_deps_done" = no; then
19138 if test -z "$predep_objects_CXX"; then
19139 predep_objects_CXX="$p"
19140 else
19141 predep_objects_CXX="$predep_objects_CXX $p"
19142 fi
19143 else
19144 if test -z "$postdep_objects_CXX"; then
19145 postdep_objects_CXX="$p"
19146 else
19147 postdep_objects_CXX="$postdep_objects_CXX $p"
19148 fi
19149 fi
19150 ;;
19151
19152 *) ;; # Ignore the rest.
19153
19154 esac
19155 done
19156
19157 # Clean up.
19158 rm -f a.out a.exe
19159else
19160 echo "libtool.m4: error: problem compiling CXX test program"
19161fi
19162
19163$rm -f confest.$objext
19164
Reid Spencera773bd52006-08-04 18:18:08 +000019165# PORTME: override above test on systems where it is broken
19166case $host_os in
19167interix3*)
19168 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19169 # hack all around it, let's just trust "g++" to DTRT.
19170 predep_objects_CXX=
19171 postdep_objects_CXX=
19172 postdeps_CXX=
19173 ;;
19174
19175solaris*)
19176 case $cc_basename in
19177 CC*)
19178 # Adding this requires a known-good setup of shared libraries for
19179 # Sun compiler versions before 5.6, else PIC objects from an old
19180 # archive will be linked into the output, leading to subtle bugs.
19181 postdeps_CXX='-lCstd -lCrun'
19182 ;;
19183 esac
19184 ;;
19185esac
19186
19187
John Criswell47fdd832003-07-14 16:52:07 +000019188case " $postdeps_CXX " in
19189*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19190esac
19191
19192lt_prog_compiler_wl_CXX=
19193lt_prog_compiler_pic_CXX=
19194lt_prog_compiler_static_CXX=
19195
Reid Spencera773bd52006-08-04 18:18:08 +000019196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019198
19199 # C++ specific cases for pic, static, wl, etc.
19200 if test "$GXX" = yes; then
19201 lt_prog_compiler_wl_CXX='-Wl,'
19202 lt_prog_compiler_static_CXX='-static'
19203
19204 case $host_os in
19205 aix*)
19206 # All AIX code is PIC.
19207 if test "$host_cpu" = ia64; then
19208 # AIX 5 now supports IA64 processor
19209 lt_prog_compiler_static_CXX='-Bstatic'
19210 fi
19211 ;;
19212 amigaos*)
19213 # FIXME: we need at least 68020 code to build shared libraries, but
19214 # adding the `-m68020' flag to GCC prevents building anything better,
19215 # like `-m68040'.
19216 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19217 ;;
19218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19219 # PIC is the default for these OSes.
19220 ;;
19221 mingw* | os2* | pw32*)
19222 # This hack is so that the source file can tell whether it is being
19223 # built for inclusion in a dll (and should export symbols for example).
19224 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19225 ;;
19226 darwin* | rhapsody*)
19227 # PIC is the default on this platform
19228 # Common symbols not allowed in MH_DYLIB files
19229 lt_prog_compiler_pic_CXX='-fno-common'
19230 ;;
19231 *djgpp*)
19232 # DJGPP does not support shared libraries at all
19233 lt_prog_compiler_pic_CXX=
19234 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019235 interix3*)
19236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19237 # Instead, we relocate shared libraries at runtime.
19238 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019239 sysv4*MP*)
19240 if test -d /usr/nec; then
19241 lt_prog_compiler_pic_CXX=-Kconform_pic
19242 fi
19243 ;;
19244 hpux*)
19245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19246 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019247 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019248 hppa*64*|ia64*)
19249 ;;
19250 *)
19251 lt_prog_compiler_pic_CXX='-fPIC'
19252 ;;
19253 esac
19254 ;;
19255 *)
19256 lt_prog_compiler_pic_CXX='-fPIC'
19257 ;;
19258 esac
19259 else
19260 case $host_os in
19261 aix4* | aix5*)
19262 # All AIX code is PIC.
19263 if test "$host_cpu" = ia64; then
19264 # AIX 5 now supports IA64 processor
19265 lt_prog_compiler_static_CXX='-Bstatic'
19266 else
19267 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19268 fi
19269 ;;
19270 chorus*)
19271 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019272 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019273 # Green Hills C++ Compiler
19274 # _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"
19275 ;;
19276 esac
19277 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019278 darwin*)
19279 # PIC is the default on this platform
19280 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019281 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019282 xlc*)
19283 lt_prog_compiler_pic_CXX='-qnocommon'
19284 lt_prog_compiler_wl_CXX='-Wl,'
19285 ;;
19286 esac
19287 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019288 dgux*)
19289 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019290 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019291 lt_prog_compiler_pic_CXX='-KPIC'
19292 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019293 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019294 # Green Hills C++ Compiler
19295 lt_prog_compiler_pic_CXX='-pic'
19296 ;;
19297 *)
19298 ;;
19299 esac
19300 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019301 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019302 # FreeBSD uses GNU C++
19303 ;;
19304 hpux9* | hpux10* | hpux11*)
19305 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019306 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019307 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019308 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019309 if test "$host_cpu" != ia64; then
19310 lt_prog_compiler_pic_CXX='+Z'
19311 fi
19312 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019313 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019314 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019315 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19316 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019317 hppa*64*|ia64*)
19318 # +Z the default
19319 ;;
19320 *)
19321 lt_prog_compiler_pic_CXX='+Z'
19322 ;;
19323 esac
19324 ;;
19325 *)
19326 ;;
19327 esac
19328 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019329 interix*)
19330 # This is c89, which is MS Visual C++ (no shared libs)
19331 # Anyone wants to do a port?
19332 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019333 irix5* | irix6* | nonstopux*)
19334 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019335 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019336 lt_prog_compiler_wl_CXX='-Wl,'
19337 lt_prog_compiler_static_CXX='-non_shared'
19338 # CC pic flag -KPIC is the default.
19339 ;;
19340 *)
19341 ;;
19342 esac
19343 ;;
19344 linux*)
19345 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019346 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019347 # KAI C++ Compiler
19348 lt_prog_compiler_wl_CXX='--backend -Wl,'
19349 lt_prog_compiler_pic_CXX='-fPIC'
19350 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019351 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019352 # Intel C++
19353 lt_prog_compiler_wl_CXX='-Wl,'
19354 lt_prog_compiler_pic_CXX='-KPIC'
19355 lt_prog_compiler_static_CXX='-static'
19356 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019357 pgCC*)
19358 # Portland Group C++ compiler.
19359 lt_prog_compiler_wl_CXX='-Wl,'
19360 lt_prog_compiler_pic_CXX='-fpic'
19361 lt_prog_compiler_static_CXX='-Bstatic'
19362 ;;
19363 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019364 # Compaq C++
19365 # Make sure the PIC flag is empty. It appears that all Alpha
19366 # Linux and Compaq Tru64 Unix objects are PIC.
19367 lt_prog_compiler_pic_CXX=
19368 lt_prog_compiler_static_CXX='-non_shared'
19369 ;;
19370 *)
19371 ;;
19372 esac
19373 ;;
19374 lynxos*)
19375 ;;
19376 m88k*)
19377 ;;
19378 mvs*)
19379 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019380 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019381 lt_prog_compiler_pic_CXX='-W c,exportall'
19382 ;;
19383 *)
19384 ;;
19385 esac
19386 ;;
19387 netbsd*)
19388 ;;
19389 osf3* | osf4* | osf5*)
19390 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019391 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019392 lt_prog_compiler_wl_CXX='--backend -Wl,'
19393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019394 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019395 # Rational C++ 2.4.1
19396 lt_prog_compiler_pic_CXX='-pic'
19397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019398 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019399 # Digital/Compaq C++
19400 lt_prog_compiler_wl_CXX='-Wl,'
19401 # Make sure the PIC flag is empty. It appears that all Alpha
19402 # Linux and Compaq Tru64 Unix objects are PIC.
19403 lt_prog_compiler_pic_CXX=
19404 lt_prog_compiler_static_CXX='-non_shared'
19405 ;;
19406 *)
19407 ;;
19408 esac
19409 ;;
19410 psos*)
19411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019412 solaris*)
19413 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019414 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019415 # Sun C++ 4.2, 5.x and Centerline C++
19416 lt_prog_compiler_pic_CXX='-KPIC'
19417 lt_prog_compiler_static_CXX='-Bstatic'
19418 lt_prog_compiler_wl_CXX='-Qoption ld '
19419 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019420 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019421 # Green Hills C++ Compiler
19422 lt_prog_compiler_pic_CXX='-PIC'
19423 ;;
19424 *)
19425 ;;
19426 esac
19427 ;;
19428 sunos4*)
19429 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019430 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019431 # Sun C++ 4.x
19432 lt_prog_compiler_pic_CXX='-pic'
19433 lt_prog_compiler_static_CXX='-Bstatic'
19434 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019435 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019436 # Lucid
19437 lt_prog_compiler_pic_CXX='-pic'
19438 ;;
19439 *)
19440 ;;
19441 esac
19442 ;;
19443 tandem*)
19444 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019445 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019446 # NonStop-UX NCC 3.20
19447 lt_prog_compiler_pic_CXX='-KPIC'
19448 ;;
19449 *)
19450 ;;
19451 esac
19452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19454 case $cc_basename in
19455 CC*)
19456 lt_prog_compiler_wl_CXX='-Wl,'
19457 lt_prog_compiler_pic_CXX='-KPIC'
19458 lt_prog_compiler_static_CXX='-Bstatic'
19459 ;;
19460 esac
John Criswell47fdd832003-07-14 16:52:07 +000019461 ;;
19462 vxworks*)
19463 ;;
19464 *)
19465 lt_prog_compiler_can_build_shared_CXX=no
19466 ;;
19467 esac
19468 fi
19469
Reid Spencera773bd52006-08-04 18:18:08 +000019470{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19471echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019472
19473#
19474# Check to make sure the PIC flag actually works.
19475#
19476if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019477
Reid Spencera773bd52006-08-04 18:18:08 +000019478{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19479echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019480if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482else
19483 lt_prog_compiler_pic_works_CXX=no
19484 ac_outfile=conftest.$ac_objext
19485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19486 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19487 # Insert the option either (1) after the last *FLAGS variable, or
19488 # (2) before a word containing "conftest.", or (3) at the end.
19489 # Note that $ac_compile itself does not contain backslashes and begins
19490 # with a dollar sign (not a hyphen), so the echo should work correctly.
19491 # The option is referenced via a variable to avoid confusing sed.
19492 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19495 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000019496 (eval echo "\"\$as_me:19496: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019497 (eval "$lt_compile" 2>conftest.err)
19498 ac_status=$?
19499 cat conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000019500 echo "$as_me:19500: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019501 if (exit $ac_status) && test -s "$ac_outfile"; then
19502 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019503 # So say no if there are warnings other than the usual output.
19504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019507 lt_prog_compiler_pic_works_CXX=yes
19508 fi
19509 fi
19510 $rm conftest*
19511
19512fi
Reid Spencera773bd52006-08-04 18:18:08 +000019513{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19514echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019515
19516if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19517 case $lt_prog_compiler_pic_CXX in
19518 "" | " "*) ;;
19519 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19520 esac
19521else
19522 lt_prog_compiler_pic_CXX=
19523 lt_prog_compiler_can_build_shared_CXX=no
19524fi
19525
19526fi
Reid Spencera773bd52006-08-04 18:18:08 +000019527case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019528 # For platforms which do not support PIC, -DPIC is meaningless:
19529 *djgpp*)
19530 lt_prog_compiler_pic_CXX=
19531 ;;
19532 *)
19533 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19534 ;;
19535esac
19536
Reid Spencera773bd52006-08-04 18:18:08 +000019537#
19538# Check to make sure the static flag actually works.
19539#
19540wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19541{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19542echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19543if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
19546 lt_prog_compiler_static_works_CXX=no
19547 save_LDFLAGS="$LDFLAGS"
19548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19549 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19551 # The linker can only warn and ignore the option if not recognized
19552 # So say no if there are warnings
19553 if test -s conftest.err; then
19554 # Append any errors to the config.log.
19555 cat conftest.err 1>&5
19556 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19558 if diff conftest.exp conftest.er2 >/dev/null; then
19559 lt_prog_compiler_static_works_CXX=yes
19560 fi
19561 else
19562 lt_prog_compiler_static_works_CXX=yes
19563 fi
19564 fi
19565 $rm conftest*
19566 LDFLAGS="$save_LDFLAGS"
19567
19568fi
19569{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19570echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19571
19572if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19573 :
19574else
19575 lt_prog_compiler_static_CXX=
19576fi
19577
19578
19579{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19580echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019581if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19583else
19584 lt_cv_prog_compiler_c_o_CXX=no
19585 $rm -r conftest 2>/dev/null
19586 mkdir conftest
19587 cd conftest
19588 mkdir out
19589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19590
John Criswell47fdd832003-07-14 16:52:07 +000019591 lt_compiler_flag="-o out/conftest2.$ac_objext"
19592 # Insert the option either (1) after the last *FLAGS variable, or
19593 # (2) before a word containing "conftest.", or (3) at the end.
19594 # Note that $ac_compile itself does not contain backslashes and begins
19595 # with a dollar sign (not a hyphen), so the echo should work correctly.
19596 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19599 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000019600 (eval echo "\"\$as_me:19600: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019601 (eval "$lt_compile" 2>out/conftest.err)
19602 ac_status=$?
19603 cat out/conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000019604 echo "$as_me:19604: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19606 then
19607 # The compiler can only warn and ignore the option if not recognized
19608 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019609 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019612 lt_cv_prog_compiler_c_o_CXX=yes
19613 fi
19614 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019615 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019616 $rm conftest*
19617 # SGI C++ compiler will create directory out/ii_files/ for
19618 # template instantiation
19619 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19620 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019621 cd ..
19622 rmdir conftest
19623 $rm conftest*
19624
19625fi
Reid Spencera773bd52006-08-04 18:18:08 +000019626{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19627echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019628
19629
19630hard_links="nottested"
19631if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19632 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019633 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19634echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019635 hard_links=yes
19636 $rm conftest*
19637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19638 touch conftest.a
19639 ln conftest.a conftest.b 2>&5 || hard_links=no
19640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019641 { echo "$as_me:$LINENO: result: $hard_links" >&5
19642echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019643 if test "$hard_links" = no; then
19644 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19645echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19646 need_locks=warn
19647 fi
19648else
19649 need_locks=no
19650fi
19651
Reid Spencera773bd52006-08-04 18:18:08 +000019652{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19653echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019654
19655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19656 case $host_os in
19657 aix4* | aix5*)
19658 # If we're using GNU nm, then we don't want the "-C" option.
19659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19660 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19661 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'
19662 else
19663 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'
19664 fi
19665 ;;
19666 pw32*)
19667 export_symbols_cmds_CXX="$ltdll_cmds"
19668 ;;
19669 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019670 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 +000019671 ;;
19672 *)
19673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19674 ;;
19675 esac
19676
Reid Spencera773bd52006-08-04 18:18:08 +000019677{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19678echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019679test "$ld_shlibs_CXX" = no && can_build_shared=no
19680
John Criswell47fdd832003-07-14 16:52:07 +000019681#
19682# Do we need to explicitly link libc?
19683#
19684case "x$archive_cmds_need_lc_CXX" in
19685x|xyes)
19686 # Assume -lc should be added
19687 archive_cmds_need_lc_CXX=yes
19688
19689 if test "$enable_shared" = yes && test "$GCC" = yes; then
19690 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019691 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019692 # FIXME: we may have to deal with multi-command sequences.
19693 ;;
19694 '$CC '*)
19695 # Test whether the compiler implicitly links with -lc since on some
19696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19697 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019698 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19699echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019700 $rm conftest*
19701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19702
19703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } 2>conftest.err; then
19708 soname=conftest
19709 lib=conftest
19710 libobjs=conftest.$ac_objext
19711 deplibs=
19712 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019713 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019714 compiler_flags=-v
19715 linker_flags=-v
19716 verstring=
19717 output_objdir=.
19718 libname=conftest
19719 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19720 allow_undefined_flag_CXX=
19721 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19722 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }
19726 then
19727 archive_cmds_need_lc_CXX=no
19728 else
19729 archive_cmds_need_lc_CXX=yes
19730 fi
19731 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19732 else
19733 cat conftest.err 1>&5
19734 fi
19735 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019736 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19737echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019738 ;;
19739 esac
19740 fi
19741 ;;
19742esac
19743
Reid Spencera773bd52006-08-04 18:18:08 +000019744{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19745echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019746library_names_spec=
19747libname_spec='lib$name'
19748soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019749shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019750postinstall_cmds=
19751postuninstall_cmds=
19752finish_cmds=
19753finish_eval=
19754shlibpath_var=
19755shlibpath_overrides_runpath=unknown
19756version_type=none
19757dynamic_linker="$host_os ld.so"
19758sys_lib_dlsearch_path_spec="/lib /usr/lib"
19759if test "$GCC" = yes; then
19760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19761 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19762 # if the path contains ";" then we assume it to be the separator
19763 # otherwise default to the standard path separator (i.e. ":") - it is
19764 # assumed that no part of a normal pathname contains ";" but that should
19765 # okay in the real world where ";" in dirpaths is itself problematic.
19766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19767 else
19768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19769 fi
19770else
19771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19772fi
19773need_lib_prefix=unknown
19774hardcode_into_libs=no
19775
19776# when you set need_version to no, make sure it does not cause -set_version
19777# flags to be left without arguments
19778need_version=unknown
19779
19780case $host_os in
19781aix3*)
19782 version_type=linux
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19784 shlibpath_var=LIBPATH
19785
19786 # AIX 3 has no versioning support, so we append a major version to the name.
19787 soname_spec='${libname}${release}${shared_ext}$major'
19788 ;;
19789
19790aix4* | aix5*)
19791 version_type=linux
19792 need_lib_prefix=no
19793 need_version=no
19794 hardcode_into_libs=yes
19795 if test "$host_cpu" = ia64; then
19796 # AIX 5 supports IA64
19797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19798 shlibpath_var=LD_LIBRARY_PATH
19799 else
19800 # With GCC up to 2.95.x, collect2 would create an import file
19801 # for dependence libraries. The import file would start with
19802 # the line `#! .'. This would cause the generated library to
19803 # depend on `.', always an invalid library. This was fixed in
19804 # development snapshots of GCC prior to 3.0.
19805 case $host_os in
19806 aix4 | aix4.[01] | aix4.[01].*)
19807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19808 echo ' yes '
19809 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19810 :
19811 else
19812 can_build_shared=no
19813 fi
19814 ;;
19815 esac
19816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19817 # soname into executable. Probably we can add versioning support to
19818 # collect2, so additional links can be useful in future.
19819 if test "$aix_use_runtimelinking" = yes; then
19820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19821 # instead of lib<name>.a to let people know that these are not
19822 # typical AIX shared libraries.
19823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19824 else
19825 # We preserve .a as extension for shared libraries through AIX4.2
19826 # and later when we are not doing run time linking.
19827 library_names_spec='${libname}${release}.a $libname.a'
19828 soname_spec='${libname}${release}${shared_ext}$major'
19829 fi
19830 shlibpath_var=LIBPATH
19831 fi
19832 ;;
19833
19834amigaos*)
19835 library_names_spec='$libname.ixlibrary $libname.a'
19836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019837 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 +000019838 ;;
19839
19840beos*)
19841 library_names_spec='${libname}${shared_ext}'
19842 dynamic_linker="$host_os ld.so"
19843 shlibpath_var=LIBRARY_PATH
19844 ;;
19845
Reid Spencer2706f8c2004-09-19 23:53:36 +000019846bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019847 version_type=linux
19848 need_version=no
19849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850 soname_spec='${libname}${release}${shared_ext}$major'
19851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19852 shlibpath_var=LD_LIBRARY_PATH
19853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19855 # the default ld.so.conf also contains /usr/contrib/lib and
19856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857 # libtool to hard-code these into programs
19858 ;;
19859
19860cygwin* | mingw* | pw32*)
19861 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019862 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019863 need_version=no
19864 need_lib_prefix=no
19865
19866 case $GCC,$host_os in
19867 yes,cygwin* | yes,mingw* | yes,pw32*)
19868 library_names_spec='$libname.dll.a'
19869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019870 postinstall_cmds='base_file=`basename \${file}`~
19871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19872 dldir=$destdir/`dirname \$dlpath`~
19873 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019874 $install_prog $dir/$dlname \$dldir/$dlname~
19875 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19877 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019878 $rm \$dlpath'
19879 shlibpath_overrides_runpath=yes
19880
19881 case $host_os in
19882 cygwin*)
19883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19884 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 +000019885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019886 ;;
19887 mingw*)
19888 # MinGW DLLs use traditional 'lib' prefix
19889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19892 # It is most probably a Windows format PATH printed by
19893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19894 # path with ; separators, and with drive letters. We can handle the
19895 # drive letters (cygwin fileutils understands them), so leave them,
19896 # especially as we might pass files found there to a mingw objdump,
19897 # which wouldn't understand a cygwinified path. Ahh.
19898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19899 else
19900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19901 fi
19902 ;;
19903 pw32*)
19904 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019905 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 +000019906 ;;
19907 esac
19908 ;;
19909
19910 *)
19911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19912 ;;
19913 esac
19914 dynamic_linker='Win32 ld.exe'
19915 # FIXME: first we should search . and the directory the executable is in
19916 shlibpath_var=PATH
19917 ;;
19918
19919darwin* | rhapsody*)
19920 dynamic_linker="$host_os dyld"
19921 version_type=darwin
19922 need_lib_prefix=no
19923 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019925 soname_spec='${libname}${release}${major}$shared_ext'
19926 shlibpath_overrides_runpath=yes
19927 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019928 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019930 if test "$GCC" = yes; then
19931 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"`
19932 else
19933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019934 fi
19935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19936 ;;
19937
19938dgux*)
19939 version_type=linux
19940 need_lib_prefix=no
19941 need_version=no
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 shlibpath_var=LD_LIBRARY_PATH
19945 ;;
19946
19947freebsd1*)
19948 dynamic_linker=no
19949 ;;
19950
Reid Spencer2706f8c2004-09-19 23:53:36 +000019951kfreebsd*-gnu)
19952 version_type=linux
19953 need_lib_prefix=no
19954 need_version=no
19955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19956 soname_spec='${libname}${release}${shared_ext}$major'
19957 shlibpath_var=LD_LIBRARY_PATH
19958 shlibpath_overrides_runpath=no
19959 hardcode_into_libs=yes
19960 dynamic_linker='GNU ld.so'
19961 ;;
19962
Reid Spencera773bd52006-08-04 18:18:08 +000019963freebsd* | dragonfly*)
19964 # DragonFly does not have aout. When/if they implement a new
19965 # versioning mechanism, adjust this.
19966 if test -x /usr/bin/objformat; then
19967 objformat=`/usr/bin/objformat`
19968 else
19969 case $host_os in
19970 freebsd[123]*) objformat=aout ;;
19971 *) objformat=elf ;;
19972 esac
19973 fi
John Criswell47fdd832003-07-14 16:52:07 +000019974 version_type=freebsd-$objformat
19975 case $version_type in
19976 freebsd-elf*)
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19978 need_version=no
19979 need_lib_prefix=no
19980 ;;
19981 freebsd-*)
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19983 need_version=yes
19984 ;;
19985 esac
19986 shlibpath_var=LD_LIBRARY_PATH
19987 case $host_os in
19988 freebsd2*)
19989 shlibpath_overrides_runpath=yes
19990 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019991 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019992 shlibpath_overrides_runpath=yes
19993 hardcode_into_libs=yes
19994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019997 shlibpath_overrides_runpath=no
19998 hardcode_into_libs=yes
19999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020000 freebsd*) # from 4.6 on
20001 shlibpath_overrides_runpath=yes
20002 hardcode_into_libs=yes
20003 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020004 esac
20005 ;;
20006
20007gnu*)
20008 version_type=linux
20009 need_lib_prefix=no
20010 need_version=no
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 shlibpath_var=LD_LIBRARY_PATH
20014 hardcode_into_libs=yes
20015 ;;
20016
20017hpux9* | hpux10* | hpux11*)
20018 # Give a soname corresponding to the major version so that dld.sl refuses to
20019 # link against other versions.
20020 version_type=sunos
20021 need_lib_prefix=no
20022 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020023 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020024 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020025 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020026 hardcode_into_libs=yes
20027 dynamic_linker="$host_os dld.so"
20028 shlibpath_var=LD_LIBRARY_PATH
20029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20031 soname_spec='${libname}${release}${shared_ext}$major'
20032 if test "X$HPUX_IA64_MODE" = X32; then
20033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20034 else
20035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20036 fi
20037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20038 ;;
20039 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020040 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020041 hardcode_into_libs=yes
20042 dynamic_linker="$host_os dld.sl"
20043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20049 ;;
20050 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020051 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020052 dynamic_linker="$host_os dld.sl"
20053 shlibpath_var=SHLIB_PATH
20054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20057 ;;
20058 esac
20059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20060 postinstall_cmds='chmod 555 $lib'
20061 ;;
20062
Reid Spencera773bd52006-08-04 18:18:08 +000020063interix3*)
20064 version_type=linux
20065 need_lib_prefix=no
20066 need_version=no
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20070 shlibpath_var=LD_LIBRARY_PATH
20071 shlibpath_overrides_runpath=no
20072 hardcode_into_libs=yes
20073 ;;
20074
John Criswell47fdd832003-07-14 16:52:07 +000020075irix5* | irix6* | nonstopux*)
20076 case $host_os in
20077 nonstopux*) version_type=nonstopux ;;
20078 *)
20079 if test "$lt_cv_prog_gnu_ld" = yes; then
20080 version_type=linux
20081 else
20082 version_type=irix
20083 fi ;;
20084 esac
20085 need_lib_prefix=no
20086 need_version=no
20087 soname_spec='${libname}${release}${shared_ext}$major'
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20089 case $host_os in
20090 irix5* | nonstopux*)
20091 libsuff= shlibsuff=
20092 ;;
20093 *)
20094 case $LD in # libtool.m4 will add one of these switches to LD
20095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20096 libsuff= shlibsuff= libmagic=32-bit;;
20097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20098 libsuff=32 shlibsuff=N32 libmagic=N32;;
20099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20101 *) libsuff= shlibsuff= libmagic=never-match;;
20102 esac
20103 ;;
20104 esac
20105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20106 shlibpath_overrides_runpath=no
20107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20109 hardcode_into_libs=yes
20110 ;;
20111
20112# No shared lib support for Linux oldld, aout, or coff.
20113linux*oldld* | linux*aout* | linux*coff*)
20114 dynamic_linker=no
20115 ;;
20116
20117# This must be Linux ELF.
20118linux*)
20119 version_type=linux
20120 need_lib_prefix=no
20121 need_version=no
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 shlibpath_overrides_runpath=no
20127 # This implies no fast_install, which is unacceptable.
20128 # Some rework will be needed to allow for fast_install
20129 # before this can be enabled.
20130 hardcode_into_libs=yes
20131
Reid Spencer2706f8c2004-09-19 23:53:36 +000020132 # Append ld.so.conf contents to the search path
20133 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020134 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 +000020135 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20136 fi
20137
John Criswell47fdd832003-07-14 16:52:07 +000020138 # We used to test for /lib/ld.so.1 and disable shared libraries on
20139 # powerpc, because MkLinux only supported shared libraries with the
20140 # GNU dynamic linker. Since this was broken with cross compilers,
20141 # most powerpc-linux boxes support dynamic linking these days and
20142 # people can always --disable-shared, the test was removed, and we
20143 # assume the GNU/Linux dynamic linker is in use.
20144 dynamic_linker='GNU/Linux ld.so'
20145 ;;
20146
Reid Spencer2706f8c2004-09-19 23:53:36 +000020147knetbsd*-gnu)
20148 version_type=linux
20149 need_lib_prefix=no
20150 need_version=no
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 shlibpath_var=LD_LIBRARY_PATH
20154 shlibpath_overrides_runpath=no
20155 hardcode_into_libs=yes
20156 dynamic_linker='GNU ld.so'
20157 ;;
20158
John Criswell47fdd832003-07-14 16:52:07 +000020159netbsd*)
20160 version_type=sunos
20161 need_lib_prefix=no
20162 need_version=no
20163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20166 dynamic_linker='NetBSD (a.out) ld.so'
20167 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020169 soname_spec='${libname}${release}${shared_ext}$major'
20170 dynamic_linker='NetBSD ld.elf_so'
20171 fi
20172 shlibpath_var=LD_LIBRARY_PATH
20173 shlibpath_overrides_runpath=yes
20174 hardcode_into_libs=yes
20175 ;;
20176
20177newsos6)
20178 version_type=linux
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=yes
20182 ;;
20183
Reid Spencer2706f8c2004-09-19 23:53:36 +000020184nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020185 version_type=linux
20186 need_lib_prefix=no
20187 need_version=no
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 shlibpath_var=LD_LIBRARY_PATH
20191 shlibpath_overrides_runpath=yes
20192 ;;
20193
20194openbsd*)
20195 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020196 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020197 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20199 case $host_os in
20200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20201 *) need_version=no ;;
20202 esac
John Criswell47fdd832003-07-14 16:52:07 +000020203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20207 case $host_os in
20208 openbsd2.[89] | openbsd2.[89].*)
20209 shlibpath_overrides_runpath=no
20210 ;;
20211 *)
20212 shlibpath_overrides_runpath=yes
20213 ;;
20214 esac
20215 else
20216 shlibpath_overrides_runpath=yes
20217 fi
20218 ;;
20219
20220os2*)
20221 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020222 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020223 need_lib_prefix=no
20224 library_names_spec='$libname${shared_ext} $libname.a'
20225 dynamic_linker='OS/2 ld.exe'
20226 shlibpath_var=LIBPATH
20227 ;;
20228
20229osf3* | osf4* | osf5*)
20230 version_type=osf
20231 need_lib_prefix=no
20232 need_version=no
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20238 ;;
20239
John Criswell47fdd832003-07-14 16:52:07 +000020240solaris*)
20241 version_type=linux
20242 need_lib_prefix=no
20243 need_version=no
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 shlibpath_overrides_runpath=yes
20248 hardcode_into_libs=yes
20249 # ldd complains unless libraries are executable
20250 postinstall_cmds='chmod +x $lib'
20251 ;;
20252
20253sunos4*)
20254 version_type=sunos
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=yes
20259 if test "$with_gnu_ld" = yes; then
20260 need_lib_prefix=no
20261 fi
20262 need_version=yes
20263 ;;
20264
Reid Spencera773bd52006-08-04 18:18:08 +000020265sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020266 version_type=linux
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 case $host_vendor in
20271 sni)
20272 shlibpath_overrides_runpath=no
20273 need_lib_prefix=no
20274 export_dynamic_flag_spec='${wl}-Blargedynsym'
20275 runpath_var=LD_RUN_PATH
20276 ;;
20277 siemens)
20278 need_lib_prefix=no
20279 ;;
20280 motorola)
20281 need_lib_prefix=no
20282 need_version=no
20283 shlibpath_overrides_runpath=no
20284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20285 ;;
20286 esac
20287 ;;
20288
20289sysv4*MP*)
20290 if test -d /usr/nec ;then
20291 version_type=linux
20292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20293 soname_spec='$libname${shared_ext}.$major'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 fi
20296 ;;
20297
Reid Spencera773bd52006-08-04 18:18:08 +000020298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20299 version_type=freebsd-elf
20300 need_lib_prefix=no
20301 need_version=no
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 hardcode_into_libs=yes
20306 if test "$with_gnu_ld" = yes; then
20307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20308 shlibpath_overrides_runpath=no
20309 else
20310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20311 shlibpath_overrides_runpath=yes
20312 case $host_os in
20313 sco3.2v5*)
20314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20315 ;;
20316 esac
20317 fi
20318 sys_lib_dlsearch_path_spec='/usr/lib'
20319 ;;
20320
John Criswell47fdd832003-07-14 16:52:07 +000020321uts4*)
20322 version_type=linux
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 ;;
20327
20328*)
20329 dynamic_linker=no
20330 ;;
20331esac
Reid Spencera773bd52006-08-04 18:18:08 +000020332{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20333echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020334test "$dynamic_linker" = no && can_build_shared=no
20335
Reid Spencera773bd52006-08-04 18:18:08 +000020336variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20337if test "$GCC" = yes; then
20338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20339fi
20340
20341{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20342echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020343hardcode_action_CXX=
20344if test -n "$hardcode_libdir_flag_spec_CXX" || \
20345 test -n "$runpath_var_CXX" || \
20346 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20347
20348 # We can hardcode non-existant directories.
20349 if test "$hardcode_direct_CXX" != no &&
20350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20351 # have to relink, otherwise we might link with an installed library
20352 # when we should be linking with a yet-to-be-installed one
20353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20354 test "$hardcode_minus_L_CXX" != no; then
20355 # Linking always hardcodes the temporary library directory.
20356 hardcode_action_CXX=relink
20357 else
20358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20359 hardcode_action_CXX=immediate
20360 fi
20361else
20362 # We cannot hardcode anything, or else we can only hardcode existing
20363 # directories.
20364 hardcode_action_CXX=unsupported
20365fi
Reid Spencera773bd52006-08-04 18:18:08 +000020366{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20367echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020368
20369if test "$hardcode_action_CXX" = relink; then
20370 # Fast installation is not supported
20371 enable_fast_install=no
20372elif test "$shlibpath_overrides_runpath" = yes ||
20373 test "$enable_shared" = no; then
20374 # Fast installation is not necessary
20375 enable_fast_install=needless
20376fi
20377
John Criswell47fdd832003-07-14 16:52:07 +000020378
20379# The else clause should only fire when bootstrapping the
20380# libtool distribution, otherwise you forgot to ship ltmain.sh
20381# with your package, and you will get complaints that there are
20382# no rules to generate ltmain.sh.
20383if test -f "$ltmain"; then
20384 # See if we are running on zsh, and set the options which allow our commands through
20385 # without removal of \ escapes.
20386 if test -n "${ZSH_VERSION+set}" ; then
20387 setopt NO_GLOB_SUBST
20388 fi
20389 # Now quote all the things that may contain metacharacters while being
20390 # careful not to overquote the AC_SUBSTed values. We take copies of the
20391 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020392 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 +000020393 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20396 deplibs_check_method reload_flag reload_cmds need_locks \
20397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20398 lt_cv_sys_global_symbol_to_c_name_address \
20399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20400 old_postinstall_cmds old_postuninstall_cmds \
20401 compiler_CXX \
20402 CC_CXX \
20403 LD_CXX \
20404 lt_prog_compiler_wl_CXX \
20405 lt_prog_compiler_pic_CXX \
20406 lt_prog_compiler_static_CXX \
20407 lt_prog_compiler_no_builtin_flag_CXX \
20408 export_dynamic_flag_spec_CXX \
20409 thread_safe_flag_spec_CXX \
20410 whole_archive_flag_spec_CXX \
20411 enable_shared_with_static_runtimes_CXX \
20412 old_archive_cmds_CXX \
20413 old_archive_from_new_cmds_CXX \
20414 predep_objects_CXX \
20415 postdep_objects_CXX \
20416 predeps_CXX \
20417 postdeps_CXX \
20418 compiler_lib_search_path_CXX \
20419 archive_cmds_CXX \
20420 archive_expsym_cmds_CXX \
20421 postinstall_cmds_CXX \
20422 postuninstall_cmds_CXX \
20423 old_archive_from_expsyms_cmds_CXX \
20424 allow_undefined_flag_CXX \
20425 no_undefined_flag_CXX \
20426 export_symbols_cmds_CXX \
20427 hardcode_libdir_flag_spec_CXX \
20428 hardcode_libdir_flag_spec_ld_CXX \
20429 hardcode_libdir_separator_CXX \
20430 hardcode_automatic_CXX \
20431 module_cmds_CXX \
20432 module_expsym_cmds_CXX \
20433 lt_cv_prog_compiler_c_o_CXX \
20434 exclude_expsyms_CXX \
20435 include_expsyms_CXX; do
20436
20437 case $var in
20438 old_archive_cmds_CXX | \
20439 old_archive_from_new_cmds_CXX | \
20440 archive_cmds_CXX | \
20441 archive_expsym_cmds_CXX | \
20442 module_cmds_CXX | \
20443 module_expsym_cmds_CXX | \
20444 old_archive_from_expsyms_cmds_CXX | \
20445 export_symbols_cmds_CXX | \
20446 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20447 postinstall_cmds | postuninstall_cmds | \
20448 old_postinstall_cmds | old_postuninstall_cmds | \
20449 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20450 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020451 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 +000020452 ;;
20453 *)
20454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20455 ;;
20456 esac
20457 done
20458
20459 case $lt_echo in
20460 *'\$0 --fallback-echo"')
20461 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20462 ;;
20463 esac
20464
20465cfgfile="$ofile"
20466
20467 cat <<__EOF__ >> "$cfgfile"
20468# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20469
20470# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20471
20472# Shell to use when invoking shell scripts.
20473SHELL=$lt_SHELL
20474
20475# Whether or not to build shared libraries.
20476build_libtool_libs=$enable_shared
20477
20478# Whether or not to build static libraries.
20479build_old_libs=$enable_static
20480
20481# Whether or not to add -lc for building shared libraries.
20482build_libtool_need_lc=$archive_cmds_need_lc_CXX
20483
20484# Whether or not to disallow shared libs when runtime libs are static
20485allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20486
20487# Whether or not to optimize for fast installation.
20488fast_install=$enable_fast_install
20489
20490# The host system.
20491host_alias=$host_alias
20492host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020493host_os=$host_os
20494
20495# The build system.
20496build_alias=$build_alias
20497build=$build
20498build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020499
20500# An echo program that does not interpret backslashes.
20501echo=$lt_echo
20502
20503# The archiver.
20504AR=$lt_AR
20505AR_FLAGS=$lt_AR_FLAGS
20506
20507# A C compiler.
20508LTCC=$lt_LTCC
20509
Reid Spencera773bd52006-08-04 18:18:08 +000020510# LTCC compiler flags.
20511LTCFLAGS=$lt_LTCFLAGS
20512
John Criswell47fdd832003-07-14 16:52:07 +000020513# A language-specific compiler.
20514CC=$lt_compiler_CXX
20515
20516# Is the compiler the GNU C compiler?
20517with_gcc=$GCC_CXX
20518
20519# An ERE matcher.
20520EGREP=$lt_EGREP
20521
20522# The linker used to build libraries.
20523LD=$lt_LD_CXX
20524
20525# Whether we need hard or soft links.
20526LN_S=$lt_LN_S
20527
20528# A BSD-compatible nm program.
20529NM=$lt_NM
20530
20531# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020532STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020533
20534# Used to examine libraries when file_magic_cmd begins "file"
20535MAGIC_CMD=$MAGIC_CMD
20536
20537# Used on cygwin: DLL creation program.
20538DLLTOOL="$DLLTOOL"
20539
20540# Used on cygwin: object dumper.
20541OBJDUMP="$OBJDUMP"
20542
20543# Used on cygwin: assembler.
20544AS="$AS"
20545
20546# The name of the directory that contains temporary libtool files.
20547objdir=$objdir
20548
20549# How to create reloadable object files.
20550reload_flag=$lt_reload_flag
20551reload_cmds=$lt_reload_cmds
20552
20553# How to pass a linker flag through the compiler.
20554wl=$lt_lt_prog_compiler_wl_CXX
20555
20556# Object file suffix (normally "o").
20557objext="$ac_objext"
20558
20559# Old archive suffix (normally "a").
20560libext="$libext"
20561
20562# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020564
20565# Executable file suffix (normally "").
20566exeext="$exeext"
20567
20568# Additional compiler flags for building library objects.
20569pic_flag=$lt_lt_prog_compiler_pic_CXX
20570pic_mode=$pic_mode
20571
20572# What is the maximum length of a command?
20573max_cmd_len=$lt_cv_sys_max_cmd_len
20574
20575# Does compiler simultaneously support -c and -o options?
20576compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20577
Reid Spencera773bd52006-08-04 18:18:08 +000020578# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020579need_locks=$lt_need_locks
20580
20581# Do we need the lib prefix for modules?
20582need_lib_prefix=$need_lib_prefix
20583
20584# Do we need a version for libraries?
20585need_version=$need_version
20586
20587# Whether dlopen is supported.
20588dlopen_support=$enable_dlopen
20589
20590# Whether dlopen of programs is supported.
20591dlopen_self=$enable_dlopen_self
20592
20593# Whether dlopen of statically linked programs is supported.
20594dlopen_self_static=$enable_dlopen_self_static
20595
20596# Compiler flag to prevent dynamic linking.
20597link_static_flag=$lt_lt_prog_compiler_static_CXX
20598
20599# Compiler flag to turn off builtin functions.
20600no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20601
20602# Compiler flag to allow reflexive dlopens.
20603export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20604
20605# Compiler flag to generate shared objects directly from archives.
20606whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20607
20608# Compiler flag to generate thread-safe objects.
20609thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20610
20611# Library versioning type.
20612version_type=$version_type
20613
20614# Format of library name prefix.
20615libname_spec=$lt_libname_spec
20616
20617# List of archive names. First name is the real one, the rest are links.
20618# The last name is the one that the linker finds with -lNAME.
20619library_names_spec=$lt_library_names_spec
20620
20621# The coded name of the library, if different from the real name.
20622soname_spec=$lt_soname_spec
20623
20624# Commands used to build and install an old-style archive.
20625RANLIB=$lt_RANLIB
20626old_archive_cmds=$lt_old_archive_cmds_CXX
20627old_postinstall_cmds=$lt_old_postinstall_cmds
20628old_postuninstall_cmds=$lt_old_postuninstall_cmds
20629
20630# Create an old-style archive from a shared archive.
20631old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20632
20633# Create a temporary old-style archive to link instead of a shared archive.
20634old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20635
20636# Commands used to build and install a shared archive.
20637archive_cmds=$lt_archive_cmds_CXX
20638archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20639postinstall_cmds=$lt_postinstall_cmds
20640postuninstall_cmds=$lt_postuninstall_cmds
20641
20642# Commands used to build a loadable module (assumed same as above if empty)
20643module_cmds=$lt_module_cmds_CXX
20644module_expsym_cmds=$lt_module_expsym_cmds_CXX
20645
20646# Commands to strip libraries.
20647old_striplib=$lt_old_striplib
20648striplib=$lt_striplib
20649
20650# Dependencies to place before the objects being linked to create a
20651# shared library.
20652predep_objects=$lt_predep_objects_CXX
20653
20654# Dependencies to place after the objects being linked to create a
20655# shared library.
20656postdep_objects=$lt_postdep_objects_CXX
20657
20658# Dependencies to place before the objects being linked to create a
20659# shared library.
20660predeps=$lt_predeps_CXX
20661
20662# Dependencies to place after the objects being linked to create a
20663# shared library.
20664postdeps=$lt_postdeps_CXX
20665
20666# The library search path used internally by the compiler when linking
20667# a shared library.
20668compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20669
20670# Method to check whether dependent libraries are shared objects.
20671deplibs_check_method=$lt_deplibs_check_method
20672
20673# Command to use when deplibs_check_method == file_magic.
20674file_magic_cmd=$lt_file_magic_cmd
20675
20676# Flag that allows shared libraries with undefined symbols to be built.
20677allow_undefined_flag=$lt_allow_undefined_flag_CXX
20678
20679# Flag that forces no undefined symbols.
20680no_undefined_flag=$lt_no_undefined_flag_CXX
20681
20682# Commands used to finish a libtool library installation in a directory.
20683finish_cmds=$lt_finish_cmds
20684
20685# Same as above, but a single script fragment to be evaled but not shown.
20686finish_eval=$lt_finish_eval
20687
20688# Take the output of nm and produce a listing of raw symbols and C names.
20689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20690
20691# Transform the output of nm in a proper C declaration
20692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20693
20694# Transform the output of nm in a C name address pair
20695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20696
20697# This is the shared library runtime path variable.
20698runpath_var=$runpath_var
20699
20700# This is the shared library path variable.
20701shlibpath_var=$shlibpath_var
20702
20703# Is shlibpath searched before the hard-coded library search path?
20704shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20705
20706# How to hardcode a shared library path into an executable.
20707hardcode_action=$hardcode_action_CXX
20708
20709# Whether we should hardcode library paths into libraries.
20710hardcode_into_libs=$hardcode_into_libs
20711
20712# Flag to hardcode \$libdir into a binary during linking.
20713# This must work even if \$libdir does not exist.
20714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20715
20716# If ld is used when linking, flag to hardcode \$libdir into
20717# a binary during linking. This must work even if \$libdir does
20718# not exist.
20719hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20720
20721# Whether we need a single -rpath flag with a separated argument.
20722hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20723
20724# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20725# resulting binary.
20726hardcode_direct=$hardcode_direct_CXX
20727
20728# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20729# resulting binary.
20730hardcode_minus_L=$hardcode_minus_L_CXX
20731
20732# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20733# the resulting binary.
20734hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20735
20736# Set to yes if building a shared library automatically hardcodes DIR into the library
20737# and all subsequent libraries and executables linked against it.
20738hardcode_automatic=$hardcode_automatic_CXX
20739
20740# Variables whose values should be saved in libtool wrapper scripts and
20741# restored at relink time.
20742variables_saved_for_relink="$variables_saved_for_relink"
20743
20744# Whether libtool must link a program against all its dependency libraries.
20745link_all_deplibs=$link_all_deplibs_CXX
20746
20747# Compile-time system search path for libraries
20748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20749
20750# Run-time system search path for libraries
20751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20752
20753# Fix the shell variable \$srcfile for the compiler.
20754fix_srcfile_path="$fix_srcfile_path_CXX"
20755
20756# Set to yes if exported symbols are required.
20757always_export_symbols=$always_export_symbols_CXX
20758
20759# The commands to list exported symbols.
20760export_symbols_cmds=$lt_export_symbols_cmds_CXX
20761
20762# The commands to extract the exported symbol list from a shared archive.
20763extract_expsyms_cmds=$lt_extract_expsyms_cmds
20764
20765# Symbols that should not be listed in the preloaded symbols.
20766exclude_expsyms=$lt_exclude_expsyms_CXX
20767
20768# Symbols that must always be exported.
20769include_expsyms=$lt_include_expsyms_CXX
20770
20771# ### END LIBTOOL TAG CONFIG: $tagname
20772
20773__EOF__
20774
20775
20776else
20777 # If there is no Makefile yet, we rely on a make rule to execute
20778 # `config.status --recheck' to rerun these tests and create the
20779 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20781 if test -f "$ltmain_in"; then
20782 test -f Makefile && make "$ltmain"
20783 fi
John Criswell47fdd832003-07-14 16:52:07 +000020784fi
20785
20786
20787ac_ext=c
20788ac_cpp='$CPP $CPPFLAGS'
20789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791ac_compiler_gnu=$ac_cv_c_compiler_gnu
20792
20793CC=$lt_save_CC
20794LDCXX=$LD
20795LD=$lt_save_LD
20796GCC=$lt_save_GCC
20797with_gnu_ldcxx=$with_gnu_ld
20798with_gnu_ld=$lt_save_with_gnu_ld
20799lt_cv_path_LDCXX=$lt_cv_path_LD
20800lt_cv_path_LD=$lt_save_path_LD
20801lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20802lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20803
20804 else
20805 tagname=""
20806 fi
20807 ;;
20808
20809 F77)
20810 if test -n "$F77" && test "X$F77" != "Xno"; then
20811
20812ac_ext=f
20813ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20814ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20815ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20816
20817
20818archive_cmds_need_lc_F77=no
20819allow_undefined_flag_F77=
20820always_export_symbols_F77=no
20821archive_expsym_cmds_F77=
20822export_dynamic_flag_spec_F77=
20823hardcode_direct_F77=no
20824hardcode_libdir_flag_spec_F77=
20825hardcode_libdir_flag_spec_ld_F77=
20826hardcode_libdir_separator_F77=
20827hardcode_minus_L_F77=no
20828hardcode_automatic_F77=no
20829module_cmds_F77=
20830module_expsym_cmds_F77=
20831link_all_deplibs_F77=unknown
20832old_archive_cmds_F77=$old_archive_cmds
20833no_undefined_flag_F77=
20834whole_archive_flag_spec_F77=
20835enable_shared_with_static_runtimes_F77=no
20836
20837# Source file extension for f77 test sources.
20838ac_ext=f
20839
20840# Object file extension for compiled f77 test sources.
20841objext=o
20842objext_F77=$objext
20843
20844# Code to be used in simple compile tests
20845lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20846
20847# Code to be used in simple link tests
20848lt_simple_link_test_code=" program t\n end\n"
20849
20850# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20851
20852# If no C compiler was specified, use CC.
20853LTCC=${LTCC-"$CC"}
20854
Reid Spencera773bd52006-08-04 18:18:08 +000020855# If no C compiler flags were specified, use CFLAGS.
20856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20857
John Criswell47fdd832003-07-14 16:52:07 +000020858# Allow CC to be a program name with arguments.
20859compiler=$CC
20860
20861
Reid Spencera773bd52006-08-04 18:18:08 +000020862# save warnings/boilerplate of simple test code
20863ac_outfile=conftest.$ac_objext
20864printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20866_lt_compiler_boilerplate=`cat conftest.err`
20867$rm conftest*
20868
20869ac_outfile=conftest.$ac_objext
20870printf "$lt_simple_link_test_code" >conftest.$ac_ext
20871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20872_lt_linker_boilerplate=`cat conftest.err`
20873$rm conftest*
20874
20875
John Criswell47fdd832003-07-14 16:52:07 +000020876# Allow CC to be a program name with arguments.
20877lt_save_CC="$CC"
20878CC=${F77-"f77"}
20879compiler=$CC
20880compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020881for cc_temp in $compiler""; do
20882 case $cc_temp in
20883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20885 \-*) ;;
20886 *) break;;
20887 esac
20888done
20889cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020890
John Criswell47fdd832003-07-14 16:52:07 +000020891
Reid Spencera773bd52006-08-04 18:18:08 +000020892{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20893echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20894{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20895echo "${ECHO_T}$can_build_shared" >&6; }
20896
20897{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20898echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020899test "$can_build_shared" = "no" && enable_shared=no
20900
20901# On AIX, shared libraries and static libraries use the same namespace, and
20902# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020903case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020904aix3*)
20905 test "$enable_shared" = yes && enable_static=no
20906 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020907 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020908 postinstall_cmds='$RANLIB $lib'
20909 fi
20910 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020911aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020912 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20913 test "$enable_shared" = yes && enable_static=no
20914 fi
John Criswell47fdd832003-07-14 16:52:07 +000020915 ;;
20916esac
Reid Spencera773bd52006-08-04 18:18:08 +000020917{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20918echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020919
Reid Spencera773bd52006-08-04 18:18:08 +000020920{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20921echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020922# Make sure either enable_shared or enable_static is yes.
20923test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020924{ echo "$as_me:$LINENO: result: $enable_static" >&5
20925echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020926
20927GCC_F77="$G77"
20928LD_F77="$LD"
20929
20930lt_prog_compiler_wl_F77=
20931lt_prog_compiler_pic_F77=
20932lt_prog_compiler_static_F77=
20933
Reid Spencera773bd52006-08-04 18:18:08 +000020934{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20935echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020936
20937 if test "$GCC" = yes; then
20938 lt_prog_compiler_wl_F77='-Wl,'
20939 lt_prog_compiler_static_F77='-static'
20940
20941 case $host_os in
20942 aix*)
20943 # All AIX code is PIC.
20944 if test "$host_cpu" = ia64; then
20945 # AIX 5 now supports IA64 processor
20946 lt_prog_compiler_static_F77='-Bstatic'
20947 fi
20948 ;;
20949
20950 amigaos*)
20951 # FIXME: we need at least 68020 code to build shared libraries, but
20952 # adding the `-m68020' flag to GCC prevents building anything better,
20953 # like `-m68040'.
20954 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20955 ;;
20956
20957 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20958 # PIC is the default for these OSes.
20959 ;;
20960
20961 mingw* | pw32* | os2*)
20962 # This hack is so that the source file can tell whether it is being
20963 # built for inclusion in a dll (and should export symbols for example).
20964 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20965 ;;
20966
20967 darwin* | rhapsody*)
20968 # PIC is the default on this platform
20969 # Common symbols not allowed in MH_DYLIB files
20970 lt_prog_compiler_pic_F77='-fno-common'
20971 ;;
20972
Reid Spencera773bd52006-08-04 18:18:08 +000020973 interix3*)
20974 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20975 # Instead, we relocate shared libraries at runtime.
20976 ;;
20977
John Criswell47fdd832003-07-14 16:52:07 +000020978 msdosdjgpp*)
20979 # Just because we use GCC doesn't mean we suddenly get shared libraries
20980 # on systems that don't support them.
20981 lt_prog_compiler_can_build_shared_F77=no
20982 enable_shared=no
20983 ;;
20984
20985 sysv4*MP*)
20986 if test -d /usr/nec; then
20987 lt_prog_compiler_pic_F77=-Kconform_pic
20988 fi
20989 ;;
20990
20991 hpux*)
20992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20993 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020994 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020995 hppa*64*|ia64*)
20996 # +Z the default
20997 ;;
20998 *)
20999 lt_prog_compiler_pic_F77='-fPIC'
21000 ;;
21001 esac
21002 ;;
21003
21004 *)
21005 lt_prog_compiler_pic_F77='-fPIC'
21006 ;;
21007 esac
21008 else
21009 # PORTME Check for flag to pass linker flags through the system compiler.
21010 case $host_os in
21011 aix*)
21012 lt_prog_compiler_wl_F77='-Wl,'
21013 if test "$host_cpu" = ia64; then
21014 # AIX 5 now supports IA64 processor
21015 lt_prog_compiler_static_F77='-Bstatic'
21016 else
21017 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21018 fi
21019 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021020 darwin*)
21021 # PIC is the default on this platform
21022 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021023 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021024 xlc*)
21025 lt_prog_compiler_pic_F77='-qnocommon'
21026 lt_prog_compiler_wl_F77='-Wl,'
21027 ;;
21028 esac
21029 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021030
21031 mingw* | pw32* | os2*)
21032 # This hack is so that the source file can tell whether it is being
21033 # built for inclusion in a dll (and should export symbols for example).
21034 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21035 ;;
21036
21037 hpux9* | hpux10* | hpux11*)
21038 lt_prog_compiler_wl_F77='-Wl,'
21039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21040 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021041 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021042 hppa*64*|ia64*)
21043 # +Z the default
21044 ;;
21045 *)
21046 lt_prog_compiler_pic_F77='+Z'
21047 ;;
21048 esac
21049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21050 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21051 ;;
21052
21053 irix5* | irix6* | nonstopux*)
21054 lt_prog_compiler_wl_F77='-Wl,'
21055 # PIC (with -KPIC) is the default.
21056 lt_prog_compiler_static_F77='-non_shared'
21057 ;;
21058
21059 newsos6)
21060 lt_prog_compiler_pic_F77='-KPIC'
21061 lt_prog_compiler_static_F77='-Bstatic'
21062 ;;
21063
21064 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021065 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021066 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021067 lt_prog_compiler_wl_F77='-Wl,'
21068 lt_prog_compiler_pic_F77='-KPIC'
21069 lt_prog_compiler_static_F77='-static'
21070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021071 pgcc* | pgf77* | pgf90* | pgf95*)
21072 # Portland Group compilers (*not* the Pentium gcc compiler,
21073 # which looks to be a dead project)
21074 lt_prog_compiler_wl_F77='-Wl,'
21075 lt_prog_compiler_pic_F77='-fpic'
21076 lt_prog_compiler_static_F77='-Bstatic'
21077 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021078 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021079 lt_prog_compiler_wl_F77='-Wl,'
21080 # All Alpha code is PIC.
21081 lt_prog_compiler_static_F77='-non_shared'
21082 ;;
21083 esac
21084 ;;
21085
21086 osf3* | osf4* | osf5*)
21087 lt_prog_compiler_wl_F77='-Wl,'
21088 # All OSF/1 code is PIC.
21089 lt_prog_compiler_static_F77='-non_shared'
21090 ;;
21091
John Criswell47fdd832003-07-14 16:52:07 +000021092 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021093 lt_prog_compiler_pic_F77='-KPIC'
21094 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021095 case $cc_basename in
21096 f77* | f90* | f95*)
21097 lt_prog_compiler_wl_F77='-Qoption ld ';;
21098 *)
21099 lt_prog_compiler_wl_F77='-Wl,';;
21100 esac
John Criswell47fdd832003-07-14 16:52:07 +000021101 ;;
21102
21103 sunos4*)
21104 lt_prog_compiler_wl_F77='-Qoption ld '
21105 lt_prog_compiler_pic_F77='-PIC'
21106 lt_prog_compiler_static_F77='-Bstatic'
21107 ;;
21108
Reid Spencera773bd52006-08-04 18:18:08 +000021109 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021110 lt_prog_compiler_wl_F77='-Wl,'
21111 lt_prog_compiler_pic_F77='-KPIC'
21112 lt_prog_compiler_static_F77='-Bstatic'
21113 ;;
21114
21115 sysv4*MP*)
21116 if test -d /usr/nec ;then
21117 lt_prog_compiler_pic_F77='-Kconform_pic'
21118 lt_prog_compiler_static_F77='-Bstatic'
21119 fi
21120 ;;
21121
Reid Spencera773bd52006-08-04 18:18:08 +000021122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21123 lt_prog_compiler_wl_F77='-Wl,'
21124 lt_prog_compiler_pic_F77='-KPIC'
21125 lt_prog_compiler_static_F77='-Bstatic'
21126 ;;
21127
21128 unicos*)
21129 lt_prog_compiler_wl_F77='-Wl,'
21130 lt_prog_compiler_can_build_shared_F77=no
21131 ;;
21132
John Criswell47fdd832003-07-14 16:52:07 +000021133 uts4*)
21134 lt_prog_compiler_pic_F77='-pic'
21135 lt_prog_compiler_static_F77='-Bstatic'
21136 ;;
21137
21138 *)
21139 lt_prog_compiler_can_build_shared_F77=no
21140 ;;
21141 esac
21142 fi
21143
Reid Spencera773bd52006-08-04 18:18:08 +000021144{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21145echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021146
21147#
21148# Check to make sure the PIC flag actually works.
21149#
21150if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021151
Reid Spencera773bd52006-08-04 18:18:08 +000021152{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21153echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021154if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156else
21157 lt_prog_compiler_pic_works_F77=no
21158 ac_outfile=conftest.$ac_objext
21159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21160 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21161 # Insert the option either (1) after the last *FLAGS variable, or
21162 # (2) before a word containing "conftest.", or (3) at the end.
21163 # Note that $ac_compile itself does not contain backslashes and begins
21164 # with a dollar sign (not a hyphen), so the echo should work correctly.
21165 # The option is referenced via a variable to avoid confusing sed.
21166 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21169 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000021170 (eval echo "\"\$as_me:21170: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021171 (eval "$lt_compile" 2>conftest.err)
21172 ac_status=$?
21173 cat conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000021174 echo "$as_me:21174: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021175 if (exit $ac_status) && test -s "$ac_outfile"; then
21176 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021177 # So say no if there are warnings other than the usual output.
21178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021181 lt_prog_compiler_pic_works_F77=yes
21182 fi
21183 fi
21184 $rm conftest*
21185
21186fi
Reid Spencera773bd52006-08-04 18:18:08 +000021187{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21188echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021189
21190if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21191 case $lt_prog_compiler_pic_F77 in
21192 "" | " "*) ;;
21193 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21194 esac
21195else
21196 lt_prog_compiler_pic_F77=
21197 lt_prog_compiler_can_build_shared_F77=no
21198fi
21199
21200fi
Reid Spencera773bd52006-08-04 18:18:08 +000021201case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021202 # For platforms which do not support PIC, -DPIC is meaningless:
21203 *djgpp*)
21204 lt_prog_compiler_pic_F77=
21205 ;;
21206 *)
21207 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21208 ;;
21209esac
21210
Reid Spencera773bd52006-08-04 18:18:08 +000021211#
21212# Check to make sure the static flag actually works.
21213#
21214wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21215{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21216echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21217if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219else
21220 lt_prog_compiler_static_works_F77=no
21221 save_LDFLAGS="$LDFLAGS"
21222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21223 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21225 # The linker can only warn and ignore the option if not recognized
21226 # So say no if there are warnings
21227 if test -s conftest.err; then
21228 # Append any errors to the config.log.
21229 cat conftest.err 1>&5
21230 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21232 if diff conftest.exp conftest.er2 >/dev/null; then
21233 lt_prog_compiler_static_works_F77=yes
21234 fi
21235 else
21236 lt_prog_compiler_static_works_F77=yes
21237 fi
21238 fi
21239 $rm conftest*
21240 LDFLAGS="$save_LDFLAGS"
21241
21242fi
21243{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21244echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21245
21246if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21247 :
21248else
21249 lt_prog_compiler_static_F77=
21250fi
21251
21252
21253{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21254echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021255if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257else
21258 lt_cv_prog_compiler_c_o_F77=no
21259 $rm -r conftest 2>/dev/null
21260 mkdir conftest
21261 cd conftest
21262 mkdir out
21263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21264
John Criswell47fdd832003-07-14 16:52:07 +000021265 lt_compiler_flag="-o out/conftest2.$ac_objext"
21266 # Insert the option either (1) after the last *FLAGS variable, or
21267 # (2) before a word containing "conftest.", or (3) at the end.
21268 # Note that $ac_compile itself does not contain backslashes and begins
21269 # with a dollar sign (not a hyphen), so the echo should work correctly.
21270 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21273 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000021274 (eval echo "\"\$as_me:21274: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021275 (eval "$lt_compile" 2>out/conftest.err)
21276 ac_status=$?
21277 cat out/conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000021278 echo "$as_me:21278: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21280 then
21281 # The compiler can only warn and ignore the option if not recognized
21282 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021283 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021286 lt_cv_prog_compiler_c_o_F77=yes
21287 fi
21288 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021289 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021290 $rm conftest*
21291 # SGI C++ compiler will create directory out/ii_files/ for
21292 # template instantiation
21293 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21294 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021295 cd ..
21296 rmdir conftest
21297 $rm conftest*
21298
21299fi
Reid Spencera773bd52006-08-04 18:18:08 +000021300{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21301echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021302
21303
21304hard_links="nottested"
21305if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21306 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021307 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21308echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021309 hard_links=yes
21310 $rm conftest*
21311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21312 touch conftest.a
21313 ln conftest.a conftest.b 2>&5 || hard_links=no
21314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021315 { echo "$as_me:$LINENO: result: $hard_links" >&5
21316echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021317 if test "$hard_links" = no; then
21318 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21319echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21320 need_locks=warn
21321 fi
21322else
21323 need_locks=no
21324fi
21325
Reid Spencera773bd52006-08-04 18:18:08 +000021326{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21327echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021328
21329 runpath_var=
21330 allow_undefined_flag_F77=
21331 enable_shared_with_static_runtimes_F77=no
21332 archive_cmds_F77=
21333 archive_expsym_cmds_F77=
21334 old_archive_From_new_cmds_F77=
21335 old_archive_from_expsyms_cmds_F77=
21336 export_dynamic_flag_spec_F77=
21337 whole_archive_flag_spec_F77=
21338 thread_safe_flag_spec_F77=
21339 hardcode_libdir_flag_spec_F77=
21340 hardcode_libdir_flag_spec_ld_F77=
21341 hardcode_libdir_separator_F77=
21342 hardcode_direct_F77=no
21343 hardcode_minus_L_F77=no
21344 hardcode_shlibpath_var_F77=unsupported
21345 link_all_deplibs_F77=unknown
21346 hardcode_automatic_F77=no
21347 module_cmds_F77=
21348 module_expsym_cmds_F77=
21349 always_export_symbols_F77=no
21350 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21351 # include_expsyms should be a list of space-separated symbols to be *always*
21352 # included in the symbol list
21353 include_expsyms_F77=
21354 # exclude_expsyms can be an extended regexp of symbols to exclude
21355 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21356 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21357 # as well as any symbol that contains `d'.
21358 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21359 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21360 # platforms (ab)use it in PIC code, but their linkers get confused if
21361 # the symbol is explicitly referenced. Since portable code cannot
21362 # rely on this symbol name, it's probably fine to never include it in
21363 # preloaded symbol tables.
21364 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021365 # Just being paranoid about ensuring that cc_basename is set.
21366 for cc_temp in $compiler""; do
21367 case $cc_temp in
21368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21370 \-*) ;;
21371 *) break;;
21372 esac
21373done
21374cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021375
21376 case $host_os in
21377 cygwin* | mingw* | pw32*)
21378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21379 # When not using gcc, we currently assume that we are using
21380 # Microsoft Visual C++.
21381 if test "$GCC" != yes; then
21382 with_gnu_ld=no
21383 fi
21384 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021385 interix*)
21386 # we just hope/assume this is gcc and not c89 (= MSVC++)
21387 with_gnu_ld=yes
21388 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021389 openbsd*)
21390 with_gnu_ld=no
21391 ;;
21392 esac
21393
21394 ld_shlibs_F77=yes
21395 if test "$with_gnu_ld" = yes; then
21396 # If archive_cmds runs LD, not CC, wlarc should be empty
21397 wlarc='${wl}'
21398
Reid Spencera773bd52006-08-04 18:18:08 +000021399 # Set some defaults for GNU ld with shared library support. These
21400 # are reset later if shared libraries are not supported. Putting them
21401 # here allows them to be overridden if necessary.
21402 runpath_var=LD_RUN_PATH
21403 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21404 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21405 # ancient GNU ld didn't support --whole-archive et. al.
21406 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21407 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21408 else
21409 whole_archive_flag_spec_F77=
21410 fi
21411 supports_anon_versioning=no
21412 case `$LD -v 2>/dev/null` in
21413 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21414 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21415 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21416 *\ 2.11.*) ;; # other 2.11 versions
21417 *) supports_anon_versioning=yes ;;
21418 esac
21419
John Criswell47fdd832003-07-14 16:52:07 +000021420 # See if GNU ld supports shared libraries.
21421 case $host_os in
21422 aix3* | aix4* | aix5*)
21423 # On AIX/PPC, the GNU linker is very broken
21424 if test "$host_cpu" != ia64; then
21425 ld_shlibs_F77=no
21426 cat <<EOF 1>&2
21427
21428*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21429*** to be unable to reliably create shared libraries on AIX.
21430*** Therefore, libtool is disabling shared libraries support. If you
21431*** really care for shared libraries, you may want to modify your PATH
21432*** so that a non-GNU linker is found, and then restart.
21433
21434EOF
21435 fi
21436 ;;
21437
21438 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021439 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 +000021440 hardcode_libdir_flag_spec_F77='-L$libdir'
21441 hardcode_minus_L_F77=yes
21442
21443 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21444 # that the semantics of dynamic libraries on AmigaOS, at least up
21445 # to version 4, is to share data among multiple programs linked
21446 # with the same dynamic library. Since this doesn't match the
21447 # behavior of shared libraries on other platforms, we can't use
21448 # them.
21449 ld_shlibs_F77=no
21450 ;;
21451
21452 beos*)
21453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21454 allow_undefined_flag_F77=unsupported
21455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21456 # support --undefined. This deserves some investigation. FIXME
21457 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21458 else
21459 ld_shlibs_F77=no
21460 fi
21461 ;;
21462
21463 cygwin* | mingw* | pw32*)
21464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21465 # as there is no search path for DLLs.
21466 hardcode_libdir_flag_spec_F77='-L$libdir'
21467 allow_undefined_flag_F77=unsupported
21468 always_export_symbols_F77=no
21469 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021470 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 +000021471
21472 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021473 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 +000021474 # If the export-symbols file already is a .def file (1st line
21475 # is EXPORTS), use it as is; otherwise, prepend...
21476 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21477 cp $export_symbols $output_objdir/$soname.def;
21478 else
21479 echo EXPORTS > $output_objdir/$soname.def;
21480 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021481 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021482 $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 +000021483 else
Reid Spencera773bd52006-08-04 18:18:08 +000021484 ld_shlibs_F77=no
21485 fi
21486 ;;
21487
21488 interix3*)
21489 hardcode_direct_F77=no
21490 hardcode_shlibpath_var_F77=no
21491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21492 export_dynamic_flag_spec_F77='${wl}-E'
21493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21494 # Instead, shared libraries are loaded at an image base (0x10000000 by
21495 # default) and relocated if they conflict, which is a slow very memory
21496 # consuming and fragmenting process. To avoid this, we pick a random,
21497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21499 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'
21500 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'
21501 ;;
21502
21503 linux*)
21504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21505 tmp_addflag=
21506 case $cc_basename,$host_cpu in
21507 pgcc*) # Portland Group C compiler
21508 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'
21509 tmp_addflag=' $pic_flag'
21510 ;;
21511 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21512 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'
21513 tmp_addflag=' $pic_flag -Mnomain' ;;
21514 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21515 tmp_addflag=' -i_dynamic' ;;
21516 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21517 tmp_addflag=' -i_dynamic -nofor_main' ;;
21518 ifc* | ifort*) # Intel Fortran compiler
21519 tmp_addflag=' -nofor_main' ;;
21520 esac
21521 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21522
21523 if test $supports_anon_versioning = yes; then
21524 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21526 $echo "local: *; };" >> $output_objdir/$libname.ver~
21527 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21528 fi
21529 else
21530 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021531 fi
21532 ;;
21533
21534 netbsd*)
21535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21536 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21537 wlarc=
21538 else
21539 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21540 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21541 fi
21542 ;;
21543
Reid Spencera773bd52006-08-04 18:18:08 +000021544 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021545 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21546 ld_shlibs_F77=no
21547 cat <<EOF 1>&2
21548
21549*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21550*** create shared libraries on Solaris systems. Therefore, libtool
21551*** is disabling shared libraries support. We urge you to upgrade GNU
21552*** binutils to release 2.9.1 or newer. Another option is to modify
21553*** your PATH or compiler configuration so that the native linker is
21554*** used, and then restart.
21555
21556EOF
21557 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21558 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21559 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21560 else
21561 ld_shlibs_F77=no
21562 fi
21563 ;;
21564
Reid Spencera773bd52006-08-04 18:18:08 +000021565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21566 case `$LD -v 2>&1` in
21567 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21568 ld_shlibs_F77=no
21569 cat <<_LT_EOF 1>&2
21570
21571*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21572*** reliably create shared libraries on SCO systems. Therefore, libtool
21573*** is disabling shared libraries support. We urge you to upgrade GNU
21574*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21575*** your PATH or compiler configuration so that the native linker is
21576*** used, and then restart.
21577
21578_LT_EOF
21579 ;;
21580 *)
21581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21582 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21583 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21584 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21585 else
21586 ld_shlibs_F77=no
21587 fi
21588 ;;
21589 esac
21590 ;;
21591
John Criswell47fdd832003-07-14 16:52:07 +000021592 sunos4*)
21593 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21594 wlarc=
21595 hardcode_direct_F77=yes
21596 hardcode_shlibpath_var_F77=no
21597 ;;
21598
21599 *)
21600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21601 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21602 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21603 else
21604 ld_shlibs_F77=no
21605 fi
21606 ;;
21607 esac
21608
Reid Spencera773bd52006-08-04 18:18:08 +000021609 if test "$ld_shlibs_F77" = no; then
21610 runpath_var=
21611 hardcode_libdir_flag_spec_F77=
21612 export_dynamic_flag_spec_F77=
21613 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021614 fi
21615 else
21616 # PORTME fill in a description of your system's linker (not GNU ld)
21617 case $host_os in
21618 aix3*)
21619 allow_undefined_flag_F77=unsupported
21620 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021621 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 +000021622 # Note: this linker hardcodes the directories in LIBPATH if there
21623 # are no directories specified by -L.
21624 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021625 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021626 # Neither direct hardcoding nor static linking is supported with a
21627 # broken collect2.
21628 hardcode_direct_F77=unsupported
21629 fi
21630 ;;
21631
21632 aix4* | aix5*)
21633 if test "$host_cpu" = ia64; then
21634 # On IA64, the linker does run time linking by default, so we don't
21635 # have to do anything special.
21636 aix_use_runtimelinking=no
21637 exp_sym_flag='-Bexport'
21638 no_entry_flag=""
21639 else
21640 # If we're using GNU nm, then we don't want the "-C" option.
21641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21643 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'
21644 else
21645 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'
21646 fi
21647 aix_use_runtimelinking=no
21648
21649 # Test if we are trying to use run time linking or normal
21650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21651 # need to do runtime linking.
21652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21653 for ld_flag in $LDFLAGS; do
21654 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21655 aix_use_runtimelinking=yes
21656 break
21657 fi
21658 done
Reid Spencera773bd52006-08-04 18:18:08 +000021659 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021660 esac
21661
21662 exp_sym_flag='-bexport'
21663 no_entry_flag='-bnoentry'
21664 fi
21665
21666 # When large executables or shared objects are built, AIX ld can
21667 # have problems creating the table of contents. If linking a library
21668 # or program results in "error TOC overflow" add -mminimal-toc to
21669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21671
21672 archive_cmds_F77=''
21673 hardcode_direct_F77=yes
21674 hardcode_libdir_separator_F77=':'
21675 link_all_deplibs_F77=yes
21676
21677 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021678 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021679 # We only want to do this on AIX 4.2 and lower, the check
21680 # below for broken collect2 doesn't work under 4.3+
21681 collect2name=`${CC} -print-prog-name=collect2`
21682 if test -f "$collect2name" && \
21683 strings "$collect2name" | grep resolve_lib_name >/dev/null
21684 then
21685 # We have reworked collect2
21686 hardcode_direct_F77=yes
21687 else
21688 # We have old collect2
21689 hardcode_direct_F77=unsupported
21690 # It fails to find uninstalled libraries when the uninstalled
21691 # path is not listed in the libpath. Setting hardcode_minus_L
21692 # to unsupported forces relinking
21693 hardcode_minus_L_F77=yes
21694 hardcode_libdir_flag_spec_F77='-L$libdir'
21695 hardcode_libdir_separator_F77=
21696 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021697 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021698 esac
21699 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021700 if test "$aix_use_runtimelinking" = yes; then
21701 shared_flag="$shared_flag "'${wl}-G'
21702 fi
John Criswell47fdd832003-07-14 16:52:07 +000021703 else
21704 # not using gcc
21705 if test "$host_cpu" = ia64; then
21706 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21707 # chokes on -Wl,-G. The following line is correct:
21708 shared_flag='-G'
21709 else
Reid Spencera773bd52006-08-04 18:18:08 +000021710 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021711 shared_flag='${wl}-G'
21712 else
21713 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021714 fi
John Criswell47fdd832003-07-14 16:52:07 +000021715 fi
21716 fi
21717
21718 # It seems that -bexpall does not export symbols beginning with
21719 # underscore (_), so it is better to generate a list of symbols to export.
21720 always_export_symbols_F77=yes
21721 if test "$aix_use_runtimelinking" = yes; then
21722 # Warning - without using the other runtime loading flags (-brtl),
21723 # -berok will link without error, but may produce a broken library.
21724 allow_undefined_flag_F77='-berok'
21725 # Determine the default libpath from the value encoded in an empty executable.
21726 cat >conftest.$ac_ext <<_ACEOF
21727 program main
21728
21729 end
21730_ACEOF
21731rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021732if { (ac_try="$ac_link"
21733case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021745 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21746 { (case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749esac
21750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; } &&
21755 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021756 { (case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21759esac
21760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765
21766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21767}'`
21768# Check for a 64-bit object if we didn't find anything.
21769if 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; }
21770}'`; fi
21771else
21772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021773sed 's/^/| /' conftest.$ac_ext >&5
21774
Reid Spencera773bd52006-08-04 18:18:08 +000021775
John Criswell47fdd832003-07-14 16:52:07 +000021776fi
Reid Spencera773bd52006-08-04 18:18:08 +000021777
21778rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021779 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21781
21782 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021783 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 +000021784 else
21785 if test "$host_cpu" = ia64; then
21786 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21787 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021788 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 +000021789 else
21790 # Determine the default libpath from the value encoded in an empty executable.
21791 cat >conftest.$ac_ext <<_ACEOF
21792 program main
21793
21794 end
21795_ACEOF
21796rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021797if { (ac_try="$ac_link"
21798case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801esac
21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021810 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814esac
21815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824esac
21825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830
21831aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21832}'`
21833# Check for a 64-bit object if we didn't find anything.
21834if 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; }
21835}'`; fi
21836else
21837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021838sed 's/^/| /' conftest.$ac_ext >&5
21839
Reid Spencera773bd52006-08-04 18:18:08 +000021840
John Criswell47fdd832003-07-14 16:52:07 +000021841fi
Reid Spencera773bd52006-08-04 18:18:08 +000021842
21843rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021844 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021845if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21846
21847 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21848 # Warning - without using the other run time loading flags,
21849 # -berok will link without error, but may produce a broken library.
21850 no_undefined_flag_F77=' ${wl}-bernotok'
21851 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021852 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021853 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021854 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021855 # This is similar to how AIX traditionally builds its shared libraries.
21856 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 +000021857 fi
21858 fi
21859 ;;
21860
21861 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021862 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 +000021863 hardcode_libdir_flag_spec_F77='-L$libdir'
21864 hardcode_minus_L_F77=yes
21865 # see comment about different semantics on the GNU ld section
21866 ld_shlibs_F77=no
21867 ;;
21868
Reid Spencer2706f8c2004-09-19 23:53:36 +000021869 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021870 export_dynamic_flag_spec_F77=-rdynamic
21871 ;;
21872
21873 cygwin* | mingw* | pw32*)
21874 # When not using gcc, we currently assume that we are using
21875 # Microsoft Visual C++.
21876 # hardcode_libdir_flag_spec is actually meaningless, as there is
21877 # no search path for DLLs.
21878 hardcode_libdir_flag_spec_F77=' '
21879 allow_undefined_flag_F77=unsupported
21880 # Tell ltmain to make .lib files, not .a files.
21881 libext=lib
21882 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021883 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021884 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021885 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 +000021886 # The linker will automatically build a .lib file if we build a DLL.
21887 old_archive_From_new_cmds_F77='true'
21888 # FIXME: Should let the user specify the lib program.
21889 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021890 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021891 enable_shared_with_static_runtimes_F77=yes
21892 ;;
21893
21894 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021895 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021896 rhapsody* | darwin1.[012])
21897 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21898 ;;
21899 *) # Darwin 1.3 on
21900 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21901 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21902 else
21903 case ${MACOSX_DEPLOYMENT_TARGET} in
21904 10.[012])
21905 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21906 ;;
21907 10.*)
21908 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21909 ;;
21910 esac
21911 fi
21912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021913 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021914 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021915 hardcode_direct_F77=no
21916 hardcode_automatic_F77=yes
21917 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021918 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021919 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021920 if test "$GCC" = yes ; then
21921 output_verbose_link_cmd='echo'
21922 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21923 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021924 # 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 +000021925 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}'
21926 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 +000021927 else
Reid Spencera773bd52006-08-04 18:18:08 +000021928 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021929 xlc*)
21930 output_verbose_link_cmd='echo'
21931 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21932 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021933 # 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 +000021934 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}'
21935 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 +000021936 ;;
21937 *)
21938 ld_shlibs_F77=no
21939 ;;
21940 esac
John Criswell47fdd832003-07-14 16:52:07 +000021941 fi
21942 ;;
21943
21944 dgux*)
21945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21946 hardcode_libdir_flag_spec_F77='-L$libdir'
21947 hardcode_shlibpath_var_F77=no
21948 ;;
21949
21950 freebsd1*)
21951 ld_shlibs_F77=no
21952 ;;
21953
21954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21955 # support. Future versions do this automatically, but an explicit c++rt0.o
21956 # does not break anything, and helps significantly (at the cost of a little
21957 # extra space).
21958 freebsd2.2*)
21959 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21960 hardcode_libdir_flag_spec_F77='-R$libdir'
21961 hardcode_direct_F77=yes
21962 hardcode_shlibpath_var_F77=no
21963 ;;
21964
21965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21966 freebsd2*)
21967 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21968 hardcode_direct_F77=yes
21969 hardcode_minus_L_F77=yes
21970 hardcode_shlibpath_var_F77=no
21971 ;;
21972
21973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021974 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021975 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21976 hardcode_libdir_flag_spec_F77='-R$libdir'
21977 hardcode_direct_F77=yes
21978 hardcode_shlibpath_var_F77=no
21979 ;;
21980
21981 hpux9*)
21982 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021983 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 +000021984 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021985 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 +000021986 fi
21987 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21988 hardcode_libdir_separator_F77=:
21989 hardcode_direct_F77=yes
21990
21991 # hardcode_minus_L: Not really in the search PATH,
21992 # but as the default location of the library.
21993 hardcode_minus_L_F77=yes
21994 export_dynamic_flag_spec_F77='${wl}-E'
21995 ;;
21996
Reid Spencera773bd52006-08-04 18:18:08 +000021997 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021999 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22000 else
22001 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22002 fi
22003 if test "$with_gnu_ld" = no; then
22004 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22005 hardcode_libdir_separator_F77=:
22006
22007 hardcode_direct_F77=yes
22008 export_dynamic_flag_spec_F77='${wl}-E'
22009
22010 # hardcode_minus_L: Not really in the search PATH,
22011 # but as the default location of the library.
22012 hardcode_minus_L_F77=yes
22013 fi
22014 ;;
22015
22016 hpux11*)
22017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22018 case $host_cpu in
22019 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022020 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022022 ia64*)
22023 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22024 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022025 *)
22026 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22027 ;;
22028 esac
22029 else
Reid Spencera773bd52006-08-04 18:18:08 +000022030 case $host_cpu in
22031 hppa*64*)
22032 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22033 ;;
22034 ia64*)
22035 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022036 ;;
22037 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022038 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 +000022039 ;;
22040 esac
22041 fi
22042 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022043 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22044 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022045
Reid Spencera773bd52006-08-04 18:18:08 +000022046 case $host_cpu in
22047 hppa*64*|ia64*)
22048 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22049 hardcode_direct_F77=no
22050 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022051 ;;
22052 *)
John Criswell47fdd832003-07-14 16:52:07 +000022053 hardcode_direct_F77=yes
22054 export_dynamic_flag_spec_F77='${wl}-E'
22055
22056 # hardcode_minus_L: Not really in the search PATH,
22057 # but as the default location of the library.
22058 hardcode_minus_L_F77=yes
22059 ;;
22060 esac
22061 fi
22062 ;;
22063
22064 irix5* | irix6* | nonstopux*)
22065 if test "$GCC" = yes; then
22066 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'
22067 else
22068 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'
22069 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22070 fi
22071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22072 hardcode_libdir_separator_F77=:
22073 link_all_deplibs_F77=yes
22074 ;;
22075
22076 netbsd*)
22077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22079 else
22080 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22081 fi
22082 hardcode_libdir_flag_spec_F77='-R$libdir'
22083 hardcode_direct_F77=yes
22084 hardcode_shlibpath_var_F77=no
22085 ;;
22086
22087 newsos6)
22088 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22089 hardcode_direct_F77=yes
22090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22091 hardcode_libdir_separator_F77=:
22092 hardcode_shlibpath_var_F77=no
22093 ;;
22094
22095 openbsd*)
22096 hardcode_direct_F77=yes
22097 hardcode_shlibpath_var_F77=no
22098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22099 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022100 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 +000022101 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22102 export_dynamic_flag_spec_F77='${wl}-E'
22103 else
22104 case $host_os in
22105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22106 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22107 hardcode_libdir_flag_spec_F77='-R$libdir'
22108 ;;
22109 *)
22110 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22111 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22112 ;;
22113 esac
22114 fi
22115 ;;
22116
22117 os2*)
22118 hardcode_libdir_flag_spec_F77='-L$libdir'
22119 hardcode_minus_L_F77=yes
22120 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022121 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 +000022122 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22123 ;;
22124
22125 osf3*)
22126 if test "$GCC" = yes; then
22127 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22128 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'
22129 else
22130 allow_undefined_flag_F77=' -expect_unresolved \*'
22131 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'
22132 fi
22133 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22134 hardcode_libdir_separator_F77=:
22135 ;;
22136
22137 osf4* | osf5*) # as osf3* with the addition of -msym flag
22138 if test "$GCC" = yes; then
22139 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22140 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'
22141 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22142 else
22143 allow_undefined_flag_F77=' -expect_unresolved \*'
22144 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 +000022145 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 +000022146 $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 +000022147
John Criswell47fdd832003-07-14 16:52:07 +000022148 # Both c and cxx compiler support -rpath directly
22149 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22150 fi
22151 hardcode_libdir_separator_F77=:
22152 ;;
22153
John Criswell47fdd832003-07-14 16:52:07 +000022154 solaris*)
22155 no_undefined_flag_F77=' -z text'
22156 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022157 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022158 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022159 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22160 $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 +000022161 else
Reid Spencera773bd52006-08-04 18:18:08 +000022162 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022163 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022164 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22165 $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 +000022166 fi
22167 hardcode_libdir_flag_spec_F77='-R$libdir'
22168 hardcode_shlibpath_var_F77=no
22169 case $host_os in
22170 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022171 *)
22172 # The compiler driver will combine linker options so we
22173 # cannot just pass the convience library names through
22174 # without $wl, iff we do not link with $LD.
22175 # Luckily, gcc supports the same syntax we need for Sun Studio.
22176 # Supported since Solaris 2.6 (maybe 2.5.1?)
22177 case $wlarc in
22178 '')
22179 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22180 *)
22181 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' ;;
22182 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022183 esac
22184 link_all_deplibs_F77=yes
22185 ;;
22186
22187 sunos4*)
22188 if test "x$host_vendor" = xsequent; then
22189 # Use $CC to link under sequent, because it throws in some extra .o
22190 # files that make .init and .fini sections work.
22191 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22192 else
22193 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22194 fi
22195 hardcode_libdir_flag_spec_F77='-L$libdir'
22196 hardcode_direct_F77=yes
22197 hardcode_minus_L_F77=yes
22198 hardcode_shlibpath_var_F77=no
22199 ;;
22200
22201 sysv4)
22202 case $host_vendor in
22203 sni)
22204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22205 hardcode_direct_F77=yes # is this really true???
22206 ;;
22207 siemens)
22208 ## LD is ld it makes a PLAMLIB
22209 ## CC just makes a GrossModule.
22210 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22211 reload_cmds_F77='$CC -r -o $output$reload_objs'
22212 hardcode_direct_F77=no
22213 ;;
22214 motorola)
22215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22216 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22217 ;;
22218 esac
22219 runpath_var='LD_RUN_PATH'
22220 hardcode_shlibpath_var_F77=no
22221 ;;
22222
22223 sysv4.3*)
22224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225 hardcode_shlibpath_var_F77=no
22226 export_dynamic_flag_spec_F77='-Bexport'
22227 ;;
22228
22229 sysv4*MP*)
22230 if test -d /usr/nec; then
22231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22232 hardcode_shlibpath_var_F77=no
22233 runpath_var=LD_RUN_PATH
22234 hardcode_runpath_var=yes
22235 ld_shlibs_F77=yes
22236 fi
22237 ;;
22238
Reid Spencera773bd52006-08-04 18:18:08 +000022239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22240 no_undefined_flag_F77='${wl}-z,text'
22241 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022242 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022243 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022244
John Criswell47fdd832003-07-14 16:52:07 +000022245 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022246 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22247 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 +000022248 else
Reid Spencera773bd52006-08-04 18:18:08 +000022249 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22250 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 +000022251 fi
John Criswell47fdd832003-07-14 16:52:07 +000022252 ;;
22253
Reid Spencera773bd52006-08-04 18:18:08 +000022254 sysv5* | sco3.2v5* | sco5v6*)
22255 # Note: We can NOT use -z defs as we might desire, because we do not
22256 # link with -lc, and that would cause any symbols used from libc to
22257 # always be unresolved, which means just about no library would
22258 # ever link correctly. If we're not using GNU ld we use -z text
22259 # though, which does catch some bad symbols but isn't as heavy-handed
22260 # as -z defs.
22261 no_undefined_flag_F77='${wl}-z,text'
22262 allow_undefined_flag_F77='${wl}-z,nodefs'
22263 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022264 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022265 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22266 hardcode_libdir_separator_F77=':'
22267 link_all_deplibs_F77=yes
22268 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022269 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022270
22271 if test "$GCC" = yes; then
22272 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22273 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 else
22275 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 fi
John Criswell47fdd832003-07-14 16:52:07 +000022278 ;;
22279
22280 uts4*)
22281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282 hardcode_libdir_flag_spec_F77='-L$libdir'
22283 hardcode_shlibpath_var_F77=no
22284 ;;
22285
22286 *)
22287 ld_shlibs_F77=no
22288 ;;
22289 esac
22290 fi
22291
Reid Spencera773bd52006-08-04 18:18:08 +000022292{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22293echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022294test "$ld_shlibs_F77" = no && can_build_shared=no
22295
John Criswell47fdd832003-07-14 16:52:07 +000022296#
22297# Do we need to explicitly link libc?
22298#
22299case "x$archive_cmds_need_lc_F77" in
22300x|xyes)
22301 # Assume -lc should be added
22302 archive_cmds_need_lc_F77=yes
22303
22304 if test "$enable_shared" = yes && test "$GCC" = yes; then
22305 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022306 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022307 # FIXME: we may have to deal with multi-command sequences.
22308 ;;
22309 '$CC '*)
22310 # Test whether the compiler implicitly links with -lc since on some
22311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22312 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022313 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22314echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022315 $rm conftest*
22316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22317
22318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } 2>conftest.err; then
22323 soname=conftest
22324 lib=conftest
22325 libobjs=conftest.$ac_objext
22326 deplibs=
22327 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022328 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022329 compiler_flags=-v
22330 linker_flags=-v
22331 verstring=
22332 output_objdir=.
22333 libname=conftest
22334 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22335 allow_undefined_flag_F77=
22336 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22337 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }
22341 then
22342 archive_cmds_need_lc_F77=no
22343 else
22344 archive_cmds_need_lc_F77=yes
22345 fi
22346 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22347 else
22348 cat conftest.err 1>&5
22349 fi
22350 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022351 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22352echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022353 ;;
22354 esac
22355 fi
22356 ;;
22357esac
22358
Reid Spencera773bd52006-08-04 18:18:08 +000022359{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022361library_names_spec=
22362libname_spec='lib$name'
22363soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022364shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022365postinstall_cmds=
22366postuninstall_cmds=
22367finish_cmds=
22368finish_eval=
22369shlibpath_var=
22370shlibpath_overrides_runpath=unknown
22371version_type=none
22372dynamic_linker="$host_os ld.so"
22373sys_lib_dlsearch_path_spec="/lib /usr/lib"
22374if test "$GCC" = yes; then
22375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22377 # if the path contains ";" then we assume it to be the separator
22378 # otherwise default to the standard path separator (i.e. ":") - it is
22379 # assumed that no part of a normal pathname contains ";" but that should
22380 # okay in the real world where ";" in dirpaths is itself problematic.
22381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22382 else
22383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22384 fi
22385else
22386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22387fi
22388need_lib_prefix=unknown
22389hardcode_into_libs=no
22390
22391# when you set need_version to no, make sure it does not cause -set_version
22392# flags to be left without arguments
22393need_version=unknown
22394
22395case $host_os in
22396aix3*)
22397 version_type=linux
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22399 shlibpath_var=LIBPATH
22400
22401 # AIX 3 has no versioning support, so we append a major version to the name.
22402 soname_spec='${libname}${release}${shared_ext}$major'
22403 ;;
22404
22405aix4* | aix5*)
22406 version_type=linux
22407 need_lib_prefix=no
22408 need_version=no
22409 hardcode_into_libs=yes
22410 if test "$host_cpu" = ia64; then
22411 # AIX 5 supports IA64
22412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22413 shlibpath_var=LD_LIBRARY_PATH
22414 else
22415 # With GCC up to 2.95.x, collect2 would create an import file
22416 # for dependence libraries. The import file would start with
22417 # the line `#! .'. This would cause the generated library to
22418 # depend on `.', always an invalid library. This was fixed in
22419 # development snapshots of GCC prior to 3.0.
22420 case $host_os in
22421 aix4 | aix4.[01] | aix4.[01].*)
22422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22423 echo ' yes '
22424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22425 :
22426 else
22427 can_build_shared=no
22428 fi
22429 ;;
22430 esac
22431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22432 # soname into executable. Probably we can add versioning support to
22433 # collect2, so additional links can be useful in future.
22434 if test "$aix_use_runtimelinking" = yes; then
22435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22436 # instead of lib<name>.a to let people know that these are not
22437 # typical AIX shared libraries.
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22439 else
22440 # We preserve .a as extension for shared libraries through AIX4.2
22441 # and later when we are not doing run time linking.
22442 library_names_spec='${libname}${release}.a $libname.a'
22443 soname_spec='${libname}${release}${shared_ext}$major'
22444 fi
22445 shlibpath_var=LIBPATH
22446 fi
22447 ;;
22448
22449amigaos*)
22450 library_names_spec='$libname.ixlibrary $libname.a'
22451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022452 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 +000022453 ;;
22454
22455beos*)
22456 library_names_spec='${libname}${shared_ext}'
22457 dynamic_linker="$host_os ld.so"
22458 shlibpath_var=LIBRARY_PATH
22459 ;;
22460
Reid Spencer2706f8c2004-09-19 23:53:36 +000022461bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022462 version_type=linux
22463 need_version=no
22464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22465 soname_spec='${libname}${release}${shared_ext}$major'
22466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22467 shlibpath_var=LD_LIBRARY_PATH
22468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22470 # the default ld.so.conf also contains /usr/contrib/lib and
22471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22472 # libtool to hard-code these into programs
22473 ;;
22474
22475cygwin* | mingw* | pw32*)
22476 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022477 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022478 need_version=no
22479 need_lib_prefix=no
22480
22481 case $GCC,$host_os in
22482 yes,cygwin* | yes,mingw* | yes,pw32*)
22483 library_names_spec='$libname.dll.a'
22484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022485 postinstall_cmds='base_file=`basename \${file}`~
22486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22487 dldir=$destdir/`dirname \$dlpath`~
22488 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022489 $install_prog $dir/$dlname \$dldir/$dlname~
22490 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22492 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022493 $rm \$dlpath'
22494 shlibpath_overrides_runpath=yes
22495
22496 case $host_os in
22497 cygwin*)
22498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22499 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 +000022500 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022501 ;;
22502 mingw*)
22503 # MinGW DLLs use traditional 'lib' prefix
22504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22505 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22506 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22507 # It is most probably a Windows format PATH printed by
22508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22509 # path with ; separators, and with drive letters. We can handle the
22510 # drive letters (cygwin fileutils understands them), so leave them,
22511 # especially as we might pass files found there to a mingw objdump,
22512 # which wouldn't understand a cygwinified path. Ahh.
22513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22514 else
22515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22516 fi
22517 ;;
22518 pw32*)
22519 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022520 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 +000022521 ;;
22522 esac
22523 ;;
22524
22525 *)
22526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22527 ;;
22528 esac
22529 dynamic_linker='Win32 ld.exe'
22530 # FIXME: first we should search . and the directory the executable is in
22531 shlibpath_var=PATH
22532 ;;
22533
22534darwin* | rhapsody*)
22535 dynamic_linker="$host_os dyld"
22536 version_type=darwin
22537 need_lib_prefix=no
22538 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022539 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022540 soname_spec='${libname}${release}${major}$shared_ext'
22541 shlibpath_overrides_runpath=yes
22542 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022543 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022544 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022545 if test "$GCC" = yes; then
22546 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"`
22547 else
22548 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022549 fi
22550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22551 ;;
22552
22553dgux*)
22554 version_type=linux
22555 need_lib_prefix=no
22556 need_version=no
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22558 soname_spec='${libname}${release}${shared_ext}$major'
22559 shlibpath_var=LD_LIBRARY_PATH
22560 ;;
22561
22562freebsd1*)
22563 dynamic_linker=no
22564 ;;
22565
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566kfreebsd*-gnu)
22567 version_type=linux
22568 need_lib_prefix=no
22569 need_version=no
22570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22571 soname_spec='${libname}${release}${shared_ext}$major'
22572 shlibpath_var=LD_LIBRARY_PATH
22573 shlibpath_overrides_runpath=no
22574 hardcode_into_libs=yes
22575 dynamic_linker='GNU ld.so'
22576 ;;
22577
Reid Spencera773bd52006-08-04 18:18:08 +000022578freebsd* | dragonfly*)
22579 # DragonFly does not have aout. When/if they implement a new
22580 # versioning mechanism, adjust this.
22581 if test -x /usr/bin/objformat; then
22582 objformat=`/usr/bin/objformat`
22583 else
22584 case $host_os in
22585 freebsd[123]*) objformat=aout ;;
22586 *) objformat=elf ;;
22587 esac
22588 fi
John Criswell47fdd832003-07-14 16:52:07 +000022589 version_type=freebsd-$objformat
22590 case $version_type in
22591 freebsd-elf*)
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22593 need_version=no
22594 need_lib_prefix=no
22595 ;;
22596 freebsd-*)
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22598 need_version=yes
22599 ;;
22600 esac
22601 shlibpath_var=LD_LIBRARY_PATH
22602 case $host_os in
22603 freebsd2*)
22604 shlibpath_overrides_runpath=yes
22605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022606 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022607 shlibpath_overrides_runpath=yes
22608 hardcode_into_libs=yes
22609 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022612 shlibpath_overrides_runpath=no
22613 hardcode_into_libs=yes
22614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022615 freebsd*) # from 4.6 on
22616 shlibpath_overrides_runpath=yes
22617 hardcode_into_libs=yes
22618 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022619 esac
22620 ;;
22621
22622gnu*)
22623 version_type=linux
22624 need_lib_prefix=no
22625 need_version=no
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 shlibpath_var=LD_LIBRARY_PATH
22629 hardcode_into_libs=yes
22630 ;;
22631
22632hpux9* | hpux10* | hpux11*)
22633 # Give a soname corresponding to the major version so that dld.sl refuses to
22634 # link against other versions.
22635 version_type=sunos
22636 need_lib_prefix=no
22637 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022638 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022639 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022640 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022641 hardcode_into_libs=yes
22642 dynamic_linker="$host_os dld.so"
22643 shlibpath_var=LD_LIBRARY_PATH
22644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22646 soname_spec='${libname}${release}${shared_ext}$major'
22647 if test "X$HPUX_IA64_MODE" = X32; then
22648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22649 else
22650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22651 fi
22652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22653 ;;
22654 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022655 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022656 hardcode_into_libs=yes
22657 dynamic_linker="$host_os dld.sl"
22658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22664 ;;
22665 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022666 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022667 dynamic_linker="$host_os dld.sl"
22668 shlibpath_var=SHLIB_PATH
22669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 ;;
22673 esac
22674 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22675 postinstall_cmds='chmod 555 $lib'
22676 ;;
22677
Reid Spencera773bd52006-08-04 18:18:08 +000022678interix3*)
22679 version_type=linux
22680 need_lib_prefix=no
22681 need_version=no
22682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683 soname_spec='${libname}${release}${shared_ext}$major'
22684 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22685 shlibpath_var=LD_LIBRARY_PATH
22686 shlibpath_overrides_runpath=no
22687 hardcode_into_libs=yes
22688 ;;
22689
John Criswell47fdd832003-07-14 16:52:07 +000022690irix5* | irix6* | nonstopux*)
22691 case $host_os in
22692 nonstopux*) version_type=nonstopux ;;
22693 *)
22694 if test "$lt_cv_prog_gnu_ld" = yes; then
22695 version_type=linux
22696 else
22697 version_type=irix
22698 fi ;;
22699 esac
22700 need_lib_prefix=no
22701 need_version=no
22702 soname_spec='${libname}${release}${shared_ext}$major'
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22704 case $host_os in
22705 irix5* | nonstopux*)
22706 libsuff= shlibsuff=
22707 ;;
22708 *)
22709 case $LD in # libtool.m4 will add one of these switches to LD
22710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22711 libsuff= shlibsuff= libmagic=32-bit;;
22712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22713 libsuff=32 shlibsuff=N32 libmagic=N32;;
22714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22716 *) libsuff= shlibsuff= libmagic=never-match;;
22717 esac
22718 ;;
22719 esac
22720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22721 shlibpath_overrides_runpath=no
22722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22724 hardcode_into_libs=yes
22725 ;;
22726
22727# No shared lib support for Linux oldld, aout, or coff.
22728linux*oldld* | linux*aout* | linux*coff*)
22729 dynamic_linker=no
22730 ;;
22731
22732# This must be Linux ELF.
22733linux*)
22734 version_type=linux
22735 need_lib_prefix=no
22736 need_version=no
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 shlibpath_overrides_runpath=no
22742 # This implies no fast_install, which is unacceptable.
22743 # Some rework will be needed to allow for fast_install
22744 # before this can be enabled.
22745 hardcode_into_libs=yes
22746
Reid Spencer2706f8c2004-09-19 23:53:36 +000022747 # Append ld.so.conf contents to the search path
22748 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022749 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 +000022750 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22751 fi
22752
John Criswell47fdd832003-07-14 16:52:07 +000022753 # We used to test for /lib/ld.so.1 and disable shared libraries on
22754 # powerpc, because MkLinux only supported shared libraries with the
22755 # GNU dynamic linker. Since this was broken with cross compilers,
22756 # most powerpc-linux boxes support dynamic linking these days and
22757 # people can always --disable-shared, the test was removed, and we
22758 # assume the GNU/Linux dynamic linker is in use.
22759 dynamic_linker='GNU/Linux ld.so'
22760 ;;
22761
Reid Spencer2706f8c2004-09-19 23:53:36 +000022762knetbsd*-gnu)
22763 version_type=linux
22764 need_lib_prefix=no
22765 need_version=no
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 shlibpath_overrides_runpath=no
22770 hardcode_into_libs=yes
22771 dynamic_linker='GNU ld.so'
22772 ;;
22773
John Criswell47fdd832003-07-14 16:52:07 +000022774netbsd*)
22775 version_type=sunos
22776 need_lib_prefix=no
22777 need_version=no
22778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22781 dynamic_linker='NetBSD (a.out) ld.so'
22782 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022784 soname_spec='${libname}${release}${shared_ext}$major'
22785 dynamic_linker='NetBSD ld.elf_so'
22786 fi
22787 shlibpath_var=LD_LIBRARY_PATH
22788 shlibpath_overrides_runpath=yes
22789 hardcode_into_libs=yes
22790 ;;
22791
22792newsos6)
22793 version_type=linux
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=yes
22797 ;;
22798
Reid Spencer2706f8c2004-09-19 23:53:36 +000022799nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022800 version_type=linux
22801 need_lib_prefix=no
22802 need_version=no
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22804 soname_spec='${libname}${release}${shared_ext}$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 shlibpath_overrides_runpath=yes
22807 ;;
22808
22809openbsd*)
22810 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022811 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022812 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22814 case $host_os in
22815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22816 *) need_version=no ;;
22817 esac
John Criswell47fdd832003-07-14 16:52:07 +000022818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22820 shlibpath_var=LD_LIBRARY_PATH
22821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22822 case $host_os in
22823 openbsd2.[89] | openbsd2.[89].*)
22824 shlibpath_overrides_runpath=no
22825 ;;
22826 *)
22827 shlibpath_overrides_runpath=yes
22828 ;;
22829 esac
22830 else
22831 shlibpath_overrides_runpath=yes
22832 fi
22833 ;;
22834
22835os2*)
22836 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022837 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022838 need_lib_prefix=no
22839 library_names_spec='$libname${shared_ext} $libname.a'
22840 dynamic_linker='OS/2 ld.exe'
22841 shlibpath_var=LIBPATH
22842 ;;
22843
22844osf3* | osf4* | osf5*)
22845 version_type=osf
22846 need_lib_prefix=no
22847 need_version=no
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22853 ;;
22854
John Criswell47fdd832003-07-14 16:52:07 +000022855solaris*)
22856 version_type=linux
22857 need_lib_prefix=no
22858 need_version=no
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 shlibpath_overrides_runpath=yes
22863 hardcode_into_libs=yes
22864 # ldd complains unless libraries are executable
22865 postinstall_cmds='chmod +x $lib'
22866 ;;
22867
22868sunos4*)
22869 version_type=sunos
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=yes
22874 if test "$with_gnu_ld" = yes; then
22875 need_lib_prefix=no
22876 fi
22877 need_version=yes
22878 ;;
22879
Reid Spencera773bd52006-08-04 18:18:08 +000022880sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022881 version_type=linux
22882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22883 soname_spec='${libname}${release}${shared_ext}$major'
22884 shlibpath_var=LD_LIBRARY_PATH
22885 case $host_vendor in
22886 sni)
22887 shlibpath_overrides_runpath=no
22888 need_lib_prefix=no
22889 export_dynamic_flag_spec='${wl}-Blargedynsym'
22890 runpath_var=LD_RUN_PATH
22891 ;;
22892 siemens)
22893 need_lib_prefix=no
22894 ;;
22895 motorola)
22896 need_lib_prefix=no
22897 need_version=no
22898 shlibpath_overrides_runpath=no
22899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22900 ;;
22901 esac
22902 ;;
22903
22904sysv4*MP*)
22905 if test -d /usr/nec ;then
22906 version_type=linux
22907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22908 soname_spec='$libname${shared_ext}.$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 fi
22911 ;;
22912
Reid Spencera773bd52006-08-04 18:18:08 +000022913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22914 version_type=freebsd-elf
22915 need_lib_prefix=no
22916 need_version=no
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 hardcode_into_libs=yes
22921 if test "$with_gnu_ld" = yes; then
22922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22923 shlibpath_overrides_runpath=no
22924 else
22925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22926 shlibpath_overrides_runpath=yes
22927 case $host_os in
22928 sco3.2v5*)
22929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22930 ;;
22931 esac
22932 fi
22933 sys_lib_dlsearch_path_spec='/usr/lib'
22934 ;;
22935
John Criswell47fdd832003-07-14 16:52:07 +000022936uts4*)
22937 version_type=linux
22938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22939 soname_spec='${libname}${release}${shared_ext}$major'
22940 shlibpath_var=LD_LIBRARY_PATH
22941 ;;
22942
22943*)
22944 dynamic_linker=no
22945 ;;
22946esac
Reid Spencera773bd52006-08-04 18:18:08 +000022947{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22948echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022949test "$dynamic_linker" = no && can_build_shared=no
22950
Reid Spencera773bd52006-08-04 18:18:08 +000022951variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22952if test "$GCC" = yes; then
22953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22954fi
22955
22956{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22957echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022958hardcode_action_F77=
22959if test -n "$hardcode_libdir_flag_spec_F77" || \
22960 test -n "$runpath_var_F77" || \
22961 test "X$hardcode_automatic_F77" = "Xyes" ; then
22962
22963 # We can hardcode non-existant directories.
22964 if test "$hardcode_direct_F77" != no &&
22965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22966 # have to relink, otherwise we might link with an installed library
22967 # when we should be linking with a yet-to-be-installed one
22968 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22969 test "$hardcode_minus_L_F77" != no; then
22970 # Linking always hardcodes the temporary library directory.
22971 hardcode_action_F77=relink
22972 else
22973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22974 hardcode_action_F77=immediate
22975 fi
22976else
22977 # We cannot hardcode anything, or else we can only hardcode existing
22978 # directories.
22979 hardcode_action_F77=unsupported
22980fi
Reid Spencera773bd52006-08-04 18:18:08 +000022981{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22982echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983
22984if test "$hardcode_action_F77" = relink; then
22985 # Fast installation is not supported
22986 enable_fast_install=no
22987elif test "$shlibpath_overrides_runpath" = yes ||
22988 test "$enable_shared" = no; then
22989 # Fast installation is not necessary
22990 enable_fast_install=needless
22991fi
22992
John Criswell47fdd832003-07-14 16:52:07 +000022993
22994# The else clause should only fire when bootstrapping the
22995# libtool distribution, otherwise you forgot to ship ltmain.sh
22996# with your package, and you will get complaints that there are
22997# no rules to generate ltmain.sh.
22998if test -f "$ltmain"; then
22999 # See if we are running on zsh, and set the options which allow our commands through
23000 # without removal of \ escapes.
23001 if test -n "${ZSH_VERSION+set}" ; then
23002 setopt NO_GLOB_SUBST
23003 fi
23004 # Now quote all the things that may contain metacharacters while being
23005 # careful not to overquote the AC_SUBSTed values. We take copies of the
23006 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023007 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 +000023008 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023009 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23010 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23011 deplibs_check_method reload_flag reload_cmds need_locks \
23012 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23013 lt_cv_sys_global_symbol_to_c_name_address \
23014 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23015 old_postinstall_cmds old_postuninstall_cmds \
23016 compiler_F77 \
23017 CC_F77 \
23018 LD_F77 \
23019 lt_prog_compiler_wl_F77 \
23020 lt_prog_compiler_pic_F77 \
23021 lt_prog_compiler_static_F77 \
23022 lt_prog_compiler_no_builtin_flag_F77 \
23023 export_dynamic_flag_spec_F77 \
23024 thread_safe_flag_spec_F77 \
23025 whole_archive_flag_spec_F77 \
23026 enable_shared_with_static_runtimes_F77 \
23027 old_archive_cmds_F77 \
23028 old_archive_from_new_cmds_F77 \
23029 predep_objects_F77 \
23030 postdep_objects_F77 \
23031 predeps_F77 \
23032 postdeps_F77 \
23033 compiler_lib_search_path_F77 \
23034 archive_cmds_F77 \
23035 archive_expsym_cmds_F77 \
23036 postinstall_cmds_F77 \
23037 postuninstall_cmds_F77 \
23038 old_archive_from_expsyms_cmds_F77 \
23039 allow_undefined_flag_F77 \
23040 no_undefined_flag_F77 \
23041 export_symbols_cmds_F77 \
23042 hardcode_libdir_flag_spec_F77 \
23043 hardcode_libdir_flag_spec_ld_F77 \
23044 hardcode_libdir_separator_F77 \
23045 hardcode_automatic_F77 \
23046 module_cmds_F77 \
23047 module_expsym_cmds_F77 \
23048 lt_cv_prog_compiler_c_o_F77 \
23049 exclude_expsyms_F77 \
23050 include_expsyms_F77; do
23051
23052 case $var in
23053 old_archive_cmds_F77 | \
23054 old_archive_from_new_cmds_F77 | \
23055 archive_cmds_F77 | \
23056 archive_expsym_cmds_F77 | \
23057 module_cmds_F77 | \
23058 module_expsym_cmds_F77 | \
23059 old_archive_from_expsyms_cmds_F77 | \
23060 export_symbols_cmds_F77 | \
23061 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23062 postinstall_cmds | postuninstall_cmds | \
23063 old_postinstall_cmds | old_postuninstall_cmds | \
23064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23065 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023066 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 +000023067 ;;
23068 *)
23069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23070 ;;
23071 esac
23072 done
23073
23074 case $lt_echo in
23075 *'\$0 --fallback-echo"')
23076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23077 ;;
23078 esac
23079
23080cfgfile="$ofile"
23081
23082 cat <<__EOF__ >> "$cfgfile"
23083# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23084
23085# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23086
23087# Shell to use when invoking shell scripts.
23088SHELL=$lt_SHELL
23089
23090# Whether or not to build shared libraries.
23091build_libtool_libs=$enable_shared
23092
23093# Whether or not to build static libraries.
23094build_old_libs=$enable_static
23095
23096# Whether or not to add -lc for building shared libraries.
23097build_libtool_need_lc=$archive_cmds_need_lc_F77
23098
23099# Whether or not to disallow shared libs when runtime libs are static
23100allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23101
23102# Whether or not to optimize for fast installation.
23103fast_install=$enable_fast_install
23104
23105# The host system.
23106host_alias=$host_alias
23107host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023108host_os=$host_os
23109
23110# The build system.
23111build_alias=$build_alias
23112build=$build
23113build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023114
23115# An echo program that does not interpret backslashes.
23116echo=$lt_echo
23117
23118# The archiver.
23119AR=$lt_AR
23120AR_FLAGS=$lt_AR_FLAGS
23121
23122# A C compiler.
23123LTCC=$lt_LTCC
23124
Reid Spencera773bd52006-08-04 18:18:08 +000023125# LTCC compiler flags.
23126LTCFLAGS=$lt_LTCFLAGS
23127
John Criswell47fdd832003-07-14 16:52:07 +000023128# A language-specific compiler.
23129CC=$lt_compiler_F77
23130
23131# Is the compiler the GNU C compiler?
23132with_gcc=$GCC_F77
23133
23134# An ERE matcher.
23135EGREP=$lt_EGREP
23136
23137# The linker used to build libraries.
23138LD=$lt_LD_F77
23139
23140# Whether we need hard or soft links.
23141LN_S=$lt_LN_S
23142
23143# A BSD-compatible nm program.
23144NM=$lt_NM
23145
23146# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023147STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023148
23149# Used to examine libraries when file_magic_cmd begins "file"
23150MAGIC_CMD=$MAGIC_CMD
23151
23152# Used on cygwin: DLL creation program.
23153DLLTOOL="$DLLTOOL"
23154
23155# Used on cygwin: object dumper.
23156OBJDUMP="$OBJDUMP"
23157
23158# Used on cygwin: assembler.
23159AS="$AS"
23160
23161# The name of the directory that contains temporary libtool files.
23162objdir=$objdir
23163
23164# How to create reloadable object files.
23165reload_flag=$lt_reload_flag
23166reload_cmds=$lt_reload_cmds
23167
23168# How to pass a linker flag through the compiler.
23169wl=$lt_lt_prog_compiler_wl_F77
23170
23171# Object file suffix (normally "o").
23172objext="$ac_objext"
23173
23174# Old archive suffix (normally "a").
23175libext="$libext"
23176
23177# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023179
23180# Executable file suffix (normally "").
23181exeext="$exeext"
23182
23183# Additional compiler flags for building library objects.
23184pic_flag=$lt_lt_prog_compiler_pic_F77
23185pic_mode=$pic_mode
23186
23187# What is the maximum length of a command?
23188max_cmd_len=$lt_cv_sys_max_cmd_len
23189
23190# Does compiler simultaneously support -c and -o options?
23191compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23192
Reid Spencera773bd52006-08-04 18:18:08 +000023193# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023194need_locks=$lt_need_locks
23195
23196# Do we need the lib prefix for modules?
23197need_lib_prefix=$need_lib_prefix
23198
23199# Do we need a version for libraries?
23200need_version=$need_version
23201
23202# Whether dlopen is supported.
23203dlopen_support=$enable_dlopen
23204
23205# Whether dlopen of programs is supported.
23206dlopen_self=$enable_dlopen_self
23207
23208# Whether dlopen of statically linked programs is supported.
23209dlopen_self_static=$enable_dlopen_self_static
23210
23211# Compiler flag to prevent dynamic linking.
23212link_static_flag=$lt_lt_prog_compiler_static_F77
23213
23214# Compiler flag to turn off builtin functions.
23215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23216
23217# Compiler flag to allow reflexive dlopens.
23218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23219
23220# Compiler flag to generate shared objects directly from archives.
23221whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23222
23223# Compiler flag to generate thread-safe objects.
23224thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23225
23226# Library versioning type.
23227version_type=$version_type
23228
23229# Format of library name prefix.
23230libname_spec=$lt_libname_spec
23231
23232# List of archive names. First name is the real one, the rest are links.
23233# The last name is the one that the linker finds with -lNAME.
23234library_names_spec=$lt_library_names_spec
23235
23236# The coded name of the library, if different from the real name.
23237soname_spec=$lt_soname_spec
23238
23239# Commands used to build and install an old-style archive.
23240RANLIB=$lt_RANLIB
23241old_archive_cmds=$lt_old_archive_cmds_F77
23242old_postinstall_cmds=$lt_old_postinstall_cmds
23243old_postuninstall_cmds=$lt_old_postuninstall_cmds
23244
23245# Create an old-style archive from a shared archive.
23246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23247
23248# Create a temporary old-style archive to link instead of a shared archive.
23249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23250
23251# Commands used to build and install a shared archive.
23252archive_cmds=$lt_archive_cmds_F77
23253archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23254postinstall_cmds=$lt_postinstall_cmds
23255postuninstall_cmds=$lt_postuninstall_cmds
23256
23257# Commands used to build a loadable module (assumed same as above if empty)
23258module_cmds=$lt_module_cmds_F77
23259module_expsym_cmds=$lt_module_expsym_cmds_F77
23260
23261# Commands to strip libraries.
23262old_striplib=$lt_old_striplib
23263striplib=$lt_striplib
23264
23265# Dependencies to place before the objects being linked to create a
23266# shared library.
23267predep_objects=$lt_predep_objects_F77
23268
23269# Dependencies to place after the objects being linked to create a
23270# shared library.
23271postdep_objects=$lt_postdep_objects_F77
23272
23273# Dependencies to place before the objects being linked to create a
23274# shared library.
23275predeps=$lt_predeps_F77
23276
23277# Dependencies to place after the objects being linked to create a
23278# shared library.
23279postdeps=$lt_postdeps_F77
23280
23281# The library search path used internally by the compiler when linking
23282# a shared library.
23283compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23284
23285# Method to check whether dependent libraries are shared objects.
23286deplibs_check_method=$lt_deplibs_check_method
23287
23288# Command to use when deplibs_check_method == file_magic.
23289file_magic_cmd=$lt_file_magic_cmd
23290
23291# Flag that allows shared libraries with undefined symbols to be built.
23292allow_undefined_flag=$lt_allow_undefined_flag_F77
23293
23294# Flag that forces no undefined symbols.
23295no_undefined_flag=$lt_no_undefined_flag_F77
23296
23297# Commands used to finish a libtool library installation in a directory.
23298finish_cmds=$lt_finish_cmds
23299
23300# Same as above, but a single script fragment to be evaled but not shown.
23301finish_eval=$lt_finish_eval
23302
23303# Take the output of nm and produce a listing of raw symbols and C names.
23304global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23305
23306# Transform the output of nm in a proper C declaration
23307global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23308
23309# Transform the output of nm in a C name address pair
23310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23311
23312# This is the shared library runtime path variable.
23313runpath_var=$runpath_var
23314
23315# This is the shared library path variable.
23316shlibpath_var=$shlibpath_var
23317
23318# Is shlibpath searched before the hard-coded library search path?
23319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23320
23321# How to hardcode a shared library path into an executable.
23322hardcode_action=$hardcode_action_F77
23323
23324# Whether we should hardcode library paths into libraries.
23325hardcode_into_libs=$hardcode_into_libs
23326
23327# Flag to hardcode \$libdir into a binary during linking.
23328# This must work even if \$libdir does not exist.
23329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23330
23331# If ld is used when linking, flag to hardcode \$libdir into
23332# a binary during linking. This must work even if \$libdir does
23333# not exist.
23334hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23335
23336# Whether we need a single -rpath flag with a separated argument.
23337hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23338
23339# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23340# resulting binary.
23341hardcode_direct=$hardcode_direct_F77
23342
23343# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23344# resulting binary.
23345hardcode_minus_L=$hardcode_minus_L_F77
23346
23347# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23348# the resulting binary.
23349hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23350
23351# Set to yes if building a shared library automatically hardcodes DIR into the library
23352# and all subsequent libraries and executables linked against it.
23353hardcode_automatic=$hardcode_automatic_F77
23354
23355# Variables whose values should be saved in libtool wrapper scripts and
23356# restored at relink time.
23357variables_saved_for_relink="$variables_saved_for_relink"
23358
23359# Whether libtool must link a program against all its dependency libraries.
23360link_all_deplibs=$link_all_deplibs_F77
23361
23362# Compile-time system search path for libraries
23363sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23364
23365# Run-time system search path for libraries
23366sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23367
23368# Fix the shell variable \$srcfile for the compiler.
23369fix_srcfile_path="$fix_srcfile_path_F77"
23370
23371# Set to yes if exported symbols are required.
23372always_export_symbols=$always_export_symbols_F77
23373
23374# The commands to list exported symbols.
23375export_symbols_cmds=$lt_export_symbols_cmds_F77
23376
23377# The commands to extract the exported symbol list from a shared archive.
23378extract_expsyms_cmds=$lt_extract_expsyms_cmds
23379
23380# Symbols that should not be listed in the preloaded symbols.
23381exclude_expsyms=$lt_exclude_expsyms_F77
23382
23383# Symbols that must always be exported.
23384include_expsyms=$lt_include_expsyms_F77
23385
23386# ### END LIBTOOL TAG CONFIG: $tagname
23387
23388__EOF__
23389
23390
23391else
23392 # If there is no Makefile yet, we rely on a make rule to execute
23393 # `config.status --recheck' to rerun these tests and create the
23394 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23396 if test -f "$ltmain_in"; then
23397 test -f Makefile && make "$ltmain"
23398 fi
John Criswell47fdd832003-07-14 16:52:07 +000023399fi
23400
23401
23402ac_ext=c
23403ac_cpp='$CPP $CPPFLAGS'
23404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23406ac_compiler_gnu=$ac_cv_c_compiler_gnu
23407
23408CC="$lt_save_CC"
23409
23410 else
23411 tagname=""
23412 fi
23413 ;;
23414
23415 GCJ)
23416 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417 ac_ext=c
23418ac_cpp='$CPP $CPPFLAGS'
23419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023422
23423
23424# Source file extension for Java test sources.
23425ac_ext=java
23426
23427# Object file extension for compiled Java test sources.
23428objext=o
23429objext_GCJ=$objext
23430
23431# Code to be used in simple compile tests
23432lt_simple_compile_test_code="class foo {}\n"
23433
23434# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023435lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023436
23437# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23438
23439# If no C compiler was specified, use CC.
23440LTCC=${LTCC-"$CC"}
23441
Reid Spencera773bd52006-08-04 18:18:08 +000023442# If no C compiler flags were specified, use CFLAGS.
23443LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23444
John Criswell47fdd832003-07-14 16:52:07 +000023445# Allow CC to be a program name with arguments.
23446compiler=$CC
23447
23448
Reid Spencera773bd52006-08-04 18:18:08 +000023449# save warnings/boilerplate of simple test code
23450ac_outfile=conftest.$ac_objext
23451printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23453_lt_compiler_boilerplate=`cat conftest.err`
23454$rm conftest*
23455
23456ac_outfile=conftest.$ac_objext
23457printf "$lt_simple_link_test_code" >conftest.$ac_ext
23458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23459_lt_linker_boilerplate=`cat conftest.err`
23460$rm conftest*
23461
23462
John Criswell47fdd832003-07-14 16:52:07 +000023463# Allow CC to be a program name with arguments.
23464lt_save_CC="$CC"
23465CC=${GCJ-"gcj"}
23466compiler=$CC
23467compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023468for cc_temp in $compiler""; do
23469 case $cc_temp in
23470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23472 \-*) ;;
23473 *) break;;
23474 esac
23475done
23476cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23477
John Criswell47fdd832003-07-14 16:52:07 +000023478
23479# GCJ did not exist at the time GCC didn't implicitly link libc in.
23480archive_cmds_need_lc_GCJ=no
23481
Reid Spencera773bd52006-08-04 18:18:08 +000023482old_archive_cmds_GCJ=$old_archive_cmds
23483
John Criswell47fdd832003-07-14 16:52:07 +000023484
23485lt_prog_compiler_no_builtin_flag_GCJ=
23486
23487if test "$GCC" = yes; then
23488 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23489
Reid Spencer2706f8c2004-09-19 23:53:36 +000023490
Reid Spencera773bd52006-08-04 18:18:08 +000023491{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23492echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023493if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23495else
23496 lt_cv_prog_compiler_rtti_exceptions=no
23497 ac_outfile=conftest.$ac_objext
23498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23499 lt_compiler_flag="-fno-rtti -fno-exceptions"
23500 # Insert the option either (1) after the last *FLAGS variable, or
23501 # (2) before a word containing "conftest.", or (3) at the end.
23502 # Note that $ac_compile itself does not contain backslashes and begins
23503 # with a dollar sign (not a hyphen), so the echo should work correctly.
23504 # The option is referenced via a variable to avoid confusing sed.
23505 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23508 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000023509 (eval echo "\"\$as_me:23509: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023510 (eval "$lt_compile" 2>conftest.err)
23511 ac_status=$?
23512 cat conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000023513 echo "$as_me:23513: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023514 if (exit $ac_status) && test -s "$ac_outfile"; then
23515 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023516 # So say no if there are warnings other than the usual output.
23517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023520 lt_cv_prog_compiler_rtti_exceptions=yes
23521 fi
23522 fi
23523 $rm conftest*
23524
23525fi
Reid Spencera773bd52006-08-04 18:18:08 +000023526{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23527echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023528
23529if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23530 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23531else
23532 :
23533fi
23534
23535fi
23536
23537lt_prog_compiler_wl_GCJ=
23538lt_prog_compiler_pic_GCJ=
23539lt_prog_compiler_static_GCJ=
23540
Reid Spencera773bd52006-08-04 18:18:08 +000023541{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023543
23544 if test "$GCC" = yes; then
23545 lt_prog_compiler_wl_GCJ='-Wl,'
23546 lt_prog_compiler_static_GCJ='-static'
23547
23548 case $host_os in
23549 aix*)
23550 # All AIX code is PIC.
23551 if test "$host_cpu" = ia64; then
23552 # AIX 5 now supports IA64 processor
23553 lt_prog_compiler_static_GCJ='-Bstatic'
23554 fi
23555 ;;
23556
23557 amigaos*)
23558 # FIXME: we need at least 68020 code to build shared libraries, but
23559 # adding the `-m68020' flag to GCC prevents building anything better,
23560 # like `-m68040'.
23561 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23562 ;;
23563
23564 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23565 # PIC is the default for these OSes.
23566 ;;
23567
23568 mingw* | pw32* | os2*)
23569 # This hack is so that the source file can tell whether it is being
23570 # built for inclusion in a dll (and should export symbols for example).
23571 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23572 ;;
23573
23574 darwin* | rhapsody*)
23575 # PIC is the default on this platform
23576 # Common symbols not allowed in MH_DYLIB files
23577 lt_prog_compiler_pic_GCJ='-fno-common'
23578 ;;
23579
Reid Spencera773bd52006-08-04 18:18:08 +000023580 interix3*)
23581 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23582 # Instead, we relocate shared libraries at runtime.
23583 ;;
23584
John Criswell47fdd832003-07-14 16:52:07 +000023585 msdosdjgpp*)
23586 # Just because we use GCC doesn't mean we suddenly get shared libraries
23587 # on systems that don't support them.
23588 lt_prog_compiler_can_build_shared_GCJ=no
23589 enable_shared=no
23590 ;;
23591
23592 sysv4*MP*)
23593 if test -d /usr/nec; then
23594 lt_prog_compiler_pic_GCJ=-Kconform_pic
23595 fi
23596 ;;
23597
23598 hpux*)
23599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23600 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023601 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023602 hppa*64*|ia64*)
23603 # +Z the default
23604 ;;
23605 *)
23606 lt_prog_compiler_pic_GCJ='-fPIC'
23607 ;;
23608 esac
23609 ;;
23610
23611 *)
23612 lt_prog_compiler_pic_GCJ='-fPIC'
23613 ;;
23614 esac
23615 else
23616 # PORTME Check for flag to pass linker flags through the system compiler.
23617 case $host_os in
23618 aix*)
23619 lt_prog_compiler_wl_GCJ='-Wl,'
23620 if test "$host_cpu" = ia64; then
23621 # AIX 5 now supports IA64 processor
23622 lt_prog_compiler_static_GCJ='-Bstatic'
23623 else
23624 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23625 fi
23626 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023627 darwin*)
23628 # PIC is the default on this platform
23629 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023630 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023631 xlc*)
23632 lt_prog_compiler_pic_GCJ='-qnocommon'
23633 lt_prog_compiler_wl_GCJ='-Wl,'
23634 ;;
23635 esac
23636 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023637
23638 mingw* | pw32* | os2*)
23639 # This hack is so that the source file can tell whether it is being
23640 # built for inclusion in a dll (and should export symbols for example).
23641 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23642 ;;
23643
23644 hpux9* | hpux10* | hpux11*)
23645 lt_prog_compiler_wl_GCJ='-Wl,'
23646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23647 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023648 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023649 hppa*64*|ia64*)
23650 # +Z the default
23651 ;;
23652 *)
23653 lt_prog_compiler_pic_GCJ='+Z'
23654 ;;
23655 esac
23656 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23657 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23658 ;;
23659
23660 irix5* | irix6* | nonstopux*)
23661 lt_prog_compiler_wl_GCJ='-Wl,'
23662 # PIC (with -KPIC) is the default.
23663 lt_prog_compiler_static_GCJ='-non_shared'
23664 ;;
23665
23666 newsos6)
23667 lt_prog_compiler_pic_GCJ='-KPIC'
23668 lt_prog_compiler_static_GCJ='-Bstatic'
23669 ;;
23670
23671 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023672 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023673 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023674 lt_prog_compiler_wl_GCJ='-Wl,'
23675 lt_prog_compiler_pic_GCJ='-KPIC'
23676 lt_prog_compiler_static_GCJ='-static'
23677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023678 pgcc* | pgf77* | pgf90* | pgf95*)
23679 # Portland Group compilers (*not* the Pentium gcc compiler,
23680 # which looks to be a dead project)
23681 lt_prog_compiler_wl_GCJ='-Wl,'
23682 lt_prog_compiler_pic_GCJ='-fpic'
23683 lt_prog_compiler_static_GCJ='-Bstatic'
23684 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023685 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023686 lt_prog_compiler_wl_GCJ='-Wl,'
23687 # All Alpha code is PIC.
23688 lt_prog_compiler_static_GCJ='-non_shared'
23689 ;;
23690 esac
23691 ;;
23692
23693 osf3* | osf4* | osf5*)
23694 lt_prog_compiler_wl_GCJ='-Wl,'
23695 # All OSF/1 code is PIC.
23696 lt_prog_compiler_static_GCJ='-non_shared'
23697 ;;
23698
John Criswell47fdd832003-07-14 16:52:07 +000023699 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023700 lt_prog_compiler_pic_GCJ='-KPIC'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023702 case $cc_basename in
23703 f77* | f90* | f95*)
23704 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23705 *)
23706 lt_prog_compiler_wl_GCJ='-Wl,';;
23707 esac
John Criswell47fdd832003-07-14 16:52:07 +000023708 ;;
23709
23710 sunos4*)
23711 lt_prog_compiler_wl_GCJ='-Qoption ld '
23712 lt_prog_compiler_pic_GCJ='-PIC'
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23714 ;;
23715
Reid Spencera773bd52006-08-04 18:18:08 +000023716 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023717 lt_prog_compiler_wl_GCJ='-Wl,'
23718 lt_prog_compiler_pic_GCJ='-KPIC'
23719 lt_prog_compiler_static_GCJ='-Bstatic'
23720 ;;
23721
23722 sysv4*MP*)
23723 if test -d /usr/nec ;then
23724 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23725 lt_prog_compiler_static_GCJ='-Bstatic'
23726 fi
23727 ;;
23728
Reid Spencera773bd52006-08-04 18:18:08 +000023729 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23730 lt_prog_compiler_wl_GCJ='-Wl,'
23731 lt_prog_compiler_pic_GCJ='-KPIC'
23732 lt_prog_compiler_static_GCJ='-Bstatic'
23733 ;;
23734
23735 unicos*)
23736 lt_prog_compiler_wl_GCJ='-Wl,'
23737 lt_prog_compiler_can_build_shared_GCJ=no
23738 ;;
23739
John Criswell47fdd832003-07-14 16:52:07 +000023740 uts4*)
23741 lt_prog_compiler_pic_GCJ='-pic'
23742 lt_prog_compiler_static_GCJ='-Bstatic'
23743 ;;
23744
23745 *)
23746 lt_prog_compiler_can_build_shared_GCJ=no
23747 ;;
23748 esac
23749 fi
23750
Reid Spencera773bd52006-08-04 18:18:08 +000023751{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23752echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023753
23754#
23755# Check to make sure the PIC flag actually works.
23756#
23757if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023758
Reid Spencera773bd52006-08-04 18:18:08 +000023759{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23760echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023761if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23762 echo $ECHO_N "(cached) $ECHO_C" >&6
23763else
23764 lt_prog_compiler_pic_works_GCJ=no
23765 ac_outfile=conftest.$ac_objext
23766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23767 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23768 # Insert the option either (1) after the last *FLAGS variable, or
23769 # (2) before a word containing "conftest.", or (3) at the end.
23770 # Note that $ac_compile itself does not contain backslashes and begins
23771 # with a dollar sign (not a hyphen), so the echo should work correctly.
23772 # The option is referenced via a variable to avoid confusing sed.
23773 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23776 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000023777 (eval echo "\"\$as_me:23777: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023778 (eval "$lt_compile" 2>conftest.err)
23779 ac_status=$?
23780 cat conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000023781 echo "$as_me:23781: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023782 if (exit $ac_status) && test -s "$ac_outfile"; then
23783 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023784 # So say no if there are warnings other than the usual output.
23785 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023788 lt_prog_compiler_pic_works_GCJ=yes
23789 fi
23790 fi
23791 $rm conftest*
23792
23793fi
Reid Spencera773bd52006-08-04 18:18:08 +000023794{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23795echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023796
23797if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23798 case $lt_prog_compiler_pic_GCJ in
23799 "" | " "*) ;;
23800 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23801 esac
23802else
23803 lt_prog_compiler_pic_GCJ=
23804 lt_prog_compiler_can_build_shared_GCJ=no
23805fi
23806
23807fi
Reid Spencera773bd52006-08-04 18:18:08 +000023808case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023809 # For platforms which do not support PIC, -DPIC is meaningless:
23810 *djgpp*)
23811 lt_prog_compiler_pic_GCJ=
23812 ;;
23813 *)
23814 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23815 ;;
23816esac
23817
Reid Spencera773bd52006-08-04 18:18:08 +000023818#
23819# Check to make sure the static flag actually works.
23820#
23821wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23822{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23823echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23824if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23825 echo $ECHO_N "(cached) $ECHO_C" >&6
23826else
23827 lt_prog_compiler_static_works_GCJ=no
23828 save_LDFLAGS="$LDFLAGS"
23829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23830 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23832 # The linker can only warn and ignore the option if not recognized
23833 # So say no if there are warnings
23834 if test -s conftest.err; then
23835 # Append any errors to the config.log.
23836 cat conftest.err 1>&5
23837 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23839 if diff conftest.exp conftest.er2 >/dev/null; then
23840 lt_prog_compiler_static_works_GCJ=yes
23841 fi
23842 else
23843 lt_prog_compiler_static_works_GCJ=yes
23844 fi
23845 fi
23846 $rm conftest*
23847 LDFLAGS="$save_LDFLAGS"
23848
23849fi
23850{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23851echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23852
23853if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23854 :
23855else
23856 lt_prog_compiler_static_GCJ=
23857fi
23858
23859
23860{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23861echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023862if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23864else
23865 lt_cv_prog_compiler_c_o_GCJ=no
23866 $rm -r conftest 2>/dev/null
23867 mkdir conftest
23868 cd conftest
23869 mkdir out
23870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23871
John Criswell47fdd832003-07-14 16:52:07 +000023872 lt_compiler_flag="-o out/conftest2.$ac_objext"
23873 # Insert the option either (1) after the last *FLAGS variable, or
23874 # (2) before a word containing "conftest.", or (3) at the end.
23875 # Note that $ac_compile itself does not contain backslashes and begins
23876 # with a dollar sign (not a hyphen), so the echo should work correctly.
23877 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23880 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9b5b1822007-01-21 06:32:59 +000023881 (eval echo "\"\$as_me:23881: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023882 (eval "$lt_compile" 2>out/conftest.err)
23883 ac_status=$?
23884 cat out/conftest.err >&5
Reid Spencer9b5b1822007-01-21 06:32:59 +000023885 echo "$as_me:23885: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23887 then
23888 # The compiler can only warn and ignore the option if not recognized
23889 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023890 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023893 lt_cv_prog_compiler_c_o_GCJ=yes
23894 fi
23895 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023896 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023897 $rm conftest*
23898 # SGI C++ compiler will create directory out/ii_files/ for
23899 # template instantiation
23900 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23901 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023902 cd ..
23903 rmdir conftest
23904 $rm conftest*
23905
23906fi
Reid Spencera773bd52006-08-04 18:18:08 +000023907{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23908echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023909
23910
23911hard_links="nottested"
23912if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23913 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023914 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23915echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023916 hard_links=yes
23917 $rm conftest*
23918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23919 touch conftest.a
23920 ln conftest.a conftest.b 2>&5 || hard_links=no
23921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023922 { echo "$as_me:$LINENO: result: $hard_links" >&5
23923echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023924 if test "$hard_links" = no; then
23925 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23926echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23927 need_locks=warn
23928 fi
23929else
23930 need_locks=no
23931fi
23932
Reid Spencera773bd52006-08-04 18:18:08 +000023933{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23934echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023935
23936 runpath_var=
23937 allow_undefined_flag_GCJ=
23938 enable_shared_with_static_runtimes_GCJ=no
23939 archive_cmds_GCJ=
23940 archive_expsym_cmds_GCJ=
23941 old_archive_From_new_cmds_GCJ=
23942 old_archive_from_expsyms_cmds_GCJ=
23943 export_dynamic_flag_spec_GCJ=
23944 whole_archive_flag_spec_GCJ=
23945 thread_safe_flag_spec_GCJ=
23946 hardcode_libdir_flag_spec_GCJ=
23947 hardcode_libdir_flag_spec_ld_GCJ=
23948 hardcode_libdir_separator_GCJ=
23949 hardcode_direct_GCJ=no
23950 hardcode_minus_L_GCJ=no
23951 hardcode_shlibpath_var_GCJ=unsupported
23952 link_all_deplibs_GCJ=unknown
23953 hardcode_automatic_GCJ=no
23954 module_cmds_GCJ=
23955 module_expsym_cmds_GCJ=
23956 always_export_symbols_GCJ=no
23957 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23958 # include_expsyms should be a list of space-separated symbols to be *always*
23959 # included in the symbol list
23960 include_expsyms_GCJ=
23961 # exclude_expsyms can be an extended regexp of symbols to exclude
23962 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23963 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23964 # as well as any symbol that contains `d'.
23965 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23966 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23967 # platforms (ab)use it in PIC code, but their linkers get confused if
23968 # the symbol is explicitly referenced. Since portable code cannot
23969 # rely on this symbol name, it's probably fine to never include it in
23970 # preloaded symbol tables.
23971 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023972 # Just being paranoid about ensuring that cc_basename is set.
23973 for cc_temp in $compiler""; do
23974 case $cc_temp in
23975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23977 \-*) ;;
23978 *) break;;
23979 esac
23980done
23981cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023982
23983 case $host_os in
23984 cygwin* | mingw* | pw32*)
23985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23986 # When not using gcc, we currently assume that we are using
23987 # Microsoft Visual C++.
23988 if test "$GCC" != yes; then
23989 with_gnu_ld=no
23990 fi
23991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023992 interix*)
23993 # we just hope/assume this is gcc and not c89 (= MSVC++)
23994 with_gnu_ld=yes
23995 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023996 openbsd*)
23997 with_gnu_ld=no
23998 ;;
23999 esac
24000
24001 ld_shlibs_GCJ=yes
24002 if test "$with_gnu_ld" = yes; then
24003 # If archive_cmds runs LD, not CC, wlarc should be empty
24004 wlarc='${wl}'
24005
Reid Spencera773bd52006-08-04 18:18:08 +000024006 # Set some defaults for GNU ld with shared library support. These
24007 # are reset later if shared libraries are not supported. Putting them
24008 # here allows them to be overridden if necessary.
24009 runpath_var=LD_RUN_PATH
24010 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24011 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24012 # ancient GNU ld didn't support --whole-archive et. al.
24013 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24014 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24015 else
24016 whole_archive_flag_spec_GCJ=
24017 fi
24018 supports_anon_versioning=no
24019 case `$LD -v 2>/dev/null` in
24020 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24023 *\ 2.11.*) ;; # other 2.11 versions
24024 *) supports_anon_versioning=yes ;;
24025 esac
24026
John Criswell47fdd832003-07-14 16:52:07 +000024027 # See if GNU ld supports shared libraries.
24028 case $host_os in
24029 aix3* | aix4* | aix5*)
24030 # On AIX/PPC, the GNU linker is very broken
24031 if test "$host_cpu" != ia64; then
24032 ld_shlibs_GCJ=no
24033 cat <<EOF 1>&2
24034
24035*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24036*** to be unable to reliably create shared libraries on AIX.
24037*** Therefore, libtool is disabling shared libraries support. If you
24038*** really care for shared libraries, you may want to modify your PATH
24039*** so that a non-GNU linker is found, and then restart.
24040
24041EOF
24042 fi
24043 ;;
24044
24045 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024046 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 +000024047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24048 hardcode_minus_L_GCJ=yes
24049
24050 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24051 # that the semantics of dynamic libraries on AmigaOS, at least up
24052 # to version 4, is to share data among multiple programs linked
24053 # with the same dynamic library. Since this doesn't match the
24054 # behavior of shared libraries on other platforms, we can't use
24055 # them.
24056 ld_shlibs_GCJ=no
24057 ;;
24058
24059 beos*)
24060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24061 allow_undefined_flag_GCJ=unsupported
24062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24063 # support --undefined. This deserves some investigation. FIXME
24064 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24065 else
24066 ld_shlibs_GCJ=no
24067 fi
24068 ;;
24069
24070 cygwin* | mingw* | pw32*)
24071 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24072 # as there is no search path for DLLs.
24073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24074 allow_undefined_flag_GCJ=unsupported
24075 always_export_symbols_GCJ=no
24076 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024077 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 +000024078
24079 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024080 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 +000024081 # If the export-symbols file already is a .def file (1st line
24082 # is EXPORTS), use it as is; otherwise, prepend...
24083 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24084 cp $export_symbols $output_objdir/$soname.def;
24085 else
24086 echo EXPORTS > $output_objdir/$soname.def;
24087 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024088 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024089 $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 +000024090 else
Reid Spencera773bd52006-08-04 18:18:08 +000024091 ld_shlibs_GCJ=no
24092 fi
24093 ;;
24094
24095 interix3*)
24096 hardcode_direct_GCJ=no
24097 hardcode_shlibpath_var_GCJ=no
24098 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24099 export_dynamic_flag_spec_GCJ='${wl}-E'
24100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24101 # Instead, shared libraries are loaded at an image base (0x10000000 by
24102 # default) and relocated if they conflict, which is a slow very memory
24103 # consuming and fragmenting process. To avoid this, we pick a random,
24104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24106 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'
24107 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'
24108 ;;
24109
24110 linux*)
24111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24112 tmp_addflag=
24113 case $cc_basename,$host_cpu in
24114 pgcc*) # Portland Group C compiler
24115 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'
24116 tmp_addflag=' $pic_flag'
24117 ;;
24118 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24119 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'
24120 tmp_addflag=' $pic_flag -Mnomain' ;;
24121 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24122 tmp_addflag=' -i_dynamic' ;;
24123 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24124 tmp_addflag=' -i_dynamic -nofor_main' ;;
24125 ifc* | ifort*) # Intel Fortran compiler
24126 tmp_addflag=' -nofor_main' ;;
24127 esac
24128 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24129
24130 if test $supports_anon_versioning = yes; then
24131 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24133 $echo "local: *; };" >> $output_objdir/$libname.ver~
24134 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24135 fi
24136 else
24137 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024138 fi
24139 ;;
24140
24141 netbsd*)
24142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24143 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24144 wlarc=
24145 else
24146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24148 fi
24149 ;;
24150
Reid Spencera773bd52006-08-04 18:18:08 +000024151 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24153 ld_shlibs_GCJ=no
24154 cat <<EOF 1>&2
24155
24156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24157*** create shared libraries on Solaris systems. Therefore, libtool
24158*** is disabling shared libraries support. We urge you to upgrade GNU
24159*** binutils to release 2.9.1 or newer. Another option is to modify
24160*** your PATH or compiler configuration so that the native linker is
24161*** used, and then restart.
24162
24163EOF
24164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24167 else
24168 ld_shlibs_GCJ=no
24169 fi
24170 ;;
24171
Reid Spencera773bd52006-08-04 18:18:08 +000024172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24173 case `$LD -v 2>&1` in
24174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24175 ld_shlibs_GCJ=no
24176 cat <<_LT_EOF 1>&2
24177
24178*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24179*** reliably create shared libraries on SCO systems. Therefore, libtool
24180*** is disabling shared libraries support. We urge you to upgrade GNU
24181*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24182*** your PATH or compiler configuration so that the native linker is
24183*** used, and then restart.
24184
24185_LT_EOF
24186 ;;
24187 *)
24188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24189 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24190 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24191 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24192 else
24193 ld_shlibs_GCJ=no
24194 fi
24195 ;;
24196 esac
24197 ;;
24198
John Criswell47fdd832003-07-14 16:52:07 +000024199 sunos4*)
24200 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24201 wlarc=
24202 hardcode_direct_GCJ=yes
24203 hardcode_shlibpath_var_GCJ=no
24204 ;;
24205
24206 *)
24207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24209 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24210 else
24211 ld_shlibs_GCJ=no
24212 fi
24213 ;;
24214 esac
24215
Reid Spencera773bd52006-08-04 18:18:08 +000024216 if test "$ld_shlibs_GCJ" = no; then
24217 runpath_var=
24218 hardcode_libdir_flag_spec_GCJ=
24219 export_dynamic_flag_spec_GCJ=
24220 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024221 fi
24222 else
24223 # PORTME fill in a description of your system's linker (not GNU ld)
24224 case $host_os in
24225 aix3*)
24226 allow_undefined_flag_GCJ=unsupported
24227 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024228 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 +000024229 # Note: this linker hardcodes the directories in LIBPATH if there
24230 # are no directories specified by -L.
24231 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024232 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024233 # Neither direct hardcoding nor static linking is supported with a
24234 # broken collect2.
24235 hardcode_direct_GCJ=unsupported
24236 fi
24237 ;;
24238
24239 aix4* | aix5*)
24240 if test "$host_cpu" = ia64; then
24241 # On IA64, the linker does run time linking by default, so we don't
24242 # have to do anything special.
24243 aix_use_runtimelinking=no
24244 exp_sym_flag='-Bexport'
24245 no_entry_flag=""
24246 else
24247 # If we're using GNU nm, then we don't want the "-C" option.
24248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24249 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24250 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'
24251 else
24252 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'
24253 fi
24254 aix_use_runtimelinking=no
24255
24256 # Test if we are trying to use run time linking or normal
24257 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24258 # need to do runtime linking.
24259 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24260 for ld_flag in $LDFLAGS; do
24261 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24262 aix_use_runtimelinking=yes
24263 break
24264 fi
24265 done
Reid Spencera773bd52006-08-04 18:18:08 +000024266 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024267 esac
24268
24269 exp_sym_flag='-bexport'
24270 no_entry_flag='-bnoentry'
24271 fi
24272
24273 # When large executables or shared objects are built, AIX ld can
24274 # have problems creating the table of contents. If linking a library
24275 # or program results in "error TOC overflow" add -mminimal-toc to
24276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24278
24279 archive_cmds_GCJ=''
24280 hardcode_direct_GCJ=yes
24281 hardcode_libdir_separator_GCJ=':'
24282 link_all_deplibs_GCJ=yes
24283
24284 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024285 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024286 # We only want to do this on AIX 4.2 and lower, the check
24287 # below for broken collect2 doesn't work under 4.3+
24288 collect2name=`${CC} -print-prog-name=collect2`
24289 if test -f "$collect2name" && \
24290 strings "$collect2name" | grep resolve_lib_name >/dev/null
24291 then
24292 # We have reworked collect2
24293 hardcode_direct_GCJ=yes
24294 else
24295 # We have old collect2
24296 hardcode_direct_GCJ=unsupported
24297 # It fails to find uninstalled libraries when the uninstalled
24298 # path is not listed in the libpath. Setting hardcode_minus_L
24299 # to unsupported forces relinking
24300 hardcode_minus_L_GCJ=yes
24301 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24302 hardcode_libdir_separator_GCJ=
24303 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024304 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024305 esac
24306 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024307 if test "$aix_use_runtimelinking" = yes; then
24308 shared_flag="$shared_flag "'${wl}-G'
24309 fi
John Criswell47fdd832003-07-14 16:52:07 +000024310 else
24311 # not using gcc
24312 if test "$host_cpu" = ia64; then
24313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24314 # chokes on -Wl,-G. The following line is correct:
24315 shared_flag='-G'
24316 else
Reid Spencera773bd52006-08-04 18:18:08 +000024317 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024318 shared_flag='${wl}-G'
24319 else
24320 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024321 fi
John Criswell47fdd832003-07-14 16:52:07 +000024322 fi
24323 fi
24324
24325 # It seems that -bexpall does not export symbols beginning with
24326 # underscore (_), so it is better to generate a list of symbols to export.
24327 always_export_symbols_GCJ=yes
24328 if test "$aix_use_runtimelinking" = yes; then
24329 # Warning - without using the other runtime loading flags (-brtl),
24330 # -berok will link without error, but may produce a broken library.
24331 allow_undefined_flag_GCJ='-berok'
24332 # Determine the default libpath from the value encoded in an empty executable.
24333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024334/* confdefs.h. */
24335_ACEOF
24336cat confdefs.h >>conftest.$ac_ext
24337cat >>conftest.$ac_ext <<_ACEOF
24338/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024339
John Criswell47fdd832003-07-14 16:52:07 +000024340int
24341main ()
24342{
24343
24344 ;
24345 return 0;
24346}
24347_ACEOF
24348rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024349if { (ac_try="$ac_link"
24350case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24353esac
24354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
24359 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24363 { (case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24366esac
24367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; } &&
24372 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024373 { (case "(($ac_try" in
24374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375 *) ac_try_echo=$ac_try;;
24376esac
24377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024379 ac_status=$?
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); }; }; then
24382
24383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24384}'`
24385# Check for a 64-bit object if we didn't find anything.
24386if 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; }
24387}'`; fi
24388else
24389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024390sed 's/^/| /' conftest.$ac_ext >&5
24391
Reid Spencera773bd52006-08-04 18:18:08 +000024392
John Criswell47fdd832003-07-14 16:52:07 +000024393fi
Reid Spencera773bd52006-08-04 18:18:08 +000024394
24395rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024396 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24398
24399 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024400 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 +000024401 else
24402 if test "$host_cpu" = ia64; then
24403 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24404 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024405 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 +000024406 else
24407 # Determine the default libpath from the value encoded in an empty executable.
24408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024409/* confdefs.h. */
24410_ACEOF
24411cat confdefs.h >>conftest.$ac_ext
24412cat >>conftest.$ac_ext <<_ACEOF
24413/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024414
John Criswell47fdd832003-07-14 16:52:07 +000024415int
24416main ()
24417{
24418
24419 ;
24420 return 0;
24421}
24422_ACEOF
24423rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024424if { (ac_try="$ac_link"
24425case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24428esac
24429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024432 grep -v '^ *+' conftest.er1 >conftest.err
24433 rm -f conftest.er1
24434 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24438 { (case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24441esac
24442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; } &&
24447 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024448 { (case "(($ac_try" in
24449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450 *) ac_try_echo=$ac_try;;
24451esac
24452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; }; then
24457
24458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24459}'`
24460# Check for a 64-bit object if we didn't find anything.
24461if 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; }
24462}'`; fi
24463else
24464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024465sed 's/^/| /' conftest.$ac_ext >&5
24466
Reid Spencera773bd52006-08-04 18:18:08 +000024467
John Criswell47fdd832003-07-14 16:52:07 +000024468fi
Reid Spencera773bd52006-08-04 18:18:08 +000024469
24470rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024471 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24473
24474 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24475 # Warning - without using the other run time loading flags,
24476 # -berok will link without error, but may produce a broken library.
24477 no_undefined_flag_GCJ=' ${wl}-bernotok'
24478 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024479 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024480 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024481 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024482 # This is similar to how AIX traditionally builds its shared libraries.
24483 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 +000024484 fi
24485 fi
24486 ;;
24487
24488 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024489 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 +000024490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24491 hardcode_minus_L_GCJ=yes
24492 # see comment about different semantics on the GNU ld section
24493 ld_shlibs_GCJ=no
24494 ;;
24495
Reid Spencer2706f8c2004-09-19 23:53:36 +000024496 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024497 export_dynamic_flag_spec_GCJ=-rdynamic
24498 ;;
24499
24500 cygwin* | mingw* | pw32*)
24501 # When not using gcc, we currently assume that we are using
24502 # Microsoft Visual C++.
24503 # hardcode_libdir_flag_spec is actually meaningless, as there is
24504 # no search path for DLLs.
24505 hardcode_libdir_flag_spec_GCJ=' '
24506 allow_undefined_flag_GCJ=unsupported
24507 # Tell ltmain to make .lib files, not .a files.
24508 libext=lib
24509 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024510 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024511 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024512 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 +000024513 # The linker will automatically build a .lib file if we build a DLL.
24514 old_archive_From_new_cmds_GCJ='true'
24515 # FIXME: Should let the user specify the lib program.
24516 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024517 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024518 enable_shared_with_static_runtimes_GCJ=yes
24519 ;;
24520
24521 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024522 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024523 rhapsody* | darwin1.[012])
24524 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24525 ;;
24526 *) # Darwin 1.3 on
24527 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24528 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24529 else
24530 case ${MACOSX_DEPLOYMENT_TARGET} in
24531 10.[012])
24532 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24533 ;;
24534 10.*)
24535 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24536 ;;
24537 esac
24538 fi
24539 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024540 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024541 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024542 hardcode_direct_GCJ=no
24543 hardcode_automatic_GCJ=yes
24544 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024545 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024546 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024547 if test "$GCC" = yes ; then
24548 output_verbose_link_cmd='echo'
24549 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24550 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024551 # 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 +000024552 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}'
24553 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 +000024554 else
Reid Spencera773bd52006-08-04 18:18:08 +000024555 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024556 xlc*)
24557 output_verbose_link_cmd='echo'
24558 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24559 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024560 # 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 +000024561 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}'
24562 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 +000024563 ;;
24564 *)
24565 ld_shlibs_GCJ=no
24566 ;;
24567 esac
John Criswell47fdd832003-07-14 16:52:07 +000024568 fi
24569 ;;
24570
24571 dgux*)
24572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24573 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24574 hardcode_shlibpath_var_GCJ=no
24575 ;;
24576
24577 freebsd1*)
24578 ld_shlibs_GCJ=no
24579 ;;
24580
24581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24582 # support. Future versions do this automatically, but an explicit c++rt0.o
24583 # does not break anything, and helps significantly (at the cost of a little
24584 # extra space).
24585 freebsd2.2*)
24586 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24587 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24588 hardcode_direct_GCJ=yes
24589 hardcode_shlibpath_var_GCJ=no
24590 ;;
24591
24592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24593 freebsd2*)
24594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24595 hardcode_direct_GCJ=yes
24596 hardcode_minus_L_GCJ=yes
24597 hardcode_shlibpath_var_GCJ=no
24598 ;;
24599
24600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024601 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024602 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24603 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24604 hardcode_direct_GCJ=yes
24605 hardcode_shlibpath_var_GCJ=no
24606 ;;
24607
24608 hpux9*)
24609 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024610 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 +000024611 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024612 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 +000024613 fi
24614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24615 hardcode_libdir_separator_GCJ=:
24616 hardcode_direct_GCJ=yes
24617
24618 # hardcode_minus_L: Not really in the search PATH,
24619 # but as the default location of the library.
24620 hardcode_minus_L_GCJ=yes
24621 export_dynamic_flag_spec_GCJ='${wl}-E'
24622 ;;
24623
Reid Spencera773bd52006-08-04 18:18:08 +000024624 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024626 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24627 else
24628 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24629 fi
24630 if test "$with_gnu_ld" = no; then
24631 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24632 hardcode_libdir_separator_GCJ=:
24633
24634 hardcode_direct_GCJ=yes
24635 export_dynamic_flag_spec_GCJ='${wl}-E'
24636
24637 # hardcode_minus_L: Not really in the search PATH,
24638 # but as the default location of the library.
24639 hardcode_minus_L_GCJ=yes
24640 fi
24641 ;;
24642
24643 hpux11*)
24644 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24645 case $host_cpu in
24646 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024647 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024649 ia64*)
24650 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24651 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024652 *)
24653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24654 ;;
24655 esac
24656 else
Reid Spencera773bd52006-08-04 18:18:08 +000024657 case $host_cpu in
24658 hppa*64*)
24659 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24660 ;;
24661 ia64*)
24662 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024663 ;;
24664 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024665 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 +000024666 ;;
24667 esac
24668 fi
24669 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024670 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24671 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024672
Reid Spencera773bd52006-08-04 18:18:08 +000024673 case $host_cpu in
24674 hppa*64*|ia64*)
24675 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24676 hardcode_direct_GCJ=no
24677 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024678 ;;
24679 *)
John Criswell47fdd832003-07-14 16:52:07 +000024680 hardcode_direct_GCJ=yes
24681 export_dynamic_flag_spec_GCJ='${wl}-E'
24682
24683 # hardcode_minus_L: Not really in the search PATH,
24684 # but as the default location of the library.
24685 hardcode_minus_L_GCJ=yes
24686 ;;
24687 esac
24688 fi
24689 ;;
24690
24691 irix5* | irix6* | nonstopux*)
24692 if test "$GCC" = yes; then
24693 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'
24694 else
24695 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'
24696 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24697 fi
24698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24699 hardcode_libdir_separator_GCJ=:
24700 link_all_deplibs_GCJ=yes
24701 ;;
24702
24703 netbsd*)
24704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24706 else
24707 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24708 fi
24709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24710 hardcode_direct_GCJ=yes
24711 hardcode_shlibpath_var_GCJ=no
24712 ;;
24713
24714 newsos6)
24715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24716 hardcode_direct_GCJ=yes
24717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24718 hardcode_libdir_separator_GCJ=:
24719 hardcode_shlibpath_var_GCJ=no
24720 ;;
24721
24722 openbsd*)
24723 hardcode_direct_GCJ=yes
24724 hardcode_shlibpath_var_GCJ=no
24725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24726 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024727 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 +000024728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24729 export_dynamic_flag_spec_GCJ='${wl}-E'
24730 else
24731 case $host_os in
24732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24735 ;;
24736 *)
24737 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24739 ;;
24740 esac
24741 fi
24742 ;;
24743
24744 os2*)
24745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24746 hardcode_minus_L_GCJ=yes
24747 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024748 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 +000024749 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24750 ;;
24751
24752 osf3*)
24753 if test "$GCC" = yes; then
24754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24755 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'
24756 else
24757 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24758 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'
24759 fi
24760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24761 hardcode_libdir_separator_GCJ=:
24762 ;;
24763
24764 osf4* | osf5*) # as osf3* with the addition of -msym flag
24765 if test "$GCC" = yes; then
24766 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24767 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'
24768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24769 else
24770 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24771 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 +000024772 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 +000024773 $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 +000024774
John Criswell47fdd832003-07-14 16:52:07 +000024775 # Both c and cxx compiler support -rpath directly
24776 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24777 fi
24778 hardcode_libdir_separator_GCJ=:
24779 ;;
24780
John Criswell47fdd832003-07-14 16:52:07 +000024781 solaris*)
24782 no_undefined_flag_GCJ=' -z text'
24783 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024784 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024785 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024786 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24787 $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 +000024788 else
Reid Spencera773bd52006-08-04 18:18:08 +000024789 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024790 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24792 $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 +000024793 fi
24794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24795 hardcode_shlibpath_var_GCJ=no
24796 case $host_os in
24797 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024798 *)
24799 # The compiler driver will combine linker options so we
24800 # cannot just pass the convience library names through
24801 # without $wl, iff we do not link with $LD.
24802 # Luckily, gcc supports the same syntax we need for Sun Studio.
24803 # Supported since Solaris 2.6 (maybe 2.5.1?)
24804 case $wlarc in
24805 '')
24806 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24807 *)
24808 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' ;;
24809 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024810 esac
24811 link_all_deplibs_GCJ=yes
24812 ;;
24813
24814 sunos4*)
24815 if test "x$host_vendor" = xsequent; then
24816 # Use $CC to link under sequent, because it throws in some extra .o
24817 # files that make .init and .fini sections work.
24818 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24819 else
24820 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24821 fi
24822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24823 hardcode_direct_GCJ=yes
24824 hardcode_minus_L_GCJ=yes
24825 hardcode_shlibpath_var_GCJ=no
24826 ;;
24827
24828 sysv4)
24829 case $host_vendor in
24830 sni)
24831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24832 hardcode_direct_GCJ=yes # is this really true???
24833 ;;
24834 siemens)
24835 ## LD is ld it makes a PLAMLIB
24836 ## CC just makes a GrossModule.
24837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24838 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24839 hardcode_direct_GCJ=no
24840 ;;
24841 motorola)
24842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24843 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24844 ;;
24845 esac
24846 runpath_var='LD_RUN_PATH'
24847 hardcode_shlibpath_var_GCJ=no
24848 ;;
24849
24850 sysv4.3*)
24851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24852 hardcode_shlibpath_var_GCJ=no
24853 export_dynamic_flag_spec_GCJ='-Bexport'
24854 ;;
24855
24856 sysv4*MP*)
24857 if test -d /usr/nec; then
24858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24859 hardcode_shlibpath_var_GCJ=no
24860 runpath_var=LD_RUN_PATH
24861 hardcode_runpath_var=yes
24862 ld_shlibs_GCJ=yes
24863 fi
24864 ;;
24865
Reid Spencera773bd52006-08-04 18:18:08 +000024866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24867 no_undefined_flag_GCJ='${wl}-z,text'
24868 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024869 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024870 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024871
John Criswell47fdd832003-07-14 16:52:07 +000024872 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024873 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24874 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 +000024875 else
Reid Spencera773bd52006-08-04 18:18:08 +000024876 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24877 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 +000024878 fi
John Criswell47fdd832003-07-14 16:52:07 +000024879 ;;
24880
Reid Spencera773bd52006-08-04 18:18:08 +000024881 sysv5* | sco3.2v5* | sco5v6*)
24882 # Note: We can NOT use -z defs as we might desire, because we do not
24883 # link with -lc, and that would cause any symbols used from libc to
24884 # always be unresolved, which means just about no library would
24885 # ever link correctly. If we're not using GNU ld we use -z text
24886 # though, which does catch some bad symbols but isn't as heavy-handed
24887 # as -z defs.
24888 no_undefined_flag_GCJ='${wl}-z,text'
24889 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24890 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024891 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024892 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24893 hardcode_libdir_separator_GCJ=':'
24894 link_all_deplibs_GCJ=yes
24895 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024896 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024897
24898 if test "$GCC" = yes; then
24899 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24900 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 else
24902 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24903 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 fi
John Criswell47fdd832003-07-14 16:52:07 +000024905 ;;
24906
24907 uts4*)
24908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24910 hardcode_shlibpath_var_GCJ=no
24911 ;;
24912
24913 *)
24914 ld_shlibs_GCJ=no
24915 ;;
24916 esac
24917 fi
24918
Reid Spencera773bd52006-08-04 18:18:08 +000024919{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24920echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024921test "$ld_shlibs_GCJ" = no && can_build_shared=no
24922
John Criswell47fdd832003-07-14 16:52:07 +000024923#
24924# Do we need to explicitly link libc?
24925#
24926case "x$archive_cmds_need_lc_GCJ" in
24927x|xyes)
24928 # Assume -lc should be added
24929 archive_cmds_need_lc_GCJ=yes
24930
24931 if test "$enable_shared" = yes && test "$GCC" = yes; then
24932 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024933 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024934 # FIXME: we may have to deal with multi-command sequences.
24935 ;;
24936 '$CC '*)
24937 # Test whether the compiler implicitly links with -lc since on some
24938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24939 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24941echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024942 $rm conftest*
24943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24944
24945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24946 (eval $ac_compile) 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } 2>conftest.err; then
24950 soname=conftest
24951 lib=conftest
24952 libobjs=conftest.$ac_objext
24953 deplibs=
24954 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024955 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024956 compiler_flags=-v
24957 linker_flags=-v
24958 verstring=
24959 output_objdir=.
24960 libname=conftest
24961 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24962 allow_undefined_flag_GCJ=
24963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24964 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24965 ac_status=$?
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); }
24968 then
24969 archive_cmds_need_lc_GCJ=no
24970 else
24971 archive_cmds_need_lc_GCJ=yes
24972 fi
24973 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24974 else
24975 cat conftest.err 1>&5
24976 fi
24977 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24979echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024980 ;;
24981 esac
24982 fi
24983 ;;
24984esac
24985
Reid Spencera773bd52006-08-04 18:18:08 +000024986{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24987echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024988library_names_spec=
24989libname_spec='lib$name'
24990soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024991shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024992postinstall_cmds=
24993postuninstall_cmds=
24994finish_cmds=
24995finish_eval=
24996shlibpath_var=
24997shlibpath_overrides_runpath=unknown
24998version_type=none
24999dynamic_linker="$host_os ld.so"
25000sys_lib_dlsearch_path_spec="/lib /usr/lib"
25001if test "$GCC" = yes; then
25002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25003 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25004 # if the path contains ";" then we assume it to be the separator
25005 # otherwise default to the standard path separator (i.e. ":") - it is
25006 # assumed that no part of a normal pathname contains ";" but that should
25007 # okay in the real world where ";" in dirpaths is itself problematic.
25008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25009 else
25010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25011 fi
25012else
25013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25014fi
25015need_lib_prefix=unknown
25016hardcode_into_libs=no
25017
25018# when you set need_version to no, make sure it does not cause -set_version
25019# flags to be left without arguments
25020need_version=unknown
25021
25022case $host_os in
25023aix3*)
25024 version_type=linux
25025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25026 shlibpath_var=LIBPATH
25027
25028 # AIX 3 has no versioning support, so we append a major version to the name.
25029 soname_spec='${libname}${release}${shared_ext}$major'
25030 ;;
25031
25032aix4* | aix5*)
25033 version_type=linux
25034 need_lib_prefix=no
25035 need_version=no
25036 hardcode_into_libs=yes
25037 if test "$host_cpu" = ia64; then
25038 # AIX 5 supports IA64
25039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25040 shlibpath_var=LD_LIBRARY_PATH
25041 else
25042 # With GCC up to 2.95.x, collect2 would create an import file
25043 # for dependence libraries. The import file would start with
25044 # the line `#! .'. This would cause the generated library to
25045 # depend on `.', always an invalid library. This was fixed in
25046 # development snapshots of GCC prior to 3.0.
25047 case $host_os in
25048 aix4 | aix4.[01] | aix4.[01].*)
25049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25050 echo ' yes '
25051 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25052 :
25053 else
25054 can_build_shared=no
25055 fi
25056 ;;
25057 esac
25058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25059 # soname into executable. Probably we can add versioning support to
25060 # collect2, so additional links can be useful in future.
25061 if test "$aix_use_runtimelinking" = yes; then
25062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25063 # instead of lib<name>.a to let people know that these are not
25064 # typical AIX shared libraries.
25065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25066 else
25067 # We preserve .a as extension for shared libraries through AIX4.2
25068 # and later when we are not doing run time linking.
25069 library_names_spec='${libname}${release}.a $libname.a'
25070 soname_spec='${libname}${release}${shared_ext}$major'
25071 fi
25072 shlibpath_var=LIBPATH
25073 fi
25074 ;;
25075
25076amigaos*)
25077 library_names_spec='$libname.ixlibrary $libname.a'
25078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025079 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 +000025080 ;;
25081
25082beos*)
25083 library_names_spec='${libname}${shared_ext}'
25084 dynamic_linker="$host_os ld.so"
25085 shlibpath_var=LIBRARY_PATH
25086 ;;
25087
Reid Spencer2706f8c2004-09-19 23:53:36 +000025088bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025089 version_type=linux
25090 need_version=no
25091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25092 soname_spec='${libname}${release}${shared_ext}$major'
25093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25094 shlibpath_var=LD_LIBRARY_PATH
25095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25097 # the default ld.so.conf also contains /usr/contrib/lib and
25098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25099 # libtool to hard-code these into programs
25100 ;;
25101
25102cygwin* | mingw* | pw32*)
25103 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025104 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025105 need_version=no
25106 need_lib_prefix=no
25107
25108 case $GCC,$host_os in
25109 yes,cygwin* | yes,mingw* | yes,pw32*)
25110 library_names_spec='$libname.dll.a'
25111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025112 postinstall_cmds='base_file=`basename \${file}`~
25113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25114 dldir=$destdir/`dirname \$dlpath`~
25115 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025116 $install_prog $dir/$dlname \$dldir/$dlname~
25117 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25119 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025120 $rm \$dlpath'
25121 shlibpath_overrides_runpath=yes
25122
25123 case $host_os in
25124 cygwin*)
25125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25126 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 +000025127 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025128 ;;
25129 mingw*)
25130 # MinGW DLLs use traditional 'lib' prefix
25131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25133 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25134 # It is most probably a Windows format PATH printed by
25135 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25136 # path with ; separators, and with drive letters. We can handle the
25137 # drive letters (cygwin fileutils understands them), so leave them,
25138 # especially as we might pass files found there to a mingw objdump,
25139 # which wouldn't understand a cygwinified path. Ahh.
25140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25141 else
25142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25143 fi
25144 ;;
25145 pw32*)
25146 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025147 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 +000025148 ;;
25149 esac
25150 ;;
25151
25152 *)
25153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25154 ;;
25155 esac
25156 dynamic_linker='Win32 ld.exe'
25157 # FIXME: first we should search . and the directory the executable is in
25158 shlibpath_var=PATH
25159 ;;
25160
25161darwin* | rhapsody*)
25162 dynamic_linker="$host_os dyld"
25163 version_type=darwin
25164 need_lib_prefix=no
25165 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025166 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025167 soname_spec='${libname}${release}${major}$shared_ext'
25168 shlibpath_overrides_runpath=yes
25169 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025171 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025172 if test "$GCC" = yes; then
25173 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"`
25174 else
25175 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025176 fi
25177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25178 ;;
25179
25180dgux*)
25181 version_type=linux
25182 need_lib_prefix=no
25183 need_version=no
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25185 soname_spec='${libname}${release}${shared_ext}$major'
25186 shlibpath_var=LD_LIBRARY_PATH
25187 ;;
25188
25189freebsd1*)
25190 dynamic_linker=no
25191 ;;
25192
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193kfreebsd*-gnu)
25194 version_type=linux
25195 need_lib_prefix=no
25196 need_version=no
25197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25198 soname_spec='${libname}${release}${shared_ext}$major'
25199 shlibpath_var=LD_LIBRARY_PATH
25200 shlibpath_overrides_runpath=no
25201 hardcode_into_libs=yes
25202 dynamic_linker='GNU ld.so'
25203 ;;
25204
Reid Spencera773bd52006-08-04 18:18:08 +000025205freebsd* | dragonfly*)
25206 # DragonFly does not have aout. When/if they implement a new
25207 # versioning mechanism, adjust this.
25208 if test -x /usr/bin/objformat; then
25209 objformat=`/usr/bin/objformat`
25210 else
25211 case $host_os in
25212 freebsd[123]*) objformat=aout ;;
25213 *) objformat=elf ;;
25214 esac
25215 fi
John Criswell47fdd832003-07-14 16:52:07 +000025216 version_type=freebsd-$objformat
25217 case $version_type in
25218 freebsd-elf*)
25219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25220 need_version=no
25221 need_lib_prefix=no
25222 ;;
25223 freebsd-*)
25224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25225 need_version=yes
25226 ;;
25227 esac
25228 shlibpath_var=LD_LIBRARY_PATH
25229 case $host_os in
25230 freebsd2*)
25231 shlibpath_overrides_runpath=yes
25232 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025233 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025234 shlibpath_overrides_runpath=yes
25235 hardcode_into_libs=yes
25236 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025239 shlibpath_overrides_runpath=no
25240 hardcode_into_libs=yes
25241 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025242 freebsd*) # from 4.6 on
25243 shlibpath_overrides_runpath=yes
25244 hardcode_into_libs=yes
25245 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025246 esac
25247 ;;
25248
25249gnu*)
25250 version_type=linux
25251 need_lib_prefix=no
25252 need_version=no
25253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25254 soname_spec='${libname}${release}${shared_ext}$major'
25255 shlibpath_var=LD_LIBRARY_PATH
25256 hardcode_into_libs=yes
25257 ;;
25258
25259hpux9* | hpux10* | hpux11*)
25260 # Give a soname corresponding to the major version so that dld.sl refuses to
25261 # link against other versions.
25262 version_type=sunos
25263 need_lib_prefix=no
25264 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025265 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025266 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025267 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025268 hardcode_into_libs=yes
25269 dynamic_linker="$host_os dld.so"
25270 shlibpath_var=LD_LIBRARY_PATH
25271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25273 soname_spec='${libname}${release}${shared_ext}$major'
25274 if test "X$HPUX_IA64_MODE" = X32; then
25275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25276 else
25277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25278 fi
25279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25280 ;;
25281 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025282 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025283 hardcode_into_libs=yes
25284 dynamic_linker="$host_os dld.sl"
25285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25288 soname_spec='${libname}${release}${shared_ext}$major'
25289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25291 ;;
25292 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025293 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025294 dynamic_linker="$host_os dld.sl"
25295 shlibpath_var=SHLIB_PATH
25296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25299 ;;
25300 esac
25301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25302 postinstall_cmds='chmod 555 $lib'
25303 ;;
25304
Reid Spencera773bd52006-08-04 18:18:08 +000025305interix3*)
25306 version_type=linux
25307 need_lib_prefix=no
25308 need_version=no
25309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25310 soname_spec='${libname}${release}${shared_ext}$major'
25311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25312 shlibpath_var=LD_LIBRARY_PATH
25313 shlibpath_overrides_runpath=no
25314 hardcode_into_libs=yes
25315 ;;
25316
John Criswell47fdd832003-07-14 16:52:07 +000025317irix5* | irix6* | nonstopux*)
25318 case $host_os in
25319 nonstopux*) version_type=nonstopux ;;
25320 *)
25321 if test "$lt_cv_prog_gnu_ld" = yes; then
25322 version_type=linux
25323 else
25324 version_type=irix
25325 fi ;;
25326 esac
25327 need_lib_prefix=no
25328 need_version=no
25329 soname_spec='${libname}${release}${shared_ext}$major'
25330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25331 case $host_os in
25332 irix5* | nonstopux*)
25333 libsuff= shlibsuff=
25334 ;;
25335 *)
25336 case $LD in # libtool.m4 will add one of these switches to LD
25337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25338 libsuff= shlibsuff= libmagic=32-bit;;
25339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25340 libsuff=32 shlibsuff=N32 libmagic=N32;;
25341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25343 *) libsuff= shlibsuff= libmagic=never-match;;
25344 esac
25345 ;;
25346 esac
25347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25348 shlibpath_overrides_runpath=no
25349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25351 hardcode_into_libs=yes
25352 ;;
25353
25354# No shared lib support for Linux oldld, aout, or coff.
25355linux*oldld* | linux*aout* | linux*coff*)
25356 dynamic_linker=no
25357 ;;
25358
25359# This must be Linux ELF.
25360linux*)
25361 version_type=linux
25362 need_lib_prefix=no
25363 need_version=no
25364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25365 soname_spec='${libname}${release}${shared_ext}$major'
25366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25367 shlibpath_var=LD_LIBRARY_PATH
25368 shlibpath_overrides_runpath=no
25369 # This implies no fast_install, which is unacceptable.
25370 # Some rework will be needed to allow for fast_install
25371 # before this can be enabled.
25372 hardcode_into_libs=yes
25373
Reid Spencer2706f8c2004-09-19 23:53:36 +000025374 # Append ld.so.conf contents to the search path
25375 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025376 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 +000025377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25378 fi
25379
John Criswell47fdd832003-07-14 16:52:07 +000025380 # We used to test for /lib/ld.so.1 and disable shared libraries on
25381 # powerpc, because MkLinux only supported shared libraries with the
25382 # GNU dynamic linker. Since this was broken with cross compilers,
25383 # most powerpc-linux boxes support dynamic linking these days and
25384 # people can always --disable-shared, the test was removed, and we
25385 # assume the GNU/Linux dynamic linker is in use.
25386 dynamic_linker='GNU/Linux ld.so'
25387 ;;
25388
Reid Spencer2706f8c2004-09-19 23:53:36 +000025389knetbsd*-gnu)
25390 version_type=linux
25391 need_lib_prefix=no
25392 need_version=no
25393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25394 soname_spec='${libname}${release}${shared_ext}$major'
25395 shlibpath_var=LD_LIBRARY_PATH
25396 shlibpath_overrides_runpath=no
25397 hardcode_into_libs=yes
25398 dynamic_linker='GNU ld.so'
25399 ;;
25400
John Criswell47fdd832003-07-14 16:52:07 +000025401netbsd*)
25402 version_type=sunos
25403 need_lib_prefix=no
25404 need_version=no
25405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25408 dynamic_linker='NetBSD (a.out) ld.so'
25409 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025411 soname_spec='${libname}${release}${shared_ext}$major'
25412 dynamic_linker='NetBSD ld.elf_so'
25413 fi
25414 shlibpath_var=LD_LIBRARY_PATH
25415 shlibpath_overrides_runpath=yes
25416 hardcode_into_libs=yes
25417 ;;
25418
25419newsos6)
25420 version_type=linux
25421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 shlibpath_overrides_runpath=yes
25424 ;;
25425
Reid Spencer2706f8c2004-09-19 23:53:36 +000025426nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025427 version_type=linux
25428 need_lib_prefix=no
25429 need_version=no
25430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25431 soname_spec='${libname}${release}${shared_ext}$major'
25432 shlibpath_var=LD_LIBRARY_PATH
25433 shlibpath_overrides_runpath=yes
25434 ;;
25435
25436openbsd*)
25437 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025438 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025439 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25441 case $host_os in
25442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25443 *) need_version=no ;;
25444 esac
John Criswell47fdd832003-07-14 16:52:07 +000025445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25447 shlibpath_var=LD_LIBRARY_PATH
25448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25449 case $host_os in
25450 openbsd2.[89] | openbsd2.[89].*)
25451 shlibpath_overrides_runpath=no
25452 ;;
25453 *)
25454 shlibpath_overrides_runpath=yes
25455 ;;
25456 esac
25457 else
25458 shlibpath_overrides_runpath=yes
25459 fi
25460 ;;
25461
25462os2*)
25463 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025464 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025465 need_lib_prefix=no
25466 library_names_spec='$libname${shared_ext} $libname.a'
25467 dynamic_linker='OS/2 ld.exe'
25468 shlibpath_var=LIBPATH
25469 ;;
25470
25471osf3* | osf4* | osf5*)
25472 version_type=osf
25473 need_lib_prefix=no
25474 need_version=no
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 shlibpath_var=LD_LIBRARY_PATH
25478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25480 ;;
25481
John Criswell47fdd832003-07-14 16:52:07 +000025482solaris*)
25483 version_type=linux
25484 need_lib_prefix=no
25485 need_version=no
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 shlibpath_overrides_runpath=yes
25490 hardcode_into_libs=yes
25491 # ldd complains unless libraries are executable
25492 postinstall_cmds='chmod +x $lib'
25493 ;;
25494
25495sunos4*)
25496 version_type=sunos
25497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 shlibpath_overrides_runpath=yes
25501 if test "$with_gnu_ld" = yes; then
25502 need_lib_prefix=no
25503 fi
25504 need_version=yes
25505 ;;
25506
Reid Spencera773bd52006-08-04 18:18:08 +000025507sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025508 version_type=linux
25509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25510 soname_spec='${libname}${release}${shared_ext}$major'
25511 shlibpath_var=LD_LIBRARY_PATH
25512 case $host_vendor in
25513 sni)
25514 shlibpath_overrides_runpath=no
25515 need_lib_prefix=no
25516 export_dynamic_flag_spec='${wl}-Blargedynsym'
25517 runpath_var=LD_RUN_PATH
25518 ;;
25519 siemens)
25520 need_lib_prefix=no
25521 ;;
25522 motorola)
25523 need_lib_prefix=no
25524 need_version=no
25525 shlibpath_overrides_runpath=no
25526 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25527 ;;
25528 esac
25529 ;;
25530
25531sysv4*MP*)
25532 if test -d /usr/nec ;then
25533 version_type=linux
25534 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25535 soname_spec='$libname${shared_ext}.$major'
25536 shlibpath_var=LD_LIBRARY_PATH
25537 fi
25538 ;;
25539
Reid Spencera773bd52006-08-04 18:18:08 +000025540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25541 version_type=freebsd-elf
25542 need_lib_prefix=no
25543 need_version=no
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 shlibpath_var=LD_LIBRARY_PATH
25547 hardcode_into_libs=yes
25548 if test "$with_gnu_ld" = yes; then
25549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25550 shlibpath_overrides_runpath=no
25551 else
25552 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25553 shlibpath_overrides_runpath=yes
25554 case $host_os in
25555 sco3.2v5*)
25556 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25557 ;;
25558 esac
25559 fi
25560 sys_lib_dlsearch_path_spec='/usr/lib'
25561 ;;
25562
John Criswell47fdd832003-07-14 16:52:07 +000025563uts4*)
25564 version_type=linux
25565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25566 soname_spec='${libname}${release}${shared_ext}$major'
25567 shlibpath_var=LD_LIBRARY_PATH
25568 ;;
25569
25570*)
25571 dynamic_linker=no
25572 ;;
25573esac
Reid Spencera773bd52006-08-04 18:18:08 +000025574{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25575echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025576test "$dynamic_linker" = no && can_build_shared=no
25577
Reid Spencera773bd52006-08-04 18:18:08 +000025578variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25579if test "$GCC" = yes; then
25580 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25581fi
25582
25583{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25584echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025585hardcode_action_GCJ=
25586if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25587 test -n "$runpath_var_GCJ" || \
25588 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25589
25590 # We can hardcode non-existant directories.
25591 if test "$hardcode_direct_GCJ" != no &&
25592 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25593 # have to relink, otherwise we might link with an installed library
25594 # when we should be linking with a yet-to-be-installed one
25595 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25596 test "$hardcode_minus_L_GCJ" != no; then
25597 # Linking always hardcodes the temporary library directory.
25598 hardcode_action_GCJ=relink
25599 else
25600 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25601 hardcode_action_GCJ=immediate
25602 fi
25603else
25604 # We cannot hardcode anything, or else we can only hardcode existing
25605 # directories.
25606 hardcode_action_GCJ=unsupported
25607fi
Reid Spencera773bd52006-08-04 18:18:08 +000025608{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25609echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025610
25611if test "$hardcode_action_GCJ" = relink; then
25612 # Fast installation is not supported
25613 enable_fast_install=no
25614elif test "$shlibpath_overrides_runpath" = yes ||
25615 test "$enable_shared" = no; then
25616 # Fast installation is not necessary
25617 enable_fast_install=needless
25618fi
25619
John Criswell47fdd832003-07-14 16:52:07 +000025620
25621# The else clause should only fire when bootstrapping the
25622# libtool distribution, otherwise you forgot to ship ltmain.sh
25623# with your package, and you will get complaints that there are
25624# no rules to generate ltmain.sh.
25625if test -f "$ltmain"; then
25626 # See if we are running on zsh, and set the options which allow our commands through
25627 # without removal of \ escapes.
25628 if test -n "${ZSH_VERSION+set}" ; then
25629 setopt NO_GLOB_SUBST
25630 fi
25631 # Now quote all the things that may contain metacharacters while being
25632 # careful not to overquote the AC_SUBSTed values. We take copies of the
25633 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025634 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 +000025635 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025636 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25637 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25638 deplibs_check_method reload_flag reload_cmds need_locks \
25639 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25640 lt_cv_sys_global_symbol_to_c_name_address \
25641 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25642 old_postinstall_cmds old_postuninstall_cmds \
25643 compiler_GCJ \
25644 CC_GCJ \
25645 LD_GCJ \
25646 lt_prog_compiler_wl_GCJ \
25647 lt_prog_compiler_pic_GCJ \
25648 lt_prog_compiler_static_GCJ \
25649 lt_prog_compiler_no_builtin_flag_GCJ \
25650 export_dynamic_flag_spec_GCJ \
25651 thread_safe_flag_spec_GCJ \
25652 whole_archive_flag_spec_GCJ \
25653 enable_shared_with_static_runtimes_GCJ \
25654 old_archive_cmds_GCJ \
25655 old_archive_from_new_cmds_GCJ \
25656 predep_objects_GCJ \
25657 postdep_objects_GCJ \
25658 predeps_GCJ \
25659 postdeps_GCJ \
25660 compiler_lib_search_path_GCJ \
25661 archive_cmds_GCJ \
25662 archive_expsym_cmds_GCJ \
25663 postinstall_cmds_GCJ \
25664 postuninstall_cmds_GCJ \
25665 old_archive_from_expsyms_cmds_GCJ \
25666 allow_undefined_flag_GCJ \
25667 no_undefined_flag_GCJ \
25668 export_symbols_cmds_GCJ \
25669 hardcode_libdir_flag_spec_GCJ \
25670 hardcode_libdir_flag_spec_ld_GCJ \
25671 hardcode_libdir_separator_GCJ \
25672 hardcode_automatic_GCJ \
25673 module_cmds_GCJ \
25674 module_expsym_cmds_GCJ \
25675 lt_cv_prog_compiler_c_o_GCJ \
25676 exclude_expsyms_GCJ \
25677 include_expsyms_GCJ; do
25678
25679 case $var in
25680 old_archive_cmds_GCJ | \
25681 old_archive_from_new_cmds_GCJ | \
25682 archive_cmds_GCJ | \
25683 archive_expsym_cmds_GCJ | \
25684 module_cmds_GCJ | \
25685 module_expsym_cmds_GCJ | \
25686 old_archive_from_expsyms_cmds_GCJ | \
25687 export_symbols_cmds_GCJ | \
25688 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25689 postinstall_cmds | postuninstall_cmds | \
25690 old_postinstall_cmds | old_postuninstall_cmds | \
25691 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25692 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025693 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 +000025694 ;;
25695 *)
25696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25697 ;;
25698 esac
25699 done
25700
25701 case $lt_echo in
25702 *'\$0 --fallback-echo"')
25703 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25704 ;;
25705 esac
25706
25707cfgfile="$ofile"
25708
25709 cat <<__EOF__ >> "$cfgfile"
25710# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25711
25712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25713
25714# Shell to use when invoking shell scripts.
25715SHELL=$lt_SHELL
25716
25717# Whether or not to build shared libraries.
25718build_libtool_libs=$enable_shared
25719
25720# Whether or not to build static libraries.
25721build_old_libs=$enable_static
25722
25723# Whether or not to add -lc for building shared libraries.
25724build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25725
25726# Whether or not to disallow shared libs when runtime libs are static
25727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25728
25729# Whether or not to optimize for fast installation.
25730fast_install=$enable_fast_install
25731
25732# The host system.
25733host_alias=$host_alias
25734host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025735host_os=$host_os
25736
25737# The build system.
25738build_alias=$build_alias
25739build=$build
25740build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025741
25742# An echo program that does not interpret backslashes.
25743echo=$lt_echo
25744
25745# The archiver.
25746AR=$lt_AR
25747AR_FLAGS=$lt_AR_FLAGS
25748
25749# A C compiler.
25750LTCC=$lt_LTCC
25751
Reid Spencera773bd52006-08-04 18:18:08 +000025752# LTCC compiler flags.
25753LTCFLAGS=$lt_LTCFLAGS
25754
John Criswell47fdd832003-07-14 16:52:07 +000025755# A language-specific compiler.
25756CC=$lt_compiler_GCJ
25757
25758# Is the compiler the GNU C compiler?
25759with_gcc=$GCC_GCJ
25760
25761# An ERE matcher.
25762EGREP=$lt_EGREP
25763
25764# The linker used to build libraries.
25765LD=$lt_LD_GCJ
25766
25767# Whether we need hard or soft links.
25768LN_S=$lt_LN_S
25769
25770# A BSD-compatible nm program.
25771NM=$lt_NM
25772
25773# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025774STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025775
25776# Used to examine libraries when file_magic_cmd begins "file"
25777MAGIC_CMD=$MAGIC_CMD
25778
25779# Used on cygwin: DLL creation program.
25780DLLTOOL="$DLLTOOL"
25781
25782# Used on cygwin: object dumper.
25783OBJDUMP="$OBJDUMP"
25784
25785# Used on cygwin: assembler.
25786AS="$AS"
25787
25788# The name of the directory that contains temporary libtool files.
25789objdir=$objdir
25790
25791# How to create reloadable object files.
25792reload_flag=$lt_reload_flag
25793reload_cmds=$lt_reload_cmds
25794
25795# How to pass a linker flag through the compiler.
25796wl=$lt_lt_prog_compiler_wl_GCJ
25797
25798# Object file suffix (normally "o").
25799objext="$ac_objext"
25800
25801# Old archive suffix (normally "a").
25802libext="$libext"
25803
25804# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025805shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025806
25807# Executable file suffix (normally "").
25808exeext="$exeext"
25809
25810# Additional compiler flags for building library objects.
25811pic_flag=$lt_lt_prog_compiler_pic_GCJ
25812pic_mode=$pic_mode
25813
25814# What is the maximum length of a command?
25815max_cmd_len=$lt_cv_sys_max_cmd_len
25816
25817# Does compiler simultaneously support -c and -o options?
25818compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25819
Reid Spencera773bd52006-08-04 18:18:08 +000025820# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025821need_locks=$lt_need_locks
25822
25823# Do we need the lib prefix for modules?
25824need_lib_prefix=$need_lib_prefix
25825
25826# Do we need a version for libraries?
25827need_version=$need_version
25828
25829# Whether dlopen is supported.
25830dlopen_support=$enable_dlopen
25831
25832# Whether dlopen of programs is supported.
25833dlopen_self=$enable_dlopen_self
25834
25835# Whether dlopen of statically linked programs is supported.
25836dlopen_self_static=$enable_dlopen_self_static
25837
25838# Compiler flag to prevent dynamic linking.
25839link_static_flag=$lt_lt_prog_compiler_static_GCJ
25840
25841# Compiler flag to turn off builtin functions.
25842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25843
25844# Compiler flag to allow reflexive dlopens.
25845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25846
25847# Compiler flag to generate shared objects directly from archives.
25848whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25849
25850# Compiler flag to generate thread-safe objects.
25851thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25852
25853# Library versioning type.
25854version_type=$version_type
25855
25856# Format of library name prefix.
25857libname_spec=$lt_libname_spec
25858
25859# List of archive names. First name is the real one, the rest are links.
25860# The last name is the one that the linker finds with -lNAME.
25861library_names_spec=$lt_library_names_spec
25862
25863# The coded name of the library, if different from the real name.
25864soname_spec=$lt_soname_spec
25865
25866# Commands used to build and install an old-style archive.
25867RANLIB=$lt_RANLIB
25868old_archive_cmds=$lt_old_archive_cmds_GCJ
25869old_postinstall_cmds=$lt_old_postinstall_cmds
25870old_postuninstall_cmds=$lt_old_postuninstall_cmds
25871
25872# Create an old-style archive from a shared archive.
25873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25874
25875# Create a temporary old-style archive to link instead of a shared archive.
25876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25877
25878# Commands used to build and install a shared archive.
25879archive_cmds=$lt_archive_cmds_GCJ
25880archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25881postinstall_cmds=$lt_postinstall_cmds
25882postuninstall_cmds=$lt_postuninstall_cmds
25883
25884# Commands used to build a loadable module (assumed same as above if empty)
25885module_cmds=$lt_module_cmds_GCJ
25886module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25887
25888# Commands to strip libraries.
25889old_striplib=$lt_old_striplib
25890striplib=$lt_striplib
25891
25892# Dependencies to place before the objects being linked to create a
25893# shared library.
25894predep_objects=$lt_predep_objects_GCJ
25895
25896# Dependencies to place after the objects being linked to create a
25897# shared library.
25898postdep_objects=$lt_postdep_objects_GCJ
25899
25900# Dependencies to place before the objects being linked to create a
25901# shared library.
25902predeps=$lt_predeps_GCJ
25903
25904# Dependencies to place after the objects being linked to create a
25905# shared library.
25906postdeps=$lt_postdeps_GCJ
25907
25908# The library search path used internally by the compiler when linking
25909# a shared library.
25910compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25911
25912# Method to check whether dependent libraries are shared objects.
25913deplibs_check_method=$lt_deplibs_check_method
25914
25915# Command to use when deplibs_check_method == file_magic.
25916file_magic_cmd=$lt_file_magic_cmd
25917
25918# Flag that allows shared libraries with undefined symbols to be built.
25919allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25920
25921# Flag that forces no undefined symbols.
25922no_undefined_flag=$lt_no_undefined_flag_GCJ
25923
25924# Commands used to finish a libtool library installation in a directory.
25925finish_cmds=$lt_finish_cmds
25926
25927# Same as above, but a single script fragment to be evaled but not shown.
25928finish_eval=$lt_finish_eval
25929
25930# Take the output of nm and produce a listing of raw symbols and C names.
25931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25932
25933# Transform the output of nm in a proper C declaration
25934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25935
25936# Transform the output of nm in a C name address pair
25937global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25938
25939# This is the shared library runtime path variable.
25940runpath_var=$runpath_var
25941
25942# This is the shared library path variable.
25943shlibpath_var=$shlibpath_var
25944
25945# Is shlibpath searched before the hard-coded library search path?
25946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25947
25948# How to hardcode a shared library path into an executable.
25949hardcode_action=$hardcode_action_GCJ
25950
25951# Whether we should hardcode library paths into libraries.
25952hardcode_into_libs=$hardcode_into_libs
25953
25954# Flag to hardcode \$libdir into a binary during linking.
25955# This must work even if \$libdir does not exist.
25956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25957
25958# If ld is used when linking, flag to hardcode \$libdir into
25959# a binary during linking. This must work even if \$libdir does
25960# not exist.
25961hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25962
25963# Whether we need a single -rpath flag with a separated argument.
25964hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25965
25966# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25967# resulting binary.
25968hardcode_direct=$hardcode_direct_GCJ
25969
25970# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25971# resulting binary.
25972hardcode_minus_L=$hardcode_minus_L_GCJ
25973
25974# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25975# the resulting binary.
25976hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25977
25978# Set to yes if building a shared library automatically hardcodes DIR into the library
25979# and all subsequent libraries and executables linked against it.
25980hardcode_automatic=$hardcode_automatic_GCJ
25981
25982# Variables whose values should be saved in libtool wrapper scripts and
25983# restored at relink time.
25984variables_saved_for_relink="$variables_saved_for_relink"
25985
25986# Whether libtool must link a program against all its dependency libraries.
25987link_all_deplibs=$link_all_deplibs_GCJ
25988
25989# Compile-time system search path for libraries
25990sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25991
25992# Run-time system search path for libraries
25993sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25994
25995# Fix the shell variable \$srcfile for the compiler.
25996fix_srcfile_path="$fix_srcfile_path_GCJ"
25997
25998# Set to yes if exported symbols are required.
25999always_export_symbols=$always_export_symbols_GCJ
26000
26001# The commands to list exported symbols.
26002export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26003
26004# The commands to extract the exported symbol list from a shared archive.
26005extract_expsyms_cmds=$lt_extract_expsyms_cmds
26006
26007# Symbols that should not be listed in the preloaded symbols.
26008exclude_expsyms=$lt_exclude_expsyms_GCJ
26009
26010# Symbols that must always be exported.
26011include_expsyms=$lt_include_expsyms_GCJ
26012
26013# ### END LIBTOOL TAG CONFIG: $tagname
26014
26015__EOF__
26016
26017
26018else
26019 # If there is no Makefile yet, we rely on a make rule to execute
26020 # `config.status --recheck' to rerun these tests and create the
26021 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26023 if test -f "$ltmain_in"; then
26024 test -f Makefile && make "$ltmain"
26025 fi
John Criswell47fdd832003-07-14 16:52:07 +000026026fi
26027
26028
26029ac_ext=c
26030ac_cpp='$CPP $CPPFLAGS'
26031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033ac_compiler_gnu=$ac_cv_c_compiler_gnu
26034
26035CC="$lt_save_CC"
26036
26037 else
26038 tagname=""
26039 fi
26040 ;;
26041
26042 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026043 ac_ext=c
26044ac_cpp='$CPP $CPPFLAGS'
26045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26047ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026048
26049
26050# Source file extension for RC test sources.
26051ac_ext=rc
26052
26053# Object file extension for compiled RC test sources.
26054objext=o
26055objext_RC=$objext
26056
26057# Code to be used in simple compile tests
26058lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26059
26060# Code to be used in simple link tests
26061lt_simple_link_test_code="$lt_simple_compile_test_code"
26062
26063# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26064
26065# If no C compiler was specified, use CC.
26066LTCC=${LTCC-"$CC"}
26067
Reid Spencera773bd52006-08-04 18:18:08 +000026068# If no C compiler flags were specified, use CFLAGS.
26069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26070
John Criswell47fdd832003-07-14 16:52:07 +000026071# Allow CC to be a program name with arguments.
26072compiler=$CC
26073
26074
Reid Spencera773bd52006-08-04 18:18:08 +000026075# save warnings/boilerplate of simple test code
26076ac_outfile=conftest.$ac_objext
26077printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26078eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26079_lt_compiler_boilerplate=`cat conftest.err`
26080$rm conftest*
26081
26082ac_outfile=conftest.$ac_objext
26083printf "$lt_simple_link_test_code" >conftest.$ac_ext
26084eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26085_lt_linker_boilerplate=`cat conftest.err`
26086$rm conftest*
26087
26088
John Criswell47fdd832003-07-14 16:52:07 +000026089# Allow CC to be a program name with arguments.
26090lt_save_CC="$CC"
26091CC=${RC-"windres"}
26092compiler=$CC
26093compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026094for cc_temp in $compiler""; do
26095 case $cc_temp in
26096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26098 \-*) ;;
26099 *) break;;
26100 esac
26101done
26102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26103
John Criswell47fdd832003-07-14 16:52:07 +000026104lt_cv_prog_compiler_c_o_RC=yes
26105
26106# The else clause should only fire when bootstrapping the
26107# libtool distribution, otherwise you forgot to ship ltmain.sh
26108# with your package, and you will get complaints that there are
26109# no rules to generate ltmain.sh.
26110if test -f "$ltmain"; then
26111 # See if we are running on zsh, and set the options which allow our commands through
26112 # without removal of \ escapes.
26113 if test -n "${ZSH_VERSION+set}" ; then
26114 setopt NO_GLOB_SUBST
26115 fi
26116 # Now quote all the things that may contain metacharacters while being
26117 # careful not to overquote the AC_SUBSTed values. We take copies of the
26118 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026119 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 +000026120 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26123 deplibs_check_method reload_flag reload_cmds need_locks \
26124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26125 lt_cv_sys_global_symbol_to_c_name_address \
26126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26127 old_postinstall_cmds old_postuninstall_cmds \
26128 compiler_RC \
26129 CC_RC \
26130 LD_RC \
26131 lt_prog_compiler_wl_RC \
26132 lt_prog_compiler_pic_RC \
26133 lt_prog_compiler_static_RC \
26134 lt_prog_compiler_no_builtin_flag_RC \
26135 export_dynamic_flag_spec_RC \
26136 thread_safe_flag_spec_RC \
26137 whole_archive_flag_spec_RC \
26138 enable_shared_with_static_runtimes_RC \
26139 old_archive_cmds_RC \
26140 old_archive_from_new_cmds_RC \
26141 predep_objects_RC \
26142 postdep_objects_RC \
26143 predeps_RC \
26144 postdeps_RC \
26145 compiler_lib_search_path_RC \
26146 archive_cmds_RC \
26147 archive_expsym_cmds_RC \
26148 postinstall_cmds_RC \
26149 postuninstall_cmds_RC \
26150 old_archive_from_expsyms_cmds_RC \
26151 allow_undefined_flag_RC \
26152 no_undefined_flag_RC \
26153 export_symbols_cmds_RC \
26154 hardcode_libdir_flag_spec_RC \
26155 hardcode_libdir_flag_spec_ld_RC \
26156 hardcode_libdir_separator_RC \
26157 hardcode_automatic_RC \
26158 module_cmds_RC \
26159 module_expsym_cmds_RC \
26160 lt_cv_prog_compiler_c_o_RC \
26161 exclude_expsyms_RC \
26162 include_expsyms_RC; do
26163
26164 case $var in
26165 old_archive_cmds_RC | \
26166 old_archive_from_new_cmds_RC | \
26167 archive_cmds_RC | \
26168 archive_expsym_cmds_RC | \
26169 module_cmds_RC | \
26170 module_expsym_cmds_RC | \
26171 old_archive_from_expsyms_cmds_RC | \
26172 export_symbols_cmds_RC | \
26173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26174 postinstall_cmds | postuninstall_cmds | \
26175 old_postinstall_cmds | old_postuninstall_cmds | \
26176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26177 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026178 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 +000026179 ;;
26180 *)
26181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26182 ;;
26183 esac
26184 done
26185
26186 case $lt_echo in
26187 *'\$0 --fallback-echo"')
26188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26189 ;;
26190 esac
26191
26192cfgfile="$ofile"
26193
26194 cat <<__EOF__ >> "$cfgfile"
26195# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26196
26197# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26198
26199# Shell to use when invoking shell scripts.
26200SHELL=$lt_SHELL
26201
26202# Whether or not to build shared libraries.
26203build_libtool_libs=$enable_shared
26204
26205# Whether or not to build static libraries.
26206build_old_libs=$enable_static
26207
26208# Whether or not to add -lc for building shared libraries.
26209build_libtool_need_lc=$archive_cmds_need_lc_RC
26210
26211# Whether or not to disallow shared libs when runtime libs are static
26212allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26213
26214# Whether or not to optimize for fast installation.
26215fast_install=$enable_fast_install
26216
26217# The host system.
26218host_alias=$host_alias
26219host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026220host_os=$host_os
26221
26222# The build system.
26223build_alias=$build_alias
26224build=$build
26225build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026226
26227# An echo program that does not interpret backslashes.
26228echo=$lt_echo
26229
26230# The archiver.
26231AR=$lt_AR
26232AR_FLAGS=$lt_AR_FLAGS
26233
26234# A C compiler.
26235LTCC=$lt_LTCC
26236
Reid Spencera773bd52006-08-04 18:18:08 +000026237# LTCC compiler flags.
26238LTCFLAGS=$lt_LTCFLAGS
26239
John Criswell47fdd832003-07-14 16:52:07 +000026240# A language-specific compiler.
26241CC=$lt_compiler_RC
26242
26243# Is the compiler the GNU C compiler?
26244with_gcc=$GCC_RC
26245
26246# An ERE matcher.
26247EGREP=$lt_EGREP
26248
26249# The linker used to build libraries.
26250LD=$lt_LD_RC
26251
26252# Whether we need hard or soft links.
26253LN_S=$lt_LN_S
26254
26255# A BSD-compatible nm program.
26256NM=$lt_NM
26257
26258# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026259STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026260
26261# Used to examine libraries when file_magic_cmd begins "file"
26262MAGIC_CMD=$MAGIC_CMD
26263
26264# Used on cygwin: DLL creation program.
26265DLLTOOL="$DLLTOOL"
26266
26267# Used on cygwin: object dumper.
26268OBJDUMP="$OBJDUMP"
26269
26270# Used on cygwin: assembler.
26271AS="$AS"
26272
26273# The name of the directory that contains temporary libtool files.
26274objdir=$objdir
26275
26276# How to create reloadable object files.
26277reload_flag=$lt_reload_flag
26278reload_cmds=$lt_reload_cmds
26279
26280# How to pass a linker flag through the compiler.
26281wl=$lt_lt_prog_compiler_wl_RC
26282
26283# Object file suffix (normally "o").
26284objext="$ac_objext"
26285
26286# Old archive suffix (normally "a").
26287libext="$libext"
26288
26289# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026290shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026291
26292# Executable file suffix (normally "").
26293exeext="$exeext"
26294
26295# Additional compiler flags for building library objects.
26296pic_flag=$lt_lt_prog_compiler_pic_RC
26297pic_mode=$pic_mode
26298
26299# What is the maximum length of a command?
26300max_cmd_len=$lt_cv_sys_max_cmd_len
26301
26302# Does compiler simultaneously support -c and -o options?
26303compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26304
Reid Spencera773bd52006-08-04 18:18:08 +000026305# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026306need_locks=$lt_need_locks
26307
26308# Do we need the lib prefix for modules?
26309need_lib_prefix=$need_lib_prefix
26310
26311# Do we need a version for libraries?
26312need_version=$need_version
26313
26314# Whether dlopen is supported.
26315dlopen_support=$enable_dlopen
26316
26317# Whether dlopen of programs is supported.
26318dlopen_self=$enable_dlopen_self
26319
26320# Whether dlopen of statically linked programs is supported.
26321dlopen_self_static=$enable_dlopen_self_static
26322
26323# Compiler flag to prevent dynamic linking.
26324link_static_flag=$lt_lt_prog_compiler_static_RC
26325
26326# Compiler flag to turn off builtin functions.
26327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26328
26329# Compiler flag to allow reflexive dlopens.
26330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26331
26332# Compiler flag to generate shared objects directly from archives.
26333whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26334
26335# Compiler flag to generate thread-safe objects.
26336thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26337
26338# Library versioning type.
26339version_type=$version_type
26340
26341# Format of library name prefix.
26342libname_spec=$lt_libname_spec
26343
26344# List of archive names. First name is the real one, the rest are links.
26345# The last name is the one that the linker finds with -lNAME.
26346library_names_spec=$lt_library_names_spec
26347
26348# The coded name of the library, if different from the real name.
26349soname_spec=$lt_soname_spec
26350
26351# Commands used to build and install an old-style archive.
26352RANLIB=$lt_RANLIB
26353old_archive_cmds=$lt_old_archive_cmds_RC
26354old_postinstall_cmds=$lt_old_postinstall_cmds
26355old_postuninstall_cmds=$lt_old_postuninstall_cmds
26356
26357# Create an old-style archive from a shared archive.
26358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26359
26360# Create a temporary old-style archive to link instead of a shared archive.
26361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26362
26363# Commands used to build and install a shared archive.
26364archive_cmds=$lt_archive_cmds_RC
26365archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26366postinstall_cmds=$lt_postinstall_cmds
26367postuninstall_cmds=$lt_postuninstall_cmds
26368
26369# Commands used to build a loadable module (assumed same as above if empty)
26370module_cmds=$lt_module_cmds_RC
26371module_expsym_cmds=$lt_module_expsym_cmds_RC
26372
26373# Commands to strip libraries.
26374old_striplib=$lt_old_striplib
26375striplib=$lt_striplib
26376
26377# Dependencies to place before the objects being linked to create a
26378# shared library.
26379predep_objects=$lt_predep_objects_RC
26380
26381# Dependencies to place after the objects being linked to create a
26382# shared library.
26383postdep_objects=$lt_postdep_objects_RC
26384
26385# Dependencies to place before the objects being linked to create a
26386# shared library.
26387predeps=$lt_predeps_RC
26388
26389# Dependencies to place after the objects being linked to create a
26390# shared library.
26391postdeps=$lt_postdeps_RC
26392
26393# The library search path used internally by the compiler when linking
26394# a shared library.
26395compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26396
26397# Method to check whether dependent libraries are shared objects.
26398deplibs_check_method=$lt_deplibs_check_method
26399
26400# Command to use when deplibs_check_method == file_magic.
26401file_magic_cmd=$lt_file_magic_cmd
26402
26403# Flag that allows shared libraries with undefined symbols to be built.
26404allow_undefined_flag=$lt_allow_undefined_flag_RC
26405
26406# Flag that forces no undefined symbols.
26407no_undefined_flag=$lt_no_undefined_flag_RC
26408
26409# Commands used to finish a libtool library installation in a directory.
26410finish_cmds=$lt_finish_cmds
26411
26412# Same as above, but a single script fragment to be evaled but not shown.
26413finish_eval=$lt_finish_eval
26414
26415# Take the output of nm and produce a listing of raw symbols and C names.
26416global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26417
26418# Transform the output of nm in a proper C declaration
26419global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26420
26421# Transform the output of nm in a C name address pair
26422global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26423
26424# This is the shared library runtime path variable.
26425runpath_var=$runpath_var
26426
26427# This is the shared library path variable.
26428shlibpath_var=$shlibpath_var
26429
26430# Is shlibpath searched before the hard-coded library search path?
26431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26432
26433# How to hardcode a shared library path into an executable.
26434hardcode_action=$hardcode_action_RC
26435
26436# Whether we should hardcode library paths into libraries.
26437hardcode_into_libs=$hardcode_into_libs
26438
26439# Flag to hardcode \$libdir into a binary during linking.
26440# This must work even if \$libdir does not exist.
26441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26442
26443# If ld is used when linking, flag to hardcode \$libdir into
26444# a binary during linking. This must work even if \$libdir does
26445# not exist.
26446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26447
26448# Whether we need a single -rpath flag with a separated argument.
26449hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26450
26451# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26452# resulting binary.
26453hardcode_direct=$hardcode_direct_RC
26454
26455# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26456# resulting binary.
26457hardcode_minus_L=$hardcode_minus_L_RC
26458
26459# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26460# the resulting binary.
26461hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26462
26463# Set to yes if building a shared library automatically hardcodes DIR into the library
26464# and all subsequent libraries and executables linked against it.
26465hardcode_automatic=$hardcode_automatic_RC
26466
26467# Variables whose values should be saved in libtool wrapper scripts and
26468# restored at relink time.
26469variables_saved_for_relink="$variables_saved_for_relink"
26470
26471# Whether libtool must link a program against all its dependency libraries.
26472link_all_deplibs=$link_all_deplibs_RC
26473
26474# Compile-time system search path for libraries
26475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26476
26477# Run-time system search path for libraries
26478sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26479
26480# Fix the shell variable \$srcfile for the compiler.
26481fix_srcfile_path="$fix_srcfile_path_RC"
26482
26483# Set to yes if exported symbols are required.
26484always_export_symbols=$always_export_symbols_RC
26485
26486# The commands to list exported symbols.
26487export_symbols_cmds=$lt_export_symbols_cmds_RC
26488
26489# The commands to extract the exported symbol list from a shared archive.
26490extract_expsyms_cmds=$lt_extract_expsyms_cmds
26491
26492# Symbols that should not be listed in the preloaded symbols.
26493exclude_expsyms=$lt_exclude_expsyms_RC
26494
26495# Symbols that must always be exported.
26496include_expsyms=$lt_include_expsyms_RC
26497
26498# ### END LIBTOOL TAG CONFIG: $tagname
26499
26500__EOF__
26501
26502
26503else
26504 # If there is no Makefile yet, we rely on a make rule to execute
26505 # `config.status --recheck' to rerun these tests and create the
26506 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26508 if test -f "$ltmain_in"; then
26509 test -f Makefile && make "$ltmain"
26510 fi
John Criswell47fdd832003-07-14 16:52:07 +000026511fi
26512
26513
26514ac_ext=c
26515ac_cpp='$CPP $CPPFLAGS'
26516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518ac_compiler_gnu=$ac_cv_c_compiler_gnu
26519
26520CC="$lt_save_CC"
26521
26522 ;;
26523
26524 *)
26525 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26526echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26527 { (exit 1); exit 1; }; }
26528 ;;
26529 esac
26530
26531 # Append the new tag name to the list of available tags.
26532 if test -n "$tagname" ; then
26533 available_tags="$available_tags $tagname"
26534 fi
26535 fi
26536 done
26537 IFS="$lt_save_ifs"
26538
26539 # Now substitute the updated list of available tags.
26540 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26541 mv "${ofile}T" "$ofile"
26542 chmod +x "$ofile"
26543 else
26544 rm -f "${ofile}T"
26545 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26546echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26547 { (exit 1); exit 1; }; }
26548 fi
26549fi
John Criswell7a73b802003-06-30 21:59:07 +000026550
26551
26552
26553# This can be used to rebuild libtool when needed
26554LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26555
26556# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026557LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026558
26559# Prevent multiple expansion
26560
26561
26562
John Criswell47fdd832003-07-14 16:52:07 +000026563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026580
Reid Spencer582a23c2004-12-29 07:07:57 +000026581if test "$lt_cv_dlopen_self" = "yes" ; then
26582
26583cat >>confdefs.h <<\_ACEOF
26584#define CAN_DLOPEN_SELF 1
26585_ACEOF
26586
26587fi
26588
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026589etags_version=`$ETAGS --version 2>&1`
26590case "$etags_version" in
26591 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26592 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26593 *) ETAGSFLAGS="" ;;
26594esac
26595ETAGSFLAGS=$ETAGSFLAGS
26596
26597
Reid Spencer7931a782004-12-27 06:15:02 +000026598if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026599 LLVMGCC="llvm-gcc${EXEEXT}"
26600 LLVMGXX="llvm-g++${EXEEXT}"
26601 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26602set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026605if test "${ac_cv_path_LLVMGCC+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26607else
26608 case $LLVMGCC in
26609 [\\/]* | ?:[\\/]*)
26610 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26611 ;;
26612 *)
26613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26614for as_dir in $PATH
26615do
26616 IFS=$as_save_IFS
26617 test -z "$as_dir" && as_dir=.
26618 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026619 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 +000026620 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26622 break 2
26623 fi
26624done
26625done
Reid Spencera773bd52006-08-04 18:18:08 +000026626IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026627
Reid Spencer59473af2004-12-25 07:31:29 +000026628 ;;
26629esac
26630fi
26631LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026632if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026633 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26634echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026635else
Reid Spencera773bd52006-08-04 18:18:08 +000026636 { echo "$as_me:$LINENO: result: no" >&5
26637echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026638fi
26639
Reid Spencera773bd52006-08-04 18:18:08 +000026640
Reid Spencerc84492c2005-06-02 22:34:49 +000026641 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26642set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026645if test "${ac_cv_path_LLVMGXX+set}" = set; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26647else
26648 case $LLVMGXX in
26649 [\\/]* | ?:[\\/]*)
26650 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26651 ;;
26652 *)
26653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26654for as_dir in $PATH
26655do
26656 IFS=$as_save_IFS
26657 test -z "$as_dir" && as_dir=.
26658 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026659 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 +000026660 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26662 break 2
26663 fi
26664done
26665done
Reid Spencera773bd52006-08-04 18:18:08 +000026666IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026667
Reid Spencer59473af2004-12-25 07:31:29 +000026668 ;;
26669esac
26670fi
26671LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026672if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026673 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26674echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026675else
Reid Spencera773bd52006-08-04 18:18:08 +000026676 { echo "$as_me:$LINENO: result: no" >&5
26677echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026678fi
26679
Reid Spencera773bd52006-08-04 18:18:08 +000026680
Reid Spencer59473af2004-12-25 07:31:29 +000026681else
Reid Spencerc84492c2005-06-02 22:34:49 +000026682 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26683 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026684 LLVMGCC=$LLVMGCC
26685
26686 LLVMGXX=$LLVMGXX
26687
26688fi
26689
Reid Spencera773bd52006-08-04 18:18:08 +000026690{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26691echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026692
Reid Spencer86901802004-12-08 23:07:27 +000026693ICC=no
26694IXX=no
26695case $CC in
26696 icc*|icpc*)
26697 ICC=yes
26698 IXX=yes
26699 ;;
26700 *)
26701 ;;
26702esac
26703
Duraid Madina937c60a2006-02-15 07:57:42 +000026704if test "$GCC" != "yes" && test "$ICC" != "yes"
26705then
26706 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26707echo "$as_me: error: gcc|icc required but not found" >&2;}
26708 { (exit 1); exit 1; }; }
26709fi
26710
26711if test "$GXX" != "yes" && test "$IXX" != "yes"
26712then
26713 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26714echo "$as_me: error: g++|icc required but not found" >&2;}
26715 { (exit 1); exit 1; }; }
26716fi
26717
Reid Spencer86901802004-12-08 23:07:27 +000026718if test "$GCC" = "yes"
26719then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026720 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026721 if test "$gccmajor" -lt "3"
26722 then
26723 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026724echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26725 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026726 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026727fi
26728
26729if test -z "$llvm_cv_gnu_make_command"
26730then
26731 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26732echo "$as_me: error: GNU Make required but not found" >&2;}
26733 { (exit 1); exit 1; }; }
26734fi
26735
Reid Spencera773bd52006-08-04 18:18:08 +000026736{ echo "$as_me:$LINENO: result: ok" >&5
26737echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026738
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026739
John Criswell7a73b802003-06-30 21:59:07 +000026740
Reid Spencera773bd52006-08-04 18:18:08 +000026741{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26742echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026743if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26745else
26746 ac_check_lib_save_LIBS=$LIBS
26747LIBS="-lelf $LIBS"
26748cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026749/* confdefs.h. */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026754
Reid Spencera773bd52006-08-04 18:18:08 +000026755/* Override any GCC internal prototype to avoid an error.
26756 Use char because int might match the return type of a GCC
26757 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026758#ifdef __cplusplus
26759extern "C"
26760#endif
John Criswell7a73b802003-06-30 21:59:07 +000026761char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026762int
26763main ()
26764{
Reid Spencera773bd52006-08-04 18:18:08 +000026765return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026766 ;
26767 return 0;
26768}
26769_ACEOF
26770rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026771if { (ac_try="$ac_link"
26772case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26775esac
26776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26785 { (case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26788esac
26789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026791 ac_status=$?
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; } &&
26794 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026795 { (case "(($ac_try" in
26796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797 *) ac_try_echo=$ac_try;;
26798esac
26799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; }; then
26804 ac_cv_lib_elf_elf_begin=yes
26805else
26806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026807sed 's/^/| /' conftest.$ac_ext >&5
26808
Reid Spencera773bd52006-08-04 18:18:08 +000026809 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026810fi
Reid Spencera773bd52006-08-04 18:18:08 +000026811
26812rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026813 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026814LIBS=$ac_check_lib_save_LIBS
26815fi
Reid Spencera773bd52006-08-04 18:18:08 +000026816{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26817echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026818if test $ac_cv_lib_elf_elf_begin = yes; then
26819 cat >>confdefs.h <<_ACEOF
26820#define HAVE_LIBELF 1
26821_ACEOF
26822
26823 LIBS="-lelf $LIBS"
26824
26825fi
26826
26827
Reid Spencera773bd52006-08-04 18:18:08 +000026828{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26829echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026830if test "${ac_cv_lib_m_sin+set}" = set; then
26831 echo $ECHO_N "(cached) $ECHO_C" >&6
26832else
26833 ac_check_lib_save_LIBS=$LIBS
26834LIBS="-lm $LIBS"
26835cat >conftest.$ac_ext <<_ACEOF
26836/* confdefs.h. */
26837_ACEOF
26838cat confdefs.h >>conftest.$ac_ext
26839cat >>conftest.$ac_ext <<_ACEOF
26840/* end confdefs.h. */
26841
Reid Spencera773bd52006-08-04 18:18:08 +000026842/* Override any GCC internal prototype to avoid an error.
26843 Use char because int might match the return type of a GCC
26844 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026845#ifdef __cplusplus
26846extern "C"
26847#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026848char sin ();
26849int
26850main ()
26851{
Reid Spencera773bd52006-08-04 18:18:08 +000026852return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026853 ;
26854 return 0;
26855}
26856_ACEOF
26857rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026858if { (ac_try="$ac_link"
26859case "(($ac_try" in
26860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861 *) ac_try_echo=$ac_try;;
26862esac
26863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026865 ac_status=$?
26866 grep -v '^ *+' conftest.er1 >conftest.err
26867 rm -f conftest.er1
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26872 { (case "(($ac_try" in
26873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874 *) ac_try_echo=$ac_try;;
26875esac
26876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; } &&
26881 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026882 { (case "(($ac_try" in
26883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26884 *) ac_try_echo=$ac_try;;
26885esac
26886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26887 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026888 ac_status=$?
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); }; }; then
26891 ac_cv_lib_m_sin=yes
26892else
26893 echo "$as_me: failed program was:" >&5
26894sed 's/^/| /' conftest.$ac_ext >&5
26895
Reid Spencera773bd52006-08-04 18:18:08 +000026896 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026897fi
Reid Spencera773bd52006-08-04 18:18:08 +000026898
26899rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026900 conftest$ac_exeext conftest.$ac_ext
26901LIBS=$ac_check_lib_save_LIBS
26902fi
Reid Spencera773bd52006-08-04 18:18:08 +000026903{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26904echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026905if test $ac_cv_lib_m_sin = yes; then
26906 cat >>confdefs.h <<_ACEOF
26907#define HAVE_LIBM 1
26908_ACEOF
26909
26910 LIBS="-lm $LIBS"
26911
26912fi
26913
Jeff Cohen28783c32007-01-12 18:22:38 +000026914if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026915
Reid Spencera773bd52006-08-04 18:18:08 +000026916{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26917echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026918if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026919 echo $ECHO_N "(cached) $ECHO_C" >&6
26920else
26921 ac_check_lib_save_LIBS=$LIBS
26922LIBS="-limagehlp $LIBS"
26923cat >conftest.$ac_ext <<_ACEOF
26924/* confdefs.h. */
26925_ACEOF
26926cat confdefs.h >>conftest.$ac_ext
26927cat >>conftest.$ac_ext <<_ACEOF
26928/* end confdefs.h. */
26929
Reid Spencer48fdf912006-06-01 19:03:21 +000026930
Reid Spencer484fc8e2006-06-01 16:55:59 +000026931int
26932main ()
26933{
Reid Spencera773bd52006-08-04 18:18:08 +000026934return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026935 ;
26936 return 0;
26937}
26938_ACEOF
26939rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026940if { (ac_try="$ac_link"
26941case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26944esac
26945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026947 ac_status=$?
26948 grep -v '^ *+' conftest.er1 >conftest.err
26949 rm -f conftest.er1
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26954 { (case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26957esac
26958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; } &&
26963 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026964 { (case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26967esac
26968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026973 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026974else
26975 echo "$as_me: failed program was:" >&5
26976sed 's/^/| /' conftest.$ac_ext >&5
26977
Reid Spencera773bd52006-08-04 18:18:08 +000026978 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026979fi
Reid Spencera773bd52006-08-04 18:18:08 +000026980
26981rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026982 conftest$ac_exeext conftest.$ac_ext
26983LIBS=$ac_check_lib_save_LIBS
26984fi
Reid Spencera773bd52006-08-04 18:18:08 +000026985{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26986echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026987if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026988 cat >>confdefs.h <<_ACEOF
26989#define HAVE_LIBIMAGEHLP 1
26990_ACEOF
26991
26992 LIBS="-limagehlp $LIBS"
26993
26994fi
26995
26996
Reid Spencera773bd52006-08-04 18:18:08 +000026997{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26998echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026999if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027000 echo $ECHO_N "(cached) $ECHO_C" >&6
27001else
27002 ac_check_lib_save_LIBS=$LIBS
27003LIBS="-lpsapi $LIBS"
27004cat >conftest.$ac_ext <<_ACEOF
27005/* confdefs.h. */
27006_ACEOF
27007cat confdefs.h >>conftest.$ac_ext
27008cat >>conftest.$ac_ext <<_ACEOF
27009/* end confdefs.h. */
27010
Reid Spencer48fdf912006-06-01 19:03:21 +000027011
Reid Spencer484fc8e2006-06-01 16:55:59 +000027012int
27013main ()
27014{
Reid Spencera773bd52006-08-04 18:18:08 +000027015return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027016 ;
27017 return 0;
27018}
27019_ACEOF
27020rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027021if { (ac_try="$ac_link"
27022case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27025esac
27026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027028 ac_status=$?
27029 grep -v '^ *+' conftest.er1 >conftest.err
27030 rm -f conftest.er1
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27035 { (case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27038esac
27039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27048esac
27049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027051 ac_status=$?
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027054 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027055else
27056 echo "$as_me: failed program was:" >&5
27057sed 's/^/| /' conftest.$ac_ext >&5
27058
Reid Spencera773bd52006-08-04 18:18:08 +000027059 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027060fi
Reid Spencera773bd52006-08-04 18:18:08 +000027061
27062rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027063 conftest$ac_exeext conftest.$ac_ext
27064LIBS=$ac_check_lib_save_LIBS
27065fi
Reid Spencera773bd52006-08-04 18:18:08 +000027066{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27067echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027068if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027069 cat >>confdefs.h <<_ACEOF
27070#define HAVE_LIBPSAPI 1
27071_ACEOF
27072
27073 LIBS="-lpsapi $LIBS"
27074
27075fi
27076
27077fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027078
Reid Spencera773bd52006-08-04 18:18:08 +000027079{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27080echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027081if test "${ac_cv_search_lt_dlopen+set}" = set; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
27083else
27084 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027085cat >conftest.$ac_ext <<_ACEOF
27086/* confdefs.h. */
27087_ACEOF
27088cat confdefs.h >>conftest.$ac_ext
27089cat >>conftest.$ac_ext <<_ACEOF
27090/* end confdefs.h. */
27091
Reid Spencera773bd52006-08-04 18:18:08 +000027092/* Override any GCC internal prototype to avoid an error.
27093 Use char because int might match the return type of a GCC
27094 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027095#ifdef __cplusplus
27096extern "C"
27097#endif
Reid Spencer17795972004-11-18 09:47:37 +000027098char lt_dlopen ();
27099int
27100main ()
27101{
Reid Spencera773bd52006-08-04 18:18:08 +000027102return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027103 ;
27104 return 0;
27105}
27106_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027107for ac_lib in '' ltdl; do
27108 if test -z "$ac_lib"; then
27109 ac_res="none required"
27110 else
27111 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027113 fi
27114 rm -f conftest.$ac_objext conftest$ac_exeext
27115if { (ac_try="$ac_link"
27116case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027122 ac_status=$?
27123 grep -v '^ *+' conftest.er1 >conftest.err
27124 rm -f conftest.er1
27125 cat conftest.err >&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27129 { (case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27132esac
27133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027135 ac_status=$?
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; } &&
27138 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027139 { (case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27142esac
27143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027148 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027149else
27150 echo "$as_me: failed program was:" >&5
27151sed 's/^/| /' conftest.$ac_ext >&5
27152
Reid Spencera773bd52006-08-04 18:18:08 +000027153
Reid Spencer17795972004-11-18 09:47:37 +000027154fi
Reid Spencera773bd52006-08-04 18:18:08 +000027155
27156rm -f core conftest.err conftest.$ac_objext \
27157 conftest$ac_exeext
27158 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27159 break
Reid Spencer17795972004-11-18 09:47:37 +000027160fi
Reid Spencera773bd52006-08-04 18:18:08 +000027161done
27162if test "${ac_cv_search_lt_dlopen+set}" = set; then
27163 :
27164else
27165 ac_cv_search_lt_dlopen=no
27166fi
27167rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027168LIBS=$ac_func_search_save_LIBS
27169fi
Reid Spencera773bd52006-08-04 18:18:08 +000027170{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27171echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27172ac_res=$ac_cv_search_lt_dlopen
27173if test "$ac_res" != no; then
27174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027175
27176cat >>confdefs.h <<\_ACEOF
27177#define HAVE_LT_DLOPEN 1
27178_ACEOF
27179
27180else
27181 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27182 not be available" >&5
27183echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27184 not be available" >&2;}
27185fi
27186
27187
Reid Spencera773bd52006-08-04 18:18:08 +000027188{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27189echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027190if test "${ac_cv_search_dlopen+set}" = set; then
27191 echo $ECHO_N "(cached) $ECHO_C" >&6
27192else
27193 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027194cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027195/* confdefs.h. */
27196_ACEOF
27197cat confdefs.h >>conftest.$ac_ext
27198cat >>conftest.$ac_ext <<_ACEOF
27199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027200
Reid Spencera773bd52006-08-04 18:18:08 +000027201/* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027204#ifdef __cplusplus
27205extern "C"
27206#endif
John Criswell7a73b802003-06-30 21:59:07 +000027207char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027208int
27209main ()
27210{
Reid Spencera773bd52006-08-04 18:18:08 +000027211return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027212 ;
27213 return 0;
27214}
27215_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027216for ac_lib in '' dl; do
27217 if test -z "$ac_lib"; then
27218 ac_res="none required"
27219 else
27220 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027222 fi
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224if { (ac_try="$ac_link"
27225case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27228esac
27229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027231 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027232 grep -v '^ *+' conftest.er1 >conftest.err
27233 rm -f conftest.er1
27234 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27238 { (case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27241esac
27242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027244 ac_status=$?
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; } &&
27247 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027248 { (case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27251esac
27252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027254 ac_status=$?
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027257 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027258else
27259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027260sed 's/^/| /' conftest.$ac_ext >&5
27261
Reid Spencera773bd52006-08-04 18:18:08 +000027262
John Criswell7a73b802003-06-30 21:59:07 +000027263fi
Reid Spencera773bd52006-08-04 18:18:08 +000027264
27265rm -f core conftest.err conftest.$ac_objext \
27266 conftest$ac_exeext
27267 if test "${ac_cv_search_dlopen+set}" = set; then
27268 break
John Criswell7a73b802003-06-30 21:59:07 +000027269fi
Reid Spencera773bd52006-08-04 18:18:08 +000027270done
27271if test "${ac_cv_search_dlopen+set}" = set; then
27272 :
27273else
27274 ac_cv_search_dlopen=no
27275fi
27276rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027277LIBS=$ac_func_search_save_LIBS
27278fi
Reid Spencera773bd52006-08-04 18:18:08 +000027279{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27280echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27281ac_res=$ac_cv_search_dlopen
27282if test "$ac_res" != no; then
27283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027284
27285cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027286#define HAVE_DLOPEN 1
27287_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027288
27289else
Brian Gaekec45be042003-10-07 06:01:34 +000027290 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27291echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027292fi
27293
27294
Reid Spencera773bd52006-08-04 18:18:08 +000027295{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27296echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027297if test "${ac_cv_search_mallinfo+set}" = set; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27299else
27300 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027301cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027302/* confdefs.h. */
27303_ACEOF
27304cat confdefs.h >>conftest.$ac_ext
27305cat >>conftest.$ac_ext <<_ACEOF
27306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027307
Reid Spencera773bd52006-08-04 18:18:08 +000027308/* Override any GCC internal prototype to avoid an error.
27309 Use char because int might match the return type of a GCC
27310 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027311#ifdef __cplusplus
27312extern "C"
27313#endif
John Criswell7a73b802003-06-30 21:59:07 +000027314char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027315int
27316main ()
27317{
Reid Spencera773bd52006-08-04 18:18:08 +000027318return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027319 ;
27320 return 0;
27321}
27322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027323for ac_lib in '' malloc; do
27324 if test -z "$ac_lib"; then
27325 ac_res="none required"
27326 else
27327 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027329 fi
27330 rm -f conftest.$ac_objext conftest$ac_exeext
27331if { (ac_try="$ac_link"
27332case "(($ac_try" in
27333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334 *) ac_try_echo=$ac_try;;
27335esac
27336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027339 grep -v '^ *+' conftest.er1 >conftest.err
27340 rm -f conftest.er1
27341 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27345 { (case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27348esac
27349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027351 ac_status=$?
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; } &&
27354 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027355 { (case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358esac
27359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027361 ac_status=$?
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027364 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027365else
27366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027367sed 's/^/| /' conftest.$ac_ext >&5
27368
Reid Spencera773bd52006-08-04 18:18:08 +000027369
John Criswell7a73b802003-06-30 21:59:07 +000027370fi
Reid Spencera773bd52006-08-04 18:18:08 +000027371
27372rm -f core conftest.err conftest.$ac_objext \
27373 conftest$ac_exeext
27374 if test "${ac_cv_search_mallinfo+set}" = set; then
27375 break
John Criswell7a73b802003-06-30 21:59:07 +000027376fi
Reid Spencera773bd52006-08-04 18:18:08 +000027377done
27378if test "${ac_cv_search_mallinfo+set}" = set; then
27379 :
27380else
27381 ac_cv_search_mallinfo=no
27382fi
27383rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027384LIBS=$ac_func_search_save_LIBS
27385fi
Reid Spencera773bd52006-08-04 18:18:08 +000027386{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27387echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27388ac_res=$ac_cv_search_mallinfo
27389if test "$ac_res" != no; then
27390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027391
27392cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027393#define HAVE_MALLINFO 1
27394_ACEOF
27395
27396fi
27397
27398
Reid Spencer0a262ba2005-08-24 10:07:20 +000027399if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027400
Reid Spencera773bd52006-08-04 18:18:08 +000027401{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27402echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027403if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405else
27406 ac_check_lib_save_LIBS=$LIBS
27407LIBS="-lpthread $LIBS"
27408cat >conftest.$ac_ext <<_ACEOF
27409/* confdefs.h. */
27410_ACEOF
27411cat confdefs.h >>conftest.$ac_ext
27412cat >>conftest.$ac_ext <<_ACEOF
27413/* end confdefs.h. */
27414
Reid Spencera773bd52006-08-04 18:18:08 +000027415/* Override any GCC internal prototype to avoid an error.
27416 Use char because int might match the return type of a GCC
27417 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027418#ifdef __cplusplus
27419extern "C"
27420#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027421char pthread_mutex_init ();
27422int
27423main ()
27424{
Reid Spencera773bd52006-08-04 18:18:08 +000027425return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027426 ;
27427 return 0;
27428}
27429_ACEOF
27430rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027431if { (ac_try="$ac_link"
27432case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27435esac
27436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027438 ac_status=$?
27439 grep -v '^ *+' conftest.er1 >conftest.err
27440 rm -f conftest.er1
27441 cat conftest.err >&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448esac
27449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027455 { (case "(($ac_try" in
27456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 *) ac_try_echo=$ac_try;;
27458esac
27459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027461 ac_status=$?
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; }; then
27464 ac_cv_lib_pthread_pthread_mutex_init=yes
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
Reid Spencera773bd52006-08-04 18:18:08 +000027469 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027470fi
Reid Spencera773bd52006-08-04 18:18:08 +000027471
27472rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027473 conftest$ac_exeext conftest.$ac_ext
27474LIBS=$ac_check_lib_save_LIBS
27475fi
Reid Spencera773bd52006-08-04 18:18:08 +000027476{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27477echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027478if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27479 cat >>confdefs.h <<_ACEOF
27480#define HAVE_LIBPTHREAD 1
27481_ACEOF
27482
27483 LIBS="-lpthread $LIBS"
27484
27485fi
27486
Reid Spencera773bd52006-08-04 18:18:08 +000027487 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27488echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027489if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27490 echo $ECHO_N "(cached) $ECHO_C" >&6
27491else
27492 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027493cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027494/* confdefs.h. */
27495_ACEOF
27496cat confdefs.h >>conftest.$ac_ext
27497cat >>conftest.$ac_ext <<_ACEOF
27498/* end confdefs.h. */
27499
Reid Spencera773bd52006-08-04 18:18:08 +000027500/* Override any GCC internal prototype to avoid an error.
27501 Use char because int might match the return type of a GCC
27502 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027503#ifdef __cplusplus
27504extern "C"
27505#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027506char pthread_mutex_lock ();
27507int
27508main ()
27509{
Reid Spencera773bd52006-08-04 18:18:08 +000027510return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027511 ;
27512 return 0;
27513}
27514_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027515for ac_lib in '' pthread; do
27516 if test -z "$ac_lib"; then
27517 ac_res="none required"
27518 else
27519 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027521 fi
27522 rm -f conftest.$ac_objext conftest$ac_exeext
27523if { (ac_try="$ac_link"
27524case "(($ac_try" in
27525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526 *) ac_try_echo=$ac_try;;
27527esac
27528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027530 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27537 { (case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27540esac
27541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027543 ac_status=$?
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; } &&
27546 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027547 { (case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27550esac
27551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27552 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027553 ac_status=$?
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027556 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027557else
27558 echo "$as_me: failed program was:" >&5
27559sed 's/^/| /' conftest.$ac_ext >&5
27560
Reid Spencera773bd52006-08-04 18:18:08 +000027561
Brian Gaeke5f268f72003-12-05 19:29:01 +000027562fi
Reid Spencera773bd52006-08-04 18:18:08 +000027563
27564rm -f core conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext
27566 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27567 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027568fi
Reid Spencera773bd52006-08-04 18:18:08 +000027569done
27570if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27571 :
27572else
27573 ac_cv_search_pthread_mutex_lock=no
27574fi
27575rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027576LIBS=$ac_func_search_save_LIBS
27577fi
Reid Spencera773bd52006-08-04 18:18:08 +000027578{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27579echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27580ac_res=$ac_cv_search_pthread_mutex_lock
27581if test "$ac_res" != no; then
27582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027583
John Criswell40468462004-09-24 21:19:06 +000027584cat >>confdefs.h <<\_ACEOF
27585#define HAVE_PTHREAD_MUTEX_LOCK 1
27586_ACEOF
27587
27588fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027589
Reid Spencer0a262ba2005-08-24 10:07:20 +000027590fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027591
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027592
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027593# Check whether --with-udis86 was given.
27594if test "${with_udis86+set}" = set; then
27595 withval=$with_udis86;
27596 USE_UDIS86=1
27597
27598 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027599 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027600 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27601 esac
27602
27603{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27604echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27605if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27607else
27608 ac_check_lib_save_LIBS=$LIBS
27609LIBS="-ludis86 $LIBS"
27610cat >conftest.$ac_ext <<_ACEOF
27611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char ud_init ();
27624int
27625main ()
27626{
27627return ud_init ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
27632rm -f conftest.$ac_objext conftest$ac_exeext
27633if { (ac_try="$ac_link"
27634case "(($ac_try" in
27635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636 *) ac_try_echo=$ac_try;;
27637esac
27638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639 (eval "$ac_link") 2>conftest.er1
27640 ac_status=$?
27641 grep -v '^ *+' conftest.er1 >conftest.err
27642 rm -f conftest.er1
27643 cat conftest.err >&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); } &&
27646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27647 { (case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27650esac
27651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; } &&
27656 { ac_try='test -s conftest$ac_exeext'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660esac
27661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; }; then
27666 ac_cv_lib_udis86_ud_init=yes
27667else
27668 echo "$as_me: failed program was:" >&5
27669sed 's/^/| /' conftest.$ac_ext >&5
27670
27671 ac_cv_lib_udis86_ud_init=no
27672fi
27673
27674rm -f core conftest.err conftest.$ac_objext \
27675 conftest$ac_exeext conftest.$ac_ext
27676LIBS=$ac_check_lib_save_LIBS
27677fi
27678{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27679echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27680if test $ac_cv_lib_udis86_ud_init = yes; then
27681 cat >>confdefs.h <<_ACEOF
27682#define HAVE_LIBUDIS86 1
27683_ACEOF
27684
27685 LIBS="-ludis86 $LIBS"
27686
27687else
27688
27689 echo "Error! You need to have libudis86 around."
27690 exit -1
27691
27692fi
27693
27694
27695else
27696 USE_UDIS86=0
27697
27698fi
27699
27700
27701cat >>confdefs.h <<_ACEOF
27702#define USE_UDIS86 $USE_UDIS86
27703_ACEOF
27704
27705
27706
Reid Spencer59473af2004-12-25 07:31:29 +000027707
27708
27709
27710
27711
27712ac_header_dirent=no
27713for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27714 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027715{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27716echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027718 echo $ECHO_N "(cached) $ECHO_C" >&6
27719else
27720 cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
27726#include <sys/types.h>
27727#include <$ac_hdr>
27728
27729int
27730main ()
27731{
27732if ((DIR *) 0)
27733return 0;
27734 ;
27735 return 0;
27736}
27737_ACEOF
27738rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027739if { (ac_try="$ac_compile"
27740case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27743esac
27744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027746 ac_status=$?
27747 grep -v '^ *+' conftest.er1 >conftest.err
27748 rm -f conftest.er1
27749 cat conftest.err >&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27753 { (case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27756esac
27757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; } &&
27762 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027763 { (case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27766esac
27767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027769 ac_status=$?
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; }; then
27772 eval "$as_ac_Header=yes"
27773else
27774 echo "$as_me: failed program was:" >&5
27775sed 's/^/| /' conftest.$ac_ext >&5
27776
Reid Spencera773bd52006-08-04 18:18:08 +000027777 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027778fi
Reid Spencera773bd52006-08-04 18:18:08 +000027779
27780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027781fi
Reid Spencera773bd52006-08-04 18:18:08 +000027782ac_res=`eval echo '${'$as_ac_Header'}'`
27783 { echo "$as_me:$LINENO: result: $ac_res" >&5
27784echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027785if test `eval echo '${'$as_ac_Header'}'` = yes; then
27786 cat >>confdefs.h <<_ACEOF
27787#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27788_ACEOF
27789
27790ac_header_dirent=$ac_hdr; break
27791fi
27792
27793done
27794# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27795if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027796 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27797echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027798if test "${ac_cv_search_opendir+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27800else
27801 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027802cat >conftest.$ac_ext <<_ACEOF
27803/* confdefs.h. */
27804_ACEOF
27805cat confdefs.h >>conftest.$ac_ext
27806cat >>conftest.$ac_ext <<_ACEOF
27807/* end confdefs.h. */
27808
Reid Spencera773bd52006-08-04 18:18:08 +000027809/* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027812#ifdef __cplusplus
27813extern "C"
27814#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027815char opendir ();
27816int
27817main ()
27818{
Reid Spencera773bd52006-08-04 18:18:08 +000027819return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027820 ;
27821 return 0;
27822}
27823_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027824for ac_lib in '' dir; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27827 else
27828 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027830 fi
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832if { (ac_try="$ac_link"
27833case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27836esac
27837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027839 ac_status=$?
27840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846 { (case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027865 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
Reid Spencera773bd52006-08-04 18:18:08 +000027870
Reid Spencer59473af2004-12-25 07:31:29 +000027871fi
Reid Spencera773bd52006-08-04 18:18:08 +000027872
27873rm -f core conftest.err conftest.$ac_objext \
27874 conftest$ac_exeext
27875 if test "${ac_cv_search_opendir+set}" = set; then
27876 break
Reid Spencer59473af2004-12-25 07:31:29 +000027877fi
Reid Spencera773bd52006-08-04 18:18:08 +000027878done
27879if test "${ac_cv_search_opendir+set}" = set; then
27880 :
27881else
27882 ac_cv_search_opendir=no
27883fi
27884rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027885LIBS=$ac_func_search_save_LIBS
27886fi
Reid Spencera773bd52006-08-04 18:18:08 +000027887{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27888echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27889ac_res=$ac_cv_search_opendir
27890if test "$ac_res" != no; then
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027892
27893fi
27894
27895else
Reid Spencera773bd52006-08-04 18:18:08 +000027896 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27897echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027898if test "${ac_cv_search_opendir+set}" = set; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27900else
27901 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027902cat >conftest.$ac_ext <<_ACEOF
27903/* confdefs.h. */
27904_ACEOF
27905cat confdefs.h >>conftest.$ac_ext
27906cat >>conftest.$ac_ext <<_ACEOF
27907/* end confdefs.h. */
27908
Reid Spencera773bd52006-08-04 18:18:08 +000027909/* Override any GCC internal prototype to avoid an error.
27910 Use char because int might match the return type of a GCC
27911 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027912#ifdef __cplusplus
27913extern "C"
27914#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027915char opendir ();
27916int
27917main ()
27918{
Reid Spencera773bd52006-08-04 18:18:08 +000027919return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027920 ;
27921 return 0;
27922}
27923_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027924for ac_lib in '' x; do
27925 if test -z "$ac_lib"; then
27926 ac_res="none required"
27927 else
27928 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027930 fi
27931 rm -f conftest.$ac_objext conftest$ac_exeext
27932if { (ac_try="$ac_link"
27933case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27936esac
27937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027939 ac_status=$?
27940 grep -v '^ *+' conftest.er1 >conftest.err
27941 rm -f conftest.er1
27942 cat conftest.err >&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27946 { (case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27949esac
27950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; } &&
27955 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027956 { (case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27959esac
27960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027962 ac_status=$?
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027965 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027966else
27967 echo "$as_me: failed program was:" >&5
27968sed 's/^/| /' conftest.$ac_ext >&5
27969
Reid Spencera773bd52006-08-04 18:18:08 +000027970
Reid Spencer59473af2004-12-25 07:31:29 +000027971fi
Reid Spencera773bd52006-08-04 18:18:08 +000027972
27973rm -f core conftest.err conftest.$ac_objext \
27974 conftest$ac_exeext
27975 if test "${ac_cv_search_opendir+set}" = set; then
27976 break
Reid Spencer59473af2004-12-25 07:31:29 +000027977fi
Reid Spencera773bd52006-08-04 18:18:08 +000027978done
27979if test "${ac_cv_search_opendir+set}" = set; then
27980 :
27981else
27982 ac_cv_search_opendir=no
27983fi
27984rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027985LIBS=$ac_func_search_save_LIBS
27986fi
Reid Spencera773bd52006-08-04 18:18:08 +000027987{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27988echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27989ac_res=$ac_cv_search_opendir
27990if test "$ac_res" != no; then
27991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027992
27993fi
27994
27995fi
27996
Reid Spencera773bd52006-08-04 18:18:08 +000027997{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27998echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027999if test "${ac_cv_header_mmap_anon+set}" = set; then
28000 echo $ECHO_N "(cached) $ECHO_C" >&6
28001else
28002 ac_ext=c
28003ac_cpp='$CPP $CPPFLAGS'
28004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28006ac_compiler_gnu=$ac_cv_c_compiler_gnu
28007
28008 cat >conftest.$ac_ext <<_ACEOF
28009/* confdefs.h. */
28010_ACEOF
28011cat confdefs.h >>conftest.$ac_ext
28012cat >>conftest.$ac_ext <<_ACEOF
28013/* end confdefs.h. */
28014#include <sys/mman.h>
28015#include <unistd.h>
28016#include <fcntl.h>
28017int
28018main ()
28019{
28020mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28021 ;
28022 return 0;
28023}
28024_ACEOF
28025rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028026if { (ac_try="$ac_compile"
28027case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28030esac
28031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028033 ac_status=$?
28034 grep -v '^ *+' conftest.er1 >conftest.err
28035 rm -f conftest.er1
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28040 { (case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28043esac
28044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; } &&
28049 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028050 { (case "(($ac_try" in
28051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28052 *) ac_try_echo=$ac_try;;
28053esac
28054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28055 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; }; then
28059 ac_cv_header_mmap_anon=yes
28060else
28061 echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
Reid Spencera773bd52006-08-04 18:18:08 +000028064 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028065fi
Reid Spencera773bd52006-08-04 18:18:08 +000028066
28067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028068 ac_ext=c
28069ac_cpp='$CPP $CPPFLAGS'
28070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28072ac_compiler_gnu=$ac_cv_c_compiler_gnu
28073
28074
28075fi
Reid Spencera773bd52006-08-04 18:18:08 +000028076{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28077echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028078if test "$ac_cv_header_mmap_anon" = yes; then
28079
28080cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028081#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028082_ACEOF
28083
28084fi
28085
Reid Spencera773bd52006-08-04 18:18:08 +000028086{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28087echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028088if test "${ac_cv_header_stat_broken+set}" = set; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28090else
28091 cat >conftest.$ac_ext <<_ACEOF
28092/* confdefs.h. */
28093_ACEOF
28094cat confdefs.h >>conftest.$ac_ext
28095cat >>conftest.$ac_ext <<_ACEOF
28096/* end confdefs.h. */
28097#include <sys/types.h>
28098#include <sys/stat.h>
28099
Reid Spencera773bd52006-08-04 18:18:08 +000028100#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028101# if S_ISBLK (S_IFDIR)
28102You lose.
28103# endif
28104#endif
28105
Reid Spencera773bd52006-08-04 18:18:08 +000028106#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028107# if S_ISBLK (S_IFCHR)
28108You lose.
28109# endif
28110#endif
28111
Reid Spencera773bd52006-08-04 18:18:08 +000028112#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028113# if S_ISLNK (S_IFREG)
28114You lose.
28115# endif
28116#endif
28117
Reid Spencera773bd52006-08-04 18:18:08 +000028118#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028119# if S_ISSOCK (S_IFREG)
28120You lose.
28121# endif
28122#endif
28123
28124_ACEOF
28125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28126 $EGREP "You lose" >/dev/null 2>&1; then
28127 ac_cv_header_stat_broken=yes
28128else
28129 ac_cv_header_stat_broken=no
28130fi
28131rm -f conftest*
28132
28133fi
Reid Spencera773bd52006-08-04 18:18:08 +000028134{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28135echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028136if test $ac_cv_header_stat_broken = yes; then
28137
28138cat >>confdefs.h <<\_ACEOF
28139#define STAT_MACROS_BROKEN 1
28140_ACEOF
28141
28142fi
28143
Reid Spencera773bd52006-08-04 18:18:08 +000028144{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28145echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028146if test "${ac_cv_header_stdc+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28148else
28149 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028150/* confdefs.h. */
28151_ACEOF
28152cat confdefs.h >>conftest.$ac_ext
28153cat >>conftest.$ac_ext <<_ACEOF
28154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028155#include <stdlib.h>
28156#include <stdarg.h>
28157#include <string.h>
28158#include <float.h>
28159
John Criswell0c38eaf2003-09-10 15:17:25 +000028160int
28161main ()
28162{
28163
28164 ;
28165 return 0;
28166}
John Criswell7a73b802003-06-30 21:59:07 +000028167_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028168rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028169if { (ac_try="$ac_compile"
28170case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28173esac
28174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028177 grep -v '^ *+' conftest.er1 >conftest.err
28178 rm -f conftest.er1
28179 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028181 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186esac
28187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028193 { (case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28196esac
28197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028202 ac_cv_header_stdc=yes
28203else
28204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028205sed 's/^/| /' conftest.$ac_ext >&5
28206
Reid Spencera773bd52006-08-04 18:18:08 +000028207 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028208fi
Reid Spencera773bd52006-08-04 18:18:08 +000028209
28210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028211
28212if test $ac_cv_header_stdc = yes; then
28213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028215/* confdefs.h. */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028220#include <string.h>
28221
28222_ACEOF
28223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028224 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028225 :
28226else
28227 ac_cv_header_stdc=no
28228fi
28229rm -f conftest*
28230
28231fi
28232
28233if test $ac_cv_header_stdc = yes; then
28234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028236/* confdefs.h. */
28237_ACEOF
28238cat confdefs.h >>conftest.$ac_ext
28239cat >>conftest.$ac_ext <<_ACEOF
28240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028241#include <stdlib.h>
28242
28243_ACEOF
28244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028245 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028246 :
28247else
28248 ac_cv_header_stdc=no
28249fi
28250rm -f conftest*
28251
28252fi
28253
28254if test $ac_cv_header_stdc = yes; then
28255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28256 if test "$cross_compiling" = yes; then
28257 :
28258else
28259 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028260/* confdefs.h. */
28261_ACEOF
28262cat confdefs.h >>conftest.$ac_ext
28263cat >>conftest.$ac_ext <<_ACEOF
28264/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028265#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028266#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028267#if ((' ' & 0x0FF) == 0x020)
28268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28270#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028271# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028272 (('a' <= (c) && (c) <= 'i') \
28273 || ('j' <= (c) && (c) <= 'r') \
28274 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28276#endif
28277
28278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28279int
28280main ()
28281{
28282 int i;
28283 for (i = 0; i < 256; i++)
28284 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028285 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028286 return 2;
28287 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028288}
28289_ACEOF
28290rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028291if { (ac_try="$ac_link"
28292case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28295esac
28296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028298 ac_status=$?
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028301 { (case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28304esac
28305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28310 :
28311else
28312 echo "$as_me: program exited with status $ac_status" >&5
28313echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028314sed 's/^/| /' conftest.$ac_ext >&5
28315
John Criswell7a73b802003-06-30 21:59:07 +000028316( exit $ac_status )
28317ac_cv_header_stdc=no
28318fi
Reid Spencera773bd52006-08-04 18:18:08 +000028319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28320fi
28321
28322
John Criswell7a73b802003-06-30 21:59:07 +000028323fi
28324fi
Reid Spencera773bd52006-08-04 18:18:08 +000028325{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28326echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028327if test $ac_cv_header_stdc = yes; then
28328
28329cat >>confdefs.h <<\_ACEOF
28330#define STDC_HEADERS 1
28331_ACEOF
28332
28333fi
28334
Reid Spencera773bd52006-08-04 18:18:08 +000028335{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28336echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028337if test "${ac_cv_header_sys_wait_h+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28339else
28340 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028346#include <sys/types.h>
28347#include <sys/wait.h>
28348#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028349# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028350#endif
28351#ifndef WIFEXITED
28352# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28353#endif
28354
John Criswell7a73b802003-06-30 21:59:07 +000028355int
28356main ()
28357{
28358 int s;
28359 wait (&s);
28360 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28361 ;
28362 return 0;
28363}
28364_ACEOF
28365rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028366if { (ac_try="$ac_compile"
28367case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28370esac
28371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028374 grep -v '^ *+' conftest.er1 >conftest.err
28375 rm -f conftest.er1
28376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28380 { (case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; } &&
28389 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
28399 ac_cv_header_sys_wait_h=yes
28400else
28401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028402sed 's/^/| /' conftest.$ac_ext >&5
28403
Reid Spencera773bd52006-08-04 18:18:08 +000028404 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028405fi
Reid Spencera773bd52006-08-04 18:18:08 +000028406
28407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028408fi
Reid Spencera773bd52006-08-04 18:18:08 +000028409{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28410echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028411if test $ac_cv_header_sys_wait_h = yes; then
28412
28413cat >>confdefs.h <<\_ACEOF
28414#define HAVE_SYS_WAIT_H 1
28415_ACEOF
28416
28417fi
28418
Reid Spencera773bd52006-08-04 18:18:08 +000028419{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28420echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028421if test "${ac_cv_header_time+set}" = set; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28423else
28424 cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028430#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028431#include <sys/time.h>
28432#include <time.h>
28433
28434int
28435main ()
28436{
28437if ((struct tm *) 0)
28438return 0;
28439 ;
28440 return 0;
28441}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028442_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028443rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028444if { (ac_try="$ac_compile"
28445case "(($ac_try" in
28446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447 *) ac_try_echo=$ac_try;;
28448esac
28449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028451 ac_status=$?
28452 grep -v '^ *+' conftest.er1 >conftest.err
28453 rm -f conftest.er1
28454 cat conftest.err >&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028456 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28458 { (case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28461esac
28462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028468 { (case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28471esac
28472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028474 ac_status=$?
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; }; then
28477 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028478else
28479 echo "$as_me: failed program was:" >&5
28480sed 's/^/| /' conftest.$ac_ext >&5
28481
Reid Spencera773bd52006-08-04 18:18:08 +000028482 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028483fi
Reid Spencera773bd52006-08-04 18:18:08 +000028484
28485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028486fi
Reid Spencera773bd52006-08-04 18:18:08 +000028487{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28488echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028489if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028490
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028491cat >>confdefs.h <<\_ACEOF
28492#define TIME_WITH_SYS_TIME 1
28493_ACEOF
28494
28495fi
28496
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028497
Reid Spencer59473af2004-12-25 07:31:29 +000028498
28499
28500
28501
28502
28503
28504for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28505do
28506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028511 echo $ECHO_N "(cached) $ECHO_C" >&6
28512fi
Reid Spencera773bd52006-08-04 18:18:08 +000028513ac_res=`eval echo '${'$as_ac_Header'}'`
28514 { echo "$as_me:$LINENO: result: $ac_res" >&5
28515echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028516else
28517 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028518{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028520cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028521/* confdefs.h. */
28522_ACEOF
28523cat confdefs.h >>conftest.$ac_ext
28524cat >>conftest.$ac_ext <<_ACEOF
28525/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028526$ac_includes_default
28527#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028528_ACEOF
28529rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028530if { (ac_try="$ac_compile"
28531case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534esac
28535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028537 ac_status=$?
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28544 { (case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28547esac
28548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028550 ac_status=$?
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; } &&
28553 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028554 { (case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28557esac
28558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028560 ac_status=$?
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028563 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028564else
28565 echo "$as_me: failed program was:" >&5
28566sed 's/^/| /' conftest.$ac_ext >&5
28567
Reid Spencera773bd52006-08-04 18:18:08 +000028568 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028569fi
Reid Spencera773bd52006-08-04 18:18:08 +000028570
28571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28573echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028574
Reid Spencer59473af2004-12-25 07:31:29 +000028575# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028576{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028578cat >conftest.$ac_ext <<_ACEOF
28579/* confdefs.h. */
28580_ACEOF
28581cat confdefs.h >>conftest.$ac_ext
28582cat >>conftest.$ac_ext <<_ACEOF
28583/* end confdefs.h. */
28584#include <$ac_header>
28585_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028586if { (ac_try="$ac_cpp conftest.$ac_ext"
28587case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } >/dev/null; then
28599 if test -s conftest.err; then
28600 ac_cpp_err=$ac_c_preproc_warn_flag
28601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28602 else
28603 ac_cpp_err=
28604 fi
28605else
28606 ac_cpp_err=yes
28607fi
28608if test -z "$ac_cpp_err"; then
28609 ac_header_preproc=yes
28610else
28611 echo "$as_me: failed program was:" >&5
28612sed 's/^/| /' conftest.$ac_ext >&5
28613
28614 ac_header_preproc=no
28615fi
Reid Spencera773bd52006-08-04 18:18:08 +000028616
Reid Spencer59473af2004-12-25 07:31:29 +000028617rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028618{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28619echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028620
28621# So? What about this header?
28622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28623 yes:no: )
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28628 ac_header_preproc=yes
28629 ;;
28630 no:yes:* )
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028643 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028644## ----------------------------------- ##
28645## Report this to llvmbugs@cs.uiuc.edu ##
28646## ----------------------------------- ##
28647_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028648 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028649 ;;
28650esac
Reid Spencera773bd52006-08-04 18:18:08 +000028651{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028654 echo $ECHO_N "(cached) $ECHO_C" >&6
28655else
28656 eval "$as_ac_Header=\$ac_header_preproc"
28657fi
Reid Spencera773bd52006-08-04 18:18:08 +000028658ac_res=`eval echo '${'$as_ac_Header'}'`
28659 { echo "$as_me:$LINENO: result: $ac_res" >&5
28660echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028661
28662fi
Reid Spencer59473af2004-12-25 07:31:29 +000028663if test `eval echo '${'$as_ac_Header'}'` = yes; then
28664 cat >>confdefs.h <<_ACEOF
28665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028666_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028667
28668fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028669
Reid Spencer59473af2004-12-25 07:31:29 +000028670done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028671
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028672
28673
Reid Spencer59473af2004-12-25 07:31:29 +000028674
28675
28676
28677
Reid Spencercdb08a32006-06-05 16:11:07 +000028678for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028679do
28680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028685 echo $ECHO_N "(cached) $ECHO_C" >&6
28686fi
Reid Spencera773bd52006-08-04 18:18:08 +000028687ac_res=`eval echo '${'$as_ac_Header'}'`
28688 { echo "$as_me:$LINENO: result: $ac_res" >&5
28689echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028690else
28691 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028692{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028694cat >conftest.$ac_ext <<_ACEOF
28695/* confdefs.h. */
28696_ACEOF
28697cat confdefs.h >>conftest.$ac_ext
28698cat >>conftest.$ac_ext <<_ACEOF
28699/* end confdefs.h. */
28700$ac_includes_default
28701#include <$ac_header>
28702_ACEOF
28703rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028704if { (ac_try="$ac_compile"
28705case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28708esac
28709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028711 ac_status=$?
28712 grep -v '^ *+' conftest.er1 >conftest.err
28713 rm -f conftest.er1
28714 cat conftest.err >&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28718 { (case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28721esac
28722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 ac_header_compiler=yes
28738else
28739 echo "$as_me: failed program was:" >&5
28740sed 's/^/| /' conftest.$ac_ext >&5
28741
Reid Spencera773bd52006-08-04 18:18:08 +000028742 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028743fi
Reid Spencera773bd52006-08-04 18:18:08 +000028744
28745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28747echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028748
28749# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028750{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028752cat >conftest.$ac_ext <<_ACEOF
28753/* confdefs.h. */
28754_ACEOF
28755cat confdefs.h >>conftest.$ac_ext
28756cat >>conftest.$ac_ext <<_ACEOF
28757/* end confdefs.h. */
28758#include <$ac_header>
28759_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028760if { (ac_try="$ac_cpp conftest.$ac_ext"
28761case "(($ac_try" in
28762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763 *) ac_try_echo=$ac_try;;
28764esac
28765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028767 ac_status=$?
28768 grep -v '^ *+' conftest.er1 >conftest.err
28769 rm -f conftest.er1
28770 cat conftest.err >&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } >/dev/null; then
28773 if test -s conftest.err; then
28774 ac_cpp_err=$ac_c_preproc_warn_flag
28775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28776 else
28777 ac_cpp_err=
28778 fi
28779else
28780 ac_cpp_err=yes
28781fi
28782if test -z "$ac_cpp_err"; then
28783 ac_header_preproc=yes
28784else
28785 echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
28788 ac_header_preproc=no
28789fi
Reid Spencera773bd52006-08-04 18:18:08 +000028790
Reid Spencer59473af2004-12-25 07:31:29 +000028791rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028792{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28793echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028794
28795# So? What about this header?
28796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28797 yes:no: )
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28802 ac_header_preproc=yes
28803 ;;
28804 no:yes:* )
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028817 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028818## ----------------------------------- ##
28819## Report this to llvmbugs@cs.uiuc.edu ##
28820## ----------------------------------- ##
28821_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028822 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028823 ;;
28824esac
Reid Spencera773bd52006-08-04 18:18:08 +000028825{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829else
28830 eval "$as_ac_Header=\$ac_header_preproc"
28831fi
Reid Spencera773bd52006-08-04 18:18:08 +000028832ac_res=`eval echo '${'$as_ac_Header'}'`
28833 { echo "$as_me:$LINENO: result: $ac_res" >&5
28834echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028835
28836fi
28837if test `eval echo '${'$as_ac_Header'}'` = yes; then
28838 cat >>confdefs.h <<_ACEOF
28839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28840_ACEOF
28841
28842fi
28843
28844done
28845
28846
28847
28848
28849
28850
Reid Spencercdb08a32006-06-05 16:11:07 +000028851for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028852do
28853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028858 echo $ECHO_N "(cached) $ECHO_C" >&6
28859fi
Reid Spencera773bd52006-08-04 18:18:08 +000028860ac_res=`eval echo '${'$as_ac_Header'}'`
28861 { echo "$as_me:$LINENO: result: $ac_res" >&5
28862echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028863else
28864 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028865{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28866echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028867cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028868/* confdefs.h. */
28869_ACEOF
28870cat confdefs.h >>conftest.$ac_ext
28871cat >>conftest.$ac_ext <<_ACEOF
28872/* end confdefs.h. */
28873$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028874#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028875_ACEOF
28876rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028877if { (ac_try="$ac_compile"
28878case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28881esac
28882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028884 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028885 grep -v '^ *+' conftest.er1 >conftest.err
28886 rm -f conftest.er1
28887 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28891 { (case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894esac
28895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; } &&
28900 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028901 { (case "(($ac_try" in
28902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903 *) ac_try_echo=$ac_try;;
28904esac
28905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28906 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28910 ac_header_compiler=yes
28911else
28912 echo "$as_me: failed program was:" >&5
28913sed 's/^/| /' conftest.$ac_ext >&5
28914
Reid Spencera773bd52006-08-04 18:18:08 +000028915 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028916fi
Reid Spencera773bd52006-08-04 18:18:08 +000028917
28918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28919{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28920echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028921
28922# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028923{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028925cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028926/* confdefs.h. */
28927_ACEOF
28928cat confdefs.h >>conftest.$ac_ext
28929cat >>conftest.$ac_ext <<_ACEOF
28930/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028931#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028932_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028933if { (ac_try="$ac_cpp conftest.$ac_ext"
28934case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937esac
28938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028940 ac_status=$?
28941 grep -v '^ *+' conftest.er1 >conftest.err
28942 rm -f conftest.er1
28943 cat conftest.err >&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } >/dev/null; then
28946 if test -s conftest.err; then
28947 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028949 else
28950 ac_cpp_err=
28951 fi
28952else
28953 ac_cpp_err=yes
28954fi
28955if test -z "$ac_cpp_err"; then
28956 ac_header_preproc=yes
28957else
28958 echo "$as_me: failed program was:" >&5
28959sed 's/^/| /' conftest.$ac_ext >&5
28960
28961 ac_header_preproc=no
28962fi
Reid Spencera773bd52006-08-04 18:18:08 +000028963
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028964rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028965{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28966echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028967
28968# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28970 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028975 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028976 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028977 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028990 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028991## ----------------------------------- ##
28992## Report this to llvmbugs@cs.uiuc.edu ##
28993## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028994_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028995 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028996 ;;
28997esac
Reid Spencera773bd52006-08-04 18:18:08 +000028998{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029001 echo $ECHO_N "(cached) $ECHO_C" >&6
29002else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029003 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029004fi
Reid Spencera773bd52006-08-04 18:18:08 +000029005ac_res=`eval echo '${'$as_ac_Header'}'`
29006 { echo "$as_me:$LINENO: result: $ac_res" >&5
29007echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029008
29009fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029010if test `eval echo '${'$as_ac_Header'}'` = yes; then
29011 cat >>confdefs.h <<_ACEOF
29012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029013_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029014
29015fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029016
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029017done
29018
John Criswell7ed43ad2004-07-19 16:12:29 +000029019
Reid Spencercdb08a32006-06-05 16:11:07 +000029020
Reid Spencera6d990a2006-09-14 06:17:21 +000029021
29022for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029023do
29024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029029 echo $ECHO_N "(cached) $ECHO_C" >&6
29030fi
Reid Spencera773bd52006-08-04 18:18:08 +000029031ac_res=`eval echo '${'$as_ac_Header'}'`
29032 { echo "$as_me:$LINENO: result: $ac_res" >&5
29033echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029034else
29035 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029038cat >conftest.$ac_ext <<_ACEOF
29039/* confdefs.h. */
29040_ACEOF
29041cat confdefs.h >>conftest.$ac_ext
29042cat >>conftest.$ac_ext <<_ACEOF
29043/* end confdefs.h. */
29044$ac_includes_default
29045#include <$ac_header>
29046_ACEOF
29047rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029048if { (ac_try="$ac_compile"
29049case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29052esac
29053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029055 ac_status=$?
29056 grep -v '^ *+' conftest.er1 >conftest.err
29057 rm -f conftest.er1
29058 cat conftest.err >&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29062 { (case "(($ac_try" in
29063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064 *) ac_try_echo=$ac_try;;
29065esac
29066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029072 { (case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29075esac
29076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
29081 ac_header_compiler=yes
29082else
29083 echo "$as_me: failed program was:" >&5
29084sed 's/^/| /' conftest.$ac_ext >&5
29085
Reid Spencera773bd52006-08-04 18:18:08 +000029086 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029087fi
Reid Spencera773bd52006-08-04 18:18:08 +000029088
29089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29090{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29091echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029092
29093# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029094{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029096cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
29102#include <$ac_header>
29103_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029104if { (ac_try="$ac_cpp conftest.$ac_ext"
29105case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29108esac
29109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029111 ac_status=$?
29112 grep -v '^ *+' conftest.er1 >conftest.err
29113 rm -f conftest.er1
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } >/dev/null; then
29117 if test -s conftest.err; then
29118 ac_cpp_err=$ac_c_preproc_warn_flag
29119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29120 else
29121 ac_cpp_err=
29122 fi
29123else
29124 ac_cpp_err=yes
29125fi
29126if test -z "$ac_cpp_err"; then
29127 ac_header_preproc=yes
29128else
29129 echo "$as_me: failed program was:" >&5
29130sed 's/^/| /' conftest.$ac_ext >&5
29131
29132 ac_header_preproc=no
29133fi
Reid Spencera773bd52006-08-04 18:18:08 +000029134
Chris Lattner0b142592005-11-14 06:57:34 +000029135rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029138
29139# So? What about this header?
29140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29141 yes:no: )
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29146 ac_header_preproc=yes
29147 ;;
29148 no:yes:* )
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029161 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029162## ----------------------------------- ##
29163## Report this to llvmbugs@cs.uiuc.edu ##
29164## ----------------------------------- ##
29165_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029166 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029167 ;;
29168esac
Reid Spencera773bd52006-08-04 18:18:08 +000029169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029172 echo $ECHO_N "(cached) $ECHO_C" >&6
29173else
29174 eval "$as_ac_Header=\$ac_header_preproc"
29175fi
Reid Spencera773bd52006-08-04 18:18:08 +000029176ac_res=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029179
29180fi
29181if test `eval echo '${'$as_ac_Header'}'` = yes; then
29182 cat >>confdefs.h <<_ACEOF
29183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29184_ACEOF
29185
29186fi
29187
29188done
29189
Reid Spencer0a262ba2005-08-24 10:07:20 +000029190if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029191 if test "${ac_cv_header_pthread_h+set}" = set; then
29192 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29193echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29194if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029195 echo $ECHO_N "(cached) $ECHO_C" >&6
29196fi
Reid Spencer1000b732006-12-01 00:37:14 +000029197{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29198echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029199else
29200 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029201{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29202echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029203cat >conftest.$ac_ext <<_ACEOF
29204/* confdefs.h. */
29205_ACEOF
29206cat confdefs.h >>conftest.$ac_ext
29207cat >>conftest.$ac_ext <<_ACEOF
29208/* end confdefs.h. */
29209$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029210#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029211_ACEOF
29212rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029213if { (ac_try="$ac_compile"
29214case "(($ac_try" in
29215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216 *) ac_try_echo=$ac_try;;
29217esac
29218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029220 ac_status=$?
29221 grep -v '^ *+' conftest.er1 >conftest.err
29222 rm -f conftest.er1
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29227 { (case "(($ac_try" in
29228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29229 *) ac_try_echo=$ac_try;;
29230esac
29231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29232 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029233 ac_status=$?
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29240esac
29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; }; then
29246 ac_header_compiler=yes
29247else
29248 echo "$as_me: failed program was:" >&5
29249sed 's/^/| /' conftest.$ac_ext >&5
29250
Reid Spencera773bd52006-08-04 18:18:08 +000029251 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029252fi
Reid Spencera773bd52006-08-04 18:18:08 +000029253
29254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29255{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29256echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029257
29258# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029259{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29260echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029261cat >conftest.$ac_ext <<_ACEOF
29262/* confdefs.h. */
29263_ACEOF
29264cat confdefs.h >>conftest.$ac_ext
29265cat >>conftest.$ac_ext <<_ACEOF
29266/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029267#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029268_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029269if { (ac_try="$ac_cpp conftest.$ac_ext"
29270case "(($ac_try" in
29271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272 *) ac_try_echo=$ac_try;;
29273esac
29274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029276 ac_status=$?
29277 grep -v '^ *+' conftest.er1 >conftest.err
29278 rm -f conftest.er1
29279 cat conftest.err >&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } >/dev/null; then
29282 if test -s conftest.err; then
29283 ac_cpp_err=$ac_c_preproc_warn_flag
29284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29285 else
29286 ac_cpp_err=
29287 fi
29288else
29289 ac_cpp_err=yes
29290fi
29291if test -z "$ac_cpp_err"; then
29292 ac_header_preproc=yes
29293else
29294 echo "$as_me: failed program was:" >&5
29295sed 's/^/| /' conftest.$ac_ext >&5
29296
29297 ac_header_preproc=no
29298fi
Reid Spencera773bd52006-08-04 18:18:08 +000029299
Reid Spencer0a262ba2005-08-24 10:07:20 +000029300rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029301{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29302echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029303
29304# So? What about this header?
29305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29306 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029307 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29308echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29310echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029311 ac_header_preproc=yes
29312 ;;
29313 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029314 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29315echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29317echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29318 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29319echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29320 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29321echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29322 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29323echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29324 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29325echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029326 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029327## ----------------------------------- ##
29328## Report this to llvmbugs@cs.uiuc.edu ##
29329## ----------------------------------- ##
29330_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029331 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029332 ;;
29333esac
Reid Spencer1000b732006-12-01 00:37:14 +000029334{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29335echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29336if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029337 echo $ECHO_N "(cached) $ECHO_C" >&6
29338else
Reid Spencer1000b732006-12-01 00:37:14 +000029339 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029340fi
Reid Spencer1000b732006-12-01 00:37:14 +000029341{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29342echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029343
29344fi
Reid Spencer1000b732006-12-01 00:37:14 +000029345if test $ac_cv_header_pthread_h = yes; then
29346 HAVE_PTHREAD=1
29347
29348else
29349 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029350
29351fi
29352
Reid Spencer1000b732006-12-01 00:37:14 +000029353
29354else
29355 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029356
29357fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029358
29359
Reid Spencerb2ed05262006-11-03 18:04:08 +000029360
29361 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29362echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29363if test "${ac_cv_huge_val_sanity+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29365else
29366
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029367 ac_ext=cpp
29368ac_cpp='$CXXCPP $CPPFLAGS'
29369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029372
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029373 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029374 if test "$cross_compiling" = yes; then
29375 ac_cv_huge_val_sanity=yes
29376else
29377 cat >conftest.$ac_ext <<_ACEOF
29378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
29383#include <math.h>
29384int
29385main ()
29386{
29387double x = HUGE_VAL; return x != x;
29388 ;
29389 return 0;
29390}
29391_ACEOF
29392rm -f conftest$ac_exeext
29393if { (ac_try="$ac_link"
29394case "(($ac_try" in
29395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29396 *) ac_try_echo=$ac_try;;
29397esac
29398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29399 (eval "$ac_link") 2>&5
29400 ac_status=$?
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29403 { (case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29406esac
29407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_try") 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 ac_cv_huge_val_sanity=yes
29413else
29414 echo "$as_me: program exited with status $ac_status" >&5
29415echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418( exit $ac_status )
29419ac_cv_huge_val_sanity=no
29420fi
29421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29422fi
29423
29424
29425 ac_ext=c
29426ac_cpp='$CPP $CPPFLAGS'
29427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429ac_compiler_gnu=$ac_cv_c_compiler_gnu
29430
29431
29432fi
29433{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29434echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29435 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29436
29437
Reid Spencera773bd52006-08-04 18:18:08 +000029438{ echo "$as_me:$LINENO: checking for pid_t" >&5
29439echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029440if test "${ac_cv_type_pid_t+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29442else
29443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029444/* confdefs.h. */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029449$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029450typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029451int
29452main ()
29453{
Reid Spencera773bd52006-08-04 18:18:08 +000029454if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029455 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029456if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029457 return 0;
29458 ;
29459 return 0;
29460}
29461_ACEOF
29462rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029463if { (ac_try="$ac_compile"
29464case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29467esac
29468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029471 grep -v '^ *+' conftest.er1 >conftest.err
29472 rm -f conftest.er1
29473 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29480esac
29481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; } &&
29486 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029487 { (case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29490esac
29491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
29496 ac_cv_type_pid_t=yes
29497else
29498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029499sed 's/^/| /' conftest.$ac_ext >&5
29500
Reid Spencera773bd52006-08-04 18:18:08 +000029501 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029502fi
Reid Spencera773bd52006-08-04 18:18:08 +000029503
29504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029505fi
Reid Spencera773bd52006-08-04 18:18:08 +000029506{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29507echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029508if test $ac_cv_type_pid_t = yes; then
29509 :
29510else
29511
29512cat >>confdefs.h <<_ACEOF
29513#define pid_t int
29514_ACEOF
29515
29516fi
29517
Reid Spencera773bd52006-08-04 18:18:08 +000029518{ echo "$as_me:$LINENO: checking for size_t" >&5
29519echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029520if test "${ac_cv_type_size_t+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29522else
29523 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029524/* confdefs.h. */
29525_ACEOF
29526cat confdefs.h >>conftest.$ac_ext
29527cat >>conftest.$ac_ext <<_ACEOF
29528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029529$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029530typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029531int
29532main ()
29533{
Reid Spencera773bd52006-08-04 18:18:08 +000029534if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029535 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029536if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029537 return 0;
29538 ;
29539 return 0;
29540}
29541_ACEOF
29542rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029543if { (ac_try="$ac_compile"
29544case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547esac
29548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560esac
29561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029567 { (case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29570esac
29571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; }; then
29576 ac_cv_type_size_t=yes
29577else
29578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029579sed 's/^/| /' conftest.$ac_ext >&5
29580
Reid Spencera773bd52006-08-04 18:18:08 +000029581 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029582fi
Reid Spencera773bd52006-08-04 18:18:08 +000029583
29584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029585fi
Reid Spencera773bd52006-08-04 18:18:08 +000029586{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29587echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029588if test $ac_cv_type_size_t = yes; then
29589 :
29590else
29591
29592cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029593#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029594_ACEOF
29595
29596fi
29597
Reid Spencera773bd52006-08-04 18:18:08 +000029598{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29599echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029600if test "${ac_cv_type_signal+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29602else
29603 cat >conftest.$ac_ext <<_ACEOF
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
29609#include <sys/types.h>
29610#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029611
29612int
29613main ()
29614{
Reid Spencera773bd52006-08-04 18:18:08 +000029615return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029616 ;
29617 return 0;
29618}
29619_ACEOF
29620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029621if { (ac_try="$ac_compile"
29622case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29625esac
29626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029628 ac_status=$?
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29638esac
29639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29648esac
29649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029654 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029655else
29656 echo "$as_me: failed program was:" >&5
29657sed 's/^/| /' conftest.$ac_ext >&5
29658
Reid Spencera773bd52006-08-04 18:18:08 +000029659 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029660fi
Reid Spencera773bd52006-08-04 18:18:08 +000029661
29662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029663fi
Reid Spencera773bd52006-08-04 18:18:08 +000029664{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29665echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029666
29667cat >>confdefs.h <<_ACEOF
29668#define RETSIGTYPE $ac_cv_type_signal
29669_ACEOF
29670
29671
Reid Spencera773bd52006-08-04 18:18:08 +000029672{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29673echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029674if test "${ac_cv_struct_tm+set}" = set; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29676else
29677 cat >conftest.$ac_ext <<_ACEOF
29678/* confdefs.h. */
29679_ACEOF
29680cat confdefs.h >>conftest.$ac_ext
29681cat >>conftest.$ac_ext <<_ACEOF
29682/* end confdefs.h. */
29683#include <sys/types.h>
29684#include <time.h>
29685
29686int
29687main ()
29688{
29689struct tm *tp; tp->tm_sec;
29690 ;
29691 return 0;
29692}
29693_ACEOF
29694rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029695if { (ac_try="$ac_compile"
29696case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699esac
29700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29712esac
29713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29722esac
29723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
29728 ac_cv_struct_tm=time.h
29729else
29730 echo "$as_me: failed program was:" >&5
29731sed 's/^/| /' conftest.$ac_ext >&5
29732
Reid Spencera773bd52006-08-04 18:18:08 +000029733 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029734fi
Reid Spencera773bd52006-08-04 18:18:08 +000029735
29736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029737fi
Reid Spencera773bd52006-08-04 18:18:08 +000029738{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29739echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029740if test $ac_cv_struct_tm = sys/time.h; then
29741
29742cat >>confdefs.h <<\_ACEOF
29743#define TM_IN_SYS_TIME 1
29744_ACEOF
29745
29746fi
29747
Reid Spencera773bd52006-08-04 18:18:08 +000029748{ echo "$as_me:$LINENO: checking for int64_t" >&5
29749echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029750if test "${ac_cv_type_int64_t+set}" = set; then
29751 echo $ECHO_N "(cached) $ECHO_C" >&6
29752else
29753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029754/* confdefs.h. */
29755_ACEOF
29756cat confdefs.h >>conftest.$ac_ext
29757cat >>conftest.$ac_ext <<_ACEOF
29758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029759$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029760typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029761int
29762main ()
29763{
Reid Spencera773bd52006-08-04 18:18:08 +000029764if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029765 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029766if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029767 return 0;
29768 ;
29769 return 0;
29770}
29771_ACEOF
29772rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029773if { (ac_try="$ac_compile"
29774case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29777esac
29778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029781 grep -v '^ *+' conftest.er1 >conftest.err
29782 rm -f conftest.er1
29783 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29787 { (case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029797 { (case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800esac
29801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029803 ac_status=$?
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29806 ac_cv_type_int64_t=yes
29807else
29808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029809sed 's/^/| /' conftest.$ac_ext >&5
29810
Reid Spencera773bd52006-08-04 18:18:08 +000029811 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029812fi
Reid Spencera773bd52006-08-04 18:18:08 +000029813
29814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029815fi
Reid Spencera773bd52006-08-04 18:18:08 +000029816{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29817echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029818if test $ac_cv_type_int64_t = yes; then
29819
29820cat >>confdefs.h <<_ACEOF
29821#define HAVE_INT64_T 1
29822_ACEOF
29823
29824
29825else
29826 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29827echo "$as_me: error: Type int64_t required but not found" >&2;}
29828 { (exit 1); exit 1; }; }
29829fi
29830
Reid Spencera773bd52006-08-04 18:18:08 +000029831{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29832echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029833if test "${ac_cv_type_uint64_t+set}" = set; then
29834 echo $ECHO_N "(cached) $ECHO_C" >&6
29835else
29836 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029837/* confdefs.h. */
29838_ACEOF
29839cat confdefs.h >>conftest.$ac_ext
29840cat >>conftest.$ac_ext <<_ACEOF
29841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029842$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029843typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029844int
29845main ()
29846{
Reid Spencera773bd52006-08-04 18:18:08 +000029847if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029848 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029849if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029850 return 0;
29851 ;
29852 return 0;
29853}
29854_ACEOF
29855rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029856if { (ac_try="$ac_compile"
29857case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29860esac
29861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29873esac
29874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029880 { (case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883esac
29884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889 ac_cv_type_uint64_t=yes
29890else
29891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029892sed 's/^/| /' conftest.$ac_ext >&5
29893
Reid Spencera773bd52006-08-04 18:18:08 +000029894 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029895fi
Reid Spencera773bd52006-08-04 18:18:08 +000029896
29897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029898fi
Reid Spencera773bd52006-08-04 18:18:08 +000029899{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29900echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029901if test $ac_cv_type_uint64_t = yes; then
29902
29903cat >>confdefs.h <<_ACEOF
29904#define HAVE_UINT64_T 1
29905_ACEOF
29906
29907
29908else
Reid Spencera773bd52006-08-04 18:18:08 +000029909 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29910echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029911if test "${ac_cv_type_u_int64_t+set}" = set; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29913else
29914 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029915/* confdefs.h. */
29916_ACEOF
29917cat confdefs.h >>conftest.$ac_ext
29918cat >>conftest.$ac_ext <<_ACEOF
29919/* end confdefs.h. */
29920$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029921typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029922int
29923main ()
29924{
Reid Spencera773bd52006-08-04 18:18:08 +000029925if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029926 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029927if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029928 return 0;
29929 ;
29930 return 0;
29931}
29932_ACEOF
29933rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029934if { (ac_try="$ac_compile"
29935case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938esac
29939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029942 grep -v '^ *+' conftest.er1 >conftest.err
29943 rm -f conftest.er1
29944 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29951esac
29952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; } &&
29957 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029958 { (case "(($ac_try" in
29959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960 *) ac_try_echo=$ac_try;;
29961esac
29962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; }; then
29967 ac_cv_type_u_int64_t=yes
29968else
29969 echo "$as_me: failed program was:" >&5
29970sed 's/^/| /' conftest.$ac_ext >&5
29971
Reid Spencera773bd52006-08-04 18:18:08 +000029972 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029973fi
Reid Spencera773bd52006-08-04 18:18:08 +000029974
29975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029976fi
Reid Spencera773bd52006-08-04 18:18:08 +000029977{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29978echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029979if test $ac_cv_type_u_int64_t = yes; then
29980
29981cat >>confdefs.h <<_ACEOF
29982#define HAVE_U_INT64_T 1
29983_ACEOF
29984
29985
Misha Brukmanceca9042004-09-02 23:02:30 +000029986else
29987 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29988echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29989 { (exit 1); exit 1; }; }
29990fi
29991
John Criswell679ff312004-09-02 18:44:44 +000029992fi
29993
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029994
29995
29996
29997
29998
29999
30000
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030001
30002
Reid Spencerdf3be822006-01-23 08:15:53 +000030003for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030004do
30005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030006{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030009 echo $ECHO_N "(cached) $ECHO_C" >&6
30010else
30011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030012/* confdefs.h. */
30013_ACEOF
30014cat confdefs.h >>conftest.$ac_ext
30015cat >>conftest.$ac_ext <<_ACEOF
30016/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30019#define $ac_func innocuous_$ac_func
30020
30021/* System header to define __stub macros and hopefully few prototypes,
30022 which can conflict with char $ac_func (); below.
30023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30024 <limits.h> exists even on freestanding compilers. */
30025
30026#ifdef __STDC__
30027# include <limits.h>
30028#else
30029# include <assert.h>
30030#endif
30031
30032#undef $ac_func
30033
Reid Spencera773bd52006-08-04 18:18:08 +000030034/* Override any GCC internal prototype to avoid an error.
30035 Use char because int might match the return type of a GCC
30036 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030037#ifdef __cplusplus
30038extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030039#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030040char $ac_func ();
30041/* The GNU C library defines this for functions which it implements
30042 to always fail with ENOSYS. Some functions are actually named
30043 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030044#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030045choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030046#endif
John Criswell7a73b802003-06-30 21:59:07 +000030047
John Criswell7a73b802003-06-30 21:59:07 +000030048int
30049main ()
30050{
Reid Spencera773bd52006-08-04 18:18:08 +000030051return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030052 ;
30053 return 0;
30054}
30055_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030056rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030057if { (ac_try="$ac_link"
30058case "(($ac_try" in
30059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30061esac
30062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030065 grep -v '^ *+' conftest.er1 >conftest.err
30066 rm -f conftest.er1
30067 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30071 { (case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030080 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030081 { (case "(($ac_try" in
30082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30083 *) ac_try_echo=$ac_try;;
30084esac
30085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30086 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030087 ac_status=$?
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030090 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030091else
30092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030093sed 's/^/| /' conftest.$ac_ext >&5
30094
Reid Spencera773bd52006-08-04 18:18:08 +000030095 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030096fi
Reid Spencera773bd52006-08-04 18:18:08 +000030097
30098rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030099 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030100fi
Reid Spencera773bd52006-08-04 18:18:08 +000030101ac_res=`eval echo '${'$as_ac_var'}'`
30102 { echo "$as_me:$LINENO: result: $ac_res" >&5
30103echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030104if test `eval echo '${'$as_ac_var'}'` = yes; then
30105 cat >>confdefs.h <<_ACEOF
30106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030107_ACEOF
30108
30109fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030110done
John Criswell7a73b802003-06-30 21:59:07 +000030111
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030112
30113
30114
Reid Spencer6af3d262004-12-15 04:01:48 +000030115
30116
Reid Spencerb90645c2007-02-16 19:17:20 +000030117for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30118do
30119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30124else
30125 cat >conftest.$ac_ext <<_ACEOF
30126/* confdefs.h. */
30127_ACEOF
30128cat confdefs.h >>conftest.$ac_ext
30129cat >>conftest.$ac_ext <<_ACEOF
30130/* end confdefs.h. */
30131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30133#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030134
Reid Spencerb90645c2007-02-16 19:17:20 +000030135/* System header to define __stub macros and hopefully few prototypes,
30136 which can conflict with char $ac_func (); below.
30137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30138 <limits.h> exists even on freestanding compilers. */
30139
30140#ifdef __STDC__
30141# include <limits.h>
30142#else
30143# include <assert.h>
30144#endif
30145
30146#undef $ac_func
30147
30148/* Override any GCC internal prototype to avoid an error.
30149 Use char because int might match the return type of a GCC
30150 builtin and then its argument prototype would still apply. */
30151#ifdef __cplusplus
30152extern "C"
30153#endif
30154char $ac_func ();
30155/* The GNU C library defines this for functions which it implements
30156 to always fail with ENOSYS. Some functions are actually named
30157 something starting with __ and the normal name is an alias. */
30158#if defined __stub_$ac_func || defined __stub___$ac_func
30159choke me
30160#endif
30161
30162int
30163main ()
30164{
30165return $ac_func ();
30166 ;
30167 return 0;
30168}
30169_ACEOF
30170rm -f conftest.$ac_objext conftest$ac_exeext
30171if { (ac_try="$ac_link"
30172case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175esac
30176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_link") 2>conftest.er1
30178 ac_status=$?
30179 grep -v '^ *+' conftest.er1 >conftest.err
30180 rm -f conftest.er1
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
30184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest$ac_exeext'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30198esac
30199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30201 ac_status=$?
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
30204 eval "$as_ac_var=yes"
30205else
30206 echo "$as_me: failed program was:" >&5
30207sed 's/^/| /' conftest.$ac_ext >&5
30208
30209 eval "$as_ac_var=no"
30210fi
30211
30212rm -f core conftest.err conftest.$ac_objext \
30213 conftest$ac_exeext conftest.$ac_ext
30214fi
30215ac_res=`eval echo '${'$as_ac_var'}'`
30216 { echo "$as_me:$LINENO: result: $ac_res" >&5
30217echo "${ECHO_T}$ac_res" >&6; }
30218if test `eval echo '${'$as_ac_var'}'` = yes; then
30219 cat >>confdefs.h <<_ACEOF
30220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30221_ACEOF
30222
30223fi
30224done
30225
30226
30227
30228
30229for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030230do
30231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030232{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30234if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030235 echo $ECHO_N "(cached) $ECHO_C" >&6
30236else
30237 cat >conftest.$ac_ext <<_ACEOF
30238/* confdefs.h. */
30239_ACEOF
30240cat confdefs.h >>conftest.$ac_ext
30241cat >>conftest.$ac_ext <<_ACEOF
30242/* end confdefs.h. */
30243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30245#define $ac_func innocuous_$ac_func
30246
30247/* System header to define __stub macros and hopefully few prototypes,
30248 which can conflict with char $ac_func (); below.
30249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30250 <limits.h> exists even on freestanding compilers. */
30251
30252#ifdef __STDC__
30253# include <limits.h>
30254#else
30255# include <assert.h>
30256#endif
30257
30258#undef $ac_func
30259
Reid Spencera773bd52006-08-04 18:18:08 +000030260/* Override any GCC internal prototype to avoid an error.
30261 Use char because int might match the return type of a GCC
30262 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030263#ifdef __cplusplus
30264extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030265#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030266char $ac_func ();
30267/* The GNU C library defines this for functions which it implements
30268 to always fail with ENOSYS. Some functions are actually named
30269 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030270#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030271choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030272#endif
30273
30274int
30275main ()
30276{
Reid Spencera773bd52006-08-04 18:18:08 +000030277return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030278 ;
30279 return 0;
30280}
30281_ACEOF
30282rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030283if { (ac_try="$ac_link"
30284case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030290 ac_status=$?
30291 grep -v '^ *+' conftest.er1 >conftest.err
30292 rm -f conftest.er1
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30300esac
30301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; } &&
30306 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030307 { (case "(($ac_try" in
30308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309 *) ac_try_echo=$ac_try;;
30310esac
30311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 eval "$as_ac_var=yes"
30317else
30318 echo "$as_me: failed program was:" >&5
30319sed 's/^/| /' conftest.$ac_ext >&5
30320
Reid Spencera773bd52006-08-04 18:18:08 +000030321 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030322fi
Reid Spencera773bd52006-08-04 18:18:08 +000030323
30324rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030325 conftest$ac_exeext conftest.$ac_ext
30326fi
Reid Spencera773bd52006-08-04 18:18:08 +000030327ac_res=`eval echo '${'$as_ac_var'}'`
30328 { echo "$as_me:$LINENO: result: $ac_res" >&5
30329echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030330if test `eval echo '${'$as_ac_var'}'` = yes; then
30331 cat >>confdefs.h <<_ACEOF
30332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30333_ACEOF
30334
30335fi
30336done
30337
30338
30339
30340
30341
30342
30343
30344
30345for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030346do
30347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030348{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030351 echo $ECHO_N "(cached) $ECHO_C" >&6
30352else
30353 cat >conftest.$ac_ext <<_ACEOF
30354/* confdefs.h. */
30355_ACEOF
30356cat confdefs.h >>conftest.$ac_ext
30357cat >>conftest.$ac_ext <<_ACEOF
30358/* end confdefs.h. */
30359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30361#define $ac_func innocuous_$ac_func
30362
30363/* System header to define __stub macros and hopefully few prototypes,
30364 which can conflict with char $ac_func (); below.
30365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30366 <limits.h> exists even on freestanding compilers. */
30367
30368#ifdef __STDC__
30369# include <limits.h>
30370#else
30371# include <assert.h>
30372#endif
30373
30374#undef $ac_func
30375
Reid Spencera773bd52006-08-04 18:18:08 +000030376/* Override any GCC internal prototype to avoid an error.
30377 Use char because int might match the return type of a GCC
30378 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030379#ifdef __cplusplus
30380extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030381#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030382char $ac_func ();
30383/* The GNU C library defines this for functions which it implements
30384 to always fail with ENOSYS. Some functions are actually named
30385 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030386#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030387choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030388#endif
30389
30390int
30391main ()
30392{
Reid Spencera773bd52006-08-04 18:18:08 +000030393return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030394 ;
30395 return 0;
30396}
30397_ACEOF
30398rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030399if { (ac_try="$ac_link"
30400case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30403esac
30404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030406 ac_status=$?
30407 grep -v '^ *+' conftest.er1 >conftest.err
30408 rm -f conftest.er1
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30413 { (case "(($ac_try" in
30414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415 *) ac_try_echo=$ac_try;;
30416esac
30417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030419 ac_status=$?
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); }; } &&
30422 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030423 { (case "(($ac_try" in
30424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425 *) ac_try_echo=$ac_try;;
30426esac
30427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30428 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030429 ac_status=$?
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; }; then
30432 eval "$as_ac_var=yes"
30433else
30434 echo "$as_me: failed program was:" >&5
30435sed 's/^/| /' conftest.$ac_ext >&5
30436
Reid Spencera773bd52006-08-04 18:18:08 +000030437 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030438fi
Reid Spencera773bd52006-08-04 18:18:08 +000030439
30440rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030441 conftest$ac_exeext conftest.$ac_ext
30442fi
Reid Spencera773bd52006-08-04 18:18:08 +000030443ac_res=`eval echo '${'$as_ac_var'}'`
30444 { echo "$as_me:$LINENO: result: $ac_res" >&5
30445echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030446if test `eval echo '${'$as_ac_var'}'` = yes; then
30447 cat >>confdefs.h <<_ACEOF
30448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30449_ACEOF
30450
30451fi
30452done
30453
30454
Reid Spencerba46ca32004-12-31 05:49:15 +000030455
30456
Chris Lattner0b142592005-11-14 06:57:34 +000030457
Chris Lattner511f11d2005-11-14 07:25:50 +000030458for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030459do
30460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030461{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30463if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030464 echo $ECHO_N "(cached) $ECHO_C" >&6
30465else
30466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030467/* confdefs.h. */
30468_ACEOF
30469cat confdefs.h >>conftest.$ac_ext
30470cat >>conftest.$ac_ext <<_ACEOF
30471/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30474#define $ac_func innocuous_$ac_func
30475
30476/* System header to define __stub macros and hopefully few prototypes,
30477 which can conflict with char $ac_func (); below.
30478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30479 <limits.h> exists even on freestanding compilers. */
30480
30481#ifdef __STDC__
30482# include <limits.h>
30483#else
30484# include <assert.h>
30485#endif
30486
30487#undef $ac_func
30488
Reid Spencera773bd52006-08-04 18:18:08 +000030489/* Override any GCC internal prototype to avoid an error.
30490 Use char because int might match the return type of a GCC
30491 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030492#ifdef __cplusplus
30493extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030494#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030495char $ac_func ();
30496/* The GNU C library defines this for functions which it implements
30497 to always fail with ENOSYS. Some functions are actually named
30498 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030499#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030500choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501#endif
John Criswell7a73b802003-06-30 21:59:07 +000030502
John Criswell7a73b802003-06-30 21:59:07 +000030503int
30504main ()
30505{
Reid Spencera773bd52006-08-04 18:18:08 +000030506return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030507 ;
30508 return 0;
30509}
30510_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030511rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030512if { (ac_try="$ac_link"
30513case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30516esac
30517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030520 grep -v '^ *+' conftest.er1 >conftest.err
30521 rm -f conftest.er1
30522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30526 { (case "(($ac_try" in
30527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30528 *) ac_try_echo=$ac_try;;
30529esac
30530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30531 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030532 ac_status=$?
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030535 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030536 { (case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30539esac
30540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030542 ac_status=$?
30543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030545 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030546else
30547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030548sed 's/^/| /' conftest.$ac_ext >&5
30549
Reid Spencera773bd52006-08-04 18:18:08 +000030550 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030551fi
Reid Spencera773bd52006-08-04 18:18:08 +000030552
30553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030554 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030555fi
Reid Spencera773bd52006-08-04 18:18:08 +000030556ac_res=`eval echo '${'$as_ac_var'}'`
30557 { echo "$as_me:$LINENO: result: $ac_res" >&5
30558echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030559if test `eval echo '${'$as_ac_var'}'` = yes; then
30560 cat >>confdefs.h <<_ACEOF
30561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030562_ACEOF
30563
30564fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030565done
John Criswell7a73b802003-06-30 21:59:07 +000030566
Reid Spencercdb08a32006-06-05 16:11:07 +000030567
30568
30569
30570
Reid Spencerafa22e22006-12-10 23:29:19 +000030571for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030572do
30573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030577 echo $ECHO_N "(cached) $ECHO_C" >&6
30578else
30579 cat >conftest.$ac_ext <<_ACEOF
30580/* confdefs.h. */
30581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
30585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30587#define $ac_func innocuous_$ac_func
30588
30589/* System header to define __stub macros and hopefully few prototypes,
30590 which can conflict with char $ac_func (); below.
30591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30592 <limits.h> exists even on freestanding compilers. */
30593
30594#ifdef __STDC__
30595# include <limits.h>
30596#else
30597# include <assert.h>
30598#endif
30599
30600#undef $ac_func
30601
Reid Spencera773bd52006-08-04 18:18:08 +000030602/* Override any GCC internal prototype to avoid an error.
30603 Use char because int might match the return type of a GCC
30604 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030605#ifdef __cplusplus
30606extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030607#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030608char $ac_func ();
30609/* The GNU C library defines this for functions which it implements
30610 to always fail with ENOSYS. Some functions are actually named
30611 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030612#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030613choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030614#endif
30615
30616int
30617main ()
30618{
Reid Spencera773bd52006-08-04 18:18:08 +000030619return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030620 ;
30621 return 0;
30622}
30623_ACEOF
30624rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030625if { (ac_try="$ac_link"
30626case "(($ac_try" in
30627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628 *) ac_try_echo=$ac_try;;
30629esac
30630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030632 ac_status=$?
30633 grep -v '^ *+' conftest.er1 >conftest.err
30634 rm -f conftest.er1
30635 cat conftest.err >&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30639 { (case "(($ac_try" in
30640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30641 *) ac_try_echo=$ac_try;;
30642esac
30643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30644 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030645 ac_status=$?
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); }; } &&
30648 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030649 { (case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30652esac
30653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030655 ac_status=$?
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; }; then
30658 eval "$as_ac_var=yes"
30659else
30660 echo "$as_me: failed program was:" >&5
30661sed 's/^/| /' conftest.$ac_ext >&5
30662
Reid Spencera773bd52006-08-04 18:18:08 +000030663 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030664fi
Reid Spencera773bd52006-08-04 18:18:08 +000030665
30666rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030667 conftest$ac_exeext conftest.$ac_ext
30668fi
Reid Spencera773bd52006-08-04 18:18:08 +000030669ac_res=`eval echo '${'$as_ac_var'}'`
30670 { echo "$as_me:$LINENO: result: $ac_res" >&5
30671echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030672if test `eval echo '${'$as_ac_var'}'` = yes; then
30673 cat >>confdefs.h <<_ACEOF
30674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30675_ACEOF
30676
30677fi
30678done
30679
Reid Spencera773bd52006-08-04 18:18:08 +000030680{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30681echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030682if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030683 echo $ECHO_N "(cached) $ECHO_C" >&6
30684else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030685 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030686ac_cpp='$CPP $CPPFLAGS'
30687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30689ac_compiler_gnu=$ac_cv_c_compiler_gnu
30690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030691 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030692 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030693else
30694 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030695
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030696 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030697_ACEOF
30698cat confdefs.h >>conftest.$ac_ext
30699cat >>conftest.$ac_ext <<_ACEOF
30700/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030701
John Criswella0137d32003-10-13 16:22:01 +000030702#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030703#include <stdlib.h>
30704
John Criswella0137d32003-10-13 16:22:01 +000030705int
30706main ()
30707{
30708
Reid Spencer2706f8c2004-09-19 23:53:36 +000030709volatile double A, B;
30710char Buffer[100];
30711A = 1;
30712A /= 10.0;
30713sprintf(Buffer, "%a", A);
30714B = atof(Buffer);
30715if (A != B)
30716 return (1);
30717if (A != 0x1.999999999999ap-4)
30718 return (1);
30719return (0);
John Criswella0137d32003-10-13 16:22:01 +000030720 ;
30721 return 0;
30722}
30723_ACEOF
30724rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030725if { (ac_try="$ac_link"
30726case "(($ac_try" in
30727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728 *) ac_try_echo=$ac_try;;
30729esac
30730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030735 { (case "(($ac_try" in
30736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737 *) ac_try_echo=$ac_try;;
30738esac
30739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030741 ac_status=$?
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030744 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030745else
30746 echo "$as_me: program exited with status $ac_status" >&5
30747echo "$as_me: failed program was:" >&5
30748sed 's/^/| /' conftest.$ac_ext >&5
30749
30750( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030751llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030752fi
Reid Spencera773bd52006-08-04 18:18:08 +000030753rm -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 +000030754fi
Reid Spencera773bd52006-08-04 18:18:08 +000030755
30756
Reid Spencer2706f8c2004-09-19 23:53:36 +000030757 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030758ac_cpp='$CPP $CPPFLAGS'
30759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30761ac_compiler_gnu=$ac_cv_c_compiler_gnu
30762
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030763fi
Reid Spencera773bd52006-08-04 18:18:08 +000030764{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30765echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030766 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030767
30768cat >>confdefs.h <<\_ACEOF
30769#define HAVE_PRINTF_A 1
30770_ACEOF
30771
Reid Spencer2706f8c2004-09-19 23:53:36 +000030772 fi
John Criswella0137d32003-10-13 16:22:01 +000030773
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030774# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30775# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030776{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30777echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030778if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030779 echo $ECHO_N "(cached) $ECHO_C" >&6
30780else
John Criswell0021c312004-02-13 21:57:29 +000030781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030782/* confdefs.h. */
30783_ACEOF
30784cat confdefs.h >>conftest.$ac_ext
30785cat >>conftest.$ac_ext <<_ACEOF
30786/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030787#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030788int
30789main ()
30790{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030791char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030792 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030793 ;
30794 return 0;
30795}
30796_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030797rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030798if { (ac_try="$ac_link"
30799case "(($ac_try" in
30800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801 *) ac_try_echo=$ac_try;;
30802esac
30803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30804 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030805 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030806 grep -v '^ *+' conftest.er1 >conftest.err
30807 rm -f conftest.er1
30808 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30812 { (case "(($ac_try" in
30813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814 *) ac_try_echo=$ac_try;;
30815esac
30816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030818 ac_status=$?
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030821 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030822 { (case "(($ac_try" in
30823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30824 *) ac_try_echo=$ac_try;;
30825esac
30826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30827 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030831 ac_cv_working_alloca_h=yes
30832else
30833 echo "$as_me: failed program was:" >&5
30834sed 's/^/| /' conftest.$ac_ext >&5
30835
Reid Spencera773bd52006-08-04 18:18:08 +000030836 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030837fi
Reid Spencera773bd52006-08-04 18:18:08 +000030838
30839rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030840 conftest$ac_exeext conftest.$ac_ext
30841fi
Reid Spencera773bd52006-08-04 18:18:08 +000030842{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30843echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030844if test $ac_cv_working_alloca_h = yes; then
30845
30846cat >>confdefs.h <<\_ACEOF
30847#define HAVE_ALLOCA_H 1
30848_ACEOF
30849
30850fi
30851
Reid Spencera773bd52006-08-04 18:18:08 +000030852{ echo "$as_me:$LINENO: checking for alloca" >&5
30853echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030854if test "${ac_cv_func_alloca_works+set}" = set; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30856else
30857 cat >conftest.$ac_ext <<_ACEOF
30858/* confdefs.h. */
30859_ACEOF
30860cat confdefs.h >>conftest.$ac_ext
30861cat >>conftest.$ac_ext <<_ACEOF
30862/* end confdefs.h. */
30863#ifdef __GNUC__
30864# define alloca __builtin_alloca
30865#else
30866# ifdef _MSC_VER
30867# include <malloc.h>
30868# define alloca _alloca
30869# else
30870# if HAVE_ALLOCA_H
30871# include <alloca.h>
30872# else
30873# ifdef _AIX
30874 #pragma alloca
30875# else
30876# ifndef alloca /* predefined by HP cc +Olibcalls */
30877char *alloca ();
30878# endif
30879# endif
30880# endif
30881# endif
30882#endif
30883
30884int
30885main ()
30886{
30887char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030888 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030889 ;
30890 return 0;
30891}
30892_ACEOF
30893rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030894if { (ac_try="$ac_link"
30895case "(($ac_try" in
30896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897 *) ac_try_echo=$ac_try;;
30898esac
30899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030901 ac_status=$?
30902 grep -v '^ *+' conftest.er1 >conftest.err
30903 rm -f conftest.er1
30904 cat conftest.err >&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30908 { (case "(($ac_try" in
30909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910 *) ac_try_echo=$ac_try;;
30911esac
30912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; } &&
30917 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030918 { (case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30921esac
30922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030924 ac_status=$?
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); }; }; then
30927 ac_cv_func_alloca_works=yes
30928else
30929 echo "$as_me: failed program was:" >&5
30930sed 's/^/| /' conftest.$ac_ext >&5
30931
Reid Spencera773bd52006-08-04 18:18:08 +000030932 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030933fi
Reid Spencera773bd52006-08-04 18:18:08 +000030934
30935rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030936 conftest$ac_exeext conftest.$ac_ext
30937fi
Reid Spencera773bd52006-08-04 18:18:08 +000030938{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30939echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030940
30941if test $ac_cv_func_alloca_works = yes; then
30942
30943cat >>confdefs.h <<\_ACEOF
30944#define HAVE_ALLOCA 1
30945_ACEOF
30946
30947else
30948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30949# that cause trouble. Some versions do not even contain alloca or
30950# contain a buggy version. If you still want to use their alloca,
30951# use ar to extract alloca.o from them instead of compiling alloca.c.
30952
Reid Spencera773bd52006-08-04 18:18:08 +000030953ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030954
30955cat >>confdefs.h <<\_ACEOF
30956#define C_ALLOCA 1
30957_ACEOF
30958
30959
Reid Spencera773bd52006-08-04 18:18:08 +000030960{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30961echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030962if test "${ac_cv_os_cray+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30964else
30965 cat >conftest.$ac_ext <<_ACEOF
30966/* confdefs.h. */
30967_ACEOF
30968cat confdefs.h >>conftest.$ac_ext
30969cat >>conftest.$ac_ext <<_ACEOF
30970/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030971#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030972webecray
30973#else
30974wenotbecray
30975#endif
30976
30977_ACEOF
30978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30979 $EGREP "webecray" >/dev/null 2>&1; then
30980 ac_cv_os_cray=yes
30981else
30982 ac_cv_os_cray=no
30983fi
30984rm -f conftest*
30985
30986fi
Reid Spencera773bd52006-08-04 18:18:08 +000030987{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30988echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030989if test $ac_cv_os_cray = yes; then
30990 for ac_func in _getb67 GETB67 getb67; do
30991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030992{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030995 echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
30997 cat >conftest.$ac_ext <<_ACEOF
30998/* confdefs.h. */
30999_ACEOF
31000cat confdefs.h >>conftest.$ac_ext
31001cat >>conftest.$ac_ext <<_ACEOF
31002/* end confdefs.h. */
31003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31005#define $ac_func innocuous_$ac_func
31006
31007/* System header to define __stub macros and hopefully few prototypes,
31008 which can conflict with char $ac_func (); below.
31009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31010 <limits.h> exists even on freestanding compilers. */
31011
31012#ifdef __STDC__
31013# include <limits.h>
31014#else
31015# include <assert.h>
31016#endif
31017
31018#undef $ac_func
31019
Reid Spencera773bd52006-08-04 18:18:08 +000031020/* Override any GCC internal prototype to avoid an error.
31021 Use char because int might match the return type of a GCC
31022 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023#ifdef __cplusplus
31024extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031025#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031026char $ac_func ();
31027/* The GNU C library defines this for functions which it implements
31028 to always fail with ENOSYS. Some functions are actually named
31029 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031030#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031031choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031032#endif
31033
31034int
31035main ()
31036{
Reid Spencera773bd52006-08-04 18:18:08 +000031037return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031038 ;
31039 return 0;
31040}
31041_ACEOF
31042rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031043if { (ac_try="$ac_link"
31044case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31047esac
31048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031050 ac_status=$?
31051 grep -v '^ *+' conftest.er1 >conftest.err
31052 rm -f conftest.er1
31053 cat conftest.err >&5
31054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31057 { (case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31060esac
31061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; } &&
31066 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031067 { (case "(($ac_try" in
31068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31069 *) ac_try_echo=$ac_try;;
31070esac
31071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31072 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031073 ac_status=$?
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); }; }; then
31076 eval "$as_ac_var=yes"
31077else
31078 echo "$as_me: failed program was:" >&5
31079sed 's/^/| /' conftest.$ac_ext >&5
31080
Reid Spencera773bd52006-08-04 18:18:08 +000031081 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031082fi
Reid Spencera773bd52006-08-04 18:18:08 +000031083
31084rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031085 conftest$ac_exeext conftest.$ac_ext
31086fi
Reid Spencera773bd52006-08-04 18:18:08 +000031087ac_res=`eval echo '${'$as_ac_var'}'`
31088 { echo "$as_me:$LINENO: result: $ac_res" >&5
31089echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031090if test `eval echo '${'$as_ac_var'}'` = yes; then
31091
31092cat >>confdefs.h <<_ACEOF
31093#define CRAY_STACKSEG_END $ac_func
31094_ACEOF
31095
31096 break
31097fi
31098
31099 done
31100fi
31101
Reid Spencera773bd52006-08-04 18:18:08 +000031102{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31103echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031104if test "${ac_cv_c_stack_direction+set}" = set; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31106else
31107 if test "$cross_compiling" = yes; then
31108 ac_cv_c_stack_direction=0
31109else
31110 cat >conftest.$ac_ext <<_ACEOF
31111/* confdefs.h. */
31112_ACEOF
31113cat confdefs.h >>conftest.$ac_ext
31114cat >>conftest.$ac_ext <<_ACEOF
31115/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031116$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031117int
31118find_stack_direction ()
31119{
31120 static char *addr = 0;
31121 auto char dummy;
31122 if (addr == 0)
31123 {
31124 addr = &dummy;
31125 return find_stack_direction ();
31126 }
John Criswell0021c312004-02-13 21:57:29 +000031127 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031128 return (&dummy > addr) ? 1 : -1;
31129}
John Criswell0021c312004-02-13 21:57:29 +000031130
John Criswell0021c312004-02-13 21:57:29 +000031131int
31132main ()
31133{
Reid Spencera773bd52006-08-04 18:18:08 +000031134 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031135}
31136_ACEOF
31137rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031138if { (ac_try="$ac_link"
31139case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31142esac
31143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031145 ac_status=$?
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031148 { (case "(($ac_try" in
31149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150 *) ac_try_echo=$ac_try;;
31151esac
31152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031154 ac_status=$?
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031157 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031158else
31159 echo "$as_me: program exited with status $ac_status" >&5
31160echo "$as_me: failed program was:" >&5
31161sed 's/^/| /' conftest.$ac_ext >&5
31162
31163( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031164ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031165fi
Reid Spencera773bd52006-08-04 18:18:08 +000031166rm -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 +000031167fi
Reid Spencera773bd52006-08-04 18:18:08 +000031168
31169
John Criswell0021c312004-02-13 21:57:29 +000031170fi
Reid Spencera773bd52006-08-04 18:18:08 +000031171{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31172echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031173
31174cat >>confdefs.h <<_ACEOF
31175#define STACK_DIRECTION $ac_cv_c_stack_direction
31176_ACEOF
31177
31178
John Criswell0021c312004-02-13 21:57:29 +000031179fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031180
31181
Reid Spencera773bd52006-08-04 18:18:08 +000031182{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31183echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031184if test "${ac_cv_func_rand48+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31186else
Reid Spencera773bd52006-08-04 18:18:08 +000031187 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031188ac_cpp='$CXXCPP $CPPFLAGS'
31189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31192
31193 cat >conftest.$ac_ext <<_ACEOF
31194/* confdefs.h. */
31195_ACEOF
31196cat confdefs.h >>conftest.$ac_ext
31197cat >>conftest.$ac_ext <<_ACEOF
31198/* end confdefs.h. */
31199#include <stdlib.h>
31200int
31201main ()
31202{
31203srand48(0);lrand48();drand48();
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031209if { (ac_try="$ac_compile"
31210case "(($ac_try" in
31211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212 *) ac_try_echo=$ac_try;;
31213esac
31214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031216 ac_status=$?
31217 grep -v '^ *+' conftest.er1 >conftest.err
31218 rm -f conftest.er1
31219 cat conftest.err >&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031233 { (case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236esac
31237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031239 ac_status=$?
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ac_cv_func_rand48=yes
31243else
31244 echo "$as_me: failed program was:" >&5
31245sed 's/^/| /' conftest.$ac_ext >&5
31246
Reid Spencera773bd52006-08-04 18:18:08 +000031247 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031248fi
Reid Spencera773bd52006-08-04 18:18:08 +000031249
31250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031251 ac_ext=c
31252ac_cpp='$CPP $CPPFLAGS'
31253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31255ac_compiler_gnu=$ac_cv_c_compiler_gnu
31256
31257fi
Reid Spencera773bd52006-08-04 18:18:08 +000031258{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31259echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031260
31261if test "$ac_cv_func_rand48" = "yes" ; then
31262
31263cat >>confdefs.h <<\_ACEOF
31264#define HAVE_RAND48 1
31265_ACEOF
31266
31267fi
John Criswell0021c312004-02-13 21:57:29 +000031268
31269
Reid Spencera773bd52006-08-04 18:18:08 +000031270{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31271echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031272if test "${ac_cv_cxx_namespaces+set}" = set; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31274else
Reid Spencera773bd52006-08-04 18:18:08 +000031275 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031276ac_cpp='$CXXCPP $CPPFLAGS'
31277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31280
31281 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031282/* confdefs.h. */
31283_ACEOF
31284cat confdefs.h >>conftest.$ac_ext
31285cat >>conftest.$ac_ext <<_ACEOF
31286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031287namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031288int
31289main ()
31290{
31291using namespace Outer::Inner; return i;
31292 ;
31293 return 0;
31294}
31295_ACEOF
31296rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031297if { (ac_try="$ac_compile"
31298case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31301esac
31302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31311 { (case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031321 { (case "(($ac_try" in
31322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323 *) ac_try_echo=$ac_try;;
31324esac
31325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031327 ac_status=$?
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; }; then
31330 ac_cv_cxx_namespaces=yes
31331else
31332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031333sed 's/^/| /' conftest.$ac_ext >&5
31334
Reid Spencera773bd52006-08-04 18:18:08 +000031335 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031336fi
Reid Spencera773bd52006-08-04 18:18:08 +000031337
31338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031339 ac_ext=c
31340ac_cpp='$CPP $CPPFLAGS'
31341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31343ac_compiler_gnu=$ac_cv_c_compiler_gnu
31344
31345
31346fi
Reid Spencera773bd52006-08-04 18:18:08 +000031347{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31348echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031349if test "$ac_cv_cxx_namespaces" = yes; then
31350
31351cat >>confdefs.h <<\_ACEOF
31352#define HAVE_NAMESPACES
31353_ACEOF
31354
31355fi
31356
Reid Spencera773bd52006-08-04 18:18:08 +000031357{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31358echo $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 +000031359if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031360 echo $ECHO_N "(cached) $ECHO_C" >&6
31361else
31362
Reid Spencera773bd52006-08-04 18:18:08 +000031363 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031364ac_cpp='$CXXCPP $CPPFLAGS'
31365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31368
31369 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031370/* confdefs.h. */
31371_ACEOF
31372cat confdefs.h >>conftest.$ac_ext
31373cat >>conftest.$ac_ext <<_ACEOF
31374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031375#include <ext/hash_map>
31376#ifdef HAVE_NAMESPACES
31377using namespace std;
31378#endif
John Criswell7a73b802003-06-30 21:59:07 +000031379int
31380main ()
31381{
Brian Gaeke90583492003-11-10 03:06:28 +000031382hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031383 ;
31384 return 0;
31385}
31386_ACEOF
31387rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031388if { (ac_try="$ac_compile"
31389case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31392esac
31393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031396 grep -v '^ *+' conftest.er1 >conftest.err
31397 rm -f conftest.er1
31398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31402 { (case "(($ac_try" in
31403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31404 *) ac_try_echo=$ac_try;;
31405esac
31406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31407 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031408 ac_status=$?
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); }; } &&
31411 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031412 { (case "(($ac_try" in
31413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414 *) ac_try_echo=$ac_try;;
31415esac
31416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031418 ac_status=$?
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031421 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031422else
31423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031424sed 's/^/| /' conftest.$ac_ext >&5
31425
Reid Spencera773bd52006-08-04 18:18:08 +000031426 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031427fi
Reid Spencera773bd52006-08-04 18:18:08 +000031428
31429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031430 ac_ext=c
31431ac_cpp='$CPP $CPPFLAGS'
31432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31434ac_compiler_gnu=$ac_cv_c_compiler_gnu
31435
John Criswell7a73b802003-06-30 21:59:07 +000031436fi
Reid Spencera773bd52006-08-04 18:18:08 +000031437{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31438echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031439 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31440 then
John Criswell9f011862004-09-24 18:28:00 +000031441
31442cat >>confdefs.h <<\_ACEOF
31443#define HAVE_STD_EXT_HASH_MAP 1
31444_ACEOF
31445
31446 else
31447
31448cat >>confdefs.h <<\_ACEOF
31449#define HAVE_STD_EXT_HASH_MAP 0
31450_ACEOF
31451
Brian Gaeke90583492003-11-10 03:06:28 +000031452 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031453
Reid Spencera773bd52006-08-04 18:18:08 +000031454 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31455echo $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 +000031456if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
31459
Reid Spencera773bd52006-08-04 18:18:08 +000031460 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031461ac_cpp='$CXXCPP $CPPFLAGS'
31462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31465
31466 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031467/* confdefs.h. */
31468_ACEOF
31469cat confdefs.h >>conftest.$ac_ext
31470cat >>conftest.$ac_ext <<_ACEOF
31471/* end confdefs.h. */
31472#include <ext/hash_map>
31473#ifdef HAVE_NAMESPACES
31474using namespace __gnu_cxx;
31475#endif
31476int
31477main ()
31478{
31479hash_map<int,int> t;
31480 ;
31481 return 0;
31482}
31483_ACEOF
31484rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031485if { (ac_try="$ac_compile"
31486case "(($ac_try" in
31487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31489esac
31490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031492 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031493 grep -v '^ *+' conftest.er1 >conftest.err
31494 rm -f conftest.er1
31495 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31499 { (case "(($ac_try" in
31500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501 *) ac_try_echo=$ac_try;;
31502esac
31503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 ac_cv_cxx_have_gnu_ext_hash_map=yes
31519else
31520 echo "$as_me: failed program was:" >&5
31521sed 's/^/| /' conftest.$ac_ext >&5
31522
Reid Spencera773bd52006-08-04 18:18:08 +000031523 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031524fi
Reid Spencera773bd52006-08-04 18:18:08 +000031525
31526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031527 ac_ext=c
31528ac_cpp='$CPP $CPPFLAGS'
31529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31531ac_compiler_gnu=$ac_cv_c_compiler_gnu
31532
31533fi
Reid Spencera773bd52006-08-04 18:18:08 +000031534{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31535echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031536 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31537 then
John Criswell9f011862004-09-24 18:28:00 +000031538
31539cat >>confdefs.h <<\_ACEOF
31540#define HAVE_GNU_EXT_HASH_MAP 1
31541_ACEOF
31542
31543 else
31544
31545cat >>confdefs.h <<\_ACEOF
31546#define HAVE_GNU_EXT_HASH_MAP 0
31547_ACEOF
31548
Brian Gaeke90583492003-11-10 03:06:28 +000031549 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031550
Reid Spencera773bd52006-08-04 18:18:08 +000031551 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31552echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031553if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31555else
John Criswell7a73b802003-06-30 21:59:07 +000031556
Reid Spencera773bd52006-08-04 18:18:08 +000031557 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031558ac_cpp='$CXXCPP $CPPFLAGS'
31559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31562
31563 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031564/* confdefs.h. */
31565_ACEOF
31566cat confdefs.h >>conftest.$ac_ext
31567cat >>conftest.$ac_ext <<_ACEOF
31568/* end confdefs.h. */
31569#include <hash_map>
31570int
31571main ()
31572{
31573hash_map<int,int> t;
31574 ;
31575 return 0;
31576}
31577_ACEOF
31578rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031579if { (ac_try="$ac_compile"
31580case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31583esac
31584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031587 grep -v '^ *+' conftest.er1 >conftest.err
31588 rm -f conftest.er1
31589 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596esac
31597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; } &&
31602 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
31612 ac_cv_cxx_have_global_hash_map=yes
31613else
31614 echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
Reid Spencera773bd52006-08-04 18:18:08 +000031617 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031618fi
Reid Spencera773bd52006-08-04 18:18:08 +000031619
31620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031621 ac_ext=c
31622ac_cpp='$CPP $CPPFLAGS'
31623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31625ac_compiler_gnu=$ac_cv_c_compiler_gnu
31626
31627fi
Reid Spencera773bd52006-08-04 18:18:08 +000031628{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31629echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031630 if test "$ac_cv_cxx_have_global_hash_map" = yes
31631 then
John Criswell9f011862004-09-24 18:28:00 +000031632
31633cat >>confdefs.h <<\_ACEOF
31634#define HAVE_GLOBAL_HASH_MAP 1
31635_ACEOF
31636
31637 else
31638
31639cat >>confdefs.h <<\_ACEOF
31640#define HAVE_GLOBAL_HASH_MAP 0
31641_ACEOF
31642
Brian Gaeke90583492003-11-10 03:06:28 +000031643 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031644
Reid Spencera773bd52006-08-04 18:18:08 +000031645{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31646echo $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 +000031647if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031648 echo $ECHO_N "(cached) $ECHO_C" >&6
31649else
31650
Reid Spencera773bd52006-08-04 18:18:08 +000031651 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031652ac_cpp='$CXXCPP $CPPFLAGS'
31653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31656
31657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031658/* confdefs.h. */
31659_ACEOF
31660cat confdefs.h >>conftest.$ac_ext
31661cat >>conftest.$ac_ext <<_ACEOF
31662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031663#include <ext/hash_set>
31664#ifdef HAVE_NAMESPACES
31665using namespace std;
31666#endif
John Criswell7a73b802003-06-30 21:59:07 +000031667int
31668main ()
31669{
Brian Gaeke90583492003-11-10 03:06:28 +000031670hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031671 ;
31672 return 0;
31673}
31674_ACEOF
31675rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031676if { (ac_try="$ac_compile"
31677case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31680esac
31681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031684 grep -v '^ *+' conftest.er1 >conftest.err
31685 rm -f conftest.er1
31686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31693esac
31694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703esac
31704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031709 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031710else
31711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031712sed 's/^/| /' conftest.$ac_ext >&5
31713
Reid Spencera773bd52006-08-04 18:18:08 +000031714 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031715fi
Reid Spencera773bd52006-08-04 18:18:08 +000031716
31717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031718 ac_ext=c
31719ac_cpp='$CPP $CPPFLAGS'
31720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31722ac_compiler_gnu=$ac_cv_c_compiler_gnu
31723
31724fi
Reid Spencera773bd52006-08-04 18:18:08 +000031725{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31726echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031727 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31728 then
John Criswell9f011862004-09-24 18:28:00 +000031729
31730cat >>confdefs.h <<\_ACEOF
31731#define HAVE_STD_EXT_HASH_SET 1
31732_ACEOF
31733
31734 else
31735
31736cat >>confdefs.h <<\_ACEOF
31737#define HAVE_STD_EXT_HASH_SET 0
31738_ACEOF
31739
Brian Gaeke90583492003-11-10 03:06:28 +000031740 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031741
Reid Spencera773bd52006-08-04 18:18:08 +000031742 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31743echo $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 +000031744if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31746else
31747
Reid Spencera773bd52006-08-04 18:18:08 +000031748 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031749ac_cpp='$CXXCPP $CPPFLAGS'
31750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31753
John Criswell7a73b802003-06-30 21:59:07 +000031754 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031755/* confdefs.h. */
31756_ACEOF
31757cat confdefs.h >>conftest.$ac_ext
31758cat >>conftest.$ac_ext <<_ACEOF
31759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031760#include <ext/hash_set>
31761#ifdef HAVE_NAMESPACES
31762using namespace __gnu_cxx;
31763#endif
John Criswell7a73b802003-06-30 21:59:07 +000031764int
31765main ()
31766{
Brian Gaeke90583492003-11-10 03:06:28 +000031767hash_set<int> t;
31768 ;
31769 return 0;
31770}
31771_ACEOF
31772rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031773if { (ac_try="$ac_compile"
31774case "(($ac_try" in
31775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31776 *) ac_try_echo=$ac_try;;
31777esac
31778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31779 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031781 grep -v '^ *+' conftest.er1 >conftest.err
31782 rm -f conftest.er1
31783 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31790esac
31791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031793 ac_status=$?
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; } &&
31796 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031797 { (case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31800esac
31801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031803 ac_status=$?
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; }; then
31806 ac_cv_cxx_have_gnu_ext_hash_set=yes
31807else
31808 echo "$as_me: failed program was:" >&5
31809sed 's/^/| /' conftest.$ac_ext >&5
31810
Reid Spencera773bd52006-08-04 18:18:08 +000031811 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031812fi
Reid Spencera773bd52006-08-04 18:18:08 +000031813
31814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031815 ac_ext=c
31816ac_cpp='$CPP $CPPFLAGS'
31817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31819ac_compiler_gnu=$ac_cv_c_compiler_gnu
31820
31821fi
Reid Spencera773bd52006-08-04 18:18:08 +000031822{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31823echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031824 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31825 then
John Criswell9f011862004-09-24 18:28:00 +000031826
31827cat >>confdefs.h <<\_ACEOF
31828#define HAVE_GNU_EXT_HASH_SET 1
31829_ACEOF
31830
31831 else
31832
31833cat >>confdefs.h <<\_ACEOF
31834#define HAVE_GNU_EXT_HASH_SET 0
31835_ACEOF
31836
Brian Gaeke90583492003-11-10 03:06:28 +000031837 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031838
Reid Spencera773bd52006-08-04 18:18:08 +000031839 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31840echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031841if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31843else
31844
Reid Spencera773bd52006-08-04 18:18:08 +000031845 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031846ac_cpp='$CXXCPP $CPPFLAGS'
31847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31850
31851 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031852/* confdefs.h. */
31853_ACEOF
31854cat confdefs.h >>conftest.$ac_ext
31855cat >>conftest.$ac_ext <<_ACEOF
31856/* end confdefs.h. */
31857#include <hash_set>
31858int
31859main ()
31860{
John Criswell7a73b802003-06-30 21:59:07 +000031861hash_set<int> t; return 0;
31862 ;
31863 return 0;
31864}
31865_ACEOF
31866rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031867if { (ac_try="$ac_compile"
31868case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31871esac
31872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031875 grep -v '^ *+' conftest.er1 >conftest.err
31876 rm -f conftest.er1
31877 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31881 { (case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31884esac
31885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031887 ac_status=$?
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; } &&
31890 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031891 { (case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31894esac
31895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031900 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031901else
31902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031903sed 's/^/| /' conftest.$ac_ext >&5
31904
Reid Spencera773bd52006-08-04 18:18:08 +000031905 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031906fi
Reid Spencera773bd52006-08-04 18:18:08 +000031907
31908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031909 ac_ext=c
31910ac_cpp='$CPP $CPPFLAGS'
31911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31913ac_compiler_gnu=$ac_cv_c_compiler_gnu
31914
John Criswell7a73b802003-06-30 21:59:07 +000031915fi
Reid Spencera773bd52006-08-04 18:18:08 +000031916{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31917echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031918 if test "$ac_cv_cxx_have_global_hash_set" = yes
31919 then
John Criswell9f011862004-09-24 18:28:00 +000031920
31921cat >>confdefs.h <<\_ACEOF
31922#define HAVE_GLOBAL_HASH_SET 1
31923_ACEOF
31924
31925 else
31926
31927cat >>confdefs.h <<\_ACEOF
31928#define HAVE_GLOBAL_HASH_SET 0
31929_ACEOF
31930
Brian Gaeke90583492003-11-10 03:06:28 +000031931 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031932
Reid Spencera773bd52006-08-04 18:18:08 +000031933{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31934echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031935if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31937else
31938
Reid Spencera773bd52006-08-04 18:18:08 +000031939 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031940ac_cpp='$CXXCPP $CPPFLAGS'
31941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31944
31945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031946/* confdefs.h. */
31947_ACEOF
31948cat confdefs.h >>conftest.$ac_ext
31949cat >>conftest.$ac_ext <<_ACEOF
31950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031951#include <iterator>
31952#ifdef HAVE_NAMESPACES
31953using namespace std;
31954#endif
John Criswell7a73b802003-06-30 21:59:07 +000031955int
31956main ()
31957{
31958iterator<int,int,int> t; return 0;
31959 ;
31960 return 0;
31961}
31962_ACEOF
31963rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031964if { (ac_try="$ac_compile"
31965case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31968esac
31969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031972 grep -v '^ *+' conftest.er1 >conftest.err
31973 rm -f conftest.er1
31974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31978 { (case "(($ac_try" in
31979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980 *) ac_try_echo=$ac_try;;
31981esac
31982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031984 ac_status=$?
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); }; } &&
31987 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031988 { (case "(($ac_try" in
31989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31990 *) ac_try_echo=$ac_try;;
31991esac
31992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31993 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031994 ac_status=$?
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); }; }; then
31997 ac_cv_cxx_have_std_iterator=yes
31998else
31999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032000sed 's/^/| /' conftest.$ac_ext >&5
32001
Reid Spencera773bd52006-08-04 18:18:08 +000032002 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032003fi
Reid Spencera773bd52006-08-04 18:18:08 +000032004
32005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032006 ac_ext=c
32007ac_cpp='$CPP $CPPFLAGS'
32008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32010ac_compiler_gnu=$ac_cv_c_compiler_gnu
32011
32012
32013fi
Reid Spencera773bd52006-08-04 18:18:08 +000032014{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32015echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032016if test "$ac_cv_cxx_have_std_iterator" = yes
32017then
John Criswell40468462004-09-24 21:19:06 +000032018
32019cat >>confdefs.h <<\_ACEOF
32020#define HAVE_STD_ITERATOR 1
32021_ACEOF
32022
32023else
32024
32025cat >>confdefs.h <<\_ACEOF
32026#define HAVE_STD_ITERATOR 0
32027_ACEOF
32028
John Criswell7a73b802003-06-30 21:59:07 +000032029fi
32030
Reid Spencera773bd52006-08-04 18:18:08 +000032031{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32032echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032033if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32034 echo $ECHO_N "(cached) $ECHO_C" >&6
32035else
32036
Reid Spencera773bd52006-08-04 18:18:08 +000032037 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032038ac_cpp='$CXXCPP $CPPFLAGS'
32039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32042
32043 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032044/* confdefs.h. */
32045_ACEOF
32046cat confdefs.h >>conftest.$ac_ext
32047cat >>conftest.$ac_ext <<_ACEOF
32048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032049#include <iterator>
32050#ifdef HAVE_NAMESPACES
32051using namespace std;
32052#endif
John Criswell7a73b802003-06-30 21:59:07 +000032053int
32054main ()
32055{
John Criswellc78022e2003-07-29 19:11:58 +000032056bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032057 ;
32058 return 0;
32059}
32060_ACEOF
32061rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032062if { (ac_try="$ac_compile"
32063case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32066esac
32067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032070 grep -v '^ *+' conftest.er1 >conftest.err
32071 rm -f conftest.er1
32072 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32076 { (case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32079esac
32080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032082 ac_status=$?
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; } &&
32085 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032086 { (case "(($ac_try" in
32087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088 *) ac_try_echo=$ac_try;;
32089esac
32090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032092 ac_status=$?
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); }; }; then
32095 ac_cv_cxx_have_bi_iterator=yes
32096else
32097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032098sed 's/^/| /' conftest.$ac_ext >&5
32099
Reid Spencera773bd52006-08-04 18:18:08 +000032100 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032101fi
Reid Spencera773bd52006-08-04 18:18:08 +000032102
32103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032104 ac_ext=c
32105ac_cpp='$CPP $CPPFLAGS'
32106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32108ac_compiler_gnu=$ac_cv_c_compiler_gnu
32109
32110
32111fi
Reid Spencera773bd52006-08-04 18:18:08 +000032112{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32113echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032114if test "$ac_cv_cxx_have_bi_iterator" = yes
32115then
John Criswell40468462004-09-24 21:19:06 +000032116
32117cat >>confdefs.h <<\_ACEOF
32118#define HAVE_BI_ITERATOR 1
32119_ACEOF
32120
32121else
32122
32123cat >>confdefs.h <<\_ACEOF
32124#define HAVE_BI_ITERATOR 0
32125_ACEOF
32126
John Criswell7a73b802003-06-30 21:59:07 +000032127fi
32128
Reid Spencera773bd52006-08-04 18:18:08 +000032129{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32130echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032131if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32133else
32134
Reid Spencera773bd52006-08-04 18:18:08 +000032135 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032136ac_cpp='$CXXCPP $CPPFLAGS'
32137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32140
32141 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032142/* confdefs.h. */
32143_ACEOF
32144cat confdefs.h >>conftest.$ac_ext
32145cat >>conftest.$ac_ext <<_ACEOF
32146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032147#include <iterator>
32148#ifdef HAVE_NAMESPACES
32149using namespace std;
32150#endif
John Criswell7a73b802003-06-30 21:59:07 +000032151int
32152main ()
32153{
John Criswellc78022e2003-07-29 19:11:58 +000032154forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032155 ;
32156 return 0;
32157}
32158_ACEOF
32159rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032160if { (ac_try="$ac_compile"
32161case "(($ac_try" in
32162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163 *) ac_try_echo=$ac_try;;
32164esac
32165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032167 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032168 grep -v '^ *+' conftest.er1 >conftest.err
32169 rm -f conftest.er1
32170 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32174 { (case "(($ac_try" in
32175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176 *) ac_try_echo=$ac_try;;
32177esac
32178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032180 ac_status=$?
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; } &&
32183 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032184 { (case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32187esac
32188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032190 ac_status=$?
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; }; then
32193 ac_cv_cxx_have_fwd_iterator=yes
32194else
32195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032196sed 's/^/| /' conftest.$ac_ext >&5
32197
Reid Spencera773bd52006-08-04 18:18:08 +000032198 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032199fi
Reid Spencera773bd52006-08-04 18:18:08 +000032200
32201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032202 ac_ext=c
32203ac_cpp='$CPP $CPPFLAGS'
32204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32206ac_compiler_gnu=$ac_cv_c_compiler_gnu
32207
32208
32209fi
Reid Spencera773bd52006-08-04 18:18:08 +000032210{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32211echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032212if test "$ac_cv_cxx_have_fwd_iterator" = yes
32213then
John Criswell40468462004-09-24 21:19:06 +000032214
32215cat >>confdefs.h <<\_ACEOF
32216#define HAVE_FWD_ITERATOR 1
32217_ACEOF
32218
32219else
32220
32221cat >>confdefs.h <<\_ACEOF
32222#define HAVE_FWD_ITERATOR 0
32223_ACEOF
32224
John Criswell7a73b802003-06-30 21:59:07 +000032225fi
32226
32227
Reid Spencera773bd52006-08-04 18:18:08 +000032228{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32229echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032230if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32232else
Reid Spencera773bd52006-08-04 18:18:08 +000032233 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032234ac_cpp='$CXXCPP $CPPFLAGS'
32235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32238
Reid Spencerabec8f92004-10-27 23:03:44 +000032239 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032240/* confdefs.h. */
32241_ACEOF
32242cat confdefs.h >>conftest.$ac_ext
32243cat >>conftest.$ac_ext <<_ACEOF
32244/* end confdefs.h. */
32245#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032246int
32247main ()
32248{
32249float f; isnan(f);
32250 ;
32251 return 0;
32252}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032253_ACEOF
32254rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032255if { (ac_try="$ac_compile"
32256case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259esac
32260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032263 grep -v '^ *+' conftest.er1 >conftest.err
32264 rm -f conftest.er1
32265 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32269 { (case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32272esac
32273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032275 ac_status=$?
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; } &&
32278 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032279 { (case "(($ac_try" in
32280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281 *) ac_try_echo=$ac_try;;
32282esac
32283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032285 ac_status=$?
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_cv_func_isnan_in_math_h=yes
32289else
32290 echo "$as_me: failed program was:" >&5
32291sed 's/^/| /' conftest.$ac_ext >&5
32292
Reid Spencera773bd52006-08-04 18:18:08 +000032293 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032294fi
Reid Spencera773bd52006-08-04 18:18:08 +000032295
32296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032297 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032298ac_cpp='$CPP $CPPFLAGS'
32299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32301ac_compiler_gnu=$ac_cv_c_compiler_gnu
32302
32303fi
Reid Spencera773bd52006-08-04 18:18:08 +000032304{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32305echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032306
32307
32308if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032309
32310cat >>confdefs.h <<\_ACEOF
32311#define HAVE_ISNAN_IN_MATH_H 1
32312_ACEOF
32313
Reid Spencerabec8f92004-10-27 23:03:44 +000032314fi
32315
Reid Spencera773bd52006-08-04 18:18:08 +000032316{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32317echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032318if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32320else
Reid Spencera773bd52006-08-04 18:18:08 +000032321 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032322ac_cpp='$CXXCPP $CPPFLAGS'
32323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32326
Reid Spencerabec8f92004-10-27 23:03:44 +000032327 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032328/* confdefs.h. */
32329_ACEOF
32330cat confdefs.h >>conftest.$ac_ext
32331cat >>conftest.$ac_ext <<_ACEOF
32332/* end confdefs.h. */
32333#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032334int
32335main ()
32336{
32337float f; isnan(f);
32338 ;
32339 return 0;
32340}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032341_ACEOF
32342rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032343if { (ac_try="$ac_compile"
32344case "(($ac_try" in
32345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346 *) ac_try_echo=$ac_try;;
32347esac
32348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032350 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032351 grep -v '^ *+' conftest.er1 >conftest.err
32352 rm -f conftest.er1
32353 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32360esac
32361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032363 ac_status=$?
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; } &&
32366 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032367 { (case "(($ac_try" in
32368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369 *) ac_try_echo=$ac_try;;
32370esac
32371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032373 ac_status=$?
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); }; }; then
32376 ac_cv_func_isnan_in_cmath=yes
32377else
32378 echo "$as_me: failed program was:" >&5
32379sed 's/^/| /' conftest.$ac_ext >&5
32380
Reid Spencera773bd52006-08-04 18:18:08 +000032381 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032382fi
Reid Spencera773bd52006-08-04 18:18:08 +000032383
32384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032385 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032386ac_cpp='$CPP $CPPFLAGS'
32387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32389ac_compiler_gnu=$ac_cv_c_compiler_gnu
32390
32391fi
Reid Spencera773bd52006-08-04 18:18:08 +000032392{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32393echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032394
32395if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032396
32397cat >>confdefs.h <<\_ACEOF
32398#define HAVE_ISNAN_IN_CMATH 1
32399_ACEOF
32400
Reid Spencerabec8f92004-10-27 23:03:44 +000032401fi
32402
Reid Spencera773bd52006-08-04 18:18:08 +000032403{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32404echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032405if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32407else
Reid Spencera773bd52006-08-04 18:18:08 +000032408 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032409ac_cpp='$CXXCPP $CPPFLAGS'
32410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32413
Reid Spencerabec8f92004-10-27 23:03:44 +000032414 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032415/* confdefs.h. */
32416_ACEOF
32417cat confdefs.h >>conftest.$ac_ext
32418cat >>conftest.$ac_ext <<_ACEOF
32419/* end confdefs.h. */
32420#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032421int
32422main ()
32423{
32424float f; std::isnan(f);
32425 ;
32426 return 0;
32427}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032428_ACEOF
32429rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032430if { (ac_try="$ac_compile"
32431case "(($ac_try" in
32432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433 *) ac_try_echo=$ac_try;;
32434esac
32435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032438 grep -v '^ *+' conftest.er1 >conftest.err
32439 rm -f conftest.er1
32440 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32444 { (case "(($ac_try" in
32445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446 *) ac_try_echo=$ac_try;;
32447esac
32448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032450 ac_status=$?
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032454 { (case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032460 ac_status=$?
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; }; then
32463 ac_cv_func_std_isnan_in_cmath=yes
32464else
32465 echo "$as_me: failed program was:" >&5
32466sed 's/^/| /' conftest.$ac_ext >&5
32467
Reid Spencera773bd52006-08-04 18:18:08 +000032468 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032469fi
Reid Spencera773bd52006-08-04 18:18:08 +000032470
32471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032472 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032473ac_cpp='$CPP $CPPFLAGS'
32474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476ac_compiler_gnu=$ac_cv_c_compiler_gnu
32477
32478fi
Reid Spencera773bd52006-08-04 18:18:08 +000032479{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32480echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032481
32482if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032483
32484cat >>confdefs.h <<\_ACEOF
32485#define HAVE_STD_ISNAN_IN_CMATH 1
32486_ACEOF
32487
Reid Spencerabec8f92004-10-27 23:03:44 +000032488fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032489
32490
Reid Spencera773bd52006-08-04 18:18:08 +000032491{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32492echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032493if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32495else
Reid Spencera773bd52006-08-04 18:18:08 +000032496 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032497ac_cpp='$CXXCPP $CPPFLAGS'
32498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32501
Reid Spencerabec8f92004-10-27 23:03:44 +000032502 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032503/* confdefs.h. */
32504_ACEOF
32505cat confdefs.h >>conftest.$ac_ext
32506cat >>conftest.$ac_ext <<_ACEOF
32507/* end confdefs.h. */
32508#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032509int
32510main ()
32511{
32512float f; isinf(f);
32513 ;
32514 return 0;
32515}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032516_ACEOF
32517rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032518if { (ac_try="$ac_compile"
32519case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32522esac
32523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032526 grep -v '^ *+' conftest.er1 >conftest.err
32527 rm -f conftest.er1
32528 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532 { (case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32535esac
32536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032538 ac_status=$?
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032542 { (case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545esac
32546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 ac_cv_func_isinf_in_math_h=yes
32552else
32553 echo "$as_me: failed program was:" >&5
32554sed 's/^/| /' conftest.$ac_ext >&5
32555
Reid Spencera773bd52006-08-04 18:18:08 +000032556 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032557fi
Reid Spencera773bd52006-08-04 18:18:08 +000032558
32559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032560 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032561ac_cpp='$CPP $CPPFLAGS'
32562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565
32566fi
Reid Spencera773bd52006-08-04 18:18:08 +000032567{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32568echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032569
32570if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032571
32572cat >>confdefs.h <<\_ACEOF
32573#define HAVE_ISINF_IN_MATH_H 1
32574_ACEOF
32575
Reid Spencerabec8f92004-10-27 23:03:44 +000032576fi
32577
Reid Spencera773bd52006-08-04 18:18:08 +000032578{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32579echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032580if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32582else
Reid Spencera773bd52006-08-04 18:18:08 +000032583 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032584ac_cpp='$CXXCPP $CPPFLAGS'
32585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32588
Reid Spencerabec8f92004-10-27 23:03:44 +000032589 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032590/* confdefs.h. */
32591_ACEOF
32592cat confdefs.h >>conftest.$ac_ext
32593cat >>conftest.$ac_ext <<_ACEOF
32594/* end confdefs.h. */
32595#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032596int
32597main ()
32598{
32599float f; isinf(f);
32600 ;
32601 return 0;
32602}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032603_ACEOF
32604rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032605if { (ac_try="$ac_compile"
32606case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32609esac
32610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032612 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032613 grep -v '^ *+' conftest.er1 >conftest.err
32614 rm -f conftest.er1
32615 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32619 { (case "(($ac_try" in
32620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621 *) ac_try_echo=$ac_try;;
32622esac
32623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032625 ac_status=$?
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } &&
32628 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032629 { (case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32632esac
32633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032635 ac_status=$?
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 ac_cv_func_isinf_in_cmath=yes
32639else
32640 echo "$as_me: failed program was:" >&5
32641sed 's/^/| /' conftest.$ac_ext >&5
32642
Reid Spencera773bd52006-08-04 18:18:08 +000032643 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032644fi
Reid Spencera773bd52006-08-04 18:18:08 +000032645
32646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032647 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032648ac_cpp='$CPP $CPPFLAGS'
32649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652
32653fi
Reid Spencera773bd52006-08-04 18:18:08 +000032654{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32655echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032656
32657if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032658
32659cat >>confdefs.h <<\_ACEOF
32660#define HAVE_ISINF_IN_CMATH 1
32661_ACEOF
32662
Reid Spencerabec8f92004-10-27 23:03:44 +000032663fi
32664
Reid Spencera773bd52006-08-04 18:18:08 +000032665{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32666echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032667if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32668 echo $ECHO_N "(cached) $ECHO_C" >&6
32669else
Reid Spencera773bd52006-08-04 18:18:08 +000032670 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032671ac_cpp='$CXXCPP $CPPFLAGS'
32672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32675
Reid Spencerabec8f92004-10-27 23:03:44 +000032676 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032677/* confdefs.h. */
32678_ACEOF
32679cat confdefs.h >>conftest.$ac_ext
32680cat >>conftest.$ac_ext <<_ACEOF
32681/* end confdefs.h. */
32682#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032683int
32684main ()
32685{
32686float f; std::isinf(f)}
32687 ;
32688 return 0;
32689}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032690_ACEOF
32691rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032692if { (ac_try="$ac_compile"
32693case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696esac
32697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032700 grep -v '^ *+' conftest.er1 >conftest.err
32701 rm -f conftest.er1
32702 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32706 { (case "(($ac_try" in
32707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708 *) ac_try_echo=$ac_try;;
32709esac
32710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; } &&
32715 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032716 { (case "(($ac_try" in
32717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32718 *) ac_try_echo=$ac_try;;
32719esac
32720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32721 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032722 ac_status=$?
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; }; then
32725 ac_cv_func_std_isinf_in_cmath=yes
32726else
32727 echo "$as_me: failed program was:" >&5
32728sed 's/^/| /' conftest.$ac_ext >&5
32729
Reid Spencera773bd52006-08-04 18:18:08 +000032730 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032731fi
Reid Spencera773bd52006-08-04 18:18:08 +000032732
32733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032734 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032735ac_cpp='$CPP $CPPFLAGS'
32736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32738ac_compiler_gnu=$ac_cv_c_compiler_gnu
32739
32740fi
Reid Spencera773bd52006-08-04 18:18:08 +000032741{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32742echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032743
32744if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032745
32746cat >>confdefs.h <<\_ACEOF
32747#define HAVE_STD_ISINF_IN_CMATH 1
32748_ACEOF
32749
Reid Spencerabec8f92004-10-27 23:03:44 +000032750fi
32751
Reid Spencera773bd52006-08-04 18:18:08 +000032752{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32753echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032754if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756else
Reid Spencera773bd52006-08-04 18:18:08 +000032757 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032758ac_cpp='$CXXCPP $CPPFLAGS'
32759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32762
Reid Spencerabec8f92004-10-27 23:03:44 +000032763 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032764/* confdefs.h. */
32765_ACEOF
32766cat confdefs.h >>conftest.$ac_ext
32767cat >>conftest.$ac_ext <<_ACEOF
32768/* end confdefs.h. */
32769#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032770int
32771main ()
32772{
32773float f; finite(f);
32774 ;
32775 return 0;
32776}
Brian Gaeked59a6472004-07-21 03:33:58 +000032777_ACEOF
32778rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032779if { (ac_try="$ac_compile"
32780case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032787 grep -v '^ *+' conftest.er1 >conftest.err
32788 rm -f conftest.er1
32789 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32796esac
32797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032799 ac_status=$?
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032803 { (case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32806esac
32807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032809 ac_status=$?
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_cv_func_finite_in_ieeefp_h=yes
32813else
32814 echo "$as_me: failed program was:" >&5
32815sed 's/^/| /' conftest.$ac_ext >&5
32816
Reid Spencera773bd52006-08-04 18:18:08 +000032817 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032818fi
Reid Spencera773bd52006-08-04 18:18:08 +000032819
32820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032821 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032822ac_cpp='$CPP $CPPFLAGS'
32823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32825ac_compiler_gnu=$ac_cv_c_compiler_gnu
32826
32827fi
Reid Spencera773bd52006-08-04 18:18:08 +000032828{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32829echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032830
Brian Gaeke6802b552004-10-28 05:06:45 +000032831if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032832
32833cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032834#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032835_ACEOF
32836
Reid Spencerabec8f92004-10-27 23:03:44 +000032837fi
32838
32839
32840
Reid Spencer30fe5262007-01-20 07:48:49 +000032841if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032842
32843
32844for ac_header in stdlib.h unistd.h
32845do
32846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032851 echo $ECHO_N "(cached) $ECHO_C" >&6
32852fi
Reid Spencera773bd52006-08-04 18:18:08 +000032853ac_res=`eval echo '${'$as_ac_Header'}'`
32854 { echo "$as_me:$LINENO: result: $ac_res" >&5
32855echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032856else
32857 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032858{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032860cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032861/* confdefs.h. */
32862_ACEOF
32863cat confdefs.h >>conftest.$ac_ext
32864cat >>conftest.$ac_ext <<_ACEOF
32865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032866$ac_includes_default
32867#include <$ac_header>
32868_ACEOF
32869rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032870if { (ac_try="$ac_compile"
32871case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32874esac
32875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032877 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032878 grep -v '^ *+' conftest.er1 >conftest.err
32879 rm -f conftest.er1
32880 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32884 { (case "(($ac_try" in
32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886 *) ac_try_echo=$ac_try;;
32887esac
32888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032890 ac_status=$?
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; } &&
32893 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032894 { (case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32897esac
32898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032900 ac_status=$?
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); }; }; then
32903 ac_header_compiler=yes
32904else
32905 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032906sed 's/^/| /' conftest.$ac_ext >&5
32907
Reid Spencera773bd52006-08-04 18:18:08 +000032908 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032909fi
Reid Spencera773bd52006-08-04 18:18:08 +000032910
32911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32912{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32913echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032914
32915# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032916{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032918cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032919/* confdefs.h. */
32920_ACEOF
32921cat confdefs.h >>conftest.$ac_ext
32922cat >>conftest.$ac_ext <<_ACEOF
32923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032924#include <$ac_header>
32925_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032926if { (ac_try="$ac_cpp conftest.$ac_ext"
32927case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32930esac
32931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032933 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032934 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032935 rm -f conftest.er1
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } >/dev/null; then
32939 if test -s conftest.err; then
32940 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032942 else
32943 ac_cpp_err=
32944 fi
32945else
32946 ac_cpp_err=yes
32947fi
32948if test -z "$ac_cpp_err"; then
32949 ac_header_preproc=yes
32950else
32951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032952sed 's/^/| /' conftest.$ac_ext >&5
32953
John Criswell7a73b802003-06-30 21:59:07 +000032954 ac_header_preproc=no
32955fi
Reid Spencera773bd52006-08-04 18:18:08 +000032956
John Criswell7a73b802003-06-30 21:59:07 +000032957rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32959echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032960
32961# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32963 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32968 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032969 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032970 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032983 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032984## ----------------------------------- ##
32985## Report this to llvmbugs@cs.uiuc.edu ##
32986## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032987_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032988 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032990esac
Reid Spencera773bd52006-08-04 18:18:08 +000032991{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032994 echo $ECHO_N "(cached) $ECHO_C" >&6
32995else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032996 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032997fi
Reid Spencera773bd52006-08-04 18:18:08 +000032998ac_res=`eval echo '${'$as_ac_Header'}'`
32999 { echo "$as_me:$LINENO: result: $ac_res" >&5
33000echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033001
33002fi
33003if test `eval echo '${'$as_ac_Header'}'` = yes; then
33004 cat >>confdefs.h <<_ACEOF
33005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33006_ACEOF
33007
33008fi
33009
33010done
33011
33012
33013for ac_func in getpagesize
33014do
33015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033016{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033019 echo $ECHO_N "(cached) $ECHO_C" >&6
33020else
33021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033022/* confdefs.h. */
33023_ACEOF
33024cat confdefs.h >>conftest.$ac_ext
33025cat >>conftest.$ac_ext <<_ACEOF
33026/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33029#define $ac_func innocuous_$ac_func
33030
John Criswell7a73b802003-06-30 21:59:07 +000033031/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033032 which can conflict with char $ac_func (); below.
33033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33034 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033035
John Criswell0c38eaf2003-09-10 15:17:25 +000033036#ifdef __STDC__
33037# include <limits.h>
33038#else
33039# include <assert.h>
33040#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033041
33042#undef $ac_func
33043
Reid Spencera773bd52006-08-04 18:18:08 +000033044/* Override any GCC internal prototype to avoid an error.
33045 Use char because int might match the return type of a GCC
33046 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033047#ifdef __cplusplus
33048extern "C"
33049#endif
John Criswell7a73b802003-06-30 21:59:07 +000033050char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033051/* The GNU C library defines this for functions which it implements
33052 to always fail with ENOSYS. Some functions are actually named
33053 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033054#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033055choke me
John Criswell7a73b802003-06-30 21:59:07 +000033056#endif
33057
John Criswell0c38eaf2003-09-10 15:17:25 +000033058int
33059main ()
33060{
Reid Spencera773bd52006-08-04 18:18:08 +000033061return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033062 ;
33063 return 0;
33064}
33065_ACEOF
33066rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033067if { (ac_try="$ac_link"
33068case "(($ac_try" in
33069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070 *) ac_try_echo=$ac_try;;
33071esac
33072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033075 grep -v '^ *+' conftest.er1 >conftest.err
33076 rm -f conftest.er1
33077 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33084esac
33085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033087 ac_status=$?
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; } &&
33090 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033091 { (case "(($ac_try" in
33092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093 *) ac_try_echo=$ac_try;;
33094esac
33095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033097 ac_status=$?
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); }; }; then
33100 eval "$as_ac_var=yes"
33101else
33102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033103sed 's/^/| /' conftest.$ac_ext >&5
33104
Reid Spencera773bd52006-08-04 18:18:08 +000033105 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033106fi
Reid Spencera773bd52006-08-04 18:18:08 +000033107
33108rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033109 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033110fi
Reid Spencera773bd52006-08-04 18:18:08 +000033111ac_res=`eval echo '${'$as_ac_var'}'`
33112 { echo "$as_me:$LINENO: result: $ac_res" >&5
33113echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033114if test `eval echo '${'$as_ac_var'}'` = yes; then
33115 cat >>confdefs.h <<_ACEOF
33116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33117_ACEOF
33118
33119fi
33120done
33121
Reid Spencera773bd52006-08-04 18:18:08 +000033122{ echo "$as_me:$LINENO: checking for working mmap" >&5
33123echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033124if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33126else
33127 if test "$cross_compiling" = yes; then
33128 ac_cv_func_mmap_fixed_mapped=no
33129else
33130 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033131/* confdefs.h. */
33132_ACEOF
33133cat confdefs.h >>conftest.$ac_ext
33134cat >>conftest.$ac_ext <<_ACEOF
33135/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033136$ac_includes_default
33137/* malloc might have been renamed as rpl_malloc. */
33138#undef malloc
33139
33140/* Thanks to Mike Haertel and Jim Avera for this test.
33141 Here is a matrix of mmap possibilities:
33142 mmap private not fixed
33143 mmap private fixed at somewhere currently unmapped
33144 mmap private fixed at somewhere already mapped
33145 mmap shared not fixed
33146 mmap shared fixed at somewhere currently unmapped
33147 mmap shared fixed at somewhere already mapped
33148 For private mappings, we should verify that changes cannot be read()
33149 back from the file, nor mmap's back from the file at a different
33150 address. (There have been systems where private was not correctly
33151 implemented like the infamous i386 svr4.0, and systems where the
33152 VM page cache was not coherent with the file system buffer cache
33153 like early versions of FreeBSD and possibly contemporary NetBSD.)
33154 For shared mappings, we should conversely verify that changes get
33155 propagated back to all the places they're supposed to be.
33156
33157 Grep wants private fixed already mapped.
33158 The main things grep needs to know about mmap are:
33159 * does it exist and is it safe to write into the mmap'd area
33160 * how to use it (BSD variants) */
33161
33162#include <fcntl.h>
33163#include <sys/mman.h>
33164
33165#if !STDC_HEADERS && !HAVE_STDLIB_H
33166char *malloc ();
33167#endif
33168
33169/* This mess was copied from the GNU getpagesize.h. */
33170#if !HAVE_GETPAGESIZE
33171/* Assume that all systems that can run configure have sys/param.h. */
33172# if !HAVE_SYS_PARAM_H
33173# define HAVE_SYS_PARAM_H 1
33174# endif
33175
33176# ifdef _SC_PAGESIZE
33177# define getpagesize() sysconf(_SC_PAGESIZE)
33178# else /* no _SC_PAGESIZE */
33179# if HAVE_SYS_PARAM_H
33180# include <sys/param.h>
33181# ifdef EXEC_PAGESIZE
33182# define getpagesize() EXEC_PAGESIZE
33183# else /* no EXEC_PAGESIZE */
33184# ifdef NBPG
33185# define getpagesize() NBPG * CLSIZE
33186# ifndef CLSIZE
33187# define CLSIZE 1
33188# endif /* no CLSIZE */
33189# else /* no NBPG */
33190# ifdef NBPC
33191# define getpagesize() NBPC
33192# else /* no NBPC */
33193# ifdef PAGESIZE
33194# define getpagesize() PAGESIZE
33195# endif /* PAGESIZE */
33196# endif /* no NBPC */
33197# endif /* no NBPG */
33198# endif /* no EXEC_PAGESIZE */
33199# else /* no HAVE_SYS_PARAM_H */
33200# define getpagesize() 8192 /* punt totally */
33201# endif /* no HAVE_SYS_PARAM_H */
33202# endif /* no _SC_PAGESIZE */
33203
33204#endif /* no HAVE_GETPAGESIZE */
33205
33206int
33207main ()
33208{
33209 char *data, *data2, *data3;
33210 int i, pagesize;
33211 int fd;
33212
33213 pagesize = getpagesize ();
33214
33215 /* First, make a file with some known garbage in it. */
33216 data = (char *) malloc (pagesize);
33217 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033218 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033219 for (i = 0; i < pagesize; ++i)
33220 *(data + i) = rand ();
33221 umask (0);
33222 fd = creat ("conftest.mmap", 0600);
33223 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033224 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033225 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033226 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033227 close (fd);
33228
33229 /* Next, try to mmap the file at a fixed address which already has
33230 something else allocated at it. If we can, also make sure that
33231 we see the same garbage. */
33232 fd = open ("conftest.mmap", O_RDWR);
33233 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033234 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033235 data2 = (char *) malloc (2 * pagesize);
33236 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033237 return 1;
33238 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033239 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033241 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033242 for (i = 0; i < pagesize; ++i)
33243 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033244 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033245
33246 /* Finally, make sure that changes to the mapped area do not
33247 percolate back to the file as seen by read(). (This is a bug on
33248 some variants of i386 svr4.0.) */
33249 for (i = 0; i < pagesize; ++i)
33250 *(data2 + i) = *(data2 + i) + 1;
33251 data3 = (char *) malloc (pagesize);
33252 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033253 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033254 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033255 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033256 for (i = 0; i < pagesize; ++i)
33257 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033258 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033259 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033260 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033261}
33262_ACEOF
33263rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033264if { (ac_try="$ac_link"
33265case "(($ac_try" in
33266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267 *) ac_try_echo=$ac_try;;
33268esac
33269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033271 ac_status=$?
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033274 { (case "(($ac_try" in
33275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276 *) ac_try_echo=$ac_try;;
33277esac
33278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033280 ac_status=$?
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; }; then
33283 ac_cv_func_mmap_fixed_mapped=yes
33284else
33285 echo "$as_me: program exited with status $ac_status" >&5
33286echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033287sed 's/^/| /' conftest.$ac_ext >&5
33288
John Criswell7a73b802003-06-30 21:59:07 +000033289( exit $ac_status )
33290ac_cv_func_mmap_fixed_mapped=no
33291fi
Reid Spencera773bd52006-08-04 18:18:08 +000033292rm -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 +000033293fi
Reid Spencera773bd52006-08-04 18:18:08 +000033294
33295
John Criswell7a73b802003-06-30 21:59:07 +000033296fi
Reid Spencera773bd52006-08-04 18:18:08 +000033297{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33298echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033299if test $ac_cv_func_mmap_fixed_mapped = yes; then
33300
33301cat >>confdefs.h <<\_ACEOF
33302#define HAVE_MMAP 1
33303_ACEOF
33304
33305fi
33306rm -f conftest.mmap
33307
Reid Spencer30fe5262007-01-20 07:48:49 +000033308 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033309echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033310if test "${ac_cv_func_mmap_file+set}" = set; then
33311 echo $ECHO_N "(cached) $ECHO_C" >&6
33312else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033313 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033314ac_cpp='$CPP $CPPFLAGS'
33315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33317ac_compiler_gnu=$ac_cv_c_compiler_gnu
33318
33319 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033320 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033321else
33322 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033323
Reid Spencer777ce172004-09-20 04:09:56 +000033324 /* confdefs.h. */
33325_ACEOF
33326cat confdefs.h >>conftest.$ac_ext
33327cat >>conftest.$ac_ext <<_ACEOF
33328/* end confdefs.h. */
33329
John Criswell7a73b802003-06-30 21:59:07 +000033330#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033331#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033332#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033333
33334int
33335main ()
33336{
John Criswell7a73b802003-06-30 21:59:07 +000033337
33338 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033339 fd = creat ("foo",0777);
33340 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33341 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033342 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033343 ;
33344 return 0;
33345}
John Criswell7a73b802003-06-30 21:59:07 +000033346_ACEOF
33347rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033348if { (ac_try="$ac_link"
33349case "(($ac_try" in
33350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351 *) ac_try_echo=$ac_try;;
33352esac
33353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33354 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033355 ac_status=$?
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033358 { (case "(($ac_try" in
33359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360 *) ac_try_echo=$ac_try;;
33361esac
33362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33363 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033364 ac_status=$?
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); }; }; then
33367 ac_cv_func_mmap_file=yes
33368else
33369 echo "$as_me: program exited with status $ac_status" >&5
33370echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033371sed 's/^/| /' conftest.$ac_ext >&5
33372
John Criswell7a73b802003-06-30 21:59:07 +000033373( exit $ac_status )
33374ac_cv_func_mmap_file=no
33375fi
Reid Spencera773bd52006-08-04 18:18:08 +000033376rm -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 +000033377fi
Reid Spencera773bd52006-08-04 18:18:08 +000033378
33379
John Criswell7a73b802003-06-30 21:59:07 +000033380 ac_ext=c
33381ac_cpp='$CPP $CPPFLAGS'
33382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33384ac_compiler_gnu=$ac_cv_c_compiler_gnu
33385
33386
33387fi
Reid Spencera773bd52006-08-04 18:18:08 +000033388{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33389echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033390if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033391
33392cat >>confdefs.h <<\_ACEOF
33393#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033394_ACEOF
33395
33396 MMAP_FILE=yes
33397
33398fi
33399
Reid Spencer30fe5262007-01-20 07:48:49 +000033400 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033401echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033402if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33403 echo $ECHO_N "(cached) $ECHO_C" >&6
33404else
Reid Spencer582a23c2004-12-29 07:07:57 +000033405 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033406 ac_cv_need_dev_zero_for_mmap=yes
33407 else
33408 ac_cv_need_dev_zero_for_mmap=no
33409 fi
33410
33411fi
Reid Spencera773bd52006-08-04 18:18:08 +000033412{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33413echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033414if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33415
33416cat >>confdefs.h <<\_ACEOF
33417#define NEED_DEV_ZERO_FOR_MMAP 1
33418_ACEOF
33419
33420fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033421
Reid Spencer30fe5262007-01-20 07:48:49 +000033422 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33423 then
33424 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033425echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033426 fi
33427 if test "$ac_cv_func_mmap_file" = "no"
33428 then
33429 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033430echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033431 fi
John Criswellb13092b2003-07-22 21:00:24 +000033432fi
John Criswell7a73b802003-06-30 21:59:07 +000033433
33434
Reid Spencera773bd52006-08-04 18:18:08 +000033435{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33436echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033437if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33438 echo $ECHO_N "(cached) $ECHO_C" >&6
33439else
33440 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033441if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033442 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033443 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033444 if test $? -eq 0 ; then
33445 llvm_cv_llvmgcc_sanity="yes"
33446 fi
33447 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033449fi
Reid Spencera773bd52006-08-04 18:18:08 +000033450{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33451echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033452
33453if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033454 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033455 LLVMCC1=$llvmcc1path
33456
Reid Spencer502935f2004-12-22 05:56:56 +000033457 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033458 LLVMCC1PLUS=$llvmcc1pluspath
33459
Reid Spencer502935f2004-12-22 05:56:56 +000033460 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33461 LLVMGCCDIR=$llvmgccdir
33462
Reid Spencer282d8c12006-12-21 22:55:41 +000033463 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33464 LLVMGCCLIBEXEC=$llvmgcclibexec
33465
Reid Spencerb5d75b82006-05-09 00:31:01 +000033466 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033467 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33468 LLVMGCC_VERSION=$llvmgccversion
33469
33470 LLVMGCC_MAJVERS=$llvmgccmajvers
33471
Brian Gaekef3b24102003-11-16 18:38:14 +000033472fi
33473
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033474SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033475
33476
Reid Spencere9de0912004-08-20 09:03:57 +000033477# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033478# information into substitutions that will end up in Makefile.config.in
33479# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033480if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033481 prefix="/usr/local"
33482fi
Reid Spencere9de0912004-08-20 09:03:57 +000033483eval LLVM_PREFIX="${prefix}";
33484eval LLVM_BINDIR="${prefix}/bin";
33485eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033486eval LLVM_DATADIR="${prefix}/share/llvm";
33487eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33488eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033489eval LLVM_INCLUDEDIR="${prefix}/include";
33490eval LLVM_INFODIR="${prefix}/info";
33491eval LLVM_MANDIR="${prefix}/man";
33492LLVM_CONFIGTIME=`date`
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033504# Place the various directores into the config.h file as #defines so that we
33505# can know about the installation paths within LLVM.
33506
Reid Spencere9de0912004-08-20 09:03:57 +000033507cat >>confdefs.h <<_ACEOF
33508#define LLVM_PREFIX "$LLVM_PREFIX"
33509_ACEOF
33510
33511
33512cat >>confdefs.h <<_ACEOF
33513#define LLVM_BINDIR "$LLVM_BINDIR"
33514_ACEOF
33515
33516
33517cat >>confdefs.h <<_ACEOF
33518#define LLVM_LIBDIR "$LLVM_LIBDIR"
33519_ACEOF
33520
33521
33522cat >>confdefs.h <<_ACEOF
33523#define LLVM_DATADIR "$LLVM_DATADIR"
33524_ACEOF
33525
33526
33527cat >>confdefs.h <<_ACEOF
33528#define LLVM_DATADIR "$LLVM_DOCSDIR"
33529_ACEOF
33530
33531
33532cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033533#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033534_ACEOF
33535
33536
33537cat >>confdefs.h <<_ACEOF
33538#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33539_ACEOF
33540
33541
33542cat >>confdefs.h <<_ACEOF
33543#define LLVM_INFODIR "$LLVM_INFODIR"
33544_ACEOF
33545
33546
33547cat >>confdefs.h <<_ACEOF
33548#define LLVM_MANDIR "$LLVM_MANDIR"
33549_ACEOF
33550
33551
33552cat >>confdefs.h <<_ACEOF
33553#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33554_ACEOF
33555
33556
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033557
Reid Spencera773bd52006-08-04 18:18:08 +000033558ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033559
Reid Spencera773bd52006-08-04 18:18:08 +000033560ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033561
Reid Spencera773bd52006-08-04 18:18:08 +000033562ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033563
Reid Spencera773bd52006-08-04 18:18:08 +000033564ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033565
Reid Spencera773bd52006-08-04 18:18:08 +000033566ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033567
33568
Reid Spencera773bd52006-08-04 18:18:08 +000033569ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033570
33571
Reid Spencerea949cf2006-08-16 00:45:38 +000033572ac_config_files="$ac_config_files llvm.spec"
33573
33574
Reid Spencera773bd52006-08-04 18:18:08 +000033575ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033576
33577
Reid Spencera773bd52006-08-04 18:18:08 +000033578ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033579
33580
Reid Spencera773bd52006-08-04 18:18:08 +000033581ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033582
Reid Spencera773bd52006-08-04 18:18:08 +000033583ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033584
33585
Reid Spencera773bd52006-08-04 18:18:08 +000033586ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033587
33588
Reid Spencera773bd52006-08-04 18:18:08 +000033589ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033590
33591
Reid Spencera773bd52006-08-04 18:18:08 +000033592ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033593
33594
Reid Spencer8b2e1412006-11-17 03:32:33 +000033595ac_config_commands="$ac_config_commands runtime/Makefile"
33596
33597
Reid Spencera773bd52006-08-04 18:18:08 +000033598ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033599
33600
Reid Spencera773bd52006-08-04 18:18:08 +000033601ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033602
33603
Reid Spencera773bd52006-08-04 18:18:08 +000033604ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033605
33606
Reid Spencera773bd52006-08-04 18:18:08 +000033607ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033608
33609
Reid Spencera773bd52006-08-04 18:18:08 +000033610ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033611
33612
33613
John Criswell7a73b802003-06-30 21:59:07 +000033614cat >confcache <<\_ACEOF
33615# This file is a shell script that caches the results of configure
33616# tests run on this system so they can be shared between configure
33617# scripts and configure runs, see configure's option --config-cache.
33618# It is not useful on other systems. If it contains results you don't
33619# want to keep, you may remove or edit it.
33620#
33621# config.status only pays attention to the cache file if you give it
33622# the --recheck option to rerun configure.
33623#
John Criswell0c38eaf2003-09-10 15:17:25 +000033624# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033625# loading this file, other *unset* `ac_cv_foo' will be assigned the
33626# following values.
33627
33628_ACEOF
33629
33630# The following way of writing the cache mishandles newlines in values,
33631# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033632# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033633# Ultrix sh set writes to stderr and can't be redirected directly,
33634# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033635(
33636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33637 eval ac_val=\$$ac_var
33638 case $ac_val in #(
33639 *${as_nl}*)
33640 case $ac_var in #(
33641 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33642echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33643 esac
33644 case $ac_var in #(
33645 _ | IFS | as_nl) ;; #(
33646 *) $as_unset $ac_var ;;
33647 esac ;;
33648 esac
33649 done
33650
John Criswell7a73b802003-06-30 21:59:07 +000033651 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033652 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33653 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033654 # `set' does not quote correctly, so add quotes (double-quote
33655 # substitution turns \\\\ into \\, and sed turns \\ into \).
33656 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033657 "s/'/'\\\\''/g;
33658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033659 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033660 *)
33661 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033664 esac |
33665 sort
33666) |
John Criswell7a73b802003-06-30 21:59:07 +000033667 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033668 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033669 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033670 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033671 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33672 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033673 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33674 :end' >>confcache
33675if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33676 if test -w "$cache_file"; then
33677 test "x$cache_file" != "x/dev/null" &&
33678 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33679echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033680 cat confcache >$cache_file
33681 else
Reid Spencera773bd52006-08-04 18:18:08 +000033682 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33683echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033684 fi
33685fi
33686rm -f confcache
33687
33688test "x$prefix" = xNONE && prefix=$ac_default_prefix
33689# Let make expand exec_prefix.
33690test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33691
John Criswell7a73b802003-06-30 21:59:07 +000033692DEFS=-DHAVE_CONFIG_H
33693
John Criswell0c38eaf2003-09-10 15:17:25 +000033694ac_libobjs=
33695ac_ltlibobjs=
33696for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33697 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33699 ac_i=`echo "$ac_i" | sed "$ac_script"`
33700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33701 # will be set to the directory where LIBOBJS objects are built.
33702 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33703 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033704done
33705LIBOBJS=$ac_libobjs
33706
33707LTLIBOBJS=$ac_ltlibobjs
33708
33709
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033710if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33711 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33712Usually this means the macro was only invoked conditionally." >&5
33713echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33714Usually this means the macro was only invoked conditionally." >&2;}
33715 { (exit 1); exit 1; }; }
33716fi
33717if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33718 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33719Usually this means the macro was only invoked conditionally." >&5
33720echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33721Usually this means the macro was only invoked conditionally." >&2;}
33722 { (exit 1); exit 1; }; }
33723fi
John Criswell7a73b802003-06-30 21:59:07 +000033724
33725: ${CONFIG_STATUS=./config.status}
33726ac_clean_files_save=$ac_clean_files
33727ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33728{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33729echo "$as_me: creating $CONFIG_STATUS" >&6;}
33730cat >$CONFIG_STATUS <<_ACEOF
33731#! $SHELL
33732# Generated by $as_me.
33733# Run this file to recreate the current configuration.
33734# Compiler output produced by configure, useful for debugging
33735# configure, is in config.log if it exists.
33736
33737debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033738ac_cs_recheck=false
33739ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033740SHELL=\${CONFIG_SHELL-$SHELL}
33741_ACEOF
33742
33743cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033744## --------------------- ##
33745## M4sh Initialization. ##
33746## --------------------- ##
33747
33748# Be Bourne compatible
33749if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33750 emulate sh
33751 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033752 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33753 # is contrary to our usage. Disable this feature.
33754 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033755 setopt NO_GLOB_SUBST
33756else
33757 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033758fi
Reid Spencera773bd52006-08-04 18:18:08 +000033759BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033760DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033761
John Criswell7a73b802003-06-30 21:59:07 +000033762
Reid Spencera773bd52006-08-04 18:18:08 +000033763# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033764# Avoid depending upon Character Ranges.
33765as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33766as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33767as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33768as_cr_digits='0123456789'
33769as_cr_alnum=$as_cr_Letters$as_cr_digits
33770
33771# The user is always right.
33772if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033773 echo "#! /bin/sh" >conf$$.sh
33774 echo "exit 0" >>conf$$.sh
33775 chmod +x conf$$.sh
33776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033777 PATH_SEPARATOR=';'
33778 else
33779 PATH_SEPARATOR=:
33780 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033781 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033782fi
33783
Reid Spencera773bd52006-08-04 18:18:08 +000033784# Support unset when possible.
33785if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33786 as_unset=unset
33787else
33788 as_unset=false
33789fi
John Criswell7a73b802003-06-30 21:59:07 +000033790
Reid Spencera773bd52006-08-04 18:18:08 +000033791
33792# IFS
33793# We need space, tab and new line, in precisely that order. Quoting is
33794# there to prevent editors from complaining about space-tab.
33795# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33796# splitting by setting IFS to empty value.)
33797as_nl='
33798'
33799IFS=" "" $as_nl"
33800
33801# Find who we are. Look in the path if we contain no directory separator.
33802case $0 in
33803 *[\\/]* ) as_myself=$0 ;;
33804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033805for as_dir in $PATH
33806do
33807 IFS=$as_save_IFS
33808 test -z "$as_dir" && as_dir=.
33809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33810done
Reid Spencera773bd52006-08-04 18:18:08 +000033811IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033812
Reid Spencera773bd52006-08-04 18:18:08 +000033813 ;;
33814esac
33815# We did not find ourselves, most probably we were run as `sh COMMAND'
33816# in which case we are not to be found in the path.
33817if test "x$as_myself" = x; then
33818 as_myself=$0
33819fi
33820if test ! -f "$as_myself"; then
33821 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33822 { (exit 1); exit 1; }
33823fi
33824
33825# Work around bugs in pre-3.0 UWIN ksh.
33826for as_var in ENV MAIL MAILPATH
33827do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33828done
33829PS1='$ '
33830PS2='> '
33831PS4='+ '
33832
33833# NLS nuisances.
33834for as_var in \
33835 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33836 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33837 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033838do
Reid Spencera773bd52006-08-04 18:18:08 +000033839 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33840 eval $as_var=C; export $as_var
33841 else
33842 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33843 fi
33844done
33845
33846# Required to use basename.
33847if expr a : '\(a\)' >/dev/null 2>&1 &&
33848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33849 as_expr=expr
33850else
33851 as_expr=false
33852fi
33853
33854if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33855 as_basename=basename
33856else
33857 as_basename=false
33858fi
33859
33860
33861# Name of the executable.
33862as_me=`$as_basename -- "$0" ||
33863$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33864 X"$0" : 'X\(//\)$' \| \
33865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33866echo X/"$0" |
33867 sed '/^.*\/\([^/][^/]*\)\/*$/{
33868 s//\1/
33869 q
33870 }
33871 /^X\/\(\/\/\)$/{
33872 s//\1/
33873 q
33874 }
33875 /^X\/\(\/\).*/{
33876 s//\1/
33877 q
33878 }
33879 s/.*/./; q'`
33880
33881# CDPATH.
33882$as_unset CDPATH
33883
33884
33885
John Criswell7a73b802003-06-30 21:59:07 +000033886 as_lineno_1=$LINENO
33887 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033888 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033889 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033890
33891 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33892 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033893 # line-number line after each line using $LINENO; the second 'sed'
33894 # does the real work. The second script uses 'N' to pair each
33895 # line-number line with the line containing $LINENO, and appends
33896 # trailing '-' during substitution so that $LINENO is not a special
33897 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033898 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033899 # scripts with optimization help from Paolo Bonzini. Blame Lee
33900 # E. McMahon (1931-1989) for sed's syntax. :-)
33901 sed -n '
33902 p
33903 /[$]LINENO/=
33904 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033905 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033906 s/[$]LINENO.*/&-/
33907 t lineno
33908 b
33909 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033910 N
Reid Spencera773bd52006-08-04 18:18:08 +000033911 :loop
33912 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033913 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033914 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033915 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033916 chmod +x "$as_me.lineno" ||
33917 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033918 { (exit 1); exit 1; }; }
33919
33920 # Don't try to exec as it changes $[0], causing all sort of problems
33921 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033922 # original and so on. Autoconf is especially sensitive to this).
33923 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033924 # Exit status is that of the last command.
33925 exit
33926}
33927
33928
Reid Spencera773bd52006-08-04 18:18:08 +000033929if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33930 as_dirname=dirname
33931else
33932 as_dirname=false
33933fi
33934
33935ECHO_C= ECHO_N= ECHO_T=
33936case `echo -n x` in
33937-n*)
33938 case `echo 'x\c'` in
33939 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33940 *) ECHO_C='\c';;
33941 esac;;
33942*)
33943 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033944esac
33945
Reid Spencera773bd52006-08-04 18:18:08 +000033946if expr a : '\(a\)' >/dev/null 2>&1 &&
33947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033948 as_expr=expr
33949else
33950 as_expr=false
33951fi
33952
33953rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033954if test -d conf$$.dir; then
33955 rm -f conf$$.dir/conf$$.file
33956else
33957 rm -f conf$$.dir
33958 mkdir conf$$.dir
33959fi
John Criswell7a73b802003-06-30 21:59:07 +000033960echo >conf$$.file
33961if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033962 as_ln_s='ln -s'
33963 # ... but there are two gotchas:
33964 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33965 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33966 # In both cases, we have to default to `cp -p'.
33967 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033968 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033969elif ln conf$$.file conf$$ 2>/dev/null; then
33970 as_ln_s=ln
33971else
33972 as_ln_s='cp -p'
33973fi
Reid Spencera773bd52006-08-04 18:18:08 +000033974rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33975rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033976
John Criswell0c38eaf2003-09-10 15:17:25 +000033977if mkdir -p . 2>/dev/null; then
33978 as_mkdir_p=:
33979else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033980 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033981 as_mkdir_p=false
33982fi
33983
Reid Spencera773bd52006-08-04 18:18:08 +000033984# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33985# systems may use methods other than mode bits to determine executability.
33986cat >conf$$.file <<_ASEOF
33987#! /bin/sh
33988exit 0
33989_ASEOF
33990chmod +x conf$$.file
33991if test -x conf$$.file >/dev/null 2>&1; then
33992 as_executable_p="test -x"
33993else
33994 as_executable_p=:
33995fi
33996rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033997
33998# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034000
34001# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034003
34004
John Criswell7a73b802003-06-30 21:59:07 +000034005exec 6>&1
34006
Reid Spencera773bd52006-08-04 18:18:08 +000034007# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034008# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034009# values after options handling.
34010ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000034011This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034012generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034013
34014 CONFIG_FILES = $CONFIG_FILES
34015 CONFIG_HEADERS = $CONFIG_HEADERS
34016 CONFIG_LINKS = $CONFIG_LINKS
34017 CONFIG_COMMANDS = $CONFIG_COMMANDS
34018 $ $0 $@
34019
Reid Spencera773bd52006-08-04 18:18:08 +000034020on `(hostname || uname -n) 2>/dev/null | sed 1q`
34021"
34022
John Criswell7a73b802003-06-30 21:59:07 +000034023_ACEOF
34024
Reid Spencera773bd52006-08-04 18:18:08 +000034025cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034026# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034027config_files="$ac_config_files"
34028config_headers="$ac_config_headers"
34029config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034030
Reid Spencera773bd52006-08-04 18:18:08 +000034031_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034032
34033cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034034ac_cs_usage="\
34035\`$as_me' instantiates files from templates according to the
34036current configuration.
34037
34038Usage: $0 [OPTIONS] [FILE]...
34039
34040 -h, --help print this help, then exit
34041 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034042 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034043 -d, --debug don't remove temporary files
34044 --recheck update $as_me by reconfiguring in the same conditions
34045 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034046 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034047 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034048 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034049
34050Configuration files:
34051$config_files
34052
34053Configuration headers:
34054$config_headers
34055
John Criswellc764fbc2003-09-06 15:17:13 +000034056Configuration commands:
34057$config_commands
34058
John Criswell7a73b802003-06-30 21:59:07 +000034059Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034060
Reid Spencera773bd52006-08-04 18:18:08 +000034061_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034062cat >>$CONFIG_STATUS <<_ACEOF
34063ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000034064llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000034065configured by $0, generated by GNU Autoconf 2.60,
34066 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034067
Reid Spencera773bd52006-08-04 18:18:08 +000034068Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034069This config.status script is free software; the Free Software Foundation
34070gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034071
34072ac_pwd='$ac_pwd'
34073srcdir='$srcdir'
34074INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034075_ACEOF
34076
34077cat >>$CONFIG_STATUS <<\_ACEOF
34078# If no file are specified by the user, then we need to provide default
34079# value. By we need to know if files were specified by the user.
34080ac_need_defaults=:
34081while test $# != 0
34082do
34083 case $1 in
34084 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034087 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034088 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034089 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034090 ac_option=$1
34091 ac_optarg=$2
34092 ac_shift=shift
34093 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034094 esac
34095
John Criswell0c38eaf2003-09-10 15:17:25 +000034096 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034097 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34099 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34101 echo "$ac_cs_version"; exit ;;
34102 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034103 debug=: ;;
34104 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034105 $ac_shift
34106 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034107 ac_need_defaults=false;;
34108 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034109 $ac_shift
34110 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034111 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034112 --he | --h)
34113 # Conflict between --help and --header
34114 { echo "$as_me: error: ambiguous option: $1
34115Try \`$0 --help' for more information." >&2
34116 { (exit 1); exit 1; }; };;
34117 --help | --hel | -h )
34118 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34121 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034122
34123 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034124 -*) { echo "$as_me: error: unrecognized option: $1
34125Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034126 { (exit 1); exit 1; }; } ;;
34127
Reid Spencera773bd52006-08-04 18:18:08 +000034128 *) ac_config_targets="$ac_config_targets $1"
34129 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034130
34131 esac
34132 shift
34133done
34134
John Criswell0c38eaf2003-09-10 15:17:25 +000034135ac_configure_extra_args=
34136
34137if $ac_cs_silent; then
34138 exec 6>/dev/null
34139 ac_configure_extra_args="$ac_configure_extra_args --silent"
34140fi
34141
34142_ACEOF
34143cat >>$CONFIG_STATUS <<_ACEOF
34144if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034145 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34146 CONFIG_SHELL=$SHELL
34147 export CONFIG_SHELL
34148 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034149fi
34150
John Criswell7a73b802003-06-30 21:59:07 +000034151_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034152cat >>$CONFIG_STATUS <<\_ACEOF
34153exec 5>>config.log
34154{
34155 echo
34156 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34157## Running $as_me. ##
34158_ASBOX
34159 echo "$ac_log"
34160} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034161
Reid Spencera773bd52006-08-04 18:18:08 +000034162_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034163cat >>$CONFIG_STATUS <<_ACEOF
34164#
Reid Spencera773bd52006-08-04 18:18:08 +000034165# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034166#
Reid Spencerc0682832005-02-24 19:05:19 +000034167llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034168
34169_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034170
John Criswell7a73b802003-06-30 21:59:07 +000034171cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034172
34173# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034174for ac_config_target in $ac_config_targets
34175do
Reid Spencera773bd52006-08-04 18:18:08 +000034176 case $ac_config_target in
34177 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34178 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34179 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34180 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34181 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34182 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034183 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034184 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34185 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34186 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34187 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34188 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34189 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34190 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034191 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034192 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34193 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34194 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34195 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34196 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34197
John Criswell7a73b802003-06-30 21:59:07 +000034198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34199echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34200 { (exit 1); exit 1; }; };;
34201 esac
34202done
34203
Reid Spencera773bd52006-08-04 18:18:08 +000034204
John Criswell7a73b802003-06-30 21:59:07 +000034205# If the user did not use the arguments to specify the items to instantiate,
34206# then the envvar interface is used. Set only those that are not.
34207# We use the long form for the default assignment because of an extremely
34208# bizarre bug on SunOS 4.1.3.
34209if $ac_need_defaults; then
34210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034213fi
34214
John Criswell0c38eaf2003-09-10 15:17:25 +000034215# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034216# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034217# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034218# Hook for its removal unless debugging.
34219# Note that there is a small window in which the directory will not be cleaned:
34220# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034221$debug ||
34222{
Reid Spencera773bd52006-08-04 18:18:08 +000034223 tmp=
34224 trap 'exit_status=$?
34225 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34226' 0
John Criswell7a73b802003-06-30 21:59:07 +000034227 trap '{ (exit 1); exit 1; }' 1 2 13 15
34228}
John Criswell7a73b802003-06-30 21:59:07 +000034229# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034230
John Criswell7a73b802003-06-30 21:59:07 +000034231{
Reid Spencera773bd52006-08-04 18:18:08 +000034232 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034233 test -n "$tmp" && test -d "$tmp"
34234} ||
34235{
Reid Spencera773bd52006-08-04 18:18:08 +000034236 tmp=./conf$$-$RANDOM
34237 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034238} ||
34239{
John Criswell0c38eaf2003-09-10 15:17:25 +000034240 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034241 { (exit 1); exit 1; }
34242}
34243
John Criswell7a73b802003-06-30 21:59:07 +000034244#
Reid Spencera773bd52006-08-04 18:18:08 +000034245# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034246#
34247
34248# No need to generate the scripts if there are no CONFIG_FILES.
34249# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034250if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034251
34252_ACEOF
34253
Reid Spencera773bd52006-08-04 18:18:08 +000034254
34255
34256ac_delim='%!_!# '
34257for ac_last_try in false false false false false :; do
34258 cat >conf$$subs.sed <<_ACEOF
34259SHELL!$SHELL$ac_delim
34260PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34261PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34262PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34263PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34264PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34265PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34266exec_prefix!$exec_prefix$ac_delim
34267prefix!$prefix$ac_delim
34268program_transform_name!$program_transform_name$ac_delim
34269bindir!$bindir$ac_delim
34270sbindir!$sbindir$ac_delim
34271libexecdir!$libexecdir$ac_delim
34272datarootdir!$datarootdir$ac_delim
34273datadir!$datadir$ac_delim
34274sysconfdir!$sysconfdir$ac_delim
34275sharedstatedir!$sharedstatedir$ac_delim
34276localstatedir!$localstatedir$ac_delim
34277includedir!$includedir$ac_delim
34278oldincludedir!$oldincludedir$ac_delim
34279docdir!$docdir$ac_delim
34280infodir!$infodir$ac_delim
34281htmldir!$htmldir$ac_delim
34282dvidir!$dvidir$ac_delim
34283pdfdir!$pdfdir$ac_delim
34284psdir!$psdir$ac_delim
34285libdir!$libdir$ac_delim
34286localedir!$localedir$ac_delim
34287mandir!$mandir$ac_delim
34288DEFS!$DEFS$ac_delim
34289ECHO_C!$ECHO_C$ac_delim
34290ECHO_N!$ECHO_N$ac_delim
34291ECHO_T!$ECHO_T$ac_delim
34292LIBS!$LIBS$ac_delim
34293build_alias!$build_alias$ac_delim
34294host_alias!$host_alias$ac_delim
34295target_alias!$target_alias$ac_delim
34296LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34297subdirs!$subdirs$ac_delim
34298build!$build$ac_delim
34299build_cpu!$build_cpu$ac_delim
34300build_vendor!$build_vendor$ac_delim
34301build_os!$build_os$ac_delim
34302host!$host$ac_delim
34303host_cpu!$host_cpu$ac_delim
34304host_vendor!$host_vendor$ac_delim
34305host_os!$host_os$ac_delim
34306target!$target$ac_delim
34307target_cpu!$target_cpu$ac_delim
34308target_vendor!$target_vendor$ac_delim
34309target_os!$target_os$ac_delim
34310OS!$OS$ac_delim
34311LINKALL!$LINKALL$ac_delim
34312NOLINKALL!$NOLINKALL$ac_delim
34313LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34314LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34315ARCH!$ARCH$ac_delim
34316ENDIAN!$ENDIAN$ac_delim
34317CC!$CC$ac_delim
34318CFLAGS!$CFLAGS$ac_delim
34319LDFLAGS!$LDFLAGS$ac_delim
34320CPPFLAGS!$CPPFLAGS$ac_delim
34321ac_ct_CC!$ac_ct_CC$ac_delim
34322EXEEXT!$EXEEXT$ac_delim
34323OBJEXT!$OBJEXT$ac_delim
34324CPP!$CPP$ac_delim
34325GREP!$GREP$ac_delim
34326EGREP!$EGREP$ac_delim
34327LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34328BUILD_CC!$BUILD_CC$ac_delim
34329BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34330CVSBUILD!$CVSBUILD$ac_delim
34331ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34332DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034333DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034334JIT!$JIT$ac_delim
34335TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34336ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34337ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034338ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034339TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034340ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034341EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34342CXX!$CXX$ac_delim
34343CXXFLAGS!$CXXFLAGS$ac_delim
34344ac_ct_CXX!$ac_ct_CXX$ac_delim
34345LEX!$LEX$ac_delim
34346LEXLIB!$LEXLIB$ac_delim
34347LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34348FLEX!$FLEX$ac_delim
34349YACC!$YACC$ac_delim
34350YFLAGS!$YFLAGS$ac_delim
34351BISON!$BISON$ac_delim
34352NM!$NM$ac_delim
34353ifGNUmake!$ifGNUmake$ac_delim
34354LN_S!$LN_S$ac_delim
34355CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034356_ACEOF
34357
34358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34359 break
34360 elif $ac_last_try; then
34361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34362echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34363 { (exit 1); exit 1; }; }
34364 else
34365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034366 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034367done
34368
34369ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34370if test -n "$ac_eof"; then
34371 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34372 ac_eof=`expr $ac_eof + 1`
34373fi
34374
34375cat >>$CONFIG_STATUS <<_ACEOF
34376cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34378_ACEOF
34379sed '
34380s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34381s/^/s,@/; s/!/@,|#_!!_#|/
34382:n
34383t n
34384s/'"$ac_delim"'$/,g/; t
34385s/$/\\/; p
34386N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34387' >>$CONFIG_STATUS <conf$$subs.sed
34388rm -f conf$$subs.sed
34389cat >>$CONFIG_STATUS <<_ACEOF
34390CEOF$ac_eof
34391_ACEOF
34392
34393
34394ac_delim='%!_!# '
34395for ac_last_try in false false false false false :; do
34396 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034397CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034398DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034399FIND!$FIND$ac_delim
34400MKDIR!$MKDIR$ac_delim
34401MV!$MV$ac_delim
34402RANLIB!$RANLIB$ac_delim
34403RM!$RM$ac_delim
34404SED!$SED$ac_delim
34405TAR!$TAR$ac_delim
34406BINPWD!$BINPWD$ac_delim
34407GRAPHVIZ!$GRAPHVIZ$ac_delim
34408DOT!$DOT$ac_delim
34409GV!$GV$ac_delim
34410DOTTY!$DOTTY$ac_delim
34411PERL!$PERL$ac_delim
34412HAVE_PERL!$HAVE_PERL$ac_delim
34413INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34414INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34415INSTALL_DATA!$INSTALL_DATA$ac_delim
34416BZIP2!$BZIP2$ac_delim
34417DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034418GROFF!$GROFF$ac_delim
34419GZIP!$GZIP$ac_delim
34420POD2HTML!$POD2HTML$ac_delim
34421POD2MAN!$POD2MAN$ac_delim
34422RUNTEST!$RUNTEST$ac_delim
34423TCLSH!$TCLSH$ac_delim
34424ZIP!$ZIP$ac_delim
34425INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34426INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34427CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34428CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34429LIBADD_DL!$LIBADD_DL$ac_delim
34430ECHO!$ECHO$ac_delim
34431AR!$AR$ac_delim
34432STRIP!$STRIP$ac_delim
34433CXXCPP!$CXXCPP$ac_delim
34434F77!$F77$ac_delim
34435FFLAGS!$FFLAGS$ac_delim
34436ac_ct_F77!$ac_ct_F77$ac_delim
34437LIBTOOL!$LIBTOOL$ac_delim
34438ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34439LLVMGCC!$LLVMGCC$ac_delim
34440LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034441USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034442HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034443HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034444ALLOCA!$ALLOCA$ac_delim
34445MMAP_FILE!$MMAP_FILE$ac_delim
34446LLVMCC1!$LLVMCC1$ac_delim
34447LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34448LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034449LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034450LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34451LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34452SHLIBEXT!$SHLIBEXT$ac_delim
34453LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34454LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34455LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34456LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34457LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34458LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34459LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34460LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34461LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34462LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34463LIBOBJS!$LIBOBJS$ac_delim
34464LTLIBOBJS!$LTLIBOBJS$ac_delim
34465_ACEOF
34466
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034467 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
Reid Spencera773bd52006-08-04 18:18:08 +000034468 break
34469 elif $ac_last_try; then
34470 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34471echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34472 { (exit 1); exit 1; }; }
34473 else
34474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34475 fi
34476done
34477
34478ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34479if test -n "$ac_eof"; then
34480 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34481 ac_eof=`expr $ac_eof + 1`
34482fi
34483
34484cat >>$CONFIG_STATUS <<_ACEOF
34485cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34487_ACEOF
34488sed '
34489s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34490s/^/s,@/; s/!/@,|#_!!_#|/
34491:n
34492t n
34493s/'"$ac_delim"'$/,g/; t
34494s/$/\\/; p
34495N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34496' >>$CONFIG_STATUS <conf$$subs.sed
34497rm -f conf$$subs.sed
34498cat >>$CONFIG_STATUS <<_ACEOF
34499:end
34500s/|#_!!_#|//g
34501CEOF$ac_eof
34502_ACEOF
34503
34504
34505# VPATH may cause trouble with some makes, so we remove $(srcdir),
34506# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34507# trailing colons and then remove the whole line if VPATH becomes empty
34508# (actually we leave an empty line to preserve line numbers).
34509if test "x$srcdir" = x.; then
34510 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34511s/:*\$(srcdir):*/:/
34512s/:*\${srcdir}:*/:/
34513s/:*@srcdir@:*/:/
34514s/^\([^=]*=[ ]*\):*/\1/
34515s/:*$//
34516s/^[^=]*=[ ]*$//
34517}'
34518fi
34519
34520cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034521fi # test -n "$CONFIG_FILES"
34522
Reid Spencera773bd52006-08-04 18:18:08 +000034523
34524for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34525do
34526 case $ac_tag in
34527 :[FHLC]) ac_mode=$ac_tag; continue;;
34528 esac
34529 case $ac_mode$ac_tag in
34530 :[FHL]*:*);;
34531 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34532echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34533 { (exit 1); exit 1; }; };;
34534 :[FH]-) ac_tag=-:-;;
34535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34536 esac
34537 ac_save_IFS=$IFS
34538 IFS=:
34539 set x $ac_tag
34540 IFS=$ac_save_IFS
34541 shift
34542 ac_file=$1
34543 shift
34544
34545 case $ac_mode in
34546 :L) ac_source=$1;;
34547 :[FH])
34548 ac_file_inputs=
34549 for ac_f
34550 do
34551 case $ac_f in
34552 -) ac_f="$tmp/stdin";;
34553 *) # Look for the file first in the build tree, then in the source tree
34554 # (if the path is not absolute). The absolute path cannot be DOS-style,
34555 # because $ac_f cannot contain `:'.
34556 test -f "$ac_f" ||
34557 case $ac_f in
34558 [\\/$]*) false;;
34559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34560 esac ||
34561 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34562echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34563 { (exit 1); exit 1; }; };;
34564 esac
34565 ac_file_inputs="$ac_file_inputs $ac_f"
34566 done
34567
34568 # Let's still pretend it is `configure' which instantiates (i.e., don't
34569 # use $as_me), people would be surprised to read:
34570 # /* config.h. Generated by config.status. */
34571 configure_input="Generated from "`IFS=:
34572 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34573 if test x"$ac_file" != x-; then
34574 configure_input="$ac_file. $configure_input"
34575 { echo "$as_me:$LINENO: creating $ac_file" >&5
34576echo "$as_me: creating $ac_file" >&6;}
34577 fi
34578
34579 case $ac_tag in
34580 *:-:* | *:-) cat >"$tmp/stdin";;
34581 esac
34582 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034583 esac
34584
Reid Spencera773bd52006-08-04 18:18:08 +000034585 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034586$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034587 X"$ac_file" : 'X\(//\)[^/]' \| \
34588 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034590echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34592 s//\1/
34593 q
34594 }
34595 /^X\(\/\/\)[^/].*/{
34596 s//\1/
34597 q
34598 }
34599 /^X\(\/\/\)$/{
34600 s//\1/
34601 q
34602 }
34603 /^X\(\/\).*/{
34604 s//\1/
34605 q
34606 }
34607 s/.*/./; q'`
34608 { as_dir="$ac_dir"
34609 case $as_dir in #(
34610 -*) as_dir=./$as_dir;;
34611 esac
34612 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034613 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034614 while :; do
34615 case $as_dir in #(
34616 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34617 *) as_qdir=$as_dir;;
34618 esac
34619 as_dirs="'$as_qdir' $as_dirs"
34620 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034621$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034622 X"$as_dir" : 'X\(//\)[^/]' \| \
34623 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034625echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34627 s//\1/
34628 q
34629 }
34630 /^X\(\/\/\)[^/].*/{
34631 s//\1/
34632 q
34633 }
34634 /^X\(\/\/\)$/{
34635 s//\1/
34636 q
34637 }
34638 /^X\(\/\).*/{
34639 s//\1/
34640 q
34641 }
34642 s/.*/./; q'`
34643 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034644 done
Reid Spencera773bd52006-08-04 18:18:08 +000034645 test -z "$as_dirs" || eval "mkdir $as_dirs"
34646 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34647echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034648 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034649 ac_builddir=.
34650
Reid Spencera773bd52006-08-04 18:18:08 +000034651case "$ac_dir" in
34652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34653*)
John Criswell7a73b802003-06-30 21:59:07 +000034654 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034655 # A ".." for each directory in $ac_dir_suffix.
34656 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34657 case $ac_top_builddir_sub in
34658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34660 esac ;;
34661esac
34662ac_abs_top_builddir=$ac_pwd
34663ac_abs_builddir=$ac_pwd$ac_dir_suffix
34664# for backward compatibility:
34665ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034666
34667case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034668 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034669 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034670 ac_top_srcdir=$ac_top_builddir_sub
34671 ac_abs_top_srcdir=$ac_pwd ;;
34672 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034673 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034674 ac_top_srcdir=$srcdir
34675 ac_abs_top_srcdir=$srcdir ;;
34676 *) # Relative name.
34677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34678 ac_top_srcdir=$ac_top_build_prefix$srcdir
34679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034680esac
Reid Spencera773bd52006-08-04 18:18:08 +000034681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034682
John Criswell7a73b802003-06-30 21:59:07 +000034683
Reid Spencera773bd52006-08-04 18:18:08 +000034684 case $ac_mode in
34685 :F)
34686 #
34687 # CONFIG_FILE
34688 #
John Criswell7a73b802003-06-30 21:59:07 +000034689
34690 case $INSTALL in
34691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034693 esac
John Criswell7a73b802003-06-30 21:59:07 +000034694_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034695
34696cat >>$CONFIG_STATUS <<\_ACEOF
34697# If the template does not know about datarootdir, expand it.
34698# FIXME: This hack should be removed a few years after 2.60.
34699ac_datarootdir_hack=; ac_datarootdir_seen=
34700
34701case `sed -n '/datarootdir/ {
34702 p
34703 q
34704}
34705/@datadir@/p
34706/@docdir@/p
34707/@infodir@/p
34708/@localedir@/p
34709/@mandir@/p
34710' $ac_file_inputs` in
34711*datarootdir*) ac_datarootdir_seen=yes;;
34712*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34713 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34714echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34715_ACEOF
34716cat >>$CONFIG_STATUS <<_ACEOF
34717 ac_datarootdir_hack='
34718 s&@datadir@&$datadir&g
34719 s&@docdir@&$docdir&g
34720 s&@infodir@&$infodir&g
34721 s&@localedir@&$localedir&g
34722 s&@mandir@&$mandir&g
34723 s&\\\${datarootdir}&$datarootdir&g' ;;
34724esac
34725_ACEOF
34726
34727# Neutralize VPATH when `$srcdir' = `.'.
34728# Shell code in configure.ac might set extrasub.
34729# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034730cat >>$CONFIG_STATUS <<_ACEOF
34731 sed "$ac_vpsub
34732$extrasub
34733_ACEOF
34734cat >>$CONFIG_STATUS <<\_ACEOF
34735:t
34736/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034737s&@configure_input@&$configure_input&;t t
34738s&@top_builddir@&$ac_top_builddir_sub&;t t
34739s&@srcdir@&$ac_srcdir&;t t
34740s&@abs_srcdir@&$ac_abs_srcdir&;t t
34741s&@top_srcdir@&$ac_top_srcdir&;t t
34742s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34743s&@builddir@&$ac_builddir&;t t
34744s&@abs_builddir@&$ac_abs_builddir&;t t
34745s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34746s&@INSTALL@&$ac_INSTALL&;t t
34747$ac_datarootdir_hack
34748" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034749
Reid Spencera773bd52006-08-04 18:18:08 +000034750test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34751 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34752 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34753 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34754which seems to be undefined. Please make sure it is defined." >&5
34755echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34756which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034757
Reid Spencera773bd52006-08-04 18:18:08 +000034758 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034759 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034760 -) cat "$tmp/out"; rm -f "$tmp/out";;
34761 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034762 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034763 ;;
34764 :H)
34765 #
34766 # CONFIG_HEADER
34767 #
John Criswell7a73b802003-06-30 21:59:07 +000034768_ACEOF
34769
Reid Spencera773bd52006-08-04 18:18:08 +000034770# Transform confdefs.h into a sed script `conftest.defines', that
34771# substitutes the proper values into config.h.in to produce config.h.
34772rm -f conftest.defines conftest.tail
34773# First, append a space to every undef/define line, to ease matching.
34774echo 's/$/ /' >conftest.defines
34775# Then, protect against being on the right side of a sed subst, or in
34776# an unquoted here document, in config.status. If some macros were
34777# called several times there might be several #defines for the same
34778# symbol, which is useless. But do not sort them, since the last
34779# AC_DEFINE must be honored.
34780ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34781# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34782# NAME is the cpp macro being defined, VALUE is the value it is being given.
34783# PARAMS is the parameter list in the macro definition--in most cases, it's
34784# just an empty string.
34785ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34786ac_dB='\\)[ (].*,\\1define\\2'
34787ac_dC=' '
34788ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034789
Reid Spencera773bd52006-08-04 18:18:08 +000034790uniq confdefs.h |
34791 sed -n '
34792 t rset
34793 :rset
34794 s/^[ ]*#[ ]*define[ ][ ]*//
34795 t ok
34796 d
34797 :ok
34798 s/[\\&,]/\\&/g
34799 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34800 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34801 ' >>conftest.defines
34802
34803# Remove the space that was appended to ease matching.
34804# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034805# example, in the case of _POSIX_SOURCE, which is predefined and required
34806# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034807# (The regexp can be short, since the line contains either #define or #undef.)
34808echo 's/ $//
34809s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034810
Reid Spencera773bd52006-08-04 18:18:08 +000034811# Break up conftest.defines:
34812ac_max_sed_lines=50
34813
34814# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34815# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34816# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34817# et cetera.
34818ac_in='$ac_file_inputs'
34819ac_out='"$tmp/out1"'
34820ac_nxt='"$tmp/out2"'
34821
34822while :
John Criswell7a73b802003-06-30 21:59:07 +000034823do
Reid Spencera773bd52006-08-04 18:18:08 +000034824 # Write a here document:
34825 cat >>$CONFIG_STATUS <<_ACEOF
34826 # First, check the format of the line:
34827 cat >"\$tmp/defines.sed" <<\\CEOF
34828/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34829/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34830b
34831:def
34832_ACEOF
34833 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034834 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034835 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34836 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34837 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34838 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034839 rm -f conftest.defines
34840 mv conftest.tail conftest.defines
34841done
Reid Spencera773bd52006-08-04 18:18:08 +000034842rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034843
Reid Spencera773bd52006-08-04 18:18:08 +000034844echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034845cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034846 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034847 echo "/* $configure_input */" >"$tmp/config.h"
34848 cat "$ac_result" >>"$tmp/config.h"
34849 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034850 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34851echo "$as_me: $ac_file is unchanged" >&6;}
34852 else
John Criswell7a73b802003-06-30 21:59:07 +000034853 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034854 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034855 fi
34856 else
Reid Spencera773bd52006-08-04 18:18:08 +000034857 echo "/* $configure_input */"
34858 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034859 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034860 rm -f "$tmp/out12"
34861 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034862
Reid Spencera773bd52006-08-04 18:18:08 +000034863 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34864echo "$as_me: executing $ac_file commands" >&6;}
34865 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034866 esac
John Criswell7a73b802003-06-30 21:59:07 +000034867
Reid Spencera773bd52006-08-04 18:18:08 +000034868
34869 case $ac_file$ac_mode in
34870 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34871 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34872 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34873 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34874 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34875 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34876 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34877 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034878 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34879 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034880 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34882 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34884 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34886 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34888 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34890
34891 esac
34892done # for ac_tag
34893
John Criswell7a73b802003-06-30 21:59:07 +000034894
34895{ (exit 0); exit 0; }
34896_ACEOF
34897chmod +x $CONFIG_STATUS
34898ac_clean_files=$ac_clean_files_save
34899
34900
34901# configure is writing to config.log, and then calls config.status.
34902# config.status does its own redirection, appending to config.log.
34903# Unfortunately, on DOS this fails, as config.log is still kept open
34904# by configure, so config.status won't be able to write to it; its
34905# output is simply discarded. So we exec the FD to /dev/null,
34906# effectively closing config.log, so it can be properly (re)opened and
34907# appended to by config.status. When coming back to configure, we
34908# need to make the FD available again.
34909if test "$no_create" != yes; then
34910 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034911 ac_config_status_args=
34912 test "$silent" = yes &&
34913 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034914 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034915 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034916 exec 5>>config.log
34917 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34918 # would make configure fail if this is the last instruction.
34919 $ac_cs_success || { (exit 1); exit 1; }
34920fi
34921
John Criswell12399a12003-09-30 15:55:44 +000034922#
34923# CONFIG_SUBDIRS section.
34924#
34925if test "$no_recursion" != yes; then
34926
34927 # Remove --cache-file and --srcdir arguments so they do not pile up.
34928 ac_sub_configure_args=
34929 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034930 eval "set x $ac_configure_args"
34931 shift
34932 for ac_arg
34933 do
John Criswell12399a12003-09-30 15:55:44 +000034934 if test -n "$ac_prev"; then
34935 ac_prev=
34936 continue
34937 fi
34938 case $ac_arg in
34939 -cache-file | --cache-file | --cache-fil | --cache-fi \
34940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34941 ac_prev=cache_file ;;
34942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34944 | --c=*)
34945 ;;
34946 --config-cache | -C)
34947 ;;
34948 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34949 ac_prev=srcdir ;;
34950 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34951 ;;
34952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34953 ac_prev=prefix ;;
34954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034956 *)
34957 case $ac_arg in
34958 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34959 esac
34960 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034961 esac
34962 done
34963
34964 # Always prepend --prefix to ensure using the same prefix
34965 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034966 ac_arg="--prefix=$prefix"
34967 case $ac_arg in
34968 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34969 esac
34970 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034971
34972 ac_popdir=`pwd`
34973 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34974
34975 # Do not complain, so a configure script can configure whichever
34976 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034977 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034978
Reid Spencera773bd52006-08-04 18:18:08 +000034979 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34980 echo "$as_me:$LINENO: $ac_msg" >&5
34981 echo "$ac_msg" >&6
34982 { as_dir="$ac_dir"
34983 case $as_dir in #(
34984 -*) as_dir=./$as_dir;;
34985 esac
34986 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034987 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034988 while :; do
34989 case $as_dir in #(
34990 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34991 *) as_qdir=$as_dir;;
34992 esac
34993 as_dirs="'$as_qdir' $as_dirs"
34994 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034996 X"$as_dir" : 'X\(//\)[^/]' \| \
34997 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034999echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35001 s//\1/
35002 q
35003 }
35004 /^X\(\/\/\)[^/].*/{
35005 s//\1/
35006 q
35007 }
35008 /^X\(\/\/\)$/{
35009 s//\1/
35010 q
35011 }
35012 /^X\(\/\).*/{
35013 s//\1/
35014 q
35015 }
35016 s/.*/./; q'`
35017 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035018 done
Reid Spencera773bd52006-08-04 18:18:08 +000035019 test -z "$as_dirs" || eval "mkdir $as_dirs"
35020 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35021echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035022 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035023 ac_builddir=.
35024
Reid Spencera773bd52006-08-04 18:18:08 +000035025case "$ac_dir" in
35026.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35027*)
John Criswell12399a12003-09-30 15:55:44 +000035028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035029 # A ".." for each directory in $ac_dir_suffix.
35030 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35031 case $ac_top_builddir_sub in
35032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35034 esac ;;
35035esac
35036ac_abs_top_builddir=$ac_pwd
35037ac_abs_builddir=$ac_pwd$ac_dir_suffix
35038# for backward compatibility:
35039ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035040
35041case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035042 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035043 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035044 ac_top_srcdir=$ac_top_builddir_sub
35045 ac_abs_top_srcdir=$ac_pwd ;;
35046 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035047 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035048 ac_top_srcdir=$srcdir
35049 ac_abs_top_srcdir=$srcdir ;;
35050 *) # Relative name.
35051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35052 ac_top_srcdir=$ac_top_build_prefix$srcdir
35053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035054esac
Reid Spencera773bd52006-08-04 18:18:08 +000035055ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035056
35057
Reid Spencera773bd52006-08-04 18:18:08 +000035058 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035059
35060 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035061 if test -f "$ac_srcdir/configure.gnu"; then
35062 ac_sub_configure=$ac_srcdir/configure.gnu
35063 elif test -f "$ac_srcdir/configure"; then
35064 ac_sub_configure=$ac_srcdir/configure
35065 elif test -f "$ac_srcdir/configure.in"; then
35066 # This should be Cygnus configure.
35067 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035068 else
35069 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35070echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35071 ac_sub_configure=
35072 fi
35073
35074 # The recursion is here.
35075 if test -n "$ac_sub_configure"; then
35076 # Make the cache file name correct relative to the subdirectory.
35077 case $cache_file in
35078 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035079 *) # Relative name.
35080 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035081 esac
35082
Reid Spencera773bd52006-08-04 18:18:08 +000035083 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35084echo "$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 +000035085 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035086 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35087 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035088 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035089echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35090 { (exit 1); exit 1; }; }
35091 fi
35092
Reid Spencera773bd52006-08-04 18:18:08 +000035093 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035094 done
35095fi
35096
Brian Gaekef3b24102003-11-16 18:38:14 +000035097