blob: 8183959c0e918ee1bd59442a7b7719a619c60f8d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner49ff6612008-05-10 04:20:38 +00003# Generated by GNU Autoconf 2.60 for llvm 2.4svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnercf067672008-01-17 05:57:22 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Tanya Lattnercf067672008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Tanya Lattnercf067672008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnercf067672008-01-17 05:57:22 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Tanya Lattnercf067672008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Tanya Lattnercf067672008-01-17 05:57:22 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Tanya Lattnercf067672008-01-17 05:57:22 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner49ff6612008-05-10 04:20:38 +0000718PACKAGE_VERSION='2.4svn'
719PACKAGE_STRING='llvm 2.4svn'
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>
Tanya Lattnercf067672008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnercf067672008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000889OCAMLDOC
Reid Spencera773bd52006-08-04 18:18:08 +0000890INSTALL_LTDL_TRUE
891INSTALL_LTDL_FALSE
892CONVENIENCE_LTDL_TRUE
893CONVENIENCE_LTDL_FALSE
894LIBADD_DL
895ECHO
896AR
897STRIP
898CXXCPP
899F77
900FFLAGS
901ac_ct_F77
902LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000903LLVMGCC
904LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000905USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000906HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000907HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000908ALLOCA
909MMAP_FILE
910LLVMCC1
911LLVMCC1PLUS
912LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000913LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000914LLVMGCC_VERSION
915LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000916LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000917SHLIBEXT
918LLVM_PREFIX
919LLVM_BINDIR
920LLVM_LIBDIR
921LLVM_DATADIR
922LLVM_DOCSDIR
923LLVM_ETCDIR
924LLVM_INCLUDEDIR
925LLVM_INFODIR
926LLVM_MANDIR
927LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000928BINDINGS_TO_BUILD
929ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000930OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000931ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000932LIBOBJS
933LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000934ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000935 ac_precious_vars='build_alias
936host_alias
937target_alias
938CC
939CFLAGS
940LDFLAGS
941CPPFLAGS
942CPP
943CXX
944CXXFLAGS
945CCC
946YACC
947YFLAGS
948CXXCPP
949F77
950FFLAGS'
951ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000952projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000953projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000954projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000955projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000956projects/llvm-reopt
957projects/llvm-gcc
958projects/llvm-java
959projects/llvm-tv
960projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000961projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000962projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967# The variables have the same names as the options, with
968# dashes changed to underlines.
969cache_file=/dev/null
970exec_prefix=NONE
971no_create=
972no_recursion=
973prefix=NONE
974program_prefix=NONE
975program_suffix=NONE
976program_transform_name=s,x,x,
977silent=
978site=
979srcdir=
980verbose=
981x_includes=NONE
982x_libraries=NONE
983
984# Installation directory options.
985# These are left unexpanded so users can "make install exec_prefix=/foo"
986# and all the variables that are supposed to be based on exec_prefix
987# by default will actually change.
988# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000989# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000990bindir='${exec_prefix}/bin'
991sbindir='${exec_prefix}/sbin'
992libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000993datarootdir='${prefix}/share'
994datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000995sysconfdir='${prefix}/etc'
996sharedstatedir='${prefix}/com'
997localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000998includedir='${prefix}/include'
999oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001infodir='${datarootdir}/info'
1002htmldir='${docdir}'
1003dvidir='${docdir}'
1004pdfdir='${docdir}'
1005psdir='${docdir}'
1006libdir='${exec_prefix}/lib'
1007localedir='${datarootdir}/locale'
1008mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001009
1010ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001011ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001012for ac_option
1013do
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001016 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001017 ac_prev=
1018 continue
1019 fi
1020
Reid Spencera773bd52006-08-04 18:18:08 +00001021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
John Criswell7a73b802003-06-30 21:59:07 +00001025
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1027
Reid Spencera773bd52006-08-04 18:18:08 +00001028 case $ac_dashdash$ac_option in
1029 --)
1030 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001031
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1036
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1041
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1048
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1051
Reid Spencera773bd52006-08-04 18:18:08 +00001052 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001053 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001055 datadir=$ac_optarg ;;
1056
Reid Spencera773bd52006-08-04 18:18:08 +00001057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1063
John Criswell7a73b802003-06-30 21:59:07 +00001064 -disable-* | --disable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001067 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001070 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001071 eval enable_$ac_feature=no ;;
1072
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1077
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001082
1083 -enable-* | --enable-*)
1084 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001086 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001087 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1088 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001089 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001090 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
Reid Spencera773bd52006-08-04 18:18:08 +00001117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
John Criswell7a73b802003-06-30 21:59:07 +00001123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
Reid Spencera773bd52006-08-04 18:18:08 +00001147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
John Criswell7a73b802003-06-30 21:59:07 +00001152 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001153 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
Reid Spencera773bd52006-08-04 18:18:08 +00001221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
John Criswell7a73b802003-06-30 21:59:07 +00001231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1240
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1251
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1256
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1261
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1268
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1273
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1276
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1279
1280 -with-* | --with-*)
1281 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001283 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001286 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001287 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001288
1289 -without-* | --without-*)
1290 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001295 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001296 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001297
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1301
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1308
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1315
1316 -*) { echo "$as_me: error: unrecognized option: $ac_option
1317Try \`$0 --help' for more information." >&2
1318 { (exit 1); exit 1; }; }
1319 ;;
1320
1321 *=*)
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1325 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001327 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001328 export $ac_envvar ;;
1329
1330 *)
1331 # FIXME: should be removed in autoconf 3.0.
1332 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336 ;;
1337
1338 esac
1339done
1340
1341if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 { echo "$as_me: error: missing argument to $ac_option" >&2
1344 { (exit 1); exit 1; }; }
1345fi
1346
Reid Spencera773bd52006-08-04 18:18:08 +00001347# Be sure to have absolute directory names.
1348for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001352do
Reid Spencera773bd52006-08-04 18:18:08 +00001353 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001354 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001357 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001358 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1377 fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
Reid Spencera773bd52006-08-04 18:18:08 +00001386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { echo "$as_me: error: Working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1394
1395
John Criswell7a73b802003-06-30 21:59:07 +00001396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001401$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001402 X"$0" : 'X\(//\)[^/]' \| \
1403 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001405echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001423 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001424 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
Reid Spencera773bd52006-08-04 18:18:08 +00001430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001433 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001434fi
Reid Spencera773bd52006-08-04 18:18:08 +00001435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001438 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001439 pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001464\`configure' configures llvm 2.4svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
John Criswell7a73b802003-06-30 21:59:07 +00001484Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001486 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001488 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001517_ACEOF
1518
1519 cat <<\_ACEOF
1520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529 case $ac_init_help in
Tanya Lattner49ff6612008-05-10 04:20:38 +00001530 short | recursive ) echo "Configuration of llvm 2.4svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001531 esac
1532 cat <<\_ACEOF
1533
1534Optional Features:
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001537 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001538 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001539 --enable-expensive-checks
1540
Reid Spencer8b2e1412006-11-17 03:32:33 +00001541 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001542 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001543 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001544 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001545 --enable-pic Build LLVM with Position Independent Code (default
1546 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001547 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001548 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001553 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001554 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001555 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001558 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001559 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001560 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001561 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001568 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 searches PATH)
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001572 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001575 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1578 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001579 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001580 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001581
1582Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001583 CC C compiler command
1584 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001589 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001592 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1593 the first program found out of: `bison -y', `byacc', `yacc'.
1594 YFLAGS The list of arguments that will be passed by default to $YACC.
1595 This script will default YFLAGS to the empty string to avoid a
1596 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001597 CXXCPP C++ preprocessor
1598 F77 Fortran 77 compiler command
1599 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
1604Report bugs to <llvmbugs@cs.uiuc.edu>.
1605_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001606ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001612 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001613 ac_builddir=.
1614
Reid Spencera773bd52006-08-04 18:18:08 +00001615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
John Criswell7a73b802003-06-30 21:59:07 +00001618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001630
1631case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001632 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001633 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001637 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001644esac
Reid Spencera773bd52006-08-04 18:18:08 +00001645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001646
Reid Spencera773bd52006-08-04 18:18:08 +00001647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001655 else
1656 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001659 done
1660fi
1661
Reid Spencera773bd52006-08-04 18:18:08 +00001662test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001663if $ac_init_version; then
1664 cat <<\_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001665llvm configure 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +00001666generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001667
Reid Spencera773bd52006-08-04 18:18:08 +00001668Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16692002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001672
Tanya Lattnercf067672008-01-17 05:57:22 +00001673Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001674_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001675 exit
John Criswell7a73b802003-06-30 21:59:07 +00001676fi
Reid Spencera773bd52006-08-04 18:18:08 +00001677cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001678This file contains any messages produced by compilers while
1679running configure, to aid debugging if configure makes a mistake.
1680
Tanya Lattner49ff6612008-05-10 04:20:38 +00001681It was created by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +00001682generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001683
1684 $ $0 $@
1685
1686_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001687exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001688{
1689cat <<_ASUNAME
1690## --------- ##
1691## Platform. ##
1692## --------- ##
1693
1694hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699
1700/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1702
1703/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001706/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001707/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710
1711_ASUNAME
1712
1713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714for as_dir in $PATH
1715do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 echo "PATH: $as_dir"
1719done
Reid Spencera773bd52006-08-04 18:18:08 +00001720IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001721
1722} >&5
1723
1724cat >&5 <<_ACEOF
1725
1726
1727## ----------- ##
1728## Core tests. ##
1729## ----------- ##
1730
1731_ACEOF
1732
1733
1734# Keep a trace of the command line.
1735# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001736# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001737# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001738# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001739ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001740ac_configure_args0=
1741ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001742ac_must_keep_next=false
1743for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001744do
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 for ac_arg
1746 do
1747 case $ac_arg in
1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1750 | -silent | --silent | --silen | --sile | --sil)
1751 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001752 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001753 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 esac
1755 case $ac_pass in
1756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1757 2)
1758 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001760 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001762 case $ac_arg in
1763 *=* | --config-cache | -C | -disable-* | --disable-* \
1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1766 | -with-* | --with-* | -without-* | --without-* | --x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 esac
1770 ;;
1771 -* ) ac_must_keep_next=true ;;
1772 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001774 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ;;
1776 esac
1777 done
John Criswell7a73b802003-06-30 21:59:07 +00001778done
John Criswell0c38eaf2003-09-10 15:17:25 +00001779$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1780$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 +00001781
1782# When interrupted or exit'd, cleanup temporary files, and complete
1783# config.log. We remove comments because anyway the quotes in there
1784# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001785# WARNING: Use '\'' to represent an apostrophe within the trap.
1786# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001787trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1789 {
1790 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792 cat <<\_ASBOX
1793## ---------------- ##
1794## Cache variables. ##
1795## ---------------- ##
1796_ASBOX
1797 echo
1798 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001799(
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in #(
1803 *${as_nl}*)
1804 case $ac_var in #(
1805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 esac
1808 case $ac_var in #(
1809 _ | IFS | as_nl) ;; #(
1810 *) $as_unset $ac_var ;;
1811 esac ;;
1812 esac
1813 done
John Criswell7a73b802003-06-30 21:59:07 +00001814 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1816 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001817 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001818 "s/'\''/'\''\\\\'\'''\''/g;
1819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001821 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001823 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001824 esac |
1825 sort
1826)
John Criswell7a73b802003-06-30 21:59:07 +00001827 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001828
1829 cat <<\_ASBOX
1830## ----------------- ##
1831## Output variables. ##
1832## ----------------- ##
1833_ASBOX
1834 echo
1835 for ac_var in $ac_subst_vars
1836 do
Reid Spencera773bd52006-08-04 18:18:08 +00001837 eval ac_val=\$$ac_var
1838 case $ac_val in
1839 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 esac
1841 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001842 done | sort
1843 echo
1844
1845 if test -n "$ac_subst_files"; then
1846 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001847## ------------------- ##
1848## File substitutions. ##
1849## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001850_ASBOX
1851 echo
1852 for ac_var in $ac_subst_files
1853 do
Reid Spencera773bd52006-08-04 18:18:08 +00001854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001859 done | sort
1860 echo
1861 fi
1862
John Criswell7a73b802003-06-30 21:59:07 +00001863 if test -s confdefs.h; then
1864 cat <<\_ASBOX
1865## ----------- ##
1866## confdefs.h. ##
1867## ----------- ##
1868_ASBOX
1869 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001870 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001871 echo
1872 fi
1873 test "$ac_signal" != 0 &&
1874 echo "$as_me: caught signal $ac_signal"
1875 echo "$as_me: exit $exit_status"
1876 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001877 rm -f core *.core core.conftest.* &&
1878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001879 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001880' 0
John Criswell7a73b802003-06-30 21:59:07 +00001881for ac_signal in 1 2 13 15; do
1882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883done
1884ac_signal=0
1885
1886# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001887rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001888
1889# Predefined preprocessor variables.
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_NAME "$PACKAGE_NAME"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_VERSION "$PACKAGE_VERSION"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_STRING "$PACKAGE_STRING"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913_ACEOF
1914
1915
1916# Let the site file select an alternate cache file if it wants to.
1917# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001918if test -n "$CONFIG_SITE"; then
1919 set x "$CONFIG_SITE"
1920elif test "x$prefix" != xNONE; then
1921 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922else
1923 set x "$ac_default_prefix/share/config.site" \
1924 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001925fi
Reid Spencera773bd52006-08-04 18:18:08 +00001926shift
1927for ac_site_file
1928do
John Criswell7a73b802003-06-30 21:59:07 +00001929 if test -r "$ac_site_file"; then
1930 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1934 fi
1935done
1936
1937if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001946 esac
1947 fi
1948else
1949 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1952fi
1953
1954# Check that the precious variables saved in the cache have kept the same
1955# value.
1956ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001957for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001962 case $ac_old_set,$ac_new_set in
1963 set,)
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,set)
1968 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,);;
1972 *)
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001974 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001975echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001976 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001978 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001979echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001980 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001981 fi;;
1982 esac
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1985 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001986 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001987 *) ac_arg=$ac_var=$ac_new_val ;;
1988 esac
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 esac
1993 fi
1994done
1995if $ac_cache_corrupted; then
1996 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2001fi
2002
Reid Spencera773bd52006-08-04 18:18:08 +00002003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
John Criswell7a73b802003-06-30 21:59:07 +00002027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS'
2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032
2033
2034
Tanya Lattnercf067672008-01-17 05:57:22 +00002035LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002036
2037
2038
2039
2040
2041
2042
John Criswell7a73b802003-06-30 21:59:07 +00002043ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002044for ac_dir in autoconf "$srcdir"/autoconf; do
2045 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 break
Reid Spencera773bd52006-08-04 18:18:08 +00002049 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 break
Reid Spencera773bd52006-08-04 18:18:08 +00002053 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 break
2057 fi
2058done
2059if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002060 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2061echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002062 { (exit 1); exit 1; }; }
2063fi
Reid Spencera773bd52006-08-04 18:18:08 +00002064
2065# These three variables are undocumented and unsupported,
2066# and are intended to be withdrawn in a future Autoconf release.
2067# They can cause serious problems if a builder's source tree is in a directory
2068# whose full name contains unusual characters.
2069ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072
John Criswell7a73b802003-06-30 21:59:07 +00002073
John Criswell392aaa32003-07-22 19:18:09 +00002074
Reid Spencer2706f8c2004-09-19 23:53:36 +00002075if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2077 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002078echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 fi
John Criswell93e1c722003-09-15 17:04:06 +00002081fi
2082
John Criswell33a911a2003-11-25 20:36:46 +00002083for i in `ls ${srcdir}/projects`
2084do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002085 if test -d ${srcdir}/projects/${i} ; then
2086 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 CVS) ;;
2088 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002089 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002093 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002094 # llvm-test is the old name of the test-suite, kept here for backwards
2095 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002096 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002098 test-suite) subdirs="$subdirs projects/test-suite"
2099 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002109 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002110 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002111 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002113 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002114 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002115 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2116echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002117 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002118 esac
John Criswell33a911a2003-11-25 20:36:46 +00002119 fi
2120done
John Criswell559a6c12003-09-30 16:31:48 +00002121
John Criswell7a73b802003-06-30 21:59:07 +00002122
2123# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002127 { (exit 1); exit 1; }; }
2128
Reid Spencera773bd52006-08-04 18:18:08 +00002129{ echo "$as_me:$LINENO: checking build system type" >&5
2130echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002131if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
Reid Spencera773bd52006-08-04 18:18:08 +00002134 ac_build_alias=$build_alias
2135test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002141ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002144 { (exit 1); exit 1; }; }
2145
2146fi
Reid Spencera773bd52006-08-04 18:18:08 +00002147{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148echo "${ECHO_T}$ac_cv_build" >&6; }
2149case $ac_cv_build in
2150*-*-*) ;;
2151*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2154esac
John Criswell7a73b802003-06-30 21:59:07 +00002155build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002156ac_save_IFS=$IFS; IFS='-'
2157set x $ac_cv_build
2158shift
2159build_cpu=$1
2160build_vendor=$2
2161shift; shift
2162# Remember, the first character of IFS is used to create $*,
2163# except with old shells:
2164build_os=$*
2165IFS=$ac_save_IFS
2166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002167
2168
Reid Spencera773bd52006-08-04 18:18:08 +00002169{ echo "$as_me:$LINENO: checking host system type" >&5
2170echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002171if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
Reid Spencera773bd52006-08-04 18:18:08 +00002174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2176else
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002181fi
John Criswell7a73b802003-06-30 21:59:07 +00002182
2183fi
Reid Spencera773bd52006-08-04 18:18:08 +00002184{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185echo "${ECHO_T}$ac_cv_host" >&6; }
2186case $ac_cv_host in
2187*-*-*) ;;
2188*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2191esac
John Criswell7a73b802003-06-30 21:59:07 +00002192host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002193ac_save_IFS=$IFS; IFS='-'
2194set x $ac_cv_host
2195shift
2196host_cpu=$1
2197host_vendor=$2
2198shift; shift
2199# Remember, the first character of IFS is used to create $*,
2200# except with old shells:
2201host_os=$*
2202IFS=$ac_save_IFS
2203case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002204
2205
Reid Spencera773bd52006-08-04 18:18:08 +00002206{ echo "$as_me:$LINENO: checking target system type" >&5
2207echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002208if test "${ac_cv_target+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
Reid Spencera773bd52006-08-04 18:18:08 +00002211 if test "x$target_alias" = x; then
2212 ac_cv_target=$ac_cv_host
2213else
2214 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2215 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2216echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002217 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002218fi
John Criswell7a73b802003-06-30 21:59:07 +00002219
2220fi
Reid Spencera773bd52006-08-04 18:18:08 +00002221{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2222echo "${ECHO_T}$ac_cv_target" >&6; }
2223case $ac_cv_target in
2224*-*-*) ;;
2225*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2226echo "$as_me: error: invalid value of canonical target" >&2;}
2227 { (exit 1); exit 1; }; };;
2228esac
John Criswell7a73b802003-06-30 21:59:07 +00002229target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002230ac_save_IFS=$IFS; IFS='-'
2231set x $ac_cv_target
2232shift
2233target_cpu=$1
2234target_vendor=$2
2235shift; shift
2236# Remember, the first character of IFS is used to create $*,
2237# except with old shells:
2238target_os=$*
2239IFS=$ac_save_IFS
2240case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002241
2242
2243# The aliases save the names the user supplied, while $host etc.
2244# will get canonicalized.
2245test -n "$target_alias" &&
2246 test "$program_prefix$program_suffix$program_transform_name" = \
2247 NONENONEs,x,x, &&
2248 program_prefix=${target_alias}-
2249
Reid Spencera773bd52006-08-04 18:18:08 +00002250{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2251echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002255 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 llvm_cv_os_type="AIX"
2260 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002261 *-*-irix*)
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="IRIX"
2265 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 llvm_cv_os_type="Cygwin"
2270 llvm_cv_platform_type="Unix" ;;
2271 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002273 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274 llvm_cv_os_type="Darwin"
2275 llvm_cv_platform_type="Unix" ;;
2276 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="FreeBSD"
2280 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002281 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002284 llvm_cv_os_type="OpenBSD"
2285 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002286 *-*-netbsd*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="NetBSD"
2290 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002291 *-*-dragonfly*)
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="DragonFly"
2295 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002296 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002299 llvm_cv_os_type="HP-UX"
2300 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="Interix"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 llvm_cv_os_type="Linux"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002312 llvm_cv_link_all_option="-Wl,-z,allextract"
2313 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 llvm_cv_os_type="SunOS"
2315 llvm_cv_platform_type="Unix" ;;
2316 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 llvm_cv_os_type="Win32"
2320 llvm_cv_platform_type="Win32" ;;
2321 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324 llvm_cv_os_type="MingW"
2325 llvm_cv_platform_type="Win32" ;;
2326 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option=""
2328 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="Unknown"
2330 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002331esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002332fi
Reid Spencera773bd52006-08-04 18:18:08 +00002333{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2334echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002335
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336if test "$llvm_cv_os_type" = "Unknown" ; then
2337 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2338echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002339 { (exit 1); exit 1; }; }
2340fi
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002343
2344
Reid Spencera773bd52006-08-04 18:18:08 +00002345LINKALL=$llvm_cv_link_all_option
2346
2347NOLINKALL=$llvm_cv_no_link_all_option
2348
2349
Reid Spencer7b3e8512004-12-24 06:29:05 +00002350case $llvm_cv_platform_type in
2351 Unix)
2352
2353cat >>confdefs.h <<\_ACEOF
2354#define LLVM_ON_UNIX 1
2355_ACEOF
2356
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002357 LLVM_ON_UNIX=1
2358
2359 LLVM_ON_WIN32=0
2360
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 ;;
2362 Win32)
2363
2364cat >>confdefs.h <<\_ACEOF
2365#define LLVM_ON_WIN32 1
2366_ACEOF
2367
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002368 LLVM_ON_UNIX=0
2369
2370 LLVM_ON_WIN32=1
2371
Reid Spencer7b3e8512004-12-24 06:29:05 +00002372 ;;
2373esac
2374
Reid Spencera773bd52006-08-04 18:18:08 +00002375{ echo "$as_me:$LINENO: checking target architecture" >&5
2376echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377if test "${llvm_cv_target_arch+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002381 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002382 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002383 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2384 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002385 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002386 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002387 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002388 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002389 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002390 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002391esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392fi
Reid Spencera773bd52006-08-04 18:18:08 +00002393{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2394echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396if test "$llvm_cv_target_arch" = "Unknown" ; then
2397 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2398echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2399fi
John Criswell76595452003-07-01 22:07:39 +00002400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002402
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404ac_ext=c
2405ac_cpp='$CPP $CPPFLAGS'
2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002409if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2411set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414if test "${ac_cv_prog_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002426 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 +00002427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431done
2432done
Reid Spencera773bd52006-08-04 18:18:08 +00002433IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434
2435fi
2436fi
2437CC=$ac_cv_prog_CC
2438if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002439 { echo "$as_me:$LINENO: result: $CC" >&5
2440echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441else
Reid Spencera773bd52006-08-04 18:18:08 +00002442 { echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444fi
2445
Reid Spencera773bd52006-08-04 18:18:08 +00002446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447fi
2448if test -z "$ac_cv_prog_CC"; then
2449 ac_ct_CC=$CC
2450 # Extract the first word of "gcc", so it can be a program name with args.
2451set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002466 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 +00002467 ac_cv_prog_ac_ct_CC="gcc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471done
2472done
Reid Spencera773bd52006-08-04 18:18:08 +00002473IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474
2475fi
2476fi
2477ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002479 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481else
Reid Spencera773bd52006-08-04 18:18:08 +00002482 { echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484fi
2485
Reid Spencera773bd52006-08-04 18:18:08 +00002486 if test "x$ac_ct_CC" = x; then
2487 CC=""
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490yes:)
2491{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492whose name does not start with the host triplet. If you think this
2493configuration is useful to you, please write to autoconf@gnu.org." >&5
2494echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495whose name does not start with the host triplet. If you think this
2496configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499 CC=$ac_ct_CC
2500 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501else
2502 CC="$ac_cv_prog_CC"
2503fi
2504
2505if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002506 if test -n "$ac_tool_prefix"; then
2507 # 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 +00002508set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002523 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 +00002524 ac_cv_prog_CC="${ac_tool_prefix}cc"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528done
2529done
Reid Spencera773bd52006-08-04 18:18:08 +00002530IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002536 { echo "$as_me:$LINENO: result: $CC" >&5
2537echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538else
Reid Spencera773bd52006-08-04 18:18:08 +00002539 { echo "$as_me:$LINENO: result: no" >&5
2540echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541fi
2542
Reid Spencera773bd52006-08-04 18:18:08 +00002543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545fi
2546if test -z "$CC"; then
2547 # Extract the first word of "cc", so it can be a program name with args.
2548set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551if test "${ac_cv_prog_CC+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557 ac_prog_rejected=no
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002564 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 +00002565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566 ac_prog_rejected=yes
2567 continue
2568 fi
2569 ac_cv_prog_CC="cc"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573done
2574done
Reid Spencera773bd52006-08-04 18:18:08 +00002575IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576
2577if test $ac_prog_rejected = yes; then
2578 # We found a bogon in the path, so make sure we never use it.
2579 set dummy $ac_cv_prog_CC
2580 shift
2581 if test $# != 0; then
2582 # We chose a different compiler from the bogus one.
2583 # However, it has the same basename, so the bogon will be chosen
2584 # first if we set CC to just the basename; use the full file name.
2585 shift
2586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2587 fi
2588fi
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002593 { echo "$as_me:$LINENO: result: $CC" >&5
2594echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595else
Reid Spencera773bd52006-08-04 18:18:08 +00002596 { echo "$as_me:$LINENO: result: no" >&5
2597echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598fi
2599
Reid Spencera773bd52006-08-04 18:18:08 +00002600
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601fi
2602if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002604 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002605 do
2606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002622 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 +00002623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628done
Reid Spencera773bd52006-08-04 18:18:08 +00002629IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002630
2631fi
2632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633CC=$ac_cv_prog_CC
2634if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002635 { echo "$as_me:$LINENO: result: $CC" >&5
2636echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002637else
Reid Spencera773bd52006-08-04 18:18:08 +00002638 { echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002640fi
2641
Reid Spencera773bd52006-08-04 18:18:08 +00002642
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002644 done
2645fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646if test -z "$CC"; then
2647 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002648 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002649do
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002666 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 +00002667 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671done
2672done
Reid Spencera773bd52006-08-04 18:18:08 +00002673IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002674
2675fi
2676fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002679 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002681else
Reid Spencera773bd52006-08-04 18:18:08 +00002682 { echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002684fi
2685
Reid Spencera773bd52006-08-04 18:18:08 +00002686
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002688done
John Criswell7a73b802003-06-30 21:59:07 +00002689
Reid Spencera773bd52006-08-04 18:18:08 +00002690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694yes:)
2695{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2696whose name does not start with the host triplet. If you think this
2697configuration is useful to you, please write to autoconf@gnu.org." >&5
2698echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2699whose name does not start with the host triplet. If you think this
2700configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2701ac_tool_warned=yes ;;
2702esac
2703 CC=$ac_ct_CC
2704 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705fi
2706
John Criswell7a73b802003-06-30 21:59:07 +00002707fi
2708
2709
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002710test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2711See \`config.log' for more details." >&5
2712echo "$as_me: error: no acceptable C compiler found in \$PATH
2713See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2715
John Criswell7a73b802003-06-30 21:59:07 +00002716# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002717echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002718ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002719{ (ac_try="$ac_compiler --version >&5"
2720case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002729{ (ac_try="$ac_compiler -v >&5"
2730case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002739{ (ac_try="$ac_compiler -V >&5"
2740case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749
2750cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002751/* confdefs.h. */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002756
John Criswell7a73b802003-06-30 21:59:07 +00002757int
2758main ()
2759{
2760
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002766ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002767# Try to create an executable without -o first, disregard a.out.
2768# It will help us diagnose broken compilers, and finding out an intuition
2769# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002770{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2771echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002772ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002773#
2774# List of possible output files, starting from the most likely.
2775# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2776# only as a last resort. b.out is created by i960 compilers.
2777ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2778#
2779# The IRIX 6 linker writes into existing files which may not be
2780# executable, retaining their permissions. Remove them first so a
2781# subsequent execution test works.
2782ac_rmfiles=
2783for ac_file in $ac_files
2784do
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2787 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2788 esac
2789done
2790rm -f $ac_rmfiles
2791
2792if { (ac_try="$ac_link_default"
2793case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002802 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2803# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2804# in a Makefile. We should not override ac_cv_exeext if it was cached,
2805# so that the user can short-circuit this test for compilers unknown to
2806# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002807for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002808do
2809 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002810 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002813 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 # We found the default executable, but exeext='' is most
2815 # certainly right.
2816 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002817 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002818 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2819 then :; else
2820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821 fi
2822 # We set ac_cv_exeext here because the later test for it is not
2823 # safe: cross compilers may not add the suffix if given an `-o'
2824 # argument, so we may need to know it at that point already.
2825 # Even if this section looks crufty: it has the advantage of
2826 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002827 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002828 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002829 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002830 esac
2831done
Reid Spencera773bd52006-08-04 18:18:08 +00002832test "$ac_cv_exeext" = no && ac_cv_exeext=
2833
John Criswell7a73b802003-06-30 21:59:07 +00002834else
2835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002836sed 's/^/| /' conftest.$ac_ext >&5
2837
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002838{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002839See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002840echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002841See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002842 { (exit 77); exit 77; }; }
2843fi
2844
2845ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002846{ echo "$as_me:$LINENO: result: $ac_file" >&5
2847echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002848
Reid Spencera773bd52006-08-04 18:18:08 +00002849# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002850# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002851{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2852echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002853# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2854# If not cross compiling, check that we can run a simple program.
2855if test "$cross_compiling" != yes; then
2856 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002857 { (case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860esac
2861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 cross_compiling=no
2867 else
2868 if test "$cross_compiling" = maybe; then
2869 cross_compiling=yes
2870 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002871 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002872If you meant to cross compile, use \`--host'.
2873See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002874echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002875If you meant to cross compile, use \`--host'.
2876See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002877 { (exit 1); exit 1; }; }
2878 fi
2879 fi
2880fi
Reid Spencera773bd52006-08-04 18:18:08 +00002881{ echo "$as_me:$LINENO: result: yes" >&5
2882echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002883
John Criswell0c38eaf2003-09-10 15:17:25 +00002884rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002885ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002886# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002887# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002888{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2889echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2890{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2891echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002892
Reid Spencera773bd52006-08-04 18:18:08 +00002893{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2894echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2895if { (ac_try="$ac_link"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2906# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2907# work properly (i.e., refer to `conftest.exe'), while it won't with
2908# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002909for ac_file in conftest.exe conftest conftest.*; do
2910 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002911 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002914 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002915 * ) break;;
2916 esac
2917done
2918else
John Criswell0c38eaf2003-09-10 15:17:25 +00002919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2920See \`config.log' for more details." >&5
2921echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2922See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002923 { (exit 1); exit 1; }; }
2924fi
2925
2926rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002927{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2928echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002929
2930rm -f conftest.$ac_ext
2931EXEEXT=$ac_cv_exeext
2932ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002933{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2934echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002935if test "${ac_cv_objext+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002944
John Criswell7a73b802003-06-30 21:59:07 +00002945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002954if { (ac_try="$ac_compile"
2955case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002964 for ac_file in conftest.o conftest.obj conftest.*; do
2965 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002966 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2969 break;;
2970 esac
2971done
2972else
2973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2977See \`config.log' for more details." >&5
2978echo "$as_me: error: cannot compute suffix of object files: cannot compile
2979See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002980 { (exit 1); exit 1; }; }
2981fi
2982
2983rm -f conftest.$ac_cv_objext conftest.$ac_ext
2984fi
Reid Spencera773bd52006-08-04 18:18:08 +00002985{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2986echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002987OBJEXT=$ac_cv_objext
2988ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002989{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2990echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002991if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003000
John Criswell7a73b802003-06-30 21:59:07 +00003001int
3002main ()
3003{
3004#ifndef __GNUC__
3005 choke me
3006#endif
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003046 ac_compiler_gnu=yes
3047else
3048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003049sed 's/^/| /' conftest.$ac_ext >&5
3050
Reid Spencera773bd52006-08-04 18:18:08 +00003051 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003052fi
Reid Spencera773bd52006-08-04 18:18:08 +00003053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003055ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003056
3057fi
Reid Spencera773bd52006-08-04 18:18:08 +00003058{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003060GCC=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CFLAGS=${CFLAGS+set}
3062ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003063{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003065if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
Reid Spencera773bd52006-08-04 18:18:08 +00003068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003078
John Criswell7a73b802003-06-30 21:59:07 +00003079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003121 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003122else
3123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003124sed 's/^/| /' conftest.$ac_ext >&5
3125
Reid Spencera773bd52006-08-04 18:18:08 +00003126 CFLAGS=""
3127 cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
3133
3134int
3135main ()
3136{
3137
3138 ;
3139 return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (ac_try="$ac_compile"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003176 :
3177else
3178 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003232 ac_cv_prog_cc_g=yes
3233else
3234 echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237
John Criswell7a73b802003-06-30 21:59:07 +00003238fi
Reid Spencera773bd52006-08-04 18:18:08 +00003239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003241fi
Reid Spencera773bd52006-08-04 18:18:08 +00003242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3248fi
3249{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3250echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3255 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003256 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003258 fi
3259else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260 if test "$GCC" = yes; then
3261 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003262 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003264 fi
3265fi
Reid Spencera773bd52006-08-04 18:18:08 +00003266{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3267echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3268if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
Reid Spencera773bd52006-08-04 18:18:08 +00003271 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272ac_save_CC=$CC
3273cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h. */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h. */
3279#include <stdarg.h>
3280#include <stdio.h>
3281#include <sys/types.h>
3282#include <sys/stat.h>
3283/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284struct buf { int x; };
3285FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286static char *e (p, i)
3287 char **p;
3288 int i;
3289{
3290 return p[i];
3291}
3292static char *f (char * (*g) (char **, int), char **p, ...)
3293{
3294 char *s;
3295 va_list v;
3296 va_start (v,p);
3297 s = g (p, va_arg (v,int));
3298 va_end (v);
3299 return s;
3300}
3301
3302/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003305 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003308 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310
Reid Spencera773bd52006-08-04 18:18:08 +00003311/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312 inside strings and character constants. */
3313#define FOO(x) 'x'
3314int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316int test (int i, double x);
3317struct s1 {int (*f) (int a);};
3318struct s2 {int (*f) (double a);};
3319int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320int argc;
3321char **argv;
3322int
3323main ()
3324{
3325return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3326 ;
3327 return 0;
3328}
3329_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003330for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332do
3333 CC="$ac_save_CC $ac_arg"
3334 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003335if { (ac_try="$ac_compile"
3336case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352esac
3353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362esac
3363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003368 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369else
3370 echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
Reid Spencera773bd52006-08-04 18:18:08 +00003373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374fi
Reid Spencera773bd52006-08-04 18:18:08 +00003375
3376rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378done
Reid Spencera773bd52006-08-04 18:18:08 +00003379rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380CC=$ac_save_CC
3381
3382fi
Reid Spencera773bd52006-08-04 18:18:08 +00003383# AC_CACHE_VAL
3384case "x$ac_cv_prog_cc_c89" in
3385 x)
3386 { echo "$as_me:$LINENO: result: none needed" >&5
3387echo "${ECHO_T}none needed" >&6; } ;;
3388 xno)
3389 { echo "$as_me:$LINENO: result: unsupported" >&5
3390echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003392 CC="$CC $ac_cv_prog_cc_c89"
3393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3394echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395esac
3396
John Criswell0c38eaf2003-09-10 15:17:25 +00003397
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398ac_ext=c
3399ac_cpp='$CPP $CPPFLAGS'
3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403
3404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405ac_ext=c
3406ac_cpp='$CPP $CPPFLAGS'
3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003410{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3411echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412# On Suns, sometimes $CPP names a directory.
3413if test -n "$CPP" && test -d "$CPP"; then
3414 CPP=
3415fi
3416if test -z "$CPP"; then
3417 if test "${ac_cv_prog_CPP+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420 # Double quotes because CPP needs to be expanded
3421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 do
3423 ac_preproc_ok=false
3424for ac_c_preproc_warn_flag in '' yes
3425do
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438#ifdef __STDC__
3439# include <limits.h>
3440#else
3441# include <assert.h>
3442#endif
3443 Syntax error
3444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003445if { (ac_try="$ac_cpp conftest.$ac_ext"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 else
3462 ac_cpp_err=
3463 fi
3464else
3465 ac_cpp_err=yes
3466fi
3467if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468 :
3469else
3470 echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 # Broken: fails on valid input.
3474continue
3475fi
Reid Spencera773bd52006-08-04 18:18:08 +00003476
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003477rm -f conftest.err conftest.$ac_ext
3478
Reid Spencera773bd52006-08-04 18:18:08 +00003479 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 # can be detected and how.
3481 cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3487#include <ac_nonexistent.h>
3488_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003489if { (ac_try="$ac_cpp conftest.$ac_ext"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 else
3506 ac_cpp_err=
3507 fi
3508else
3509 ac_cpp_err=yes
3510fi
3511if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512 # Broken: success on invalid input.
3513continue
3514else
3515 echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 # Passes both tests.
3519ac_preproc_ok=:
3520break
3521fi
Reid Spencera773bd52006-08-04 18:18:08 +00003522
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523rm -f conftest.err conftest.$ac_ext
3524
3525done
3526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527rm -f conftest.err conftest.$ac_ext
3528if $ac_preproc_ok; then
3529 break
3530fi
3531
3532 done
3533 ac_cv_prog_CPP=$CPP
3534
3535fi
3536 CPP=$ac_cv_prog_CPP
3537else
3538 ac_cv_prog_CPP=$CPP
3539fi
Reid Spencera773bd52006-08-04 18:18:08 +00003540{ echo "$as_me:$LINENO: result: $CPP" >&5
3541echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542ac_preproc_ok=false
3543for ac_c_preproc_warn_flag in '' yes
3544do
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
3557#ifdef __STDC__
3558# include <limits.h>
3559#else
3560# include <assert.h>
3561#endif
3562 Syntax error
3563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003564if { (ac_try="$ac_cpp conftest.$ac_ext"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 else
3581 ac_cpp_err=
3582 fi
3583else
3584 ac_cpp_err=yes
3585fi
3586if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587 :
3588else
3589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 # Broken: fails on valid input.
3593continue
3594fi
Reid Spencera773bd52006-08-04 18:18:08 +00003595
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003596rm -f conftest.err conftest.$ac_ext
3597
Reid Spencera773bd52006-08-04 18:18:08 +00003598 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h. */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h. */
3606#include <ac_nonexistent.h>
3607_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003608if { (ac_try="$ac_cpp conftest.$ac_ext"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3624 else
3625 ac_cpp_err=
3626 fi
3627else
3628 ac_cpp_err=yes
3629fi
3630if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631 # Broken: success on invalid input.
3632continue
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 # Passes both tests.
3638ac_preproc_ok=:
3639break
3640fi
Reid Spencera773bd52006-08-04 18:18:08 +00003641
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003642rm -f conftest.err conftest.$ac_ext
3643
3644done
3645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646rm -f conftest.err conftest.$ac_ext
3647if $ac_preproc_ok; then
3648 :
3649else
3650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651See \`config.log' for more details." >&5
3652echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653See \`config.log' for more details." >&2;}
3654 { (exit 1); exit 1; }; }
3655fi
3656
John Criswell7a73b802003-06-30 21:59:07 +00003657ac_ext=c
3658ac_cpp='$CPP $CPPFLAGS'
3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
John Criswell7a73b802003-06-30 21:59:07 +00003663
Reid Spencera773bd52006-08-04 18:18:08 +00003664{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3665echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
Reid Spencera773bd52006-08-04 18:18:08 +00003669 # Extract the first word of "grep ggrep" to use in msg output
3670if test -z "$GREP"; then
3671set dummy grep ggrep; ac_prog_name=$2
3672if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
Reid Spencera773bd52006-08-04 18:18:08 +00003675 ac_path_GREP_found=false
3676# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003678for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003679do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003682 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003683 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003685 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003686 # Check for GNU ac_path_GREP and select it if it is found.
3687 # Check for GNU $ac_path_GREP
3688case `"$ac_path_GREP" --version 2>&1` in
3689*GNU*)
3690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3691*)
3692 ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3694 while :
3695 do
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'GREP' >> "conftest.nl"
3700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702 ac_count=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_GREP="$ac_path_GREP"
3706 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003707 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3710 done
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712esac
3713
3714
3715 $ac_path_GREP_found && break 3
3716 done
3717done
3718
3719done
3720IFS=$as_save_IFS
3721
3722
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003723fi
Reid Spencera773bd52006-08-04 18:18:08 +00003724
3725GREP="$ac_cv_path_GREP"
3726if test -z "$GREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3730fi
3731
3732else
3733 ac_cv_path_GREP=$GREP
3734fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003735
John Criswell7a73b802003-06-30 21:59:07 +00003736
Reid Spencera773bd52006-08-04 18:18:08 +00003737fi
3738{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3740 GREP="$ac_cv_path_GREP"
3741
3742
3743{ echo "$as_me:$LINENO: checking for egrep" >&5
3744echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3745if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3749 then ac_cv_path_EGREP="$GREP -E"
3750 else
3751 # Extract the first word of "egrep" to use in msg output
3752if test -z "$EGREP"; then
3753set dummy egrep; ac_prog_name=$2
3754if test "${ac_cv_path_EGREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 ac_path_EGREP_found=false
3758# Loop through the user's path and test for each of PROGNAME-LIST
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in egrep; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003767 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003768 # Check for GNU ac_path_EGREP and select it if it is found.
3769 # Check for GNU $ac_path_EGREP
3770case `"$ac_path_EGREP" --version 2>&1` in
3771*GNU*)
3772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3773*)
3774 ac_count=0
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3776 while :
3777 do
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'EGREP' >> "conftest.nl"
3782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 ac_count=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_EGREP="$ac_path_EGREP"
3788 ac_path_EGREP_max=$ac_count
3789 fi
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3792 done
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794esac
3795
3796
3797 $ac_path_EGREP_found && break 3
3798 done
3799done
3800
3801done
3802IFS=$as_save_IFS
3803
3804
3805fi
3806
3807EGREP="$ac_cv_path_EGREP"
3808if test -z "$EGREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3812fi
3813
3814else
3815 ac_cv_path_EGREP=$EGREP
3816fi
3817
3818
3819 fi
3820fi
3821{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3822echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3823 EGREP="$ac_cv_path_EGREP"
3824
3825
3826{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3827echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003828if test "${ac_cv_header_stdc+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003837#include <stdlib.h>
3838#include <stdarg.h>
3839#include <string.h>
3840#include <float.h>
3841
John Criswell0c38eaf2003-09-10 15:17:25 +00003842int
3843main ()
3844{
3845
3846 ;
3847 return 0;
3848}
John Criswell7a73b802003-06-30 21:59:07 +00003849_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003850rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003851if { (ac_try="$ac_compile"
3852case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3865 { (case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868esac
3869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_try") 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_try") 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003884 ac_cv_header_stdc=yes
3885else
3886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003887sed 's/^/| /' conftest.$ac_ext >&5
3888
Reid Spencera773bd52006-08-04 18:18:08 +00003889 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003890fi
Reid Spencera773bd52006-08-04 18:18:08 +00003891
3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003893
3894if test $ac_cv_header_stdc = yes; then
3895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003902#include <string.h>
3903
3904_ACEOF
3905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003906 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003907 :
3908else
3909 ac_cv_header_stdc=no
3910fi
3911rm -f conftest*
3912
3913fi
3914
3915if test $ac_cv_header_stdc = yes; then
3916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003923#include <stdlib.h>
3924
3925_ACEOF
3926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003927 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003928 :
3929else
3930 ac_cv_header_stdc=no
3931fi
3932rm -f conftest*
3933
3934fi
3935
3936if test $ac_cv_header_stdc = yes; then
3937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3938 if test "$cross_compiling" = yes; then
3939 :
3940else
3941 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003947#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003948#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003949#if ((' ' & 0x0FF) == 0x020)
3950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3952#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003953# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003954 (('a' <= (c) && (c) <= 'i') \
3955 || ('j' <= (c) && (c) <= 'r') \
3956 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3958#endif
3959
3960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3961int
3962main ()
3963{
3964 int i;
3965 for (i = 0; i < 256; i++)
3966 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003967 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003968 return 2;
3969 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003970}
3971_ACEOF
3972rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003973if { (ac_try="$ac_link"
3974case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977esac
3978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003983 { (case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986esac
3987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 :
3993else
3994 echo "$as_me: program exited with status $ac_status" >&5
3995echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003996sed 's/^/| /' conftest.$ac_ext >&5
3997
John Criswell7a73b802003-06-30 21:59:07 +00003998( exit $ac_status )
3999ac_cv_header_stdc=no
4000fi
Reid Spencera773bd52006-08-04 18:18:08 +00004001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4002fi
4003
4004
John Criswell7a73b802003-06-30 21:59:07 +00004005fi
4006fi
Reid Spencera773bd52006-08-04 18:18:08 +00004007{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4008echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004009if test $ac_cv_header_stdc = yes; then
4010
4011cat >>confdefs.h <<\_ACEOF
4012#define STDC_HEADERS 1
4013_ACEOF
4014
4015fi
4016
Reid Spencera773bd52006-08-04 18:18:08 +00004017# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4028 inttypes.h stdint.h unistd.h
4029do
4030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4031{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036 cat >conftest.$ac_ext <<_ACEOF
4037/* confdefs.h. */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h. */
4042$ac_includes_default
4043
4044#include <$ac_header>
4045_ACEOF
4046rm -f conftest.$ac_objext
4047if { (ac_try="$ac_compile"
4048case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4061 { (case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_try") 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004080 eval "$as_ac_Header=yes"
4081else
4082 echo "$as_me: failed program was:" >&5
4083sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 eval "$as_ac_Header=no"
4086fi
4087
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089fi
4090ac_res=`eval echo '${'$as_ac_Header'}'`
4091 { echo "$as_me:$LINENO: result: $ac_res" >&5
4092echo "${ECHO_T}$ac_res" >&6; }
4093if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094 cat >>confdefs.h <<_ACEOF
4095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096_ACEOF
4097
4098fi
4099
4100done
4101
4102
4103{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4104echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4105if test "${ac_cv_c_bigendian+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 # See if sys/param.h defines the BYTE_ORDER macro.
4109cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h. */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h. */
4115#include <sys/types.h>
4116#include <sys/param.h>
4117
4118int
4119main ()
4120{
Tanya Lattnercf067672008-01-17 05:57:22 +00004121#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004122 bogus endian macros
4123#endif
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129rm -f conftest.$ac_objext
4130if { (ac_try="$ac_compile"
4131case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147esac
4148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_try") 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004163 # It does; now see whether it defined to BIG_ENDIAN or not.
4164cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170#include <sys/types.h>
4171#include <sys/param.h>
4172
4173int
4174main ()
4175{
4176#if BYTE_ORDER != BIG_ENDIAN
4177 not big endian
4178#endif
4179
4180 ;
4181 return 0;
4182}
4183_ACEOF
4184rm -f conftest.$ac_objext
4185if { (ac_try="$ac_compile"
4186case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4199 { (case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202esac
4203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_try") 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_try") 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004218 ac_cv_c_bigendian=yes
4219else
4220 echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ac_cv_c_bigendian=no
4224fi
4225
4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227else
4228 echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 # It does not; compile a test program.
4232if test "$cross_compiling" = yes; then
4233 # try to guess the endianness by grepping values into an object file
4234 ac_cv_c_bigendian=unknown
4235 cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h. */
4241short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4242short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4243void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4244short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4245short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4246void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4247int
4248main ()
4249{
4250 _ascii (); _ebcdic ();
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (ac_try="$ac_compile"
4257case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004289 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4290 ac_cv_c_bigendian=yes
4291fi
4292if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4293 if test "$ac_cv_c_bigendian" = unknown; then
4294 ac_cv_c_bigendian=no
4295 else
4296 # finding both strings is unlikely to happen, but who knows?
4297 ac_cv_c_bigendian=unknown
4298 fi
4299fi
4300else
4301 echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304
4305fi
4306
4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308else
4309 cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
4315$ac_includes_default
4316int
4317main ()
4318{
4319
4320 /* Are we little or big endian? From Harbison&Steele. */
4321 union
4322 {
4323 long int l;
4324 char c[sizeof (long int)];
4325 } u;
4326 u.l = 1;
4327 return u.c[sizeof (long int) - 1] == 1;
4328
4329 ;
4330 return 0;
4331}
4332_ACEOF
4333rm -f conftest$ac_exeext
4334if { (ac_try="$ac_link"
4335case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338esac
4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_c_bigendian=no
4354else
4355 echo "$as_me: program exited with status $ac_status" >&5
4356echo "$as_me: failed program was:" >&5
4357sed 's/^/| /' conftest.$ac_ext >&5
4358
4359( exit $ac_status )
4360ac_cv_c_bigendian=yes
4361fi
4362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4363fi
4364
4365
4366fi
4367
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369fi
4370{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4371echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4372case $ac_cv_c_bigendian in
4373 yes)
4374 ENDIAN=big
4375 ;;
4376 no)
4377 ENDIAN=little
4378 ;;
4379 *)
4380 { { echo "$as_me:$LINENO: error: unknown endianness
4381presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4382echo "$as_me: error: unknown endianness
4383presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4384 { (exit 1); exit 1; }; } ;;
4385esac
4386
4387
4388if test "$cross_compiling" = yes; then
4389 LLVM_CROSS_COMPILING=1
4390
4391
4392{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4393echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4394if test "${ac_cv_build_exeext+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4398 ac_cv_build_exeext=.exe
4399else
4400 ac_build_prefix=${build_alias}-
4401
4402 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4403set dummy ${ac_build_prefix}gcc; ac_word=$2
4404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 if test -n "$BUILD_CC"; then
4410 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004419 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423done
4424done
4425IFS=$as_save_IFS
4426
4427fi
4428fi
4429BUILD_CC=$ac_cv_prog_BUILD_CC
4430if test -n "$BUILD_CC"; then
4431 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4432echo "${ECHO_T}$BUILD_CC" >&6; }
4433else
4434 { echo "$as_me:$LINENO: result: no" >&5
4435echo "${ECHO_T}no" >&6; }
4436fi
4437
4438
4439 if test -z "$BUILD_CC"; then
4440 # Extract the first word of "gcc", so it can be a program name with args.
4441set dummy gcc; ac_word=$2
4442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if test -n "$BUILD_CC"; then
4448 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004457 ac_cv_prog_BUILD_CC="gcc"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461done
4462done
4463IFS=$as_save_IFS
4464
4465fi
4466fi
4467BUILD_CC=$ac_cv_prog_BUILD_CC
4468if test -n "$BUILD_CC"; then
4469 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4470echo "${ECHO_T}$BUILD_CC" >&6; }
4471else
4472 { echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6; }
4474fi
4475
4476
4477 if test -z "$BUILD_CC"; then
4478 # Extract the first word of "cc", so it can be a program name with args.
4479set dummy cc; ac_word=$2
4480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485 if test -n "$BUILD_CC"; then
4486 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4487else
4488 ac_prog_rejected=no
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497 ac_prog_rejected=yes
4498 continue
4499 fi
4500 ac_cv_prog_BUILD_CC="cc"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504done
4505done
4506IFS=$as_save_IFS
4507
4508if test $ac_prog_rejected = yes; then
4509 # We found a bogon in the path, so make sure we never use it.
4510 set dummy $ac_cv_prog_BUILD_CC
4511 shift
4512 if test $# != 0; then
4513 # We chose a different compiler from the bogus one.
4514 # However, it has the same basename, so the bogon will be chosen
4515 # first if we set BUILD_CC to just the basename; use the full file name.
4516 shift
4517 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4518 fi
4519fi
4520fi
4521fi
4522BUILD_CC=$ac_cv_prog_BUILD_CC
4523if test -n "$BUILD_CC"; then
4524 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4525echo "${ECHO_T}$BUILD_CC" >&6; }
4526else
4527 { echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6; }
4529fi
4530
4531
4532 fi
4533 fi
4534 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4535echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4536 { (exit 1); exit 1; }; }
4537 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4538 rm -f conftest*
4539 echo 'int main () { return 0; }' > conftest.$ac_ext
4540 ac_cv_build_exeext=
4541 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4542 (eval $ac_build_link) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; then
4546 for file in conftest.*; do
4547 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004548 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004549 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4550 esac
4551 done
4552 else
4553 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4554echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4555 { (exit 1); exit 1; }; }
4556 fi
4557 rm -f conftest*
4558 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4559fi
4560fi
4561
4562BUILD_EXEEXT=""
4563test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4564{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4565echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4566ac_build_exeext=$BUILD_EXEEXT
4567
4568else
4569 LLVM_CROSS_COMPILING=0
4570
4571fi
4572
Reid Spencer0b1e4662007-04-02 15:41:39 +00004573if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004574 cvsbuild="yes"
4575 optimize="no"
4576 CVSBUILD=CVSBUILD=1
4577
4578else
4579 cvsbuild="no"
4580 optimize="yes"
4581fi
4582
4583
4584# Check whether --enable-optimized was given.
4585if test "${enable_optimized+set}" = set; then
4586 enableval=$enable_optimized;
4587else
4588 enableval=$optimize
4589fi
4590
4591if test ${enableval} = "no" ; then
4592 ENABLE_OPTIMIZED=
4593
4594else
4595 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4596
4597fi
4598
4599# Check whether --enable-assertions was given.
4600if test "${enable_assertions+set}" = set; then
4601 enableval=$enable_assertions;
4602else
4603 enableval="yes"
4604fi
4605
4606if test ${enableval} = "yes" ; then
4607 DISABLE_ASSERTIONS=
4608
4609else
4610 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4611
4612fi
4613
David Greenea696d242007-06-28 19:36:08 +00004614# Check whether --enable-expensive-checks was given.
4615if test "${enable_expensive_checks+set}" = set; then
4616 enableval=$enable_expensive_checks;
4617else
4618 enableval="no"
4619fi
4620
4621if test ${enableval} = "yes" ; then
4622 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4623
4624 EXPENSIVE_CHECKS=yes
4625
4626else
4627 ENABLE_EXPENSIVE_CHECKS=
4628
4629 EXPENSIVE_CHECKS=no
4630
4631fi
4632
Reid Spencer8b2e1412006-11-17 03:32:33 +00004633# Check whether --enable-debug-runtime was given.
4634if test "${enable_debug_runtime+set}" = set; then
4635 enableval=$enable_debug_runtime;
4636else
4637 enableval=no
4638fi
4639
4640if test ${enableval} = "no" ; then
4641 DEBUG_RUNTIME=
4642
4643else
4644 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4645
4646fi
4647
Reid Spencera773bd52006-08-04 18:18:08 +00004648# Check whether --enable-jit was given.
4649if test "${enable_jit+set}" = set; then
4650 enableval=$enable_jit;
4651else
4652 enableval=default
4653fi
4654
4655if test ${enableval} = "no"
4656then
4657 JIT=
4658
4659else
4660 case "$llvm_cv_target_arch" in
4661 x86) TARGET_HAS_JIT=1
4662 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004663 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004664 ;;
4665 PowerPC) TARGET_HAS_JIT=1
4666 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004667 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004668 ;;
4669 Alpha) TARGET_HAS_JIT=1
4670 ;;
4671 IA64) TARGET_HAS_JIT=0
4672 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004673 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004674 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004675 Mips) TARGET_HAS_JIT=0
4676 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004677 PIC16) TARGET_HAS_JIT=0
4678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004679 *) TARGET_HAS_JIT=0
4680 ;;
4681 esac
4682fi
4683
4684# Check whether --enable-doxygen was given.
4685if test "${enable_doxygen+set}" = set; then
4686 enableval=$enable_doxygen;
4687else
4688 enableval=default
4689fi
4690
4691case "$enableval" in
4692 yes) ENABLE_DOXYGEN=1
4693 ;;
4694 no) ENABLE_DOXYGEN=0
4695 ;;
4696 default) ENABLE_DOXYGEN=0
4697 ;;
4698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4699echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4700 { (exit 1); exit 1; }; } ;;
4701esac
4702
4703# Check whether --enable-threads was given.
4704if test "${enable_threads+set}" = set; then
4705 enableval=$enable_threads;
4706else
Reid Spencer65c5d752006-11-05 17:08:18 +00004707 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004708fi
4709
4710case "$enableval" in
4711 yes) ENABLE_THREADS=1
4712 ;;
4713 no) ENABLE_THREADS=0
4714 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004715 default) ENABLE_THREADS=1
4716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004717 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4718echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4719 { (exit 1); exit 1; }; } ;;
4720esac
4721
4722cat >>confdefs.h <<_ACEOF
4723#define ENABLE_THREADS $ENABLE_THREADS
4724_ACEOF
4725
4726
Reid Spencer89b0d992006-12-16 22:07:52 +00004727# Check whether --enable-pic was given.
4728if test "${enable_pic+set}" = set; then
4729 enableval=$enable_pic;
4730else
4731 enableval=default
4732fi
4733
4734case "$enableval" in
4735 yes) ENABLE_PIC=1
4736 ;;
4737 no) ENABLE_PIC=0
4738 ;;
4739 default) ENABLE_PIC=0
4740 ;;
4741 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4742echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4743 { (exit 1); exit 1; }; } ;;
4744esac
4745
4746cat >>confdefs.h <<_ACEOF
4747#define ENABLE_PIC $ENABLE_PIC
4748_ACEOF
4749
4750
Reid Spencera773bd52006-08-04 18:18:08 +00004751TARGETS_TO_BUILD=""
4752# Check whether --enable-targets was given.
4753if test "${enable_targets+set}" = set; then
4754 enableval=$enable_targets;
4755else
4756 enableval=all
4757fi
4758
4759case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004760 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004761 host-only)
4762 case "$llvm_cv_target_arch" in
4763 x86) TARGETS_TO_BUILD="X86" ;;
4764 x86_64) TARGETS_TO_BUILD="X86" ;;
4765 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4766 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4767 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4768 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004769 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004770 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004771 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004772 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004773 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4774echo "$as_me: error: Can not set target to build" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4776 esac
4777 ;;
4778 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4779 case "$a_target" in
4780 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4781 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4782 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4783 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4784 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4785 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004786 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004787 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004788 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004789 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004790 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4791 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004792 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004793 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4794echo "$as_me: error: Unrecognized target $a_target" >&2;}
4795 { (exit 1); exit 1; }; } ;;
4796 esac
4797 done
4798 ;;
4799esac
Reid Spencera773bd52006-08-04 18:18:08 +00004800TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4801
4802
Reid Spencer65c5d752006-11-05 17:08:18 +00004803# Check whether --enable-cbe-printf-a was given.
4804if test "${enable_cbe_printf_a+set}" = set; then
4805 enableval=$enable_cbe_printf_a;
4806else
4807 enableval=default
4808fi
4809
4810case "$enableval" in
4811 yes) ENABLE_CBE_PRINTF_A=1
4812 ;;
4813 no) ENABLE_CBE_PRINTF_A=0
4814 ;;
4815 default) ENABLE_CBE_PRINTF_A=1
4816 ;;
4817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4818echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4820esac
4821
4822cat >>confdefs.h <<_ACEOF
4823#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4824_ACEOF
4825
4826
Reid Spencera773bd52006-08-04 18:18:08 +00004827
4828# Check whether --with-llvmgccdir was given.
4829if test "${with_llvmgccdir+set}" = set; then
4830 withval=$with_llvmgccdir;
4831else
4832 withval=default
4833fi
4834
4835case "$withval" in
4836 default) WITH_LLVMGCCDIR=default ;;
4837 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4838 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4839echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4840 { (exit 1); exit 1; }; } ;;
4841esac
4842
4843
Devang Patel5d28b882007-12-04 22:54:47 +00004844# Check whether --with-llvmgcc was given.
4845if test "${with_llvmgcc+set}" = set; then
4846 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4847 WITH_LLVMGCCDIR=""
4848fi
4849
4850
4851
4852# Check whether --with-llvmgxx was given.
4853if test "${with_llvmgxx+set}" = set; then
4854 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4855 WITH_LLVMGCCDIR=""
4856fi
4857
4858
4859if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4860 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4861echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4862 { (exit 1); exit 1; }; };
4863fi
4864
4865if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4866 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4867echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4868 { (exit 1); exit 1; }; };
4869fi
4870
4871
Reid Spencera773bd52006-08-04 18:18:08 +00004872# Check whether --with-extra-options was given.
4873if test "${with_extra_options+set}" = set; then
4874 withval=$with_extra_options;
4875else
4876 withval=default
4877fi
4878
4879case "$withval" in
4880 default) EXTRA_OPTIONS= ;;
4881 *) EXTRA_OPTIONS=$withval ;;
4882esac
4883EXTRA_OPTIONS=$EXTRA_OPTIONS
4884
4885
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004886# Check whether --enable-bindings was given.
4887if test "${enable_bindings+set}" = set; then
4888 enableval=$enable_bindings;
4889else
4890 enableval=default
4891fi
4892
4893BINDINGS_TO_BUILD=""
4894case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004895 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004896 all ) BINDINGS_TO_BUILD="ocaml" ;;
4897 none | no) BINDINGS_TO_BUILD="" ;;
4898 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4899 case "$a_binding" in
4900 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4901 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4902echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4904 esac
4905 done
4906 ;;
4907esac
4908
Reid Spencera773bd52006-08-04 18:18:08 +00004909
Gordon Henriksenf0915682007-10-02 16:42:22 +00004910# Check whether --with-ocaml-libdir was given.
4911if test "${with_ocaml_libdir+set}" = set; then
4912 withval=$with_ocaml_libdir;
4913else
4914 withval=auto
4915fi
4916
4917case "$withval" in
4918 auto) with_ocaml_libdir="$withval" ;;
4919 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4920 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4921echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923esac
4924
4925
Reid Spencera773bd52006-08-04 18:18:08 +00004926ac_ext=c
4927ac_cpp='$CPP $CPPFLAGS'
4928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4933# On Suns, sometimes $CPP names a directory.
4934if test -n "$CPP" && test -d "$CPP"; then
4935 CPP=
4936fi
4937if test -z "$CPP"; then
4938 if test "${ac_cv_prog_CPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 # Double quotes because CPP needs to be expanded
4942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4943 do
4944 ac_preproc_ok=false
4945for ac_c_preproc_warn_flag in '' yes
4946do
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#ifdef __STDC__
4960# include <limits.h>
4961#else
4962# include <assert.h>
4963#endif
4964 Syntax error
4965_ACEOF
4966if { (ac_try="$ac_cpp conftest.$ac_ext"
4967case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970esac
4971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004978 (exit $ac_status); } >/dev/null; then
4979 if test -s conftest.err; then
4980 ac_cpp_err=$ac_c_preproc_warn_flag
4981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4982 else
4983 ac_cpp_err=
4984 fi
4985else
4986 ac_cpp_err=yes
4987fi
4988if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004989 :
4990else
4991 echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 # Broken: fails on valid input.
4995continue
4996fi
4997
4998rm -f conftest.err conftest.$ac_ext
4999
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008#include <ac_nonexistent.h>
5009_ACEOF
5010if { (ac_try="$ac_cpp conftest.$ac_ext"
5011case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014esac
5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_c_preproc_warn_flag
5025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5026 else
5027 ac_cpp_err=
5028 fi
5029else
5030 ac_cpp_err=yes
5031fi
5032if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005033 # Broken: success on invalid input.
5034continue
5035else
5036 echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039 # Passes both tests.
5040ac_preproc_ok=:
5041break
5042fi
5043
5044rm -f conftest.err conftest.$ac_ext
5045
5046done
5047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048rm -f conftest.err conftest.$ac_ext
5049if $ac_preproc_ok; then
5050 break
5051fi
5052
5053 done
5054 ac_cv_prog_CPP=$CPP
5055
5056fi
5057 CPP=$ac_cv_prog_CPP
5058else
5059 ac_cv_prog_CPP=$CPP
5060fi
5061{ echo "$as_me:$LINENO: result: $CPP" >&5
5062echo "${ECHO_T}$CPP" >&6; }
5063ac_preproc_ok=false
5064for ac_c_preproc_warn_flag in '' yes
5065do
5066 # Use a header file that comes with gcc, so configuring glibc
5067 # with a fresh cross-compiler works.
5068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069 # <limits.h> exists even on freestanding compilers.
5070 # On the NeXT, cc -E runs the code through the compiler's parser,
5071 # not just through cpp. "Syntax error" is here to catch this case.
5072 cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
5078#ifdef __STDC__
5079# include <limits.h>
5080#else
5081# include <assert.h>
5082#endif
5083 Syntax error
5084_ACEOF
5085if { (ac_try="$ac_cpp conftest.$ac_ext"
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5101 else
5102 ac_cpp_err=
5103 fi
5104else
5105 ac_cpp_err=yes
5106fi
5107if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005108 :
5109else
5110 echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 # Broken: fails on valid input.
5114continue
5115fi
5116
5117rm -f conftest.err conftest.$ac_ext
5118
5119 # OK, works on sane cases. Now check whether nonexistent headers
5120 # can be detected and how.
5121 cat >conftest.$ac_ext <<_ACEOF
5122/* confdefs.h. */
5123_ACEOF
5124cat confdefs.h >>conftest.$ac_ext
5125cat >>conftest.$ac_ext <<_ACEOF
5126/* end confdefs.h. */
5127#include <ac_nonexistent.h>
5128_ACEOF
5129if { (ac_try="$ac_cpp conftest.$ac_ext"
5130case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_c_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5145 else
5146 ac_cpp_err=
5147 fi
5148else
5149 ac_cpp_err=yes
5150fi
5151if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005152 # Broken: success on invalid input.
5153continue
5154else
5155 echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 # Passes both tests.
5159ac_preproc_ok=:
5160break
5161fi
5162
5163rm -f conftest.err conftest.$ac_ext
5164
5165done
5166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167rm -f conftest.err conftest.$ac_ext
5168if $ac_preproc_ok; then
5169 :
5170else
5171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5172See \`config.log' for more details." >&5
5173echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5174See \`config.log' for more details." >&2;}
5175 { (exit 1); exit 1; }; }
5176fi
5177
5178ac_ext=c
5179ac_cpp='$CPP $CPPFLAGS'
5180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183
5184ac_ext=c
5185ac_cpp='$CPP $CPPFLAGS'
5186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189if test -n "$ac_tool_prefix"; then
5190 for ac_prog in gcc
5191 do
5192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5196if test "${ac_cv_prog_CC+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 if test -n "$CC"; then
5200 ac_cv_prog_CC="$CC" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215IFS=$as_save_IFS
5216
5217fi
5218fi
5219CC=$ac_cv_prog_CC
5220if test -n "$CC"; then
5221 { echo "$as_me:$LINENO: result: $CC" >&5
5222echo "${ECHO_T}$CC" >&6; }
5223else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6; }
5226fi
5227
5228
5229 test -n "$CC" && break
5230 done
5231fi
5232if test -z "$CC"; then
5233 ac_ct_CC=$CC
5234 for ac_prog in gcc
5235do
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237set dummy $ac_prog; ac_word=$2
5238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5240if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243 if test -n "$ac_ct_CC"; then
5244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5245else
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005253 ac_cv_prog_ac_ct_CC="$ac_prog"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257done
5258done
5259IFS=$as_save_IFS
5260
5261fi
5262fi
5263ac_ct_CC=$ac_cv_prog_ac_ct_CC
5264if test -n "$ac_ct_CC"; then
5265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5266echo "${ECHO_T}$ac_ct_CC" >&6; }
5267else
5268 { echo "$as_me:$LINENO: result: no" >&5
5269echo "${ECHO_T}no" >&6; }
5270fi
5271
5272
5273 test -n "$ac_ct_CC" && break
5274done
5275
5276 if test "x$ac_ct_CC" = x; then
5277 CC=""
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280yes:)
5281{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5282whose name does not start with the host triplet. If you think this
5283configuration is useful to you, please write to autoconf@gnu.org." >&5
5284echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5285whose name does not start with the host triplet. If you think this
5286configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5287ac_tool_warned=yes ;;
5288esac
5289 CC=$ac_ct_CC
5290 fi
5291fi
5292
5293
5294test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5295See \`config.log' for more details." >&5
5296echo "$as_me: error: no acceptable C compiler found in \$PATH
5297See \`config.log' for more details." >&2;}
5298 { (exit 1); exit 1; }; }
5299
5300# Provide some information about the compiler.
5301echo "$as_me:$LINENO: checking for C compiler version" >&5
5302ac_compiler=`set X $ac_compile; echo $2`
5303{ (ac_try="$ac_compiler --version >&5"
5304case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_compiler --version >&5") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }
5313{ (ac_try="$ac_compiler -v >&5"
5314case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compiler -v >&5") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }
5323{ (ac_try="$ac_compiler -V >&5"
5324case "(($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_compiler -V >&5") 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }
5333
5334{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5335echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5336if test "${ac_cv_c_compiler_gnu+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
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#ifndef __GNUC__
5350 choke me
5351#endif
5352
5353 ;
5354 return 0;
5355}
5356_ACEOF
5357rm -f conftest.$ac_objext
5358if { (ac_try="$ac_compile"
5359case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362esac
5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_compile") 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5372 { (case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_try") 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385esac
5386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005391 ac_compiler_gnu=yes
5392else
5393 echo "$as_me: failed program was:" >&5
5394sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_compiler_gnu=no
5397fi
5398
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400ac_cv_c_compiler_gnu=$ac_compiler_gnu
5401
5402fi
5403{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5405GCC=`test $ac_compiler_gnu = yes && echo yes`
5406ac_test_CFLAGS=${CFLAGS+set}
5407ac_save_CFLAGS=$CFLAGS
5408{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5410if test "${ac_cv_prog_cc_g+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 ac_save_c_werror_flag=$ac_c_werror_flag
5414 ac_c_werror_flag=yes
5415 ac_cv_prog_cc_g=no
5416 CFLAGS="-g"
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423
5424int
5425main ()
5426{
5427
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (ac_try="$ac_compile"
5434case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437esac
5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5447 { (case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450esac
5451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_try") 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005466 ac_cv_prog_cc_g=yes
5467else
5468 echo "$as_me: failed program was:" >&5
5469sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 CFLAGS=""
5472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478
5479int
5480main ()
5481{
5482
5483 ;
5484 return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext
5488if { (ac_try="$ac_compile"
5489case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492esac
5493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005500 (exit $ac_status); } &&
5501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5502 { (case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505esac
5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005521 :
5522else
5523 echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_c_werror_flag=$ac_save_c_werror_flag
5527 CFLAGS="-g"
5528 cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h. */
5534
5535int
5536main ()
5537{
5538
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext
5544if { (ac_try="$ac_compile"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005556 (exit $ac_status); } &&
5557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5558 { (case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_try") 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; } &&
5567 { ac_try='test -s conftest.$ac_objext'
5568 { (case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571esac
5572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_try") 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005577 ac_cv_prog_cc_g=yes
5578else
5579 echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582
5583fi
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586fi
5587
5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589fi
5590
5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_c_werror_flag=$ac_save_c_werror_flag
5593fi
5594{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5595echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5596if test "$ac_test_CFLAGS" = set; then
5597 CFLAGS=$ac_save_CFLAGS
5598elif test $ac_cv_prog_cc_g = yes; then
5599 if test "$GCC" = yes; then
5600 CFLAGS="-g -O2"
5601 else
5602 CFLAGS="-g"
5603 fi
5604else
5605 if test "$GCC" = yes; then
5606 CFLAGS="-O2"
5607 else
5608 CFLAGS=
5609 fi
5610fi
5611{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5612echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5613if test "${ac_cv_prog_cc_c89+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616 ac_cv_prog_cc_c89=no
5617ac_save_CC=$CC
5618cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h. */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h. */
5624#include <stdarg.h>
5625#include <stdio.h>
5626#include <sys/types.h>
5627#include <sys/stat.h>
5628/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5629struct buf { int x; };
5630FILE * (*rcsopen) (struct buf *, struct stat *, int);
5631static char *e (p, i)
5632 char **p;
5633 int i;
5634{
5635 return p[i];
5636}
5637static char *f (char * (*g) (char **, int), char **p, ...)
5638{
5639 char *s;
5640 va_list v;
5641 va_start (v,p);
5642 s = g (p, va_arg (v,int));
5643 va_end (v);
5644 return s;
5645}
5646
5647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5648 function prototypes and stuff, but not '\xHH' hex character constants.
5649 These don't provoke an error unfortunately, instead are silently treated
5650 as 'x'. The following induces an error, until -std is added to get
5651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5652 array size at least. It's necessary to write '\x00'==0 to get something
5653 that's true only with -std. */
5654int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5655
5656/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5657 inside strings and character constants. */
5658#define FOO(x) 'x'
5659int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5660
5661int test (int i, double x);
5662struct s1 {int (*f) (int a);};
5663struct s2 {int (*f) (double a);};
5664int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5665int argc;
5666char **argv;
5667int
5668main ()
5669{
5670return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5677do
5678 CC="$ac_save_CC $ac_arg"
5679 rm -f conftest.$ac_objext
5680if { (ac_try="$ac_compile"
5681case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005713 ac_cv_prog_cc_c89=$ac_arg
5714else
5715 echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718
5719fi
5720
5721rm -f core conftest.err conftest.$ac_objext
5722 test "x$ac_cv_prog_cc_c89" != "xno" && break
5723done
5724rm -f conftest.$ac_ext
5725CC=$ac_save_CC
5726
5727fi
5728# AC_CACHE_VAL
5729case "x$ac_cv_prog_cc_c89" in
5730 x)
5731 { echo "$as_me:$LINENO: result: none needed" >&5
5732echo "${ECHO_T}none needed" >&6; } ;;
5733 xno)
5734 { echo "$as_me:$LINENO: result: unsupported" >&5
5735echo "${ECHO_T}unsupported" >&6; } ;;
5736 *)
5737 CC="$CC $ac_cv_prog_cc_c89"
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5739echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5740esac
5741
5742
5743ac_ext=c
5744ac_cpp='$CPP $CPPFLAGS'
5745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748
5749ac_ext=cpp
5750ac_cpp='$CXXCPP $CPPFLAGS'
5751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5754if test -z "$CXX"; then
5755 if test -n "$CCC"; then
5756 CXX=$CCC
5757 else
5758 if test -n "$ac_tool_prefix"; then
5759 for ac_prog in g++
5760 do
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765if test "${ac_cv_prog_CXX+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 if test -n "$CXX"; then
5769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782done
5783done
5784IFS=$as_save_IFS
5785
5786fi
5787fi
5788CXX=$ac_cv_prog_CXX
5789if test -n "$CXX"; then
5790 { echo "$as_me:$LINENO: result: $CXX" >&5
5791echo "${ECHO_T}$CXX" >&6; }
5792else
5793 { echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6; }
5795fi
5796
5797
5798 test -n "$CXX" && break
5799 done
5800fi
5801if test -z "$CXX"; then
5802 ac_ct_CXX=$CXX
5803 for ac_prog in g++
5804do
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806set dummy $ac_prog; ac_word=$2
5807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 if test -n "$ac_ct_CXX"; then
5813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5814else
5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816for as_dir in $PATH
5817do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005822 ac_cv_prog_ac_ct_CXX="$ac_prog"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826done
5827done
5828IFS=$as_save_IFS
5829
5830fi
5831fi
5832ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5833if test -n "$ac_ct_CXX"; then
5834 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5835echo "${ECHO_T}$ac_ct_CXX" >&6; }
5836else
5837 { echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6; }
5839fi
5840
5841
5842 test -n "$ac_ct_CXX" && break
5843done
5844
5845 if test "x$ac_ct_CXX" = x; then
5846 CXX="g++"
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849yes:)
5850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851whose name does not start with the host triplet. If you think this
5852configuration is useful to you, please write to autoconf@gnu.org." >&5
5853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854whose name does not start with the host triplet. If you think this
5855configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5856ac_tool_warned=yes ;;
5857esac
5858 CXX=$ac_ct_CXX
5859 fi
5860fi
5861
5862 fi
5863fi
5864# Provide some information about the compiler.
5865echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5866ac_compiler=`set X $ac_compile; echo $2`
5867{ (ac_try="$ac_compiler --version >&5"
5868case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compiler --version >&5") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }
5877{ (ac_try="$ac_compiler -v >&5"
5878case "(($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_compiler -v >&5") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }
5887{ (ac_try="$ac_compiler -V >&5"
5888case "(($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_compiler -V >&5") 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }
5897
5898{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5899echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5900if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
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#ifndef __GNUC__
5914 choke me
5915#endif
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest.$ac_objext
5922if { (ac_try="$ac_compile"
5923case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005955 ac_compiler_gnu=yes
5956else
5957 echo "$as_me: failed program was:" >&5
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ac_compiler_gnu=no
5961fi
5962
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5965
5966fi
5967{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5968echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5969GXX=`test $ac_compiler_gnu = yes && echo yes`
5970ac_test_CXXFLAGS=${CXXFLAGS+set}
5971ac_save_CXXFLAGS=$CXXFLAGS
5972{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5973echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5974if test "${ac_cv_prog_cxx_g+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976else
5977 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5978 ac_cxx_werror_flag=yes
5979 ac_cv_prog_cxx_g=no
5980 CXXFLAGS="-g"
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987
5988int
5989main ()
5990{
5991
5992 ;
5993 return 0;
5994}
5995_ACEOF
5996rm -f conftest.$ac_objext
5997if { (ac_try="$ac_compile"
5998case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001esac
6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6011 { (case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_try") 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest.$ac_objext'
6021 { (case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006030 ac_cv_prog_cxx_g=yes
6031else
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 CXXFLAGS=""
6036 cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042
6043int
6044main ()
6045{
6046
6047 ;
6048 return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext
6052if { (ac_try="$ac_compile"
6053case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056esac
6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006085 :
6086else
6087 echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6091 CXXFLAGS="-g"
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098
6099int
6100main ()
6101{
6102
6103 ;
6104 return 0;
6105}
6106_ACEOF
6107rm -f conftest.$ac_objext
6108if { (ac_try="$ac_compile"
6109case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112esac
6113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6122 { (case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125esac
6126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_try") 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006141 ac_cv_prog_cxx_g=yes
6142else
6143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146
6147fi
6148
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150fi
6151
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153fi
6154
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6157fi
6158{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6159echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6160if test "$ac_test_CXXFLAGS" = set; then
6161 CXXFLAGS=$ac_save_CXXFLAGS
6162elif test $ac_cv_prog_cxx_g = yes; then
6163 if test "$GXX" = yes; then
6164 CXXFLAGS="-g -O2"
6165 else
6166 CXXFLAGS="-g"
6167 fi
6168else
6169 if test "$GXX" = yes; then
6170 CXXFLAGS="-O2"
6171 else
6172 CXXFLAGS=
6173 fi
6174fi
6175ac_ext=c
6176ac_cpp='$CPP $CPPFLAGS'
6177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180
6181{ echo "$as_me:$LINENO: checking " >&5
6182echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183if test "${ac_cv_has_flex+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 for ac_prog in flex lex
6187do
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189set dummy $ac_prog; ac_word=$2
6190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192if test "${ac_cv_prog_LEX+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 if test -n "$LEX"; then
6196 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006205 ac_cv_prog_LEX="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215LEX=$ac_cv_prog_LEX
6216if test -n "$LEX"; then
6217 { echo "$as_me:$LINENO: result: $LEX" >&5
6218echo "${ECHO_T}$LEX" >&6; }
6219else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
6222fi
6223
6224
6225 test -n "$LEX" && break
6226done
6227test -n "$LEX" || LEX=":"
6228
Tanya Lattnercf067672008-01-17 05:57:22 +00006229if test -z "$LEXLIB"
6230then
6231 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6232echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6233if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236 ac_check_lib_save_LIBS=$LIBS
6237LIBS="-lfl $LIBS"
6238cat >conftest.$ac_ext <<_ACEOF
6239/* confdefs.h. */
6240_ACEOF
6241cat confdefs.h >>conftest.$ac_ext
6242cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h. */
6244
6245/* Override any GCC internal prototype to avoid an error.
6246 Use char because int might match the return type of a GCC
6247 builtin and then its argument prototype would still apply. */
6248#ifdef __cplusplus
6249extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006250#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006251char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006252int
Tanya Lattnercf067672008-01-17 05:57:22 +00006253main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006254{
Tanya Lattnercf067672008-01-17 05:57:22 +00006255return yywrap ();
6256 ;
6257 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006258}
Reid Spencera773bd52006-08-04 18:18:08 +00006259_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006260rm -f conftest.$ac_objext conftest$ac_exeext
6261if { (ac_try="$ac_link"
6262case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_link") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6275 { (case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_try") 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_try") 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_lib_fl_yywrap=yes
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_cv_lib_fl_yywrap=no
6300fi
6301
6302rm -f core conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6304LIBS=$ac_check_lib_save_LIBS
6305fi
6306{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6307echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6308if test $ac_cv_lib_fl_yywrap = yes; then
6309 LEXLIB="-lfl"
6310else
6311 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6312echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6313if test "${ac_cv_lib_l_yywrap+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 ac_check_lib_save_LIBS=$LIBS
6317LIBS="-ll $LIBS"
6318cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
6324
6325/* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6328#ifdef __cplusplus
6329extern "C"
6330#endif
6331char yywrap ();
6332int
6333main ()
6334{
6335return yywrap ();
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext conftest$ac_exeext
6341if { (ac_try="$ac_link"
6342case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_link") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358esac
6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_lib_l_yywrap=yes
6375else
6376 echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ac_cv_lib_l_yywrap=no
6380fi
6381
6382rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384LIBS=$ac_check_lib_save_LIBS
6385fi
6386{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6387echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6388if test $ac_cv_lib_l_yywrap = yes; then
6389 LEXLIB="-ll"
6390fi
6391
6392fi
6393
6394fi
6395
6396if test "x$LEX" != "x:"; then
6397 { echo "$as_me:$LINENO: checking lex output file root" >&5
6398echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_lex_root+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402 # The minimal lex program is just a single line: %%. But some broken lexes
6403# (Solaris, I think it was) want two %% lines, so accommodate them.
6404cat >conftest.l <<_ACEOF
6405%%
6406%%
6407_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006408{ (ac_try="$LEX conftest.l"
6409case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412esac
6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$LEX conftest.l") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }
6418if test -f lex.yy.c; then
6419 ac_cv_prog_lex_root=lex.yy
6420elif test -f lexyy.c; then
6421 ac_cv_prog_lex_root=lexyy
6422else
6423 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6424echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6425 { (exit 1); exit 1; }; }
6426fi
6427fi
6428{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6429echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006430rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006431LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6432
Scott Michel96dcd2b2007-12-05 21:24:02 +00006433{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6434echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6435if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006439# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006440# not all implementations provide the %pointer and %array declarations.
6441ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006442echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006443ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006444LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006445cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006446`cat $LEX_OUTPUT_ROOT.c`
6447_ACEOF
6448rm -f conftest.$ac_objext conftest$ac_exeext
6449if { (ac_try="$ac_link"
6450case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006455 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006456 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006461 (exit $ac_status); } &&
6462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
6467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006482 ac_cv_prog_lex_yytext_pointer=yes
6483else
6484 echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487
6488fi
6489
Tanya Lattnercf067672008-01-17 05:57:22 +00006490rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006491 conftest$ac_exeext conftest.$ac_ext
6492LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006493rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006494
6495fi
6496{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6497echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6498if test $ac_cv_prog_lex_yytext_pointer = yes; then
6499
6500cat >>confdefs.h <<\_ACEOF
6501#define YYTEXT_POINTER 1
6502_ACEOF
6503
6504fi
6505
6506fi
6507
6508fi
6509{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6510echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6511if test "$LEX" != "flex"; then
6512 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6513echo "$as_me: error: flex not found but required" >&2;}
6514 { (exit 1); exit 1; }; }
6515else
6516 FLEX=flex
6517
6518fi
6519
6520{ echo "$as_me:$LINENO: checking " >&5
6521echo $ECHO_N "checking ... $ECHO_C" >&6; }
6522if test "${llvm_cv_has_bison+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 for ac_prog in 'bison -y' byacc
6526do
6527 # Extract the first word of "$ac_prog", so it can be a program name with args.
6528set dummy $ac_prog; ac_word=$2
6529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531if test "${ac_cv_prog_YACC+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 if test -n "$YACC"; then
6535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6536else
6537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538for as_dir in $PATH
6539do
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006544 ac_cv_prog_YACC="$ac_prog"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6547 fi
6548done
6549done
6550IFS=$as_save_IFS
6551
6552fi
6553fi
6554YACC=$ac_cv_prog_YACC
6555if test -n "$YACC"; then
6556 { echo "$as_me:$LINENO: result: $YACC" >&5
6557echo "${ECHO_T}$YACC" >&6; }
6558else
6559 { echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6; }
6561fi
6562
6563
6564 test -n "$YACC" && break
6565done
6566test -n "$YACC" || YACC="yacc"
6567
6568fi
6569{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6570echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6571if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006572
6573 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6574echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006575else
6576 BISON=bison
6577
6578fi
6579
6580{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6581echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6582if test "${lt_cv_path_NM+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 if test -n "$NM"; then
6586 # Let the user override the test.
6587 lt_cv_path_NM="$NM"
6588else
6589 lt_nm_to_check="${ac_tool_prefix}nm"
6590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6591 lt_nm_to_check="$lt_nm_to_check nm"
6592 fi
6593 for lt_tmp_nm in $lt_nm_to_check; do
6594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6596 IFS="$lt_save_ifs"
6597 test -z "$ac_dir" && ac_dir=.
6598 tmp_nm="$ac_dir/$lt_tmp_nm"
6599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6600 # Check to see if the nm accepts a BSD-compat flag.
6601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6602 # nm: unknown option "B" ignored
6603 # Tru64's nm complains that /dev/null is an invalid object file
6604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6605 */dev/null* | *'Invalid file or object type'*)
6606 lt_cv_path_NM="$tmp_nm -B"
6607 break
6608 ;;
6609 *)
6610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6611 */dev/null*)
6612 lt_cv_path_NM="$tmp_nm -p"
6613 break
6614 ;;
6615 *)
6616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6617 continue # so that we can try to find one that supports BSD flags
6618 ;;
6619 esac
6620 ;;
6621 esac
6622 fi
6623 done
6624 IFS="$lt_save_ifs"
6625 done
6626 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6627fi
6628fi
6629{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6630echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6631NM="$lt_cv_path_NM"
6632
6633
6634
6635{ echo "$as_me:$LINENO: checking for GNU make" >&5
6636echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6637if test "${llvm_cv_gnu_make_command+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 llvm_cv_gnu_make_command=''
6641 for a in "$MAKE" make gmake gnumake ; do
6642 if test -z "$a" ; then continue ; fi ;
6643 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6644 then
6645 llvm_cv_gnu_make_command=$a ;
6646 break;
6647 fi
6648 done
6649fi
6650{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6651echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6652 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6653 ifGNUmake='' ;
6654 else
6655 ifGNUmake='#' ;
6656 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6657echo "${ECHO_T}\"Not found\"" >&6; };
6658 fi
6659
6660
6661{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6662echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6663LN_S=$as_ln_s
6664if test "$LN_S" = "ln -s"; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6; }
6667else
6668 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6669echo "${ECHO_T}no, using $LN_S" >&6; }
6670fi
6671
6672# Extract the first word of "cmp", so it can be a program name with args.
6673set dummy cmp; ac_word=$2
6674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676if test "${ac_cv_path_CMP+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678else
6679 case $CMP in
6680 [\\/]* | ?:[\\/]*)
6681 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6682 ;;
6683 *)
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006691 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695done
6696done
6697IFS=$as_save_IFS
6698
6699 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6700 ;;
6701esac
6702fi
6703CMP=$ac_cv_path_CMP
6704if test -n "$CMP"; then
6705 { echo "$as_me:$LINENO: result: $CMP" >&5
6706echo "${ECHO_T}$CMP" >&6; }
6707else
6708 { echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6; }
6710fi
6711
6712
6713# Extract the first word of "cp", so it can be a program name with args.
6714set dummy cp; ac_word=$2
6715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717if test "${ac_cv_path_CP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720 case $CP in
6721 [\\/]* | ?:[\\/]*)
6722 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6723 ;;
6724 *)
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006732 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737done
6738IFS=$as_save_IFS
6739
6740 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6741 ;;
6742esac
6743fi
6744CP=$ac_cv_path_CP
6745if test -n "$CP"; then
6746 { echo "$as_me:$LINENO: result: $CP" >&5
6747echo "${ECHO_T}$CP" >&6; }
6748else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6; }
6751fi
6752
6753
6754# Extract the first word of "date", so it can be a program name with args.
6755set dummy date; ac_word=$2
6756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758if test "${ac_cv_path_DATE+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 case $DATE in
6762 [\\/]* | ?:[\\/]*)
6763 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6764 ;;
6765 *)
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006773 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778done
6779IFS=$as_save_IFS
6780
6781 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6782 ;;
6783esac
6784fi
6785DATE=$ac_cv_path_DATE
6786if test -n "$DATE"; then
6787 { echo "$as_me:$LINENO: result: $DATE" >&5
6788echo "${ECHO_T}$DATE" >&6; }
6789else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
6792fi
6793
6794
6795# Extract the first word of "find", so it can be a program name with args.
6796set dummy find; ac_word=$2
6797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799if test "${ac_cv_path_FIND+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802 case $FIND in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6805 ;;
6806 *)
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006814 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
6820IFS=$as_save_IFS
6821
6822 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6823 ;;
6824esac
6825fi
6826FIND=$ac_cv_path_FIND
6827if test -n "$FIND"; then
6828 { echo "$as_me:$LINENO: result: $FIND" >&5
6829echo "${ECHO_T}$FIND" >&6; }
6830else
6831 { echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6; }
6833fi
6834
6835
6836# Extract the first word of "grep", so it can be a program name with args.
6837set dummy grep; ac_word=$2
6838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840if test "${ac_cv_path_GREP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842else
6843 case $GREP in
6844 [\\/]* | ?:[\\/]*)
6845 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6846 ;;
6847 *)
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006855 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859done
6860done
6861IFS=$as_save_IFS
6862
6863 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6864 ;;
6865esac
6866fi
6867GREP=$ac_cv_path_GREP
6868if test -n "$GREP"; then
6869 { echo "$as_me:$LINENO: result: $GREP" >&5
6870echo "${ECHO_T}$GREP" >&6; }
6871else
6872 { echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6; }
6874fi
6875
6876
6877# Extract the first word of "mkdir", so it can be a program name with args.
6878set dummy mkdir; ac_word=$2
6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_MKDIR+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 case $MKDIR in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006896 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
6902IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6905 ;;
6906esac
6907fi
6908MKDIR=$ac_cv_path_MKDIR
6909if test -n "$MKDIR"; then
6910 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6911echo "${ECHO_T}$MKDIR" >&6; }
6912else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
6915fi
6916
6917
6918# Extract the first word of "mv", so it can be a program name with args.
6919set dummy mv; ac_word=$2
6920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922if test "${ac_cv_path_MV+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924else
6925 case $MV in
6926 [\\/]* | ?:[\\/]*)
6927 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6928 ;;
6929 *)
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006937 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941done
6942done
6943IFS=$as_save_IFS
6944
6945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6946 ;;
6947esac
6948fi
6949MV=$ac_cv_path_MV
6950if test -n "$MV"; then
6951 { echo "$as_me:$LINENO: result: $MV" >&5
6952echo "${ECHO_T}$MV" >&6; }
6953else
6954 { echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6; }
6956fi
6957
6958
6959if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964if test "${ac_cv_prog_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 if test -n "$RANLIB"; then
6968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987RANLIB=$ac_cv_prog_RANLIB
6988if test -n "$RANLIB"; then
6989 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6990echo "${ECHO_T}$RANLIB" >&6; }
6991else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_RANLIB"; then
6999 ac_ct_RANLIB=$RANLIB
7000 # Extract the first word of "ranlib", so it can be a program name with args.
7001set dummy ranlib; ac_word=$2
7002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 if test -n "$ac_ct_RANLIB"; then
7008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007017 ac_cv_prog_ac_ct_RANLIB="ranlib"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028if test -n "$ac_ct_RANLIB"; then
7029 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7031else
7032 { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
7034fi
7035
7036 if test "x$ac_ct_RANLIB" = x; then
7037 RANLIB=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7042whose name does not start with the host triplet. If you think this
7043configuration is useful to you, please write to autoconf@gnu.org." >&5
7044echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7045whose name does not start with the host triplet. If you think this
7046configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049 RANLIB=$ac_ct_RANLIB
7050 fi
7051else
7052 RANLIB="$ac_cv_prog_RANLIB"
7053fi
7054
7055# Extract the first word of "rm", so it can be a program name with args.
7056set dummy rm; ac_word=$2
7057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059if test "${ac_cv_path_RM+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062 case $RM in
7063 [\\/]* | ?:[\\/]*)
7064 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7065 ;;
7066 *)
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007074 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078done
7079done
7080IFS=$as_save_IFS
7081
7082 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7083 ;;
7084esac
7085fi
7086RM=$ac_cv_path_RM
7087if test -n "$RM"; then
7088 { echo "$as_me:$LINENO: result: $RM" >&5
7089echo "${ECHO_T}$RM" >&6; }
7090else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
7093fi
7094
7095
7096# Extract the first word of "sed", so it can be a program name with args.
7097set dummy sed; ac_word=$2
7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_SED+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 case $SED in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007115 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7124 ;;
7125esac
7126fi
7127SED=$ac_cv_path_SED
7128if test -n "$SED"; then
7129 { echo "$as_me:$LINENO: result: $SED" >&5
7130echo "${ECHO_T}$SED" >&6; }
7131else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134fi
7135
7136
7137# Extract the first word of "tar", so it can be a program name with args.
7138set dummy tar; ac_word=$2
7139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_path_TAR+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 case $TAR in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7147 ;;
7148 *)
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007156 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161done
7162IFS=$as_save_IFS
7163
7164 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7165 ;;
7166esac
7167fi
7168TAR=$ac_cv_path_TAR
7169if test -n "$TAR"; then
7170 { echo "$as_me:$LINENO: result: $TAR" >&5
7171echo "${ECHO_T}$TAR" >&6; }
7172else
7173 { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
7175fi
7176
7177
7178# Extract the first word of "pwd", so it can be a program name with args.
7179set dummy pwd; ac_word=$2
7180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_BINPWD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185 case $BINPWD in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007197 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202done
7203IFS=$as_save_IFS
7204
7205 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7206 ;;
7207esac
7208fi
7209BINPWD=$ac_cv_path_BINPWD
7210if test -n "$BINPWD"; then
7211 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7212echo "${ECHO_T}$BINPWD" >&6; }
7213else
7214 { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
7216fi
7217
7218
7219
7220# Extract the first word of "Graphviz", so it can be a program name with args.
7221set dummy Graphviz; ac_word=$2
7222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 case $GRAPHVIZ in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007239 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245IFS=$as_save_IFS
7246
7247 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7248 ;;
7249esac
7250fi
7251GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7252if test -n "$GRAPHVIZ"; then
7253 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7254echo "${ECHO_T}$GRAPHVIZ" >&6; }
7255else
7256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
7258fi
7259
7260
7261if test "$GRAPHVIZ" != "echo Graphviz" ; then
7262
7263cat >>confdefs.h <<\_ACEOF
7264#define HAVE_GRAPHVIZ 1
7265_ACEOF
7266
Jeff Cohen28783c32007-01-12 18:22:38 +00007267 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007268 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7269 fi
7270
7271cat >>confdefs.h <<_ACEOF
7272#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7273_ACEOF
7274
7275fi
7276# Extract the first word of "dot", so it can be a program name with args.
7277set dummy dot; ac_word=$2
7278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280if test "${ac_cv_path_DOT+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282else
7283 case $DOT in
7284 [\\/]* | ?:[\\/]*)
7285 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7286 ;;
7287 *)
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007295 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300done
7301IFS=$as_save_IFS
7302
7303 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7304 ;;
7305esac
7306fi
7307DOT=$ac_cv_path_DOT
7308if test -n "$DOT"; then
7309 { echo "$as_me:$LINENO: result: $DOT" >&5
7310echo "${ECHO_T}$DOT" >&6; }
7311else
7312 { echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6; }
7314fi
7315
7316
7317if test "$DOT" != "echo dot" ; then
7318
7319cat >>confdefs.h <<\_ACEOF
7320#define HAVE_DOT 1
7321_ACEOF
7322
Jeff Cohen28783c32007-01-12 18:22:38 +00007323 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007324 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7325 fi
7326
7327cat >>confdefs.h <<_ACEOF
7328#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7329_ACEOF
7330
7331fi
7332for ac_prog in gv gsview32
7333do
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335set dummy $ac_prog; ac_word=$2
7336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338if test "${ac_cv_path_GV+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341 case $GV in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7344 ;;
7345 *)
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007353 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357done
7358done
7359IFS=$as_save_IFS
7360
7361 ;;
7362esac
7363fi
7364GV=$ac_cv_path_GV
7365if test -n "$GV"; then
7366 { echo "$as_me:$LINENO: result: $GV" >&5
7367echo "${ECHO_T}$GV" >&6; }
7368else
7369 { echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6; }
7371fi
7372
7373
7374 test -n "$GV" && break
7375done
7376test -n "$GV" || GV="echo gv"
7377
7378if test "$GV" != "echo gv" ; then
7379
7380cat >>confdefs.h <<\_ACEOF
7381#define HAVE_GV 1
7382_ACEOF
7383
Jeff Cohen28783c32007-01-12 18:22:38 +00007384 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007385 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7386 fi
7387
7388cat >>confdefs.h <<_ACEOF
7389#define LLVM_PATH_GV "$GV${EXEEXT}"
7390_ACEOF
7391
7392fi
7393# Extract the first word of "dotty", so it can be a program name with args.
7394set dummy dotty; ac_word=$2
7395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397if test "${ac_cv_path_DOTTY+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400 case $DOTTY in
7401 [\\/]* | ?:[\\/]*)
7402 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7403 ;;
7404 *)
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007412 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416done
7417done
7418IFS=$as_save_IFS
7419
7420 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7421 ;;
7422esac
7423fi
7424DOTTY=$ac_cv_path_DOTTY
7425if test -n "$DOTTY"; then
7426 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7427echo "${ECHO_T}$DOTTY" >&6; }
7428else
7429 { echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6; }
7431fi
7432
7433
7434if test "$DOTTY" != "echo dotty" ; then
7435
7436cat >>confdefs.h <<\_ACEOF
7437#define HAVE_DOTTY 1
7438_ACEOF
7439
Jeff Cohen28783c32007-01-12 18:22:38 +00007440 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007441 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7442 fi
7443
7444cat >>confdefs.h <<_ACEOF
7445#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7446_ACEOF
7447
7448fi
7449
7450
7451# Extract the first word of "perl", so it can be a program name with args.
7452set dummy perl; ac_word=$2
7453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455if test "${ac_cv_path_PERL+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 case $PERL in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7461 ;;
7462 *)
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007470 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474done
7475done
7476IFS=$as_save_IFS
7477
7478 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7479 ;;
7480esac
7481fi
7482PERL=$ac_cv_path_PERL
7483if test -n "$PERL"; then
7484 { echo "$as_me:$LINENO: result: $PERL" >&5
7485echo "${ECHO_T}$PERL" >&6; }
7486else
7487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
7489fi
7490
7491
7492if test "$PERL" != "none"; then
7493 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7494echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7495 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7496 { echo "$as_me:$LINENO: result: yes" >&5
7497echo "${ECHO_T}yes" >&6; }
7498 else
7499 PERL=none
7500 { echo "$as_me:$LINENO: result: not found" >&5
7501echo "${ECHO_T}not found" >&6; }
7502 fi
7503fi
7504
7505
7506if test x"$PERL" = xnone; then
7507 HAVE_PERL=0
7508
Reid Spencer59807fa2007-05-17 18:11:03 +00007509 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7510echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7511 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007512else
7513 HAVE_PERL=1
7514
7515fi
7516
7517# Find a good install program. We prefer a C program (faster),
7518# so one script is as good as another. But avoid the broken or
7519# incompatible versions:
7520# SysV /etc/install, /usr/sbin/install
7521# SunOS /usr/etc/install
7522# IRIX /sbin/install
7523# AIX /bin/install
7524# AmigaOS /C/install, which installs bootblocks on floppy discs
7525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7528# OS/2's system install, which has a completely different semantic
7529# ./install, which can be erroneously created by make from ./install.sh.
7530{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7531echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7532if test -z "$INSTALL"; then
7533if test "${ac_cv_path_install+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 # Account for people who put trailing slashes in PATH elements.
7542case $as_dir/ in
7543 ./ | .// | /cC/* | \
7544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7545 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7546 /usr/ucb/* ) ;;
7547 *)
7548 # OSF1 and SCO ODT 3.0 have their own names for install.
7549 # Don't use installbsd from OSF since it installs stuff as root
7550 # by default.
7551 for ac_prog in ginstall scoinst install; do
7552 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007554 if test $ac_prog = install &&
7555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7556 # AIX install. It has an incompatible calling convention.
7557 :
7558 elif test $ac_prog = install &&
7559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7560 # program-specific install script used by HP pwplus--don't use.
7561 :
7562 else
7563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7564 break 3
7565 fi
7566 fi
7567 done
7568 done
7569 ;;
7570esac
7571done
7572IFS=$as_save_IFS
7573
7574
7575fi
7576 if test "${ac_cv_path_install+set}" = set; then
7577 INSTALL=$ac_cv_path_install
7578 else
7579 # As a last resort, use the slow shell script. Don't cache a
7580 # value for INSTALL within a source directory, because that will
7581 # break other packages using the cache if that directory is
7582 # removed, or if the value is a relative name.
7583 INSTALL=$ac_install_sh
7584 fi
7585fi
7586{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7587echo "${ECHO_T}$INSTALL" >&6; }
7588
7589# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7590# It thinks the first close brace ends the variable substitution.
7591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7592
7593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7594
7595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7596
7597
7598# Extract the first word of "bzip2", so it can be a program name with args.
7599set dummy bzip2; ac_word=$2
7600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602if test "${ac_cv_path_BZIP2+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 case $BZIP2 in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7608 ;;
7609 *)
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007617 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621done
7622done
7623IFS=$as_save_IFS
7624
Reid Spencera773bd52006-08-04 18:18:08 +00007625 ;;
7626esac
7627fi
7628BZIP2=$ac_cv_path_BZIP2
7629if test -n "$BZIP2"; then
7630 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7631echo "${ECHO_T}$BZIP2" >&6; }
7632else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637
7638# Extract the first word of "doxygen", so it can be a program name with args.
7639set dummy doxygen; ac_word=$2
7640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642if test "${ac_cv_path_DOXYGEN+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644else
7645 case $DOXYGEN in
7646 [\\/]* | ?:[\\/]*)
7647 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7648 ;;
7649 *)
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007657 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662done
7663IFS=$as_save_IFS
7664
Reid Spencera773bd52006-08-04 18:18:08 +00007665 ;;
7666esac
7667fi
7668DOXYGEN=$ac_cv_path_DOXYGEN
7669if test -n "$DOXYGEN"; then
7670 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7671echo "${ECHO_T}$DOXYGEN" >&6; }
7672else
7673 { echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6; }
7675fi
7676
7677
Reid Spencera773bd52006-08-04 18:18:08 +00007678# Extract the first word of "groff", so it can be a program name with args.
7679set dummy groff; ac_word=$2
7680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682if test "${ac_cv_path_GROFF+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685 case $GROFF in
7686 [\\/]* | ?:[\\/]*)
7687 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7688 ;;
7689 *)
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007697 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701done
7702done
7703IFS=$as_save_IFS
7704
Reid Spencera773bd52006-08-04 18:18:08 +00007705 ;;
7706esac
7707fi
7708GROFF=$ac_cv_path_GROFF
7709if test -n "$GROFF"; then
7710 { echo "$as_me:$LINENO: result: $GROFF" >&5
7711echo "${ECHO_T}$GROFF" >&6; }
7712else
7713 { echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6; }
7715fi
7716
7717
7718# Extract the first word of "gzip", so it can be a program name with args.
7719set dummy gzip; ac_word=$2
7720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722if test "${ac_cv_path_GZIP+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725 case $GZIP in
7726 [\\/]* | ?:[\\/]*)
7727 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7728 ;;
7729 *)
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007737 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741done
7742done
7743IFS=$as_save_IFS
7744
Reid Spencera773bd52006-08-04 18:18:08 +00007745 ;;
7746esac
7747fi
7748GZIP=$ac_cv_path_GZIP
7749if test -n "$GZIP"; then
7750 { echo "$as_me:$LINENO: result: $GZIP" >&5
7751echo "${ECHO_T}$GZIP" >&6; }
7752else
7753 { echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6; }
7755fi
7756
7757
7758# Extract the first word of "pod2html", so it can be a program name with args.
7759set dummy pod2html; ac_word=$2
7760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762if test "${ac_cv_path_POD2HTML+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765 case $POD2HTML in
7766 [\\/]* | ?:[\\/]*)
7767 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7768 ;;
7769 *)
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007777 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781done
7782done
7783IFS=$as_save_IFS
7784
Reid Spencera773bd52006-08-04 18:18:08 +00007785 ;;
7786esac
7787fi
7788POD2HTML=$ac_cv_path_POD2HTML
7789if test -n "$POD2HTML"; then
7790 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7791echo "${ECHO_T}$POD2HTML" >&6; }
7792else
7793 { echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6; }
7795fi
7796
7797
7798# Extract the first word of "pod2man", so it can be a program name with args.
7799set dummy pod2man; ac_word=$2
7800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802if test "${ac_cv_path_POD2MAN+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805 case $POD2MAN in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7808 ;;
7809 *)
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007817 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821done
7822done
7823IFS=$as_save_IFS
7824
Reid Spencera773bd52006-08-04 18:18:08 +00007825 ;;
7826esac
7827fi
7828POD2MAN=$ac_cv_path_POD2MAN
7829if test -n "$POD2MAN"; then
7830 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7831echo "${ECHO_T}$POD2MAN" >&6; }
7832else
7833 { echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6; }
7835fi
7836
7837
7838# Extract the first word of "runtest", so it can be a program name with args.
7839set dummy runtest; ac_word=$2
7840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842if test "${ac_cv_path_RUNTEST+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845 case $RUNTEST in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007857 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861done
7862done
7863IFS=$as_save_IFS
7864
Reid Spencera773bd52006-08-04 18:18:08 +00007865 ;;
7866esac
7867fi
7868RUNTEST=$ac_cv_path_RUNTEST
7869if test -n "$RUNTEST"; then
7870 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7871echo "${ECHO_T}$RUNTEST" >&6; }
7872else
7873 { echo "$as_me:$LINENO: result: no" >&5
7874echo "${ECHO_T}no" >&6; }
7875fi
7876
7877
7878
7879no_itcl=true
7880{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7881echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7882
7883# Check whether --with-tclinclude was given.
7884if test "${with_tclinclude+set}" = set; then
7885 withval=$with_tclinclude; with_tclinclude=${withval}
7886else
7887 with_tclinclude=''
7888fi
7889
7890if test "${ac_cv_path_tclsh+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893
7894if test x"${with_tclinclude}" != x ; then
7895 if test -f ${with_tclinclude}/tclsh ; then
7896 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7897 elif test -f ${with_tclinclude}/src/tclsh ; then
7898 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7899 else
7900 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7901echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7902 { (exit 1); exit 1; }; }
7903 fi
7904fi
7905
7906if test x"${ac_cv_path_tclsh}" = x ; then
7907 { echo "$as_me:$LINENO: result: none" >&5
7908echo "${ECHO_T}none" >&6; }
7909 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
7910do
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912set dummy $ac_prog; ac_word=$2
7913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915if test "${ac_cv_path_TCLSH+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 case $TCLSH in
7919 [\\/]* | ?:[\\/]*)
7920 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7921 ;;
7922 *)
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007930 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934done
7935done
7936IFS=$as_save_IFS
7937
7938 ;;
7939esac
7940fi
7941TCLSH=$ac_cv_path_TCLSH
7942if test -n "$TCLSH"; then
7943 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7944echo "${ECHO_T}$TCLSH" >&6; }
7945else
7946 { echo "$as_me:$LINENO: result: no" >&5
7947echo "${ECHO_T}no" >&6; }
7948fi
7949
7950
7951 test -n "$TCLSH" && break
7952done
7953
7954 if test x"${TCLSH}" = x ; then
7955 ac_cv_path_tclsh='';
7956 else
7957 ac_cv_path_tclsh="${TCLSH}";
7958 fi
7959else
7960 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7961echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7962 TCLSH="${ac_cv_path_tclsh}"
7963
7964fi
7965
7966fi
7967
7968# Extract the first word of "zip", so it can be a program name with args.
7969set dummy zip; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_ZIP+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 case $ZIP in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007987 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993IFS=$as_save_IFS
7994
Reid Spencera773bd52006-08-04 18:18:08 +00007995 ;;
7996esac
7997fi
7998ZIP=$ac_cv_path_ZIP
7999if test -n "$ZIP"; then
8000 { echo "$as_me:$LINENO: result: $ZIP" >&5
8001echo "${ECHO_T}$ZIP" >&6; }
8002else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
Gordon Henriksene7072162008-03-07 18:20:01 +00008008for ac_prog in ocamlc.opt ocamlc
8009do
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014if test "${ac_cv_path_OCAMLC+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017 case $OCAMLC in
8018 [\\/]* | ?:[\\/]*)
8019 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8020 ;;
8021 *)
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008029 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033done
8034done
8035IFS=$as_save_IFS
8036
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008037 ;;
8038esac
8039fi
8040OCAMLC=$ac_cv_path_OCAMLC
8041if test -n "$OCAMLC"; then
8042 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8043echo "${ECHO_T}$OCAMLC" >&6; }
8044else
8045 { echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6; }
8047fi
8048
8049
Gordon Henriksene7072162008-03-07 18:20:01 +00008050 test -n "$OCAMLC" && break
8051done
8052
8053for ac_prog in ocamlopt.opt ocamlopt
8054do
8055 # Extract the first word of "$ac_prog", so it can be a program name with args.
8056set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8059if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 case $OCAMLOPT in
8063 [\\/]* | ?:[\\/]*)
8064 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8065 ;;
8066 *)
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068for as_dir in $PATH
8069do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008074 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078done
8079done
8080IFS=$as_save_IFS
8081
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008082 ;;
8083esac
8084fi
8085OCAMLOPT=$ac_cv_path_OCAMLOPT
8086if test -n "$OCAMLOPT"; then
8087 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8088echo "${ECHO_T}$OCAMLOPT" >&6; }
8089else
8090 { echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6; }
8092fi
8093
8094
Gordon Henriksene7072162008-03-07 18:20:01 +00008095 test -n "$OCAMLOPT" && break
8096done
8097
8098for ac_prog in ocamldep.opt ocamldep
8099do
8100 # Extract the first word of "$ac_prog", so it can be a program name with args.
8101set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8104if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 case $OCAMLDEP in
8108 [\\/]* | ?:[\\/]*)
8109 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8110 ;;
8111 *)
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113for as_dir in $PATH
8114do
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008119 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8122 fi
8123done
8124done
8125IFS=$as_save_IFS
8126
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008127 ;;
8128esac
8129fi
8130OCAMLDEP=$ac_cv_path_OCAMLDEP
8131if test -n "$OCAMLDEP"; then
8132 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8133echo "${ECHO_T}$OCAMLDEP" >&6; }
8134else
8135 { echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6; }
8137fi
8138
8139
Gordon Henriksene7072162008-03-07 18:20:01 +00008140 test -n "$OCAMLDEP" && break
8141done
8142
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008143for ac_prog in ocamldoc.opt ocamldoc
8144do
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146set dummy $ac_prog; ac_word=$2
8147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 case $OCAMLDOC in
8153 [\\/]* | ?:[\\/]*)
8154 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8155 ;;
8156 *)
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168done
8169done
8170IFS=$as_save_IFS
8171
8172 ;;
8173esac
8174fi
8175OCAMLDOC=$ac_cv_path_OCAMLDOC
8176if test -n "$OCAMLDOC"; then
8177 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8178echo "${ECHO_T}$OCAMLDOC" >&6; }
8179else
8180 { echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6; }
8182fi
8183
8184
8185 test -n "$OCAMLDOC" && break
8186done
8187
Reid Spencera773bd52006-08-04 18:18:08 +00008188
8189{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8190echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8191if test "${llvm_cv_link_use_r+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 ac_ext=c
8195ac_cpp='$CPP $CPPFLAGS'
8196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200 oldcflags="$CFLAGS"
8201 CFLAGS="$CFLAGS -Wl,-R."
8202 cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208
8209int
8210main ()
8211{
8212int main() { return 0; }
8213 ;
8214 return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (ac_try="$ac_link"
8219case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_link") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_try") 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008251 llvm_cv_link_use_r=yes
8252else
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256 llvm_cv_link_use_r=no
8257fi
8258
Tanya Lattnercf067672008-01-17 05:57:22 +00008259rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008260 conftest$ac_exeext conftest.$ac_ext
8261 CFLAGS="$oldcflags"
8262 ac_ext=c
8263ac_cpp='$CPP $CPPFLAGS'
8264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266ac_compiler_gnu=$ac_cv_c_compiler_gnu
8267
8268
8269fi
8270{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8271echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8272if test "$llvm_cv_link_use_r" = yes ; then
8273
8274cat >>confdefs.h <<\_ACEOF
8275#define HAVE_LINK_R 1
8276_ACEOF
8277
8278 fi
8279
8280
8281
8282
8283{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8284echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8285if test "${ac_cv_c_const+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 cat >conftest.$ac_ext <<_ACEOF
8289/* confdefs.h. */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h. */
8294
8295int
8296main ()
8297{
8298/* FIXME: Include the comments suggested by Paul. */
8299#ifndef __cplusplus
8300 /* Ultrix mips cc rejects this. */
8301 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008302 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008303 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008304 char const *const *ccp;
8305 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008306 /* NEC SVR4.0.2 mips cc rejects this. */
8307 struct point {int x, y;};
8308 static struct point const zero = {0,0};
8309 /* AIX XL C 1.02.0.0 rejects this.
8310 It does not let you subtract one const X* pointer from another in
8311 an arm of an if-expression whose if-part is not a constant
8312 expression */
8313 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008314 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008315 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008316 ++ccp;
8317 p = (char**) ccp;
8318 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008319 { /* SCO 3.2v4 cc rejects this. */
8320 char *t;
8321 char const *s = 0 ? (char *) 0 : (char const *) 0;
8322
8323 *t++ = 0;
8324 if (s) return 0;
8325 }
8326 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8327 int x[] = {25, 17};
8328 const int *foo = &x[0];
8329 ++foo;
8330 }
8331 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8332 typedef const int *iptr;
8333 iptr p = 0;
8334 ++p;
8335 }
8336 { /* AIX XL C 1.02.0.0 rejects this saying
8337 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8338 struct s { int j; const int *ap[3]; };
8339 struct s *b; b->j = 5;
8340 }
8341 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8342 const int foo = 10;
8343 if (!foo) return 0;
8344 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008345 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008346#endif
8347
8348 ;
8349 return 0;
8350}
8351_ACEOF
8352rm -f conftest.$ac_objext
8353if { (ac_try="$ac_compile"
8354case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357esac
8358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008386 ac_cv_c_const=yes
8387else
8388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_cv_c_const=no
8392fi
8393
8394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi
8396{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8397echo "${ECHO_T}$ac_cv_c_const" >&6; }
8398if test $ac_cv_c_const = no; then
8399
8400cat >>confdefs.h <<\_ACEOF
8401#define const
8402_ACEOF
8403
8404fi
8405
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008406
8407
8408
8409
8410
8411ac_header_dirent=no
8412for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8413 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008414{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8415echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418else
8419 cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
8425#include <sys/types.h>
8426#include <$ac_hdr>
8427
8428int
8429main ()
8430{
8431if ((DIR *) 0)
8432return 0;
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008438if { (ac_try="$ac_compile"
8439case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455esac
8456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008471 eval "$as_ac_Header=yes"
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
Reid Spencera773bd52006-08-04 18:18:08 +00008476 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008477fi
Reid Spencera773bd52006-08-04 18:18:08 +00008478
8479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008480fi
Reid Spencera773bd52006-08-04 18:18:08 +00008481ac_res=`eval echo '${'$as_ac_Header'}'`
8482 { echo "$as_me:$LINENO: result: $ac_res" >&5
8483echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008484if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h <<_ACEOF
8486#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8487_ACEOF
8488
8489ac_header_dirent=$ac_hdr; break
8490fi
8491
8492done
8493# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8494if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008495 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8496echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008497if test "${ac_cv_search_opendir+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008501cat >conftest.$ac_ext <<_ACEOF
8502/* confdefs.h. */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h. */
8507
Reid Spencera773bd52006-08-04 18:18:08 +00008508/* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008511#ifdef __cplusplus
8512extern "C"
8513#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008514char opendir ();
8515int
8516main ()
8517{
Reid Spencera773bd52006-08-04 18:18:08 +00008518return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008519 ;
8520 return 0;
8521}
8522_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008523for ac_lib in '' dir; do
8524 if test -z "$ac_lib"; then
8525 ac_res="none required"
8526 else
8527 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008529 fi
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531if { (ac_try="$ac_link"
8532case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535esac
8536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558esac
8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008564 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008565else
8566 echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008569
8570fi
8571
Tanya Lattnercf067672008-01-17 05:57:22 +00008572rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008573 conftest$ac_exeext
8574 if test "${ac_cv_search_opendir+set}" = set; then
8575 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008576fi
John Criswell7a73b802003-06-30 21:59:07 +00008577done
Reid Spencera773bd52006-08-04 18:18:08 +00008578if test "${ac_cv_search_opendir+set}" = set; then
8579 :
8580else
8581 ac_cv_search_opendir=no
8582fi
8583rm conftest.$ac_ext
8584LIBS=$ac_func_search_save_LIBS
8585fi
8586{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8587echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8588ac_res=$ac_cv_search_opendir
8589if test "$ac_res" != no; then
8590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008591
Reid Spencera773bd52006-08-04 18:18:08 +00008592fi
8593
8594else
8595 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8596echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8597if test "${ac_cv_search_opendir+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599else
8600 ac_func_search_save_LIBS=$LIBS
8601cat >conftest.$ac_ext <<_ACEOF
8602/* confdefs.h. */
8603_ACEOF
8604cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h. */
8607
8608/* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8611#ifdef __cplusplus
8612extern "C"
8613#endif
8614char opendir ();
8615int
8616main ()
8617{
8618return opendir ();
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623for ac_lib in '' x; do
8624 if test -z "$ac_lib"; then
8625 ac_res="none required"
8626 else
8627 ac_res=-l$ac_lib
8628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8629 fi
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631if { (ac_try="$ac_link"
8632case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_link") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648esac
8649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_try") 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658esac
8659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_try") 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008664 ac_cv_search_opendir=$ac_res
8665else
8666 echo "$as_me: failed program was:" >&5
8667sed 's/^/| /' conftest.$ac_ext >&5
8668
8669
8670fi
8671
Tanya Lattnercf067672008-01-17 05:57:22 +00008672rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008673 conftest$ac_exeext
8674 if test "${ac_cv_search_opendir+set}" = set; then
8675 break
8676fi
8677done
8678if test "${ac_cv_search_opendir+set}" = set; then
8679 :
8680else
8681 ac_cv_search_opendir=no
8682fi
8683rm conftest.$ac_ext
8684LIBS=$ac_func_search_save_LIBS
8685fi
8686{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8687echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8688ac_res=$ac_cv_search_opendir
8689if test "$ac_res" != no; then
8690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8691
8692fi
8693
8694fi
John Criswell7a73b802003-06-30 21:59:07 +00008695
8696
8697for ac_header in dlfcn.h
8698do
8699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008704 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008705fi
Reid Spencera773bd52006-08-04 18:18:08 +00008706ac_res=`eval echo '${'$as_ac_Header'}'`
8707 { echo "$as_me:$LINENO: result: $ac_res" >&5
8708echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008709else
Brian Gaeke0a621332004-09-08 20:38:05 +00008710 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008713cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008719$ac_includes_default
8720#include <$ac_header>
8721_ACEOF
8722rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008723if { (ac_try="$ac_compile"
8724case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727esac
8728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008730 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8737 { (case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
8741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_try") 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; } &&
8746 { ac_try='test -s conftest.$ac_objext'
8747 { (case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750esac
8751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_try") 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008756 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008757else
8758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008759sed 's/^/| /' conftest.$ac_ext >&5
8760
Reid Spencera773bd52006-08-04 18:18:08 +00008761 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008762fi
Reid Spencera773bd52006-08-04 18:18:08 +00008763
8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8766echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008767
8768# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008771cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008772/* confdefs.h. */
8773_ACEOF
8774cat confdefs.h >>conftest.$ac_ext
8775cat >>conftest.$ac_ext <<_ACEOF
8776/* end confdefs.h. */
8777#include <$ac_header>
8778_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008779if { (ac_try="$ac_cpp conftest.$ac_ext"
8780case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783esac
8784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008791 (exit $ac_status); } >/dev/null; then
8792 if test -s conftest.err; then
8793 ac_cpp_err=$ac_c_preproc_warn_flag
8794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8795 else
8796 ac_cpp_err=
8797 fi
8798else
8799 ac_cpp_err=yes
8800fi
8801if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008802 ac_header_preproc=yes
8803else
8804 echo "$as_me: failed program was:" >&5
8805sed 's/^/| /' conftest.$ac_ext >&5
8806
8807 ac_header_preproc=no
8808fi
Reid Spencera773bd52006-08-04 18:18:08 +00008809
Brian Gaeke0a621332004-09-08 20:38:05 +00008810rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008811{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8812echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008813
8814# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8816 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8821 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008822 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008823 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008836 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008837## ----------------------------------- ##
8838## Report this to llvmbugs@cs.uiuc.edu ##
8839## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008840_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008841 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008842 ;;
8843esac
Reid Spencera773bd52006-08-04 18:18:08 +00008844{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008849 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008850fi
Reid Spencera773bd52006-08-04 18:18:08 +00008851ac_res=`eval echo '${'$as_ac_Header'}'`
8852 { echo "$as_me:$LINENO: result: $ac_res" >&5
8853echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008854
8855fi
John Criswell7a73b802003-06-30 21:59:07 +00008856if test `eval echo '${'$as_ac_Header'}'` = yes; then
8857 cat >>confdefs.h <<_ACEOF
8858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8859_ACEOF
8860
8861fi
8862
8863done
8864
Reid Spencera773bd52006-08-04 18:18:08 +00008865# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008867 enableval=$enable_ltdl_install;
8868fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008869
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008870
Duncan Sands1eff7042007-12-10 17:43:13 +00008871
8872
8873if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874 INSTALL_LTDL_TRUE=
8875 INSTALL_LTDL_FALSE='#'
8876else
8877 INSTALL_LTDL_TRUE='#'
8878 INSTALL_LTDL_FALSE=
8879fi
8880
Duncan Sands1eff7042007-12-10 17:43:13 +00008881
8882
8883if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008884 CONVENIENCE_LTDL_TRUE=
8885 CONVENIENCE_LTDL_FALSE='#'
8886else
8887 CONVENIENCE_LTDL_TRUE='#'
8888 CONVENIENCE_LTDL_FALSE=
8889fi
8890
8891
Reid Spencera773bd52006-08-04 18:18:08 +00008892{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8893echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894library_names_spec=
8895libname_spec='lib$name'
8896soname_spec=
8897shrext_cmds=".so"
8898postinstall_cmds=
8899postuninstall_cmds=
8900finish_cmds=
8901finish_eval=
8902shlibpath_var=
8903shlibpath_overrides_runpath=unknown
8904version_type=none
8905dynamic_linker="$host_os ld.so"
8906sys_lib_dlsearch_path_spec="/lib /usr/lib"
8907if test "$GCC" = yes; then
8908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8910 # if the path contains ";" then we assume it to be the separator
8911 # otherwise default to the standard path separator (i.e. ":") - it is
8912 # assumed that no part of a normal pathname contains ";" but that should
8913 # okay in the real world where ";" in dirpaths is itself problematic.
8914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8915 else
8916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8917 fi
8918else
8919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8920fi
8921need_lib_prefix=unknown
8922hardcode_into_libs=no
8923
8924# when you set need_version to no, make sure it does not cause -set_version
8925# flags to be left without arguments
8926need_version=unknown
8927
8928case $host_os in
8929aix3*)
8930 version_type=linux
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8932 shlibpath_var=LIBPATH
8933
8934 # AIX 3 has no versioning support, so we append a major version to the name.
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 ;;
8937
8938aix4* | aix5*)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 hardcode_into_libs=yes
8943 if test "$host_cpu" = ia64; then
8944 # AIX 5 supports IA64
8945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 else
8948 # With GCC up to 2.95.x, collect2 would create an import file
8949 # for dependence libraries. The import file would start with
8950 # the line `#! .'. This would cause the generated library to
8951 # depend on `.', always an invalid library. This was fixed in
8952 # development snapshots of GCC prior to 3.0.
8953 case $host_os in
8954 aix4 | aix4.[01] | aix4.[01].*)
8955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8956 echo ' yes '
8957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8958 :
8959 else
8960 can_build_shared=no
8961 fi
8962 ;;
8963 esac
8964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8965 # soname into executable. Probably we can add versioning support to
8966 # collect2, so additional links can be useful in future.
8967 if test "$aix_use_runtimelinking" = yes; then
8968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8969 # instead of lib<name>.a to let people know that these are not
8970 # typical AIX shared libraries.
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 else
8973 # We preserve .a as extension for shared libraries through AIX4.2
8974 # and later when we are not doing run time linking.
8975 library_names_spec='${libname}${release}.a $libname.a'
8976 soname_spec='${libname}${release}${shared_ext}$major'
8977 fi
8978 shlibpath_var=LIBPATH
8979 fi
8980 ;;
8981
8982amigaos*)
8983 library_names_spec='$libname.ixlibrary $libname.a'
8984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8985 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'
8986 ;;
8987
8988beos*)
8989 library_names_spec='${libname}${shared_ext}'
8990 dynamic_linker="$host_os ld.so"
8991 shlibpath_var=LIBRARY_PATH
8992 ;;
8993
8994bsdi[45]*)
8995 version_type=linux
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9003 # the default ld.so.conf also contains /usr/contrib/lib and
9004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9005 # libtool to hard-code these into programs
9006 ;;
9007
9008cygwin* | mingw* | pw32*)
9009 version_type=windows
9010 shrext_cmds=".dll"
9011 need_version=no
9012 need_lib_prefix=no
9013
9014 case $GCC,$host_os in
9015 yes,cygwin* | yes,mingw* | yes,pw32*)
9016 library_names_spec='$libname.dll.a'
9017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9018 postinstall_cmds='base_file=`basename \${file}`~
9019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9020 dldir=$destdir/`dirname \$dlpath`~
9021 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009022 $install_prog $dir/$dlname \$dldir/$dlname~
9023 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9025 dlpath=$dir/\$dldll~
9026 $rm \$dlpath'
9027 shlibpath_overrides_runpath=yes
9028
9029 case $host_os in
9030 cygwin*)
9031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9033 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9034 ;;
9035 mingw*)
9036 # MinGW DLLs use traditional 'lib' prefix
9037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9040 # It is most probably a Windows format PATH printed by
9041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9042 # path with ; separators, and with drive letters. We can handle the
9043 # drive letters (cygwin fileutils understands them), so leave them,
9044 # especially as we might pass files found there to a mingw objdump,
9045 # which wouldn't understand a cygwinified path. Ahh.
9046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9047 else
9048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9049 fi
9050 ;;
9051 pw32*)
9052 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009053 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 +00009054 ;;
9055 esac
9056 ;;
9057
9058 *)
9059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9060 ;;
9061 esac
9062 dynamic_linker='Win32 ld.exe'
9063 # FIXME: first we should search . and the directory the executable is in
9064 shlibpath_var=PATH
9065 ;;
9066
9067darwin* | rhapsody*)
9068 dynamic_linker="$host_os dyld"
9069 version_type=darwin
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9073 soname_spec='${libname}${release}${major}$shared_ext'
9074 shlibpath_overrides_runpath=yes
9075 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009076 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009077 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9078 if test "$GCC" = yes; then
9079 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"`
9080 else
9081 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9082 fi
9083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9084 ;;
9085
9086dgux*)
9087 version_type=linux
9088 need_lib_prefix=no
9089 need_version=no
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 ;;
9094
9095freebsd1*)
9096 dynamic_linker=no
9097 ;;
9098
9099kfreebsd*-gnu)
9100 version_type=linux
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
9107 hardcode_into_libs=yes
9108 dynamic_linker='GNU ld.so'
9109 ;;
9110
Reid Spencera773bd52006-08-04 18:18:08 +00009111freebsd* | dragonfly*)
9112 # DragonFly does not have aout. When/if they implement a new
9113 # versioning mechanism, adjust this.
9114 if test -x /usr/bin/objformat; then
9115 objformat=`/usr/bin/objformat`
9116 else
9117 case $host_os in
9118 freebsd[123]*) objformat=aout ;;
9119 *) objformat=elf ;;
9120 esac
9121 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009122 version_type=freebsd-$objformat
9123 case $version_type in
9124 freebsd-elf*)
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9126 need_version=no
9127 need_lib_prefix=no
9128 ;;
9129 freebsd-*)
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9131 need_version=yes
9132 ;;
9133 esac
9134 shlibpath_var=LD_LIBRARY_PATH
9135 case $host_os in
9136 freebsd2*)
9137 shlibpath_overrides_runpath=yes
9138 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009139 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9142 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9147 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009148 freebsd*) # from 4.6 on
9149 shlibpath_overrides_runpath=yes
9150 hardcode_into_libs=yes
9151 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009152 esac
9153 ;;
9154
9155gnu*)
9156 version_type=linux
9157 need_lib_prefix=no
9158 need_version=no
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 hardcode_into_libs=yes
9163 ;;
9164
9165hpux9* | hpux10* | hpux11*)
9166 # Give a soname corresponding to the major version so that dld.sl refuses to
9167 # link against other versions.
9168 version_type=sunos
9169 need_lib_prefix=no
9170 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009171 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009172 ia64*)
9173 shrext_cmds='.so'
9174 hardcode_into_libs=yes
9175 dynamic_linker="$host_os dld.so"
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 if test "X$HPUX_IA64_MODE" = X32; then
9181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9182 else
9183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9184 fi
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186 ;;
9187 hppa*64*)
9188 shrext_cmds='.sl'
9189 hardcode_into_libs=yes
9190 dynamic_linker="$host_os dld.sl"
9191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9197 ;;
9198 *)
9199 shrext_cmds='.sl'
9200 dynamic_linker="$host_os dld.sl"
9201 shlibpath_var=SHLIB_PATH
9202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 ;;
9206 esac
9207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9208 postinstall_cmds='chmod 555 $lib'
9209 ;;
9210
Reid Spencera773bd52006-08-04 18:18:08 +00009211interix3*)
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=no
9220 hardcode_into_libs=yes
9221 ;;
9222
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009223irix5* | irix6* | nonstopux*)
9224 case $host_os in
9225 nonstopux*) version_type=nonstopux ;;
9226 *)
9227 if test "$lt_cv_prog_gnu_ld" = yes; then
9228 version_type=linux
9229 else
9230 version_type=irix
9231 fi ;;
9232 esac
9233 need_lib_prefix=no
9234 need_version=no
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9237 case $host_os in
9238 irix5* | nonstopux*)
9239 libsuff= shlibsuff=
9240 ;;
9241 *)
9242 case $LD in # libtool.m4 will add one of these switches to LD
9243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9244 libsuff= shlibsuff= libmagic=32-bit;;
9245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9246 libsuff=32 shlibsuff=N32 libmagic=N32;;
9247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9249 *) libsuff= shlibsuff= libmagic=never-match;;
9250 esac
9251 ;;
9252 esac
9253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9254 shlibpath_overrides_runpath=no
9255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9257 hardcode_into_libs=yes
9258 ;;
9259
9260# No shared lib support for Linux oldld, aout, or coff.
9261linux*oldld* | linux*aout* | linux*coff*)
9262 dynamic_linker=no
9263 ;;
9264
9265# This must be Linux ELF.
9266linux*)
9267 version_type=linux
9268 need_lib_prefix=no
9269 need_version=no
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=no
9275 # This implies no fast_install, which is unacceptable.
9276 # Some rework will be needed to allow for fast_install
9277 # before this can be enabled.
9278 hardcode_into_libs=yes
9279
9280 # Append ld.so.conf contents to the search path
9281 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009282 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 +00009283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9284 fi
9285
9286 # We used to test for /lib/ld.so.1 and disable shared libraries on
9287 # powerpc, because MkLinux only supported shared libraries with the
9288 # GNU dynamic linker. Since this was broken with cross compilers,
9289 # most powerpc-linux boxes support dynamic linking these days and
9290 # people can always --disable-shared, the test was removed, and we
9291 # assume the GNU/Linux dynamic linker is in use.
9292 dynamic_linker='GNU/Linux ld.so'
9293 ;;
9294
9295knetbsd*-gnu)
9296 version_type=linux
9297 need_lib_prefix=no
9298 need_version=no
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9304 dynamic_linker='GNU ld.so'
9305 ;;
9306
9307netbsd*)
9308 version_type=sunos
9309 need_lib_prefix=no
9310 need_version=no
9311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9314 dynamic_linker='NetBSD (a.out) ld.so'
9315 else
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 dynamic_linker='NetBSD ld.elf_so'
9319 fi
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9322 hardcode_into_libs=yes
9323 ;;
9324
9325newsos6)
9326 version_type=linux
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 ;;
9331
9332nto-qnx*)
9333 version_type=linux
9334 need_lib_prefix=no
9335 need_version=no
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 shlibpath_overrides_runpath=yes
9340 ;;
9341
9342openbsd*)
9343 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009344 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009345 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9347 case $host_os in
9348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9349 *) need_version=no ;;
9350 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9355 case $host_os in
9356 openbsd2.[89] | openbsd2.[89].*)
9357 shlibpath_overrides_runpath=no
9358 ;;
9359 *)
9360 shlibpath_overrides_runpath=yes
9361 ;;
9362 esac
9363 else
9364 shlibpath_overrides_runpath=yes
9365 fi
9366 ;;
9367
9368os2*)
9369 libname_spec='$name'
9370 shrext_cmds=".dll"
9371 need_lib_prefix=no
9372 library_names_spec='$libname${shared_ext} $libname.a'
9373 dynamic_linker='OS/2 ld.exe'
9374 shlibpath_var=LIBPATH
9375 ;;
9376
9377osf3* | osf4* | osf5*)
9378 version_type=osf
9379 need_lib_prefix=no
9380 need_version=no
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9386 ;;
9387
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388solaris*)
9389 version_type=linux
9390 need_lib_prefix=no
9391 need_version=no
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9397 # ldd complains unless libraries are executable
9398 postinstall_cmds='chmod +x $lib'
9399 ;;
9400
9401sunos4*)
9402 version_type=sunos
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=yes
9407 if test "$with_gnu_ld" = yes; then
9408 need_lib_prefix=no
9409 fi
9410 need_version=yes
9411 ;;
9412
Reid Spencera773bd52006-08-04 18:18:08 +00009413sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009414 version_type=linux
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 case $host_vendor in
9419 sni)
9420 shlibpath_overrides_runpath=no
9421 need_lib_prefix=no
9422 export_dynamic_flag_spec='${wl}-Blargedynsym'
9423 runpath_var=LD_RUN_PATH
9424 ;;
9425 siemens)
9426 need_lib_prefix=no
9427 ;;
9428 motorola)
9429 need_lib_prefix=no
9430 need_version=no
9431 shlibpath_overrides_runpath=no
9432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9433 ;;
9434 esac
9435 ;;
9436
9437sysv4*MP*)
9438 if test -d /usr/nec ;then
9439 version_type=linux
9440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9441 soname_spec='$libname${shared_ext}.$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 fi
9444 ;;
9445
Reid Spencera773bd52006-08-04 18:18:08 +00009446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9447 version_type=freebsd-elf
9448 need_lib_prefix=no
9449 need_version=no
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 hardcode_into_libs=yes
9454 if test "$with_gnu_ld" = yes; then
9455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9456 shlibpath_overrides_runpath=no
9457 else
9458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9459 shlibpath_overrides_runpath=yes
9460 case $host_os in
9461 sco3.2v5*)
9462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9463 ;;
9464 esac
9465 fi
9466 sys_lib_dlsearch_path_spec='/usr/lib'
9467 ;;
9468
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469uts4*)
9470 version_type=linux
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 ;;
9475
9476*)
9477 dynamic_linker=no
9478 ;;
9479esac
Reid Spencera773bd52006-08-04 18:18:08 +00009480{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9481echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482test "$dynamic_linker" = no && can_build_shared=no
9483
Reid Spencera773bd52006-08-04 18:18:08 +00009484variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9485if test "$GCC" = yes; then
9486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9487fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488
Reid Spencera773bd52006-08-04 18:18:08 +00009489
9490{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9491echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492if test "${libltdl_cv_shlibext+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494else
9495
9496module=yes
9497eval libltdl_cv_shlibext=$shrext_cmds
9498
9499fi
Reid Spencera773bd52006-08-04 18:18:08 +00009500{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9501echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502if test -n "$libltdl_cv_shlibext"; then
9503
9504cat >>confdefs.h <<_ACEOF
9505#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9506_ACEOF
9507
9508fi
9509
9510
Reid Spencera773bd52006-08-04 18:18:08 +00009511{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9512echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513if test "${libltdl_cv_shlibpath_var+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516 libltdl_cv_shlibpath_var="$shlibpath_var"
9517fi
Reid Spencera773bd52006-08-04 18:18:08 +00009518{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9519echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520if test -n "$libltdl_cv_shlibpath_var"; then
9521
9522cat >>confdefs.h <<_ACEOF
9523#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9524_ACEOF
9525
9526fi
9527
9528
Reid Spencera773bd52006-08-04 18:18:08 +00009529{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9530echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009531if test "${libltdl_cv_sys_search_path+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533else
9534 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9535fi
Reid Spencera773bd52006-08-04 18:18:08 +00009536{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9537echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009538if test -n "$libltdl_cv_sys_search_path"; then
9539 sys_search_path=
9540 for dir in $libltdl_cv_sys_search_path; do
9541 if test -z "$sys_search_path"; then
9542 sys_search_path="$dir"
9543 else
9544 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9545 fi
9546 done
9547
9548cat >>confdefs.h <<_ACEOF
9549#define LTDL_SYSSEARCHPATH "$sys_search_path"
9550_ACEOF
9551
9552fi
9553
Reid Spencera773bd52006-08-04 18:18:08 +00009554{ echo "$as_me:$LINENO: checking for objdir" >&5
9555echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009556if test "${libltdl_cv_objdir+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558else
9559 libltdl_cv_objdir="$objdir"
9560 if test -n "$objdir"; then
9561 :
9562 else
9563 rm -f .libs 2>/dev/null
9564 mkdir .libs 2>/dev/null
9565 if test -d .libs; then
9566 libltdl_cv_objdir=.libs
9567 else
9568 # MS-DOS does not allow filenames that begin with a dot.
9569 libltdl_cv_objdir=_libs
9570 fi
9571 rmdir .libs 2>/dev/null
9572 fi
9573
9574fi
Reid Spencera773bd52006-08-04 18:18:08 +00009575{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9576echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577
9578cat >>confdefs.h <<_ACEOF
9579#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9580_ACEOF
9581
9582
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009583
9584
9585
9586
9587# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009588{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9589echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593
9594# These are sane defaults that work on at least a few old systems.
9595# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9596
9597# Character class describing NM global symbol codes.
9598symcode='[BCDEGRST]'
9599
9600# Regexp to match symbols that can be accessed directly from C.
9601sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9602
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603# Transform an extracted symbol line into a proper C declaration
9604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9605
9606# Transform an extracted symbol line into symbol name and symbol address
9607lt_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'"
9608
9609# Define system-specific variables.
9610case $host_os in
9611aix*)
9612 symcode='[BCDT]'
9613 ;;
9614cygwin* | mingw* | pw32*)
9615 symcode='[ABCDGISTW]'
9616 ;;
9617hpux*) # Its linker distinguishes data from code symbols
9618 if test "$host_cpu" = ia64; then
9619 symcode='[ABCDEGRST]'
9620 fi
9621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9622 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'"
9623 ;;
9624linux*)
9625 if test "$host_cpu" = ia64; then
9626 symcode='[ABCDGIRSTW]'
9627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9628 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'"
9629 fi
9630 ;;
9631irix* | nonstopux*)
9632 symcode='[BCDEGRST]'
9633 ;;
9634osf*)
9635 symcode='[BCDEGQRST]'
9636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009637solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638 symcode='[BDRT]'
9639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009640sco3.2v5*)
9641 symcode='[DT]'
9642 ;;
9643sysv4.2uw2*)
9644 symcode='[DT]'
9645 ;;
9646sysv5* | sco5v6* | unixware* | OpenUNIX*)
9647 symcode='[ABDT]'
9648 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649sysv4)
9650 symcode='[DFNSTU]'
9651 ;;
9652esac
9653
9654# Handle CRLF in mingw tool chain
9655opt_cr=
9656case $build_os in
9657mingw*)
9658 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9659 ;;
9660esac
9661
9662# If we're using GNU nm, then use its standard symbol codes.
9663case `$NM -V 2>&1` in
9664*GNU* | *'with BFD'*)
9665 symcode='[ABCDGIRSTW]' ;;
9666esac
9667
9668# Try without a prefix undercore, then with it.
9669for ac_symprfx in "" "_"; do
9670
Reid Spencera773bd52006-08-04 18:18:08 +00009671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9672 symxfrm="\\1 $ac_symprfx\\2 \\2"
9673
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009675 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 +00009676
9677 # Check to see that the pipe works correctly.
9678 pipe_works=no
9679
9680 rm -f conftest*
9681 cat > conftest.$ac_ext <<EOF
9682#ifdef __cplusplus
9683extern "C" {
9684#endif
9685char nm_test_var;
9686void nm_test_func(){}
9687#ifdef __cplusplus
9688}
9689#endif
9690int main(){nm_test_var='a';nm_test_func();return(0);}
9691EOF
9692
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; then
9698 # Now try to grab the symbols.
9699 nlist=conftest.nm
9700 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9701 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && test -s "$nlist"; then
9705 # Try sorting and uniquifying the output.
9706 if sort "$nlist" | uniq > "$nlist"T; then
9707 mv -f "$nlist"T "$nlist"
9708 else
9709 rm -f "$nlist"T
9710 fi
9711
9712 # Make sure that we snagged all the symbols we need.
9713 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9714 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9715 cat <<EOF > conftest.$ac_ext
9716#ifdef __cplusplus
9717extern "C" {
9718#endif
9719
9720EOF
9721 # Now generate the symbol file.
9722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9723
9724 cat <<EOF >> conftest.$ac_ext
9725#if defined (__STDC__) && __STDC__
9726# define lt_ptr_t void *
9727#else
9728# define lt_ptr_t char *
9729# define const
9730#endif
9731
9732/* The mapping between symbol names and symbols. */
9733const struct {
9734 const char *name;
9735 lt_ptr_t address;
9736}
9737lt_preloaded_symbols[] =
9738{
9739EOF
9740 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9741 cat <<\EOF >> conftest.$ac_ext
9742 {0, (lt_ptr_t) 0}
9743};
9744
9745#ifdef __cplusplus
9746}
9747#endif
9748EOF
9749 # Now try linking the two files.
9750 mv conftest.$ac_objext conftstm.$ac_objext
9751 lt_save_LIBS="$LIBS"
9752 lt_save_CFLAGS="$CFLAGS"
9753 LIBS="conftstm.$ac_objext"
9754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9760 pipe_works=yes
9761 fi
9762 LIBS="$lt_save_LIBS"
9763 CFLAGS="$lt_save_CFLAGS"
9764 else
9765 echo "cannot find nm_test_func in $nlist" >&5
9766 fi
9767 else
9768 echo "cannot find nm_test_var in $nlist" >&5
9769 fi
9770 else
9771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9772 fi
9773 else
9774 echo "$progname: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 fi
9777 rm -f conftest* conftst*
9778
9779 # Do not use the global_symbol_pipe unless it works.
9780 if test "$pipe_works" = yes; then
9781 break
9782 else
9783 lt_cv_sys_global_symbol_pipe=
9784 fi
9785done
9786
9787fi
9788
9789if test -z "$lt_cv_sys_global_symbol_pipe"; then
9790 lt_cv_sys_global_symbol_to_cdecl=
9791fi
9792if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009793 { echo "$as_me:$LINENO: result: failed" >&5
9794echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795else
Reid Spencera773bd52006-08-04 18:18:08 +00009796 { echo "$as_me:$LINENO: result: ok" >&5
9797echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798fi
9799
9800
Reid Spencera773bd52006-08-04 18:18:08 +00009801{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9802echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805else
9806 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9807 libltdl_cv_preloaded_symbols=yes
9808 else
9809 libltdl_cv_preloaded_symbols=no
9810 fi
9811
9812fi
Reid Spencera773bd52006-08-04 18:18:08 +00009813{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9814echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9816
9817cat >>confdefs.h <<\_ACEOF
9818#define HAVE_PRELOADED_SYMBOLS 1
9819_ACEOF
9820
9821fi
9822
9823LIBADD_DL=
9824
9825ac_ext=c
9826ac_cpp='$CPP $CPPFLAGS'
9827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9829ac_compiler_gnu=$ac_cv_c_compiler_gnu
9830
9831
Reid Spencera773bd52006-08-04 18:18:08 +00009832{ echo "$as_me:$LINENO: checking for shl_load" >&5
9833echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834if test "${ac_cv_func_shl_load+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
9843/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9845#define shl_load innocuous_shl_load
9846
9847/* System header to define __stub macros and hopefully few prototypes,
9848 which can conflict with char shl_load (); below.
9849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9850 <limits.h> exists even on freestanding compilers. */
9851
9852#ifdef __STDC__
9853# include <limits.h>
9854#else
9855# include <assert.h>
9856#endif
9857
9858#undef shl_load
9859
Reid Spencera773bd52006-08-04 18:18:08 +00009860/* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863#ifdef __cplusplus
9864extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866char shl_load ();
9867/* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009870#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872#endif
9873
9874int
9875main ()
9876{
Reid Spencera773bd52006-08-04 18:18:08 +00009877return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878 ;
9879 return 0;
9880}
9881_ACEOF
9882rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009883if { (ac_try="$ac_link"
9884case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916 ac_cv_func_shl_load=yes
9917else
9918 echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
Reid Spencera773bd52006-08-04 18:18:08 +00009921 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009922fi
Reid Spencera773bd52006-08-04 18:18:08 +00009923
Tanya Lattnercf067672008-01-17 05:57:22 +00009924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925 conftest$ac_exeext conftest.$ac_ext
9926fi
Reid Spencera773bd52006-08-04 18:18:08 +00009927{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9928echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929if test $ac_cv_func_shl_load = yes; then
9930
9931cat >>confdefs.h <<\_ACEOF
9932#define HAVE_SHL_LOAD 1
9933_ACEOF
9934
9935else
Reid Spencera773bd52006-08-04 18:18:08 +00009936 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9937echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941 ac_check_lib_save_LIBS=$LIBS
9942LIBS="-ldld $LIBS"
9943cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h. */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h. */
9949
Reid Spencera773bd52006-08-04 18:18:08 +00009950/* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953#ifdef __cplusplus
9954extern "C"
9955#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956char shl_load ();
9957int
9958main ()
9959{
Reid Spencera773bd52006-08-04 18:18:08 +00009960return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961 ;
9962 return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009966if { (ac_try="$ac_link"
9967case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970esac
9971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993esac
9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999 ac_cv_lib_dld_shl_load=yes
10000else
10001 echo "$as_me: failed program was:" >&5
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
Reid Spencera773bd52006-08-04 18:18:08 +000010004 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005fi
Reid Spencera773bd52006-08-04 18:18:08 +000010006
Tanya Lattnercf067672008-01-17 05:57:22 +000010007rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 conftest$ac_exeext conftest.$ac_ext
10009LIBS=$ac_check_lib_save_LIBS
10010fi
Reid Spencera773bd52006-08-04 18:18:08 +000010011{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10012echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013if test $ac_cv_lib_dld_shl_load = yes; then
10014
10015cat >>confdefs.h <<\_ACEOF
10016#define HAVE_SHL_LOAD 1
10017_ACEOF
10018
10019 LIBADD_DL="$LIBADD_DL -ldld"
10020else
Reid Spencera773bd52006-08-04 18:18:08 +000010021 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10022echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026 ac_check_lib_save_LIBS=$LIBS
10027LIBS="-ldl $LIBS"
10028cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034
Reid Spencera773bd52006-08-04 18:18:08 +000010035/* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010038#ifdef __cplusplus
10039extern "C"
10040#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010041char dlopen ();
10042int
10043main ()
10044{
Reid Spencera773bd52006-08-04 18:18:08 +000010045return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010051if { (ac_try="$ac_link"
10052case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055esac
10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078esac
10079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010084 ac_cv_lib_dl_dlopen=yes
10085else
10086 echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
Reid Spencera773bd52006-08-04 18:18:08 +000010089 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090fi
Reid Spencera773bd52006-08-04 18:18:08 +000010091
Tanya Lattnercf067672008-01-17 05:57:22 +000010092rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 conftest$ac_exeext conftest.$ac_ext
10094LIBS=$ac_check_lib_save_LIBS
10095fi
Reid Spencera773bd52006-08-04 18:18:08 +000010096{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10097echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098if test $ac_cv_lib_dl_dlopen = yes; then
10099
10100cat >>confdefs.h <<\_ACEOF
10101#define HAVE_LIBDL 1
10102_ACEOF
10103
10104 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10105else
10106 cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h. */
10112#if HAVE_DLFCN_H
10113# include <dlfcn.h>
10114#endif
10115
10116int
10117main ()
10118{
10119dlopen(0, 0);
10120 ;
10121 return 0;
10122}
10123_ACEOF
10124rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010125if { (ac_try="$ac_link"
10126case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129esac
10130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158
10159cat >>confdefs.h <<\_ACEOF
10160#define HAVE_LIBDL 1
10161_ACEOF
10162 libltdl_cv_func_dlopen="yes"
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
Reid Spencera773bd52006-08-04 18:18:08 +000010167 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10168echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172 ac_check_lib_save_LIBS=$LIBS
10173LIBS="-lsvld $LIBS"
10174cat >conftest.$ac_ext <<_ACEOF
10175/* confdefs.h. */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h. */
10180
Reid Spencera773bd52006-08-04 18:18:08 +000010181/* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184#ifdef __cplusplus
10185extern "C"
10186#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187char dlopen ();
10188int
10189main ()
10190{
Reid Spencera773bd52006-08-04 18:18:08 +000010191return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010197if { (ac_try="$ac_link"
10198case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201esac
10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214esac
10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest$ac_exeext'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224esac
10225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230 ac_cv_lib_svld_dlopen=yes
10231else
10232 echo "$as_me: failed program was:" >&5
10233sed 's/^/| /' conftest.$ac_ext >&5
10234
Reid Spencera773bd52006-08-04 18:18:08 +000010235 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236fi
Reid Spencera773bd52006-08-04 18:18:08 +000010237
Tanya Lattnercf067672008-01-17 05:57:22 +000010238rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 conftest$ac_exeext conftest.$ac_ext
10240LIBS=$ac_check_lib_save_LIBS
10241fi
Reid Spencera773bd52006-08-04 18:18:08 +000010242{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10243echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244if test $ac_cv_lib_svld_dlopen = yes; then
10245
10246cat >>confdefs.h <<\_ACEOF
10247#define HAVE_LIBDL 1
10248_ACEOF
10249
10250 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10251else
Reid Spencera773bd52006-08-04 18:18:08 +000010252 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10253echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257 ac_check_lib_save_LIBS=$LIBS
10258LIBS="-ldld $LIBS"
10259cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h. */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h. */
10265
Reid Spencera773bd52006-08-04 18:18:08 +000010266/* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269#ifdef __cplusplus
10270extern "C"
10271#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272char dld_link ();
10273int
10274main ()
10275{
Reid Spencera773bd52006-08-04 18:18:08 +000010276return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 ;
10278 return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010282if { (ac_try="$ac_link"
10283case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286esac
10287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
10300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309esac
10310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010315 ac_cv_lib_dld_dld_link=yes
10316else
10317 echo "$as_me: failed program was:" >&5
10318sed 's/^/| /' conftest.$ac_ext >&5
10319
Reid Spencera773bd52006-08-04 18:18:08 +000010320 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321fi
Reid Spencera773bd52006-08-04 18:18:08 +000010322
Tanya Lattnercf067672008-01-17 05:57:22 +000010323rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324 conftest$ac_exeext conftest.$ac_ext
10325LIBS=$ac_check_lib_save_LIBS
10326fi
Reid Spencera773bd52006-08-04 18:18:08 +000010327{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10328echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329if test $ac_cv_lib_dld_dld_link = yes; then
10330
10331cat >>confdefs.h <<\_ACEOF
10332#define HAVE_DLD 1
10333_ACEOF
10334
10335 LIBADD_DL="$LIBADD_DL -ldld"
10336else
Reid Spencera773bd52006-08-04 18:18:08 +000010337 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10338echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341else
10342 cat >conftest.$ac_ext <<_ACEOF
10343/* confdefs.h. */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h. */
10348/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350#define _dyld_func_lookup innocuous__dyld_func_lookup
10351
10352/* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char _dyld_func_lookup (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10356
10357#ifdef __STDC__
10358# include <limits.h>
10359#else
10360# include <assert.h>
10361#endif
10362
10363#undef _dyld_func_lookup
10364
Reid Spencera773bd52006-08-04 18:18:08 +000010365/* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368#ifdef __cplusplus
10369extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371char _dyld_func_lookup ();
10372/* The GNU C library defines this for functions which it implements
10373 to always fail with ENOSYS. Some functions are actually named
10374 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010375#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377#endif
10378
10379int
10380main ()
10381{
Reid Spencera773bd52006-08-04 18:18:08 +000010382return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 ;
10384 return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010388if { (ac_try="$ac_link"
10389case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392esac
10393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10402 { (case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_try") 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 ac_cv_func__dyld_func_lookup=yes
10422else
10423 echo "$as_me: failed program was:" >&5
10424sed 's/^/| /' conftest.$ac_ext >&5
10425
Reid Spencera773bd52006-08-04 18:18:08 +000010426 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427fi
Reid Spencera773bd52006-08-04 18:18:08 +000010428
Tanya Lattnercf067672008-01-17 05:57:22 +000010429rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430 conftest$ac_exeext conftest.$ac_ext
10431fi
Reid Spencera773bd52006-08-04 18:18:08 +000010432{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10433echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434if test $ac_cv_func__dyld_func_lookup = yes; then
10435
10436cat >>confdefs.h <<\_ACEOF
10437#define HAVE_DYLD 1
10438_ACEOF
10439
10440fi
10441
10442
10443fi
10444
10445
10446fi
10447
10448
10449fi
Reid Spencera773bd52006-08-04 18:18:08 +000010450
Tanya Lattnercf067672008-01-17 05:57:22 +000010451rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 conftest$ac_exeext conftest.$ac_ext
10453
10454fi
10455
10456
10457fi
10458
10459
10460fi
10461
10462
10463if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10464then
10465 lt_save_LIBS="$LIBS"
10466 LIBS="$LIBS $LIBADD_DL"
10467
10468for ac_func in dlerror
10469do
10470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010471{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10473if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475else
10476 cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484#define $ac_func innocuous_$ac_func
10485
10486/* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10490
10491#ifdef __STDC__
10492# include <limits.h>
10493#else
10494# include <assert.h>
10495#endif
10496
10497#undef $ac_func
10498
Reid Spencera773bd52006-08-04 18:18:08 +000010499/* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502#ifdef __cplusplus
10503extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505char $ac_func ();
10506/* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010509#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511#endif
10512
10513int
10514main ()
10515{
Reid Spencera773bd52006-08-04 18:18:08 +000010516return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517 ;
10518 return 0;
10519}
10520_ACEOF
10521rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010522if { (ac_try="$ac_link"
10523case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526esac
10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 eval "$as_ac_var=yes"
10556else
10557 echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
Reid Spencera773bd52006-08-04 18:18:08 +000010560 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561fi
Reid Spencera773bd52006-08-04 18:18:08 +000010562
Tanya Lattnercf067672008-01-17 05:57:22 +000010563rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 conftest$ac_exeext conftest.$ac_ext
10565fi
Reid Spencera773bd52006-08-04 18:18:08 +000010566ac_res=`eval echo '${'$as_ac_var'}'`
10567 { echo "$as_me:$LINENO: result: $ac_res" >&5
10568echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569if test `eval echo '${'$as_ac_var'}'` = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10572_ACEOF
10573
10574fi
10575done
10576
10577 LIBS="$lt_save_LIBS"
10578fi
10579ac_ext=c
10580ac_cpp='$CPP $CPPFLAGS'
10581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10583ac_compiler_gnu=$ac_cv_c_compiler_gnu
10584
10585
10586
Reid Spencera773bd52006-08-04 18:18:08 +000010587{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10588echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591else
10592 ac_cv_sys_symbol_underscore=no
10593 cat > conftest.$ac_ext <<EOF
10594void nm_test_func(){}
10595int main(){nm_test_func;return 0;}
10596EOF
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; then
10602 # Now try to grab the symbols.
10603 ac_nlist=conftest.nm
10604 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10605 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && test -s "$ac_nlist"; then
10609 # See whether the symbols have a leading underscore.
10610 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10611 ac_cv_sys_symbol_underscore=yes
10612 else
10613 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10614 :
10615 else
10616 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10617 fi
10618 fi
10619 else
10620 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10621 fi
10622 else
10623 echo "configure: failed program was:" >&5
10624 cat conftest.c >&5
10625 fi
10626 rm -rf conftest*
10627
10628fi
Reid Spencera773bd52006-08-04 18:18:08 +000010629{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10630echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631
10632
10633if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10634 if test x"$libltdl_cv_func_dlopen" = xyes ||
10635 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010636 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10637echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638if test "${libltdl_cv_need_uscore+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 libltdl_cv_need_uscore=unknown
10642 save_LIBS="$LIBS"
10643 LIBS="$LIBS $LIBADD_DL"
10644 if test "$cross_compiling" = yes; then :
10645 libltdl_cv_need_uscore=cross
10646else
10647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10648 lt_status=$lt_dlunknown
10649 cat > conftest.$ac_ext <<EOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000010650#line 10650 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651#include "confdefs.h"
10652
10653#if HAVE_DLFCN_H
10654#include <dlfcn.h>
10655#endif
10656
10657#include <stdio.h>
10658
10659#ifdef RTLD_GLOBAL
10660# define LT_DLGLOBAL RTLD_GLOBAL
10661#else
10662# ifdef DL_GLOBAL
10663# define LT_DLGLOBAL DL_GLOBAL
10664# else
10665# define LT_DLGLOBAL 0
10666# endif
10667#endif
10668
10669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10670 find out it does not work in some platform. */
10671#ifndef LT_DLLAZY_OR_NOW
10672# ifdef RTLD_LAZY
10673# define LT_DLLAZY_OR_NOW RTLD_LAZY
10674# else
10675# ifdef DL_LAZY
10676# define LT_DLLAZY_OR_NOW DL_LAZY
10677# else
10678# ifdef RTLD_NOW
10679# define LT_DLLAZY_OR_NOW RTLD_NOW
10680# else
10681# ifdef DL_NOW
10682# define LT_DLLAZY_OR_NOW DL_NOW
10683# else
10684# define LT_DLLAZY_OR_NOW 0
10685# endif
10686# endif
10687# endif
10688# endif
10689#endif
10690
10691#ifdef __cplusplus
10692extern "C" void exit (int);
10693#endif
10694
10695void fnord() { int i=42;}
10696int main ()
10697{
10698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699 int status = $lt_dlunknown;
10700
10701 if (self)
10702 {
10703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705 /* dlclose (self); */
10706 }
Reid Spencera773bd52006-08-04 18:18:08 +000010707 else
10708 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709
10710 exit (status);
10711}
10712EOF
10713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714 (eval $ac_link) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010718 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719 lt_status=$?
10720 case x$lt_status in
10721 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10722 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010723 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724 esac
10725 else :
10726 # compilation failed
10727
10728 fi
10729fi
10730rm -fr conftest*
10731
10732 LIBS="$save_LIBS"
10733
10734fi
Reid Spencera773bd52006-08-04 18:18:08 +000010735{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10736echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737 fi
10738fi
10739
10740if test x"$libltdl_cv_need_uscore" = xyes; then
10741
10742cat >>confdefs.h <<\_ACEOF
10743#define NEED_USCORE 1
10744_ACEOF
10745
10746fi
10747
10748
Reid Spencera773bd52006-08-04 18:18:08 +000010749{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10750echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 # PORTME does your system automatically load deplibs for dlopen?
10755 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10756 # For now, we just catch OSes we know something about -- in the
10757 # future, we'll try test this programmatically.
10758 libltdl_cv_sys_dlopen_deplibs=unknown
10759 case "$host_os" in
10760 aix3*|aix4.1.*|aix4.2.*)
10761 # Unknown whether this is true for these versions of AIX, but
10762 # we want this `case' here to explicitly catch those versions.
10763 libltdl_cv_sys_dlopen_deplibs=unknown
10764 ;;
10765 aix[45]*)
10766 libltdl_cv_sys_dlopen_deplibs=yes
10767 ;;
10768 darwin*)
10769 # Assuming the user has installed a libdl from somewhere, this is true
10770 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10771 libltdl_cv_sys_dlopen_deplibs=yes
10772 ;;
10773 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10774 # GNU and its variants, using gnu ld.so (Glibc)
10775 libltdl_cv_sys_dlopen_deplibs=yes
10776 ;;
10777 hpux10*|hpux11*)
10778 libltdl_cv_sys_dlopen_deplibs=yes
10779 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010780 interix*)
10781 libltdl_cv_sys_dlopen_deplibs=yes
10782 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783 irix[12345]*|irix6.[01]*)
10784 # Catch all versions of IRIX before 6.2, and indicate that we don't
10785 # know how it worked for any of those versions.
10786 libltdl_cv_sys_dlopen_deplibs=unknown
10787 ;;
10788 irix*)
10789 # The case above catches anything before 6.2, and it's known that
10790 # at 6.2 and later dlopen does load deplibs.
10791 libltdl_cv_sys_dlopen_deplibs=yes
10792 ;;
10793 netbsd*)
10794 libltdl_cv_sys_dlopen_deplibs=yes
10795 ;;
10796 openbsd*)
10797 libltdl_cv_sys_dlopen_deplibs=yes
10798 ;;
10799 osf[1234]*)
10800 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10801 # it did *not* use an RPATH in a shared library to find objects the
10802 # library depends on, so we explictly say `no'.
10803 libltdl_cv_sys_dlopen_deplibs=no
10804 ;;
10805 osf5.0|osf5.0a|osf5.1)
10806 # dlopen *does* load deplibs and with the right loader patch applied
10807 # it even uses RPATH in a shared library to search for shared objects
10808 # that the library depends on, but there's no easy way to know if that
10809 # patch is installed. Since this is the case, all we can really
10810 # say is unknown -- it depends on the patch being installed. If
10811 # it is, this changes to `yes'. Without it, it would be `no'.
10812 libltdl_cv_sys_dlopen_deplibs=unknown
10813 ;;
10814 osf*)
10815 # the two cases above should catch all versions of osf <= 5.1. Read
10816 # the comments above for what we know about them.
10817 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10818 # is used to find them so we can finally say `yes'.
10819 libltdl_cv_sys_dlopen_deplibs=yes
10820 ;;
10821 solaris*)
10822 libltdl_cv_sys_dlopen_deplibs=yes
10823 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10825 libltdl_cv_sys_dlopen_deplibs=yes
10826 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827 esac
10828
10829fi
Reid Spencera773bd52006-08-04 18:18:08 +000010830{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10831echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10833
10834cat >>confdefs.h <<\_ACEOF
10835#define LTDL_DLOPEN_DEPLIBS 1
10836_ACEOF
10837
10838fi
10839
10840
10841for ac_header in argz.h
10842do
10843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849fi
Reid Spencera773bd52006-08-04 18:18:08 +000010850ac_res=`eval echo '${'$as_ac_Header'}'`
10851 { echo "$as_me:$LINENO: result: $ac_res" >&5
10852echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853else
10854 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863$ac_includes_default
10864#include <$ac_header>
10865_ACEOF
10866rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010867if { (ac_try="$ac_compile"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900 ac_header_compiler=yes
10901else
10902 echo "$as_me: failed program was:" >&5
10903sed 's/^/| /' conftest.$ac_ext >&5
10904
Reid Spencera773bd52006-08-04 18:18:08 +000010905 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906fi
Reid Spencera773bd52006-08-04 18:18:08 +000010907
10908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10910echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911
10912# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010913{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921#include <$ac_header>
10922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010923if { (ac_try="$ac_cpp conftest.$ac_ext"
10924case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010935 (exit $ac_status); } >/dev/null; then
10936 if test -s conftest.err; then
10937 ac_cpp_err=$ac_c_preproc_warn_flag
10938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10939 else
10940 ac_cpp_err=
10941 fi
10942else
10943 ac_cpp_err=yes
10944fi
10945if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946 ac_header_preproc=yes
10947else
10948 echo "$as_me: failed program was:" >&5
10949sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_header_preproc=no
10952fi
Reid Spencera773bd52006-08-04 18:18:08 +000010953
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010955{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957
10958# So? What about this header?
10959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960 yes:no: )
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10962echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10964echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10965 ac_header_preproc=yes
10966 ;;
10967 no:yes:* )
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10969echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10971echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10973echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10975echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10979echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010980 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981## ----------------------------------- ##
10982## Report this to llvmbugs@cs.uiuc.edu ##
10983## ----------------------------------- ##
10984_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010985 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986 ;;
10987esac
Reid Spencera773bd52006-08-04 18:18:08 +000010988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992else
10993 eval "$as_ac_Header=\$ac_header_preproc"
10994fi
Reid Spencera773bd52006-08-04 18:18:08 +000010995ac_res=`eval echo '${'$as_ac_Header'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998
10999fi
11000if test `eval echo '${'$as_ac_Header'}'` = yes; then
11001 cat >>confdefs.h <<_ACEOF
11002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11003_ACEOF
11004
11005fi
11006
11007done
11008
11009
Reid Spencera773bd52006-08-04 18:18:08 +000011010{ echo "$as_me:$LINENO: checking for error_t" >&5
11011echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012if test "${ac_cv_type_error_t+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 cat >conftest.$ac_ext <<_ACEOF
11016/* confdefs.h. */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h. */
11021#if HAVE_ARGZ_H
11022# include <argz.h>
11023#endif
11024
Reid Spencera773bd52006-08-04 18:18:08 +000011025typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011026int
11027main ()
11028{
Reid Spencera773bd52006-08-04 18:18:08 +000011029if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011031if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032 return 0;
11033 ;
11034 return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011038if { (ac_try="$ac_compile"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071 ac_cv_type_error_t=yes
11072else
11073 echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
Reid Spencera773bd52006-08-04 18:18:08 +000011076 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077fi
Reid Spencera773bd52006-08-04 18:18:08 +000011078
11079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080fi
Reid Spencera773bd52006-08-04 18:18:08 +000011081{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11082echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083if test $ac_cv_type_error_t = yes; then
11084
11085cat >>confdefs.h <<_ACEOF
11086#define HAVE_ERROR_T 1
11087_ACEOF
11088
11089
11090else
11091
11092cat >>confdefs.h <<\_ACEOF
11093#define error_t int
11094_ACEOF
11095
11096fi
11097
11098
11099
11100
11101
11102
11103
11104for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11105do
11106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011107{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 cat >conftest.$ac_ext <<_ACEOF
11113/* confdefs.h. */
11114_ACEOF
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h. */
11118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11120#define $ac_func innocuous_$ac_func
11121
11122/* System header to define __stub macros and hopefully few prototypes,
11123 which can conflict with char $ac_func (); below.
11124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11125 <limits.h> exists even on freestanding compilers. */
11126
11127#ifdef __STDC__
11128# include <limits.h>
11129#else
11130# include <assert.h>
11131#endif
11132
11133#undef $ac_func
11134
Reid Spencera773bd52006-08-04 18:18:08 +000011135/* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138#ifdef __cplusplus
11139extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141char $ac_func ();
11142/* The GNU C library defines this for functions which it implements
11143 to always fail with ENOSYS. Some functions are actually named
11144 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011145#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147#endif
11148
11149int
11150main ()
11151{
Reid Spencera773bd52006-08-04 18:18:08 +000011152return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011158if { (ac_try="$ac_link"
11159case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185esac
11186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 eval "$as_ac_var=yes"
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
Reid Spencera773bd52006-08-04 18:18:08 +000011196 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197fi
Reid Spencera773bd52006-08-04 18:18:08 +000011198
Tanya Lattnercf067672008-01-17 05:57:22 +000011199rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200 conftest$ac_exeext conftest.$ac_ext
11201fi
Reid Spencera773bd52006-08-04 18:18:08 +000011202ac_res=`eval echo '${'$as_ac_var'}'`
11203 { echo "$as_me:$LINENO: result: $ac_res" >&5
11204echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208_ACEOF
11209
11210fi
11211done
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11241 stdio.h unistd.h
11242do
11243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248 echo $ECHO_N "(cached) $ECHO_C" >&6
11249fi
Reid Spencera773bd52006-08-04 18:18:08 +000011250ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253else
11254 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011255{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257cat >conftest.$ac_ext <<_ACEOF
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
11263$ac_includes_default
11264#include <$ac_header>
11265_ACEOF
11266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011267if { (ac_try="$ac_compile"
11268case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271esac
11272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011279 (exit $ac_status); } &&
11280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11281 { (case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_try") 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300 ac_header_compiler=yes
11301else
11302 echo "$as_me: failed program was:" >&5
11303sed 's/^/| /' conftest.$ac_ext >&5
11304
Reid Spencera773bd52006-08-04 18:18:08 +000011305 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306fi
Reid Spencera773bd52006-08-04 18:18:08 +000011307
11308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11310echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311
11312# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011313{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011315cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321#include <$ac_header>
11322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011323if { (ac_try="$ac_cpp conftest.$ac_ext"
11324case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327esac
11328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011335 (exit $ac_status); } >/dev/null; then
11336 if test -s conftest.err; then
11337 ac_cpp_err=$ac_c_preproc_warn_flag
11338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 else
11340 ac_cpp_err=
11341 fi
11342else
11343 ac_cpp_err=yes
11344fi
11345if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346 ac_header_preproc=yes
11347else
11348 echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351 ac_header_preproc=no
11352fi
Reid Spencera773bd52006-08-04 18:18:08 +000011353
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11356echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357
11358# So? What about this header?
11359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 yes:no: )
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11365 ac_header_preproc=yes
11366 ;;
11367 no:yes:* )
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011380 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381## ----------------------------------- ##
11382## Report this to llvmbugs@cs.uiuc.edu ##
11383## ----------------------------------- ##
11384_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011385 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386 ;;
11387esac
Reid Spencera773bd52006-08-04 18:18:08 +000011388{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 eval "$as_ac_Header=\$ac_header_preproc"
11394fi
Reid Spencera773bd52006-08-04 18:18:08 +000011395ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398
11399fi
11400if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403_ACEOF
11404
11405fi
11406
11407done
11408
11409
11410
11411
11412
11413for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11414do
11415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421fi
Reid Spencera773bd52006-08-04 18:18:08 +000011422ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425else
11426 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011427{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h. */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h. */
11435$ac_includes_default
11436#include <$ac_header>
11437_ACEOF
11438rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011439if { (ac_try="$ac_compile"
11440case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest.$ac_objext'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466esac
11467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472 ac_header_compiler=yes
11473else
11474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
Reid Spencera773bd52006-08-04 18:18:08 +000011477 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011478fi
Reid Spencera773bd52006-08-04 18:18:08 +000011479
11480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11482echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483
11484# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011485{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h. */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */
11493#include <$ac_header>
11494_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011495if { (ac_try="$ac_cpp conftest.$ac_ext"
11496case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011507 (exit $ac_status); } >/dev/null; then
11508 if test -s conftest.err; then
11509 ac_cpp_err=$ac_c_preproc_warn_flag
11510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11511 else
11512 ac_cpp_err=
11513 fi
11514else
11515 ac_cpp_err=yes
11516fi
11517if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 ac_header_preproc=yes
11519else
11520 echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 ac_header_preproc=no
11524fi
Reid Spencera773bd52006-08-04 18:18:08 +000011525
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011527{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11528echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529
11530# So? What about this header?
11531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11532 yes:no: )
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11537 ac_header_preproc=yes
11538 ;;
11539 no:yes:* )
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011552 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553## ----------------------------------- ##
11554## Report this to llvmbugs@cs.uiuc.edu ##
11555## ----------------------------------- ##
11556_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011557 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 ;;
11559esac
Reid Spencera773bd52006-08-04 18:18:08 +000011560{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 eval "$as_ac_Header=\$ac_header_preproc"
11566fi
Reid Spencera773bd52006-08-04 18:18:08 +000011567ac_res=`eval echo '${'$as_ac_Header'}'`
11568 { echo "$as_me:$LINENO: result: $ac_res" >&5
11569echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570
11571fi
11572if test `eval echo '${'$as_ac_Header'}'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11575_ACEOF
11576
11577fi
11578
11579done
11580
11581
11582
11583for ac_header in string.h strings.h
11584do
11585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591fi
Reid Spencera773bd52006-08-04 18:18:08 +000011592ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595else
11596 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011597{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605$ac_includes_default
11606#include <$ac_header>
11607_ACEOF
11608rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011609if { (ac_try="$ac_compile"
11610case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642 ac_header_compiler=yes
11643else
11644 echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
Reid Spencera773bd52006-08-04 18:18:08 +000011647 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011648fi
Reid Spencera773bd52006-08-04 18:18:08 +000011649
11650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653
11654# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011655{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663#include <$ac_header>
11664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011665if { (ac_try="$ac_cpp conftest.$ac_ext"
11666case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011677 (exit $ac_status); } >/dev/null; then
11678 if test -s conftest.err; then
11679 ac_cpp_err=$ac_c_preproc_warn_flag
11680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11681 else
11682 ac_cpp_err=
11683 fi
11684else
11685 ac_cpp_err=yes
11686fi
11687if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688 ac_header_preproc=yes
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_header_preproc=no
11694fi
Reid Spencera773bd52006-08-04 18:18:08 +000011695
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699
11700# So? What about this header?
11701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 yes:no: )
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc=yes
11708 ;;
11709 no:yes:* )
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011722 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723## ----------------------------------- ##
11724## Report this to llvmbugs@cs.uiuc.edu ##
11725## ----------------------------------- ##
11726_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011727 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728 ;;
11729esac
Reid Spencera773bd52006-08-04 18:18:08 +000011730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 eval "$as_ac_Header=\$ac_header_preproc"
11736fi
Reid Spencera773bd52006-08-04 18:18:08 +000011737ac_res=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740
11741fi
11742if test `eval echo '${'$as_ac_Header'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11745_ACEOF
11746 break
11747fi
11748
11749done
11750
11751
11752
11753
11754for ac_func in strchr index
11755do
11756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011757{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h. */
11768/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11770#define $ac_func innocuous_$ac_func
11771
11772/* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $ac_func (); below.
11774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 <limits.h> exists even on freestanding compilers. */
11776
11777#ifdef __STDC__
11778# include <limits.h>
11779#else
11780# include <assert.h>
11781#endif
11782
11783#undef $ac_func
11784
Reid Spencera773bd52006-08-04 18:18:08 +000011785/* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788#ifdef __cplusplus
11789extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791char $ac_func ();
11792/* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011795#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797#endif
11798
11799int
11800main ()
11801{
Reid Spencera773bd52006-08-04 18:18:08 +000011802return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011808if { (ac_try="$ac_link"
11809case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841 eval "$as_ac_var=yes"
11842else
11843 echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
Reid Spencera773bd52006-08-04 18:18:08 +000011846 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011847fi
Reid Spencera773bd52006-08-04 18:18:08 +000011848
Tanya Lattnercf067672008-01-17 05:57:22 +000011849rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011850 conftest$ac_exeext conftest.$ac_ext
11851fi
Reid Spencera773bd52006-08-04 18:18:08 +000011852ac_res=`eval echo '${'$as_ac_var'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855if test `eval echo '${'$as_ac_var'}'` = yes; then
11856 cat >>confdefs.h <<_ACEOF
11857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858_ACEOF
11859 break
11860fi
11861done
11862
11863
11864
11865for ac_func in strrchr rindex
11866do
11867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881#define $ac_func innocuous_$ac_func
11882
11883/* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11887
11888#ifdef __STDC__
11889# include <limits.h>
11890#else
11891# include <assert.h>
11892#endif
11893
11894#undef $ac_func
11895
Reid Spencera773bd52006-08-04 18:18:08 +000011896/* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899#ifdef __cplusplus
11900extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011901#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902char $ac_func ();
11903/* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011906#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908#endif
11909
11910int
11911main ()
11912{
Reid Spencera773bd52006-08-04 18:18:08 +000011913return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011919if { (ac_try="$ac_link"
11920case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952 eval "$as_ac_var=yes"
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
Reid Spencera773bd52006-08-04 18:18:08 +000011957 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958fi
Reid Spencera773bd52006-08-04 18:18:08 +000011959
Tanya Lattnercf067672008-01-17 05:57:22 +000011960rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011961 conftest$ac_exeext conftest.$ac_ext
11962fi
Reid Spencera773bd52006-08-04 18:18:08 +000011963ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result: $ac_res" >&5
11965echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969_ACEOF
11970 break
11971fi
11972done
11973
11974
11975
11976for ac_func in memcpy bcopy
11977do
11978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983else
11984 cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
11990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11992#define $ac_func innocuous_$ac_func
11993
11994/* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11998
11999#ifdef __STDC__
12000# include <limits.h>
12001#else
12002# include <assert.h>
12003#endif
12004
12005#undef $ac_func
12006
Reid Spencera773bd52006-08-04 18:18:08 +000012007/* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010#ifdef __cplusplus
12011extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013char $ac_func ();
12014/* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012017#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019#endif
12020
12021int
12022main ()
12023{
Reid Spencera773bd52006-08-04 18:18:08 +000012024return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012030if { (ac_try="$ac_link"
12031case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034esac
12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063 eval "$as_ac_var=yes"
12064else
12065 echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
Reid Spencera773bd52006-08-04 18:18:08 +000012068 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069fi
Reid Spencera773bd52006-08-04 18:18:08 +000012070
Tanya Lattnercf067672008-01-17 05:57:22 +000012071rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012072 conftest$ac_exeext conftest.$ac_ext
12073fi
Reid Spencera773bd52006-08-04 18:18:08 +000012074ac_res=`eval echo '${'$as_ac_var'}'`
12075 { echo "$as_me:$LINENO: result: $ac_res" >&5
12076echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077if test `eval echo '${'$as_ac_var'}'` = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080_ACEOF
12081 break
12082fi
12083done
12084
12085
12086
12087for ac_func in memmove strcmp
12088do
12089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012090{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094else
12095 cat >conftest.$ac_ext <<_ACEOF
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */
12101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12103#define $ac_func innocuous_$ac_func
12104
12105/* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char $ac_func (); below.
12107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108 <limits.h> exists even on freestanding compilers. */
12109
12110#ifdef __STDC__
12111# include <limits.h>
12112#else
12113# include <assert.h>
12114#endif
12115
12116#undef $ac_func
12117
Reid Spencera773bd52006-08-04 18:18:08 +000012118/* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121#ifdef __cplusplus
12122extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012124char $ac_func ();
12125/* The GNU C library defines this for functions which it implements
12126 to always fail with ENOSYS. Some functions are actually named
12127 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012128#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130#endif
12131
12132int
12133main ()
12134{
Reid Spencera773bd52006-08-04 18:18:08 +000012135return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012136 ;
12137 return 0;
12138}
12139_ACEOF
12140rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012141if { (ac_try="$ac_link"
12142case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145esac
12146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12155 { (case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158esac
12159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_try") 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174 eval "$as_ac_var=yes"
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
Reid Spencera773bd52006-08-04 18:18:08 +000012179 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180fi
Reid Spencera773bd52006-08-04 18:18:08 +000012181
Tanya Lattnercf067672008-01-17 05:57:22 +000012182rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183 conftest$ac_exeext conftest.$ac_ext
12184fi
Reid Spencera773bd52006-08-04 18:18:08 +000012185ac_res=`eval echo '${'$as_ac_var'}'`
12186 { echo "$as_me:$LINENO: result: $ac_res" >&5
12187echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191_ACEOF
12192
12193fi
12194done
12195
12196
12197
12198
12199for ac_func in closedir opendir readdir
12200do
12201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012202{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12204if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207 cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
12213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12215#define $ac_func innocuous_$ac_func
12216
12217/* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char $ac_func (); below.
12219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 <limits.h> exists even on freestanding compilers. */
12221
12222#ifdef __STDC__
12223# include <limits.h>
12224#else
12225# include <assert.h>
12226#endif
12227
12228#undef $ac_func
12229
Reid Spencera773bd52006-08-04 18:18:08 +000012230/* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233#ifdef __cplusplus
12234extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012235#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012236char $ac_func ();
12237/* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012240#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012241choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012242#endif
12243
12244int
12245main ()
12246{
Reid Spencera773bd52006-08-04 18:18:08 +000012247return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248 ;
12249 return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012253if { (ac_try="$ac_link"
12254case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257esac
12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286 eval "$as_ac_var=yes"
12287else
12288 echo "$as_me: failed program was:" >&5
12289sed 's/^/| /' conftest.$ac_ext >&5
12290
Reid Spencera773bd52006-08-04 18:18:08 +000012291 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292fi
Reid Spencera773bd52006-08-04 18:18:08 +000012293
Tanya Lattnercf067672008-01-17 05:57:22 +000012294rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295 conftest$ac_exeext conftest.$ac_ext
12296fi
Reid Spencera773bd52006-08-04 18:18:08 +000012297ac_res=`eval echo '${'$as_ac_var'}'`
12298 { echo "$as_me:$LINENO: result: $ac_res" >&5
12299echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012300if test `eval echo '${'$as_ac_var'}'` = yes; then
12301 cat >>confdefs.h <<_ACEOF
12302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12303_ACEOF
12304
12305fi
12306done
12307
12308
Reid Spencera773bd52006-08-04 18:18:08 +000012309# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012310if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012311 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012312 case $enableval in
12313 yes) enable_shared=yes ;;
12314 no) enable_shared=no ;;
12315 *)
12316 enable_shared=no
12317 # Look at the argument we got. We use all the common list separators.
12318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12319 for pkg in $enableval; do
12320 IFS="$lt_save_ifs"
12321 if test "X$pkg" = "X$p"; then
12322 enable_shared=yes
12323 fi
12324 done
12325 IFS="$lt_save_ifs"
12326 ;;
12327 esac
12328else
12329 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012330fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012331
Reid Spencera773bd52006-08-04 18:18:08 +000012332
12333# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012334if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012335 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336 case $enableval in
12337 yes) enable_static=yes ;;
12338 no) enable_static=no ;;
12339 *)
12340 enable_static=no
12341 # Look at the argument we got. We use all the common list separators.
12342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12343 for pkg in $enableval; do
12344 IFS="$lt_save_ifs"
12345 if test "X$pkg" = "X$p"; then
12346 enable_static=yes
12347 fi
12348 done
12349 IFS="$lt_save_ifs"
12350 ;;
12351 esac
12352else
12353 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012354fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012355
Reid Spencera773bd52006-08-04 18:18:08 +000012356
12357# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012358if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012359 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360 case $enableval in
12361 yes) enable_fast_install=yes ;;
12362 no) enable_fast_install=no ;;
12363 *)
12364 enable_fast_install=no
12365 # Look at the argument we got. We use all the common list separators.
12366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367 for pkg in $enableval; do
12368 IFS="$lt_save_ifs"
12369 if test "X$pkg" = "X$p"; then
12370 enable_fast_install=yes
12371 fi
12372 done
12373 IFS="$lt_save_ifs"
12374 ;;
12375 esac
12376else
12377 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012378fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379
Reid Spencera773bd52006-08-04 18:18:08 +000012380
12381{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12382echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012383if test "${lt_cv_path_SED+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386 # Loop through the user's path and test for sed and gsed.
12387# Then use that list of sed's as ones to test for truncation.
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for lt_ac_prog in sed gsed; do
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12396 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12397 fi
12398 done
12399 done
12400done
12401lt_ac_max=0
12402lt_ac_count=0
12403# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12404# along with /bin/sed that truncates output.
12405for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012406 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012407 cat /dev/null > conftest.in
12408 lt_ac_count=0
12409 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12410 # Check for GNU sed and select it if it is found.
12411 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12412 lt_cv_path_SED=$lt_ac_sed
12413 break
12414 fi
12415 while true; do
12416 cat conftest.in conftest.in >conftest.tmp
12417 mv conftest.tmp conftest.in
12418 cp conftest.in conftest.nl
12419 echo >>conftest.nl
12420 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12421 cmp -s conftest.out conftest.nl || break
12422 # 10000 chars as input seems more than enough
12423 test $lt_ac_count -gt 10 && break
12424 lt_ac_count=`expr $lt_ac_count + 1`
12425 if test $lt_ac_count -gt $lt_ac_max; then
12426 lt_ac_max=$lt_ac_count
12427 lt_cv_path_SED=$lt_ac_sed
12428 fi
12429 done
12430done
12431
12432fi
12433
12434SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012435{ echo "$as_me:$LINENO: result: $SED" >&5
12436echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012437
12438
Reid Spencera773bd52006-08-04 18:18:08 +000012439# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012442else
12443 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012444fi
12445
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446ac_prog=ld
12447if test "$GCC" = yes; then
12448 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012449 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12450echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012451 case $host in
12452 *-*-mingw*)
12453 # gcc leaves a trailing carriage return which upsets mingw
12454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12455 *)
12456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12457 esac
12458 case $ac_prog in
12459 # Accept absolute paths.
12460 [\\/]* | ?:[\\/]*)
12461 re_direlt='/[^/][^/]*/\.\./'
12462 # Canonicalize the pathname of ld
12463 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12465 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12466 done
12467 test -z "$LD" && LD="$ac_prog"
12468 ;;
12469 "")
12470 # If it fails, then pretend we aren't using GCC.
12471 ac_prog=ld
12472 ;;
12473 *)
12474 # If it is relative, then search for the first ld in PATH.
12475 with_gnu_ld=unknown
12476 ;;
12477 esac
12478elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012479 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12480echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012481else
Reid Spencera773bd52006-08-04 18:18:08 +000012482 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12483echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484fi
12485if test "${lt_cv_path_LD+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488 if test -z "$LD"; then
12489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12490 for ac_dir in $PATH; do
12491 IFS="$lt_save_ifs"
12492 test -z "$ac_dir" && ac_dir=.
12493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12494 lt_cv_path_LD="$ac_dir/$ac_prog"
12495 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012496 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497 # Break only if it was the GNU/non-GNU ld that we prefer.
12498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12499 *GNU* | *'with BFD'*)
12500 test "$with_gnu_ld" != no && break
12501 ;;
12502 *)
12503 test "$with_gnu_ld" != yes && break
12504 ;;
12505 esac
12506 fi
12507 done
12508 IFS="$lt_save_ifs"
12509else
12510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12511fi
12512fi
12513
12514LD="$lt_cv_path_LD"
12515if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012516 { echo "$as_me:$LINENO: result: $LD" >&5
12517echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518else
Reid Spencera773bd52006-08-04 18:18:08 +000012519 { echo "$as_me:$LINENO: result: no" >&5
12520echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012521fi
12522test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12523echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12524 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012525{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12526echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012527if test "${lt_cv_prog_gnu_ld+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529else
Reid Spencera773bd52006-08-04 18:18:08 +000012530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012531case `$LD -v 2>&1 </dev/null` in
12532*GNU* | *'with BFD'*)
12533 lt_cv_prog_gnu_ld=yes
12534 ;;
12535*)
12536 lt_cv_prog_gnu_ld=no
12537 ;;
12538esac
12539fi
Reid Spencera773bd52006-08-04 18:18:08 +000012540{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12541echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542with_gnu_ld=$lt_cv_prog_gnu_ld
12543
12544
Reid Spencera773bd52006-08-04 18:18:08 +000012545{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12546echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547if test "${lt_cv_ld_reload_flag+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549else
12550 lt_cv_ld_reload_flag='-r'
12551fi
Reid Spencera773bd52006-08-04 18:18:08 +000012552{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12553echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012554reload_flag=$lt_cv_ld_reload_flag
12555case $reload_flag in
12556"" | " "*) ;;
12557*) reload_flag=" $reload_flag" ;;
12558esac
12559reload_cmds='$LD$reload_flag -o $output$reload_objs'
12560case $host_os in
12561 darwin*)
12562 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564 else
12565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12566 fi
12567 ;;
12568esac
12569
Reid Spencera773bd52006-08-04 18:18:08 +000012570{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12571echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572if test "${lt_cv_deplibs_check_method+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575 lt_cv_file_magic_cmd='$MAGIC_CMD'
12576lt_cv_file_magic_test_file=
12577lt_cv_deplibs_check_method='unknown'
12578# Need to set the preceding variable on all platforms that support
12579# interlibrary dependencies.
12580# 'none' -- dependencies not supported.
12581# `unknown' -- same as none, but documents that we really don't know.
12582# 'pass_all' -- all dependencies passed with no checks.
12583# 'test_compile' -- check by making test program.
12584# 'file_magic [[regex]]' -- check by looking for files in library path
12585# which responds to the $file_magic_cmd with a given extended regex.
12586# If you have `file' or equivalent on your system and you're not sure
12587# whether `pass_all' will *always* work, you probably want this one.
12588
12589case $host_os in
12590aix4* | aix5*)
12591 lt_cv_deplibs_check_method=pass_all
12592 ;;
12593
12594beos*)
12595 lt_cv_deplibs_check_method=pass_all
12596 ;;
12597
12598bsdi[45]*)
12599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12600 lt_cv_file_magic_cmd='/usr/bin/file -L'
12601 lt_cv_file_magic_test_file=/shlib/libc.so
12602 ;;
12603
12604cygwin*)
12605 # func_win32_libid is a shell function defined in ltmain.sh
12606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12607 lt_cv_file_magic_cmd='func_win32_libid'
12608 ;;
12609
12610mingw* | pw32*)
12611 # Base MSYS/MinGW do not provide the 'file' command needed by
12612 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12614 lt_cv_file_magic_cmd='$OBJDUMP -f'
12615 ;;
12616
12617darwin* | rhapsody*)
12618 lt_cv_deplibs_check_method=pass_all
12619 ;;
12620
Reid Spencera773bd52006-08-04 18:18:08 +000012621freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12623 case $host_cpu in
12624 i*86 )
12625 # Not sure whether the presence of OpenBSD here was a mistake.
12626 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012627 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 +000012628 lt_cv_file_magic_cmd=/usr/bin/file
12629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12630 ;;
12631 esac
12632 else
12633 lt_cv_deplibs_check_method=pass_all
12634 fi
12635 ;;
12636
12637gnu*)
12638 lt_cv_deplibs_check_method=pass_all
12639 ;;
12640
12641hpux10.20* | hpux11*)
12642 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012643 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012644 ia64*)
12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12646 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12647 ;;
12648 hppa*64*)
12649 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]'
12650 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12651 ;;
12652 *)
12653 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12654 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12655 ;;
12656 esac
12657 ;;
12658
Reid Spencera773bd52006-08-04 18:18:08 +000012659interix3*)
12660 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12662 ;;
12663
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664irix5* | irix6* | nonstopux*)
12665 case $LD in
12666 *-32|*"-32 ") libmagic=32-bit;;
12667 *-n32|*"-n32 ") libmagic=N32;;
12668 *-64|*"-64 ") libmagic=64-bit;;
12669 *) libmagic=never-match;;
12670 esac
12671 lt_cv_deplibs_check_method=pass_all
12672 ;;
12673
12674# This must be Linux ELF.
12675linux*)
12676 lt_cv_deplibs_check_method=pass_all
12677 ;;
12678
12679netbsd*)
12680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12682 else
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12684 fi
12685 ;;
12686
12687newos6*)
12688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12689 lt_cv_file_magic_cmd=/usr/bin/file
12690 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12691 ;;
12692
12693nto-qnx*)
12694 lt_cv_deplibs_check_method=unknown
12695 ;;
12696
12697openbsd*)
12698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12700 else
12701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12702 fi
12703 ;;
12704
12705osf3* | osf4* | osf5*)
12706 lt_cv_deplibs_check_method=pass_all
12707 ;;
12708
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709solaris*)
12710 lt_cv_deplibs_check_method=pass_all
12711 ;;
12712
Reid Spencera773bd52006-08-04 18:18:08 +000012713sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714 case $host_vendor in
12715 motorola)
12716 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]'
12717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12718 ;;
12719 ncr)
12720 lt_cv_deplibs_check_method=pass_all
12721 ;;
12722 sequent)
12723 lt_cv_file_magic_cmd='/bin/file'
12724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12725 ;;
12726 sni)
12727 lt_cv_file_magic_cmd='/bin/file'
12728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12729 lt_cv_file_magic_test_file=/lib/libc.so
12730 ;;
12731 siemens)
12732 lt_cv_deplibs_check_method=pass_all
12733 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012734 pc)
12735 lt_cv_deplibs_check_method=pass_all
12736 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012737 esac
12738 ;;
12739
Reid Spencera773bd52006-08-04 18:18:08 +000012740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012741 lt_cv_deplibs_check_method=pass_all
12742 ;;
12743esac
12744
12745fi
Reid Spencera773bd52006-08-04 18:18:08 +000012746{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12747echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012748file_magic_cmd=$lt_cv_file_magic_cmd
12749deplibs_check_method=$lt_cv_deplibs_check_method
12750test -z "$deplibs_check_method" && deplibs_check_method=unknown
12751
12752
12753
12754# If no C compiler was specified, use CC.
12755LTCC=${LTCC-"$CC"}
12756
Reid Spencera773bd52006-08-04 18:18:08 +000012757# If no C compiler flags were specified, use CFLAGS.
12758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12759
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012760# Allow CC to be a program name with arguments.
12761compiler=$CC
12762
Reid Spencera773bd52006-08-04 18:18:08 +000012763# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012764if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012765 enableval=$enable_libtool_lock;
12766fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012767
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12769
12770# Some flags need to be propagated to the compiler or linker for good
12771# libtool support.
12772case $host in
12773ia64-*-hpux*)
12774 # Find out which ABI we are using.
12775 echo 'int i;' > conftest.$ac_ext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; then
12781 case `/usr/bin/file conftest.$ac_objext` in
12782 *ELF-32*)
12783 HPUX_IA64_MODE="32"
12784 ;;
12785 *ELF-64*)
12786 HPUX_IA64_MODE="64"
12787 ;;
12788 esac
12789 fi
12790 rm -rf conftest*
12791 ;;
12792*-*-irix6*)
12793 # Find out which ABI we are using.
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012794 echo '#line 12794 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; then
12800 if test "$lt_cv_prog_gnu_ld" = yes; then
12801 case `/usr/bin/file conftest.$ac_objext` in
12802 *32-bit*)
12803 LD="${LD-ld} -melf32bsmip"
12804 ;;
12805 *N32*)
12806 LD="${LD-ld} -melf32bmipn32"
12807 ;;
12808 *64-bit*)
12809 LD="${LD-ld} -melf64bmip"
12810 ;;
12811 esac
12812 else
12813 case `/usr/bin/file conftest.$ac_objext` in
12814 *32-bit*)
12815 LD="${LD-ld} -32"
12816 ;;
12817 *N32*)
12818 LD="${LD-ld} -n32"
12819 ;;
12820 *64-bit*)
12821 LD="${LD-ld} -64"
12822 ;;
12823 esac
12824 fi
12825 fi
12826 rm -rf conftest*
12827 ;;
12828
12829x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12830 # Find out which ABI we are using.
12831 echo 'int i;' > conftest.$ac_ext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012837 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012838 *32-bit*)
12839 case $host in
12840 x86_64-*linux*)
12841 LD="${LD-ld} -m elf_i386"
12842 ;;
12843 ppc64-*linux*|powerpc64-*linux*)
12844 LD="${LD-ld} -m elf32ppclinux"
12845 ;;
12846 s390x-*linux*)
12847 LD="${LD-ld} -m elf_s390"
12848 ;;
12849 sparc64-*linux*)
12850 LD="${LD-ld} -m elf32_sparc"
12851 ;;
12852 esac
12853 ;;
12854 *64-bit*)
12855 case $host in
12856 x86_64-*linux*)
12857 LD="${LD-ld} -m elf_x86_64"
12858 ;;
12859 ppc*-*linux*|powerpc*-*linux*)
12860 LD="${LD-ld} -m elf64ppc"
12861 ;;
12862 s390*-*linux*)
12863 LD="${LD-ld} -m elf64_s390"
12864 ;;
12865 sparc*-*linux*)
12866 LD="${LD-ld} -m elf64_sparc"
12867 ;;
12868 esac
12869 ;;
12870 esac
12871 fi
12872 rm -rf conftest*
12873 ;;
12874
12875*-*-sco3.2v5*)
12876 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12877 SAVE_CFLAGS="$CFLAGS"
12878 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012879 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12880echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881if test "${lt_cv_cc_needs_belf+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884 ac_ext=c
12885ac_cpp='$CPP $CPPFLAGS'
12886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889
12890 cat >conftest.$ac_ext <<_ACEOF
12891/* confdefs.h. */
12892_ACEOF
12893cat confdefs.h >>conftest.$ac_ext
12894cat >>conftest.$ac_ext <<_ACEOF
12895/* end confdefs.h. */
12896
Reid Spencera773bd52006-08-04 18:18:08 +000012897int
12898main ()
12899{
12900
12901 ;
12902 return 0;
12903}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923esac
12924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12933esac
12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012939 lt_cv_cc_needs_belf=yes
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
Reid Spencera773bd52006-08-04 18:18:08 +000012944 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012945fi
Reid Spencera773bd52006-08-04 18:18:08 +000012946
Tanya Lattnercf067672008-01-17 05:57:22 +000012947rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012948 conftest$ac_exeext conftest.$ac_ext
12949 ac_ext=c
12950ac_cpp='$CPP $CPPFLAGS'
12951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_c_compiler_gnu
12954
12955fi
Reid Spencera773bd52006-08-04 18:18:08 +000012956{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12957echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012958 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12959 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12960 CFLAGS="$SAVE_CFLAGS"
12961 fi
12962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012963sparc*-*solaris*)
12964 # Find out which ABI we are using.
12965 echo 'int i;' > conftest.$ac_ext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; then
12971 case `/usr/bin/file conftest.o` in
12972 *64-bit*)
12973 case $lt_cv_prog_gnu_ld in
12974 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12975 *) LD="${LD-ld} -64" ;;
12976 esac
12977 ;;
12978 esac
12979 fi
12980 rm -rf conftest*
12981 ;;
12982
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012983
12984esac
12985
12986need_locks="$enable_libtool_lock"
12987
12988
Reid Spencer2706f8c2004-09-19 23:53:36 +000012989
12990
12991if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12992 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12993 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012994 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012995ac_cpp='$CXXCPP $CPPFLAGS'
12996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012999{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13000echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013001if test -z "$CXXCPP"; then
13002 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
John Criswell47fdd832003-07-14 16:52:07 +000013005 # Double quotes because CXXCPP needs to be expanded
13006 for CXXCPP in "$CXX -E" "/lib/cpp"
13007 do
13008 ac_preproc_ok=false
13009for ac_cxx_preproc_warn_flag in '' yes
13010do
13011 # Use a header file that comes with gcc, so configuring glibc
13012 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013015 # On the NeXT, cc -E runs the code through the compiler's parser,
13016 # not just through cpp. "Syntax error" is here to catch this case.
13017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013018/* confdefs.h. */
13019_ACEOF
13020cat confdefs.h >>conftest.$ac_ext
13021cat >>conftest.$ac_ext <<_ACEOF
13022/* end confdefs.h. */
13023#ifdef __STDC__
13024# include <limits.h>
13025#else
13026# include <assert.h>
13027#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013028 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013029_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013030if { (ac_try="$ac_cpp conftest.$ac_ext"
13031case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034esac
13035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013037 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013038 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013042 (exit $ac_status); } >/dev/null; then
13043 if test -s conftest.err; then
13044 ac_cpp_err=$ac_cxx_preproc_warn_flag
13045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13046 else
13047 ac_cpp_err=
13048 fi
13049else
13050 ac_cpp_err=yes
13051fi
13052if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013053 :
13054else
13055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013056sed 's/^/| /' conftest.$ac_ext >&5
13057
John Criswell47fdd832003-07-14 16:52:07 +000013058 # Broken: fails on valid input.
13059continue
13060fi
Reid Spencera773bd52006-08-04 18:18:08 +000013061
John Criswell47fdd832003-07-14 16:52:07 +000013062rm -f conftest.err conftest.$ac_ext
13063
Reid Spencera773bd52006-08-04 18:18:08 +000013064 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013065 # can be detected and how.
13066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013072#include <ac_nonexistent.h>
13073_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013074if { (ac_try="$ac_cpp conftest.$ac_ext"
13075case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013081 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013082 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013086 (exit $ac_status); } >/dev/null; then
13087 if test -s conftest.err; then
13088 ac_cpp_err=$ac_cxx_preproc_warn_flag
13089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13090 else
13091 ac_cpp_err=
13092 fi
13093else
13094 ac_cpp_err=yes
13095fi
13096if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013097 # Broken: success on invalid input.
13098continue
13099else
13100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013101sed 's/^/| /' conftest.$ac_ext >&5
13102
John Criswell47fdd832003-07-14 16:52:07 +000013103 # Passes both tests.
13104ac_preproc_ok=:
13105break
13106fi
Reid Spencera773bd52006-08-04 18:18:08 +000013107
John Criswell47fdd832003-07-14 16:52:07 +000013108rm -f conftest.err conftest.$ac_ext
13109
13110done
13111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13112rm -f conftest.err conftest.$ac_ext
13113if $ac_preproc_ok; then
13114 break
John Criswell7a73b802003-06-30 21:59:07 +000013115fi
13116
John Criswell47fdd832003-07-14 16:52:07 +000013117 done
13118 ac_cv_prog_CXXCPP=$CXXCPP
13119
13120fi
13121 CXXCPP=$ac_cv_prog_CXXCPP
13122else
13123 ac_cv_prog_CXXCPP=$CXXCPP
13124fi
Reid Spencera773bd52006-08-04 18:18:08 +000013125{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13126echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013127ac_preproc_ok=false
13128for ac_cxx_preproc_warn_flag in '' yes
13129do
13130 # Use a header file that comes with gcc, so configuring glibc
13131 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13133 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013134 # On the NeXT, cc -E runs the code through the compiler's parser,
13135 # not just through cpp. "Syntax error" is here to catch this case.
13136 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013137/* confdefs.h. */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
13141/* end confdefs.h. */
13142#ifdef __STDC__
13143# include <limits.h>
13144#else
13145# include <assert.h>
13146#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013148_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013149if { (ac_try="$ac_cpp conftest.$ac_ext"
13150case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153esac
13154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013156 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013157 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013161 (exit $ac_status); } >/dev/null; then
13162 if test -s conftest.err; then
13163 ac_cpp_err=$ac_cxx_preproc_warn_flag
13164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13165 else
13166 ac_cpp_err=
13167 fi
13168else
13169 ac_cpp_err=yes
13170fi
13171if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013172 :
13173else
13174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013175sed 's/^/| /' conftest.$ac_ext >&5
13176
John Criswell47fdd832003-07-14 16:52:07 +000013177 # Broken: fails on valid input.
13178continue
13179fi
Reid Spencera773bd52006-08-04 18:18:08 +000013180
John Criswell47fdd832003-07-14 16:52:07 +000013181rm -f conftest.err conftest.$ac_ext
13182
Reid Spencera773bd52006-08-04 18:18:08 +000013183 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013184 # can be detected and how.
13185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013191#include <ac_nonexistent.h>
13192_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013193if { (ac_try="$ac_cpp conftest.$ac_ext"
13194case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197esac
13198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013200 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013201 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013205 (exit $ac_status); } >/dev/null; then
13206 if test -s conftest.err; then
13207 ac_cpp_err=$ac_cxx_preproc_warn_flag
13208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13209 else
13210 ac_cpp_err=
13211 fi
13212else
13213 ac_cpp_err=yes
13214fi
13215if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013216 # Broken: success on invalid input.
13217continue
13218else
13219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013220sed 's/^/| /' conftest.$ac_ext >&5
13221
John Criswell47fdd832003-07-14 16:52:07 +000013222 # Passes both tests.
13223ac_preproc_ok=:
13224break
13225fi
Reid Spencera773bd52006-08-04 18:18:08 +000013226
John Criswell47fdd832003-07-14 16:52:07 +000013227rm -f conftest.err conftest.$ac_ext
13228
13229done
13230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13231rm -f conftest.err conftest.$ac_ext
13232if $ac_preproc_ok; then
13233 :
13234else
John Criswell0c38eaf2003-09-10 15:17:25 +000013235 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13236See \`config.log' for more details." >&5
13237echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13238See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013239 { (exit 1); exit 1; }; }
13240fi
13241
Reid Spencera773bd52006-08-04 18:18:08 +000013242ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013243ac_cpp='$CXXCPP $CPPFLAGS'
13244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13247
Reid Spencer2706f8c2004-09-19 23:53:36 +000013248fi
13249
John Criswell47fdd832003-07-14 16:52:07 +000013250
13251ac_ext=f
13252ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13253ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13254ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13255if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013256 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 +000013257 do
13258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13259set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013262if test "${ac_cv_prog_F77+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264else
13265 if test -n "$F77"; then
13266 ac_cv_prog_F77="$F77" # Let the user override the test.
13267else
13268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269for as_dir in $PATH
13270do
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013274 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 +000013275 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13278 fi
13279done
13280done
Reid Spencera773bd52006-08-04 18:18:08 +000013281IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013282
13283fi
13284fi
13285F77=$ac_cv_prog_F77
13286if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013287 { echo "$as_me:$LINENO: result: $F77" >&5
13288echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013289else
Reid Spencera773bd52006-08-04 18:18:08 +000013290 { echo "$as_me:$LINENO: result: no" >&5
13291echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013292fi
13293
Reid Spencera773bd52006-08-04 18:18:08 +000013294
John Criswell47fdd832003-07-14 16:52:07 +000013295 test -n "$F77" && break
13296 done
13297fi
13298if test -z "$F77"; then
13299 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013300 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 +000013301do
13302 # Extract the first word of "$ac_prog", so it can be a program name with args.
13303set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013306if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309 if test -n "$ac_ct_F77"; then
13310 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13311else
13312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013318 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 +000013319 ac_cv_prog_ac_ct_F77="$ac_prog"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323done
13324done
Reid Spencera773bd52006-08-04 18:18:08 +000013325IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013326
13327fi
13328fi
13329ac_ct_F77=$ac_cv_prog_ac_ct_F77
13330if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013331 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13332echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013333else
Reid Spencera773bd52006-08-04 18:18:08 +000013334 { echo "$as_me:$LINENO: result: no" >&5
13335echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013336fi
13337
Reid Spencera773bd52006-08-04 18:18:08 +000013338
John Criswell47fdd832003-07-14 16:52:07 +000013339 test -n "$ac_ct_F77" && break
13340done
13341
Reid Spencera773bd52006-08-04 18:18:08 +000013342 if test "x$ac_ct_F77" = x; then
13343 F77=""
13344 else
13345 case $cross_compiling:$ac_tool_warned in
13346yes:)
13347{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13348whose name does not start with the host triplet. If you think this
13349configuration is useful to you, please write to autoconf@gnu.org." >&5
13350echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13351whose name does not start with the host triplet. If you think this
13352configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13353ac_tool_warned=yes ;;
13354esac
13355 F77=$ac_ct_F77
13356 fi
John Criswell47fdd832003-07-14 16:52:07 +000013357fi
13358
13359
13360# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013361echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013362ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013363{ (ac_try="$ac_compiler --version >&5"
13364case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013373{ (ac_try="$ac_compiler -v >&5"
13374case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013383{ (ac_try="$ac_compiler -V >&5"
13384case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013393rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013394
13395# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013396# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013397ac_save_ext=$ac_ext
13398ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013399{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13400echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013401if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403else
13404 cat >conftest.$ac_ext <<_ACEOF
13405 program main
13406#ifndef __GNUC__
13407 choke me
13408#endif
13409
13410 end
13411_ACEOF
13412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013413if { (ac_try="$ac_compile"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013446 ac_compiler_gnu=yes
13447else
13448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013449sed 's/^/| /' conftest.$ac_ext >&5
13450
Reid Spencera773bd52006-08-04 18:18:08 +000013451 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013452fi
Reid Spencera773bd52006-08-04 18:18:08 +000013453
13454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013455ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13456
13457fi
Reid Spencera773bd52006-08-04 18:18:08 +000013458{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13459echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013460ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013461ac_test_FFLAGS=${FFLAGS+set}
13462ac_save_FFLAGS=$FFLAGS
13463FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013464{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13465echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013466if test "${ac_cv_prog_f77_g+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468else
13469 FFLAGS=-g
13470cat >conftest.$ac_ext <<_ACEOF
13471 program main
13472
13473 end
13474_ACEOF
13475rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013476if { (ac_try="$ac_compile"
13477case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480esac
13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493esac
13494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503esac
13504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013509 ac_cv_prog_f77_g=yes
13510else
13511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013512sed 's/^/| /' conftest.$ac_ext >&5
13513
Reid Spencera773bd52006-08-04 18:18:08 +000013514 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013515fi
Reid Spencera773bd52006-08-04 18:18:08 +000013516
13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013518
13519fi
Reid Spencera773bd52006-08-04 18:18:08 +000013520{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13521echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013522if test "$ac_test_FFLAGS" = set; then
13523 FFLAGS=$ac_save_FFLAGS
13524elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013525 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013526 FFLAGS="-g -O2"
13527 else
13528 FFLAGS="-g"
13529 fi
13530else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013531 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013532 FFLAGS="-O2"
13533 else
13534 FFLAGS=
13535 fi
13536fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013537
13538G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013539ac_ext=c
13540ac_cpp='$CPP $CPPFLAGS'
13541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543ac_compiler_gnu=$ac_cv_c_compiler_gnu
13544
13545
13546
13547# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13548
13549# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013550{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13551echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013552if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554else
13555 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013556 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013557
13558 case $build_os in
13559 msdosdjgpp*)
13560 # On DJGPP, this test can blow up pretty badly due to problems in libc
13561 # (any single argument exceeding 2000 bytes causes a buffer overrun
13562 # during glob expansion). Even if it were fixed, the result of this
13563 # check would be larger than it should be.
13564 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13565 ;;
13566
13567 gnu*)
13568 # Under GNU Hurd, this test is not required because there is
13569 # no limit to the length of command line arguments.
13570 # Libtool will interpret -1 as no limit whatsoever
13571 lt_cv_sys_max_cmd_len=-1;
13572 ;;
13573
13574 cygwin* | mingw*)
13575 # On Win9x/ME, this test blows up -- it succeeds, but takes
13576 # about 5 minutes as the teststring grows exponentially.
13577 # Worse, since 9x/ME are not pre-emptively multitasking,
13578 # you end up with a "frozen" computer, even though with patience
13579 # the test eventually succeeds (with a max line length of 256k).
13580 # Instead, let's just punt: use the minimum linelength reported by
13581 # all of the supported platforms: 8192 (on NT/2K/XP).
13582 lt_cv_sys_max_cmd_len=8192;
13583 ;;
13584
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585 amigaos*)
13586 # On AmigaOS with pdksh, this test takes hours, literally.
13587 # So we just punt and use a minimum line length of 8192.
13588 lt_cv_sys_max_cmd_len=8192;
13589 ;;
13590
Reid Spencera773bd52006-08-04 18:18:08 +000013591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013592 # This has been around since 386BSD, at least. Likely further.
13593 if test -x /sbin/sysctl; then
13594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13595 elif test -x /usr/sbin/sysctl; then
13596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13597 else
Reid Spencera773bd52006-08-04 18:18:08 +000013598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013599 fi
13600 # And add a safety zone
13601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013603 ;;
13604
Reid Spencera773bd52006-08-04 18:18:08 +000013605 interix*)
13606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13607 lt_cv_sys_max_cmd_len=196608
13608 ;;
13609
13610 osf*)
13611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13613 # nice to cause kernel panics so lets avoid the loop below.
13614 # First set a reasonable default.
13615 lt_cv_sys_max_cmd_len=16384
13616 #
13617 if test -x /sbin/sysconfig; then
13618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13619 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13620 esac
13621 fi
13622 ;;
13623 sco3.2v5*)
13624 lt_cv_sys_max_cmd_len=102400
13625 ;;
13626 sysv5* | sco5v6* | sysv4.2uw2*)
13627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13628 if test -n "$kargmax"; then
13629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13630 else
13631 lt_cv_sys_max_cmd_len=32768
13632 fi
13633 ;;
13634 *)
John Criswell47fdd832003-07-14 16:52:07 +000013635 # If test is not a shell built-in, we'll probably end up computing a
13636 # maximum length that is only half of the actual maximum length, but
13637 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13639 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13640 = "XX$teststring") >/dev/null 2>&1 &&
13641 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013642 lt_cv_sys_max_cmd_len=$new_result &&
13643 test $i != 17 # 1/2 MB should be enough
13644 do
13645 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013646 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013647 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013648 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013649 # Add a significant safety factor because C++ compilers can tack on massive
13650 # amounts of additional arguments before passing them to the linker.
13651 # It appears as though 1/2 is a usable value.
13652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13653 ;;
13654 esac
13655
13656fi
13657
13658if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013659 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13660echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013661else
Reid Spencera773bd52006-08-04 18:18:08 +000013662 { echo "$as_me:$LINENO: result: none" >&5
13663echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013664fi
13665
13666
13667
13668
13669# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013670{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13671echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013672if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674else
13675
13676# These are sane defaults that work on at least a few old systems.
13677# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13678
13679# Character class describing NM global symbol codes.
13680symcode='[BCDEGRST]'
13681
13682# Regexp to match symbols that can be accessed directly from C.
13683sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13684
John Criswell47fdd832003-07-14 16:52:07 +000013685# Transform an extracted symbol line into a proper C declaration
13686lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13687
13688# Transform an extracted symbol line into symbol name and symbol address
13689lt_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'"
13690
13691# Define system-specific variables.
13692case $host_os in
13693aix*)
13694 symcode='[BCDT]'
13695 ;;
13696cygwin* | mingw* | pw32*)
13697 symcode='[ABCDGISTW]'
13698 ;;
13699hpux*) # Its linker distinguishes data from code symbols
13700 if test "$host_cpu" = ia64; then
13701 symcode='[ABCDEGRST]'
13702 fi
13703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13704 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'"
13705 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013706linux*)
13707 if test "$host_cpu" = ia64; then
13708 symcode='[ABCDGIRSTW]'
13709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13710 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'"
13711 fi
13712 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013713irix* | nonstopux*)
13714 symcode='[BCDEGRST]'
13715 ;;
13716osf*)
13717 symcode='[BCDEGQRST]'
13718 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013719solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013720 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013721 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013722sco3.2v5*)
13723 symcode='[DT]'
13724 ;;
13725sysv4.2uw2*)
13726 symcode='[DT]'
13727 ;;
13728sysv5* | sco5v6* | unixware* | OpenUNIX*)
13729 symcode='[ABDT]'
13730 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013731sysv4)
13732 symcode='[DFNSTU]'
13733 ;;
13734esac
13735
13736# Handle CRLF in mingw tool chain
13737opt_cr=
13738case $build_os in
13739mingw*)
13740 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13741 ;;
13742esac
13743
13744# If we're using GNU nm, then use its standard symbol codes.
13745case `$NM -V 2>&1` in
13746*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013747 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013748esac
13749
13750# Try without a prefix undercore, then with it.
13751for ac_symprfx in "" "_"; do
13752
Reid Spencera773bd52006-08-04 18:18:08 +000013753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13754 symxfrm="\\1 $ac_symprfx\\2 \\2"
13755
John Criswell47fdd832003-07-14 16:52:07 +000013756 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013757 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 +000013758
13759 # Check to see that the pipe works correctly.
13760 pipe_works=no
13761
13762 rm -f conftest*
13763 cat > conftest.$ac_ext <<EOF
13764#ifdef __cplusplus
13765extern "C" {
13766#endif
13767char nm_test_var;
13768void nm_test_func(){}
13769#ifdef __cplusplus
13770}
13771#endif
13772int main(){nm_test_var='a';nm_test_func();return(0);}
13773EOF
13774
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; then
13780 # Now try to grab the symbols.
13781 nlist=conftest.nm
13782 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13783 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && test -s "$nlist"; then
13787 # Try sorting and uniquifying the output.
13788 if sort "$nlist" | uniq > "$nlist"T; then
13789 mv -f "$nlist"T "$nlist"
13790 else
13791 rm -f "$nlist"T
13792 fi
13793
13794 # Make sure that we snagged all the symbols we need.
13795 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13796 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13797 cat <<EOF > conftest.$ac_ext
13798#ifdef __cplusplus
13799extern "C" {
13800#endif
13801
13802EOF
13803 # Now generate the symbol file.
13804 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13805
13806 cat <<EOF >> conftest.$ac_ext
13807#if defined (__STDC__) && __STDC__
13808# define lt_ptr_t void *
13809#else
13810# define lt_ptr_t char *
13811# define const
13812#endif
13813
13814/* The mapping between symbol names and symbols. */
13815const struct {
13816 const char *name;
13817 lt_ptr_t address;
13818}
13819lt_preloaded_symbols[] =
13820{
13821EOF
13822 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13823 cat <<\EOF >> conftest.$ac_ext
13824 {0, (lt_ptr_t) 0}
13825};
13826
13827#ifdef __cplusplus
13828}
13829#endif
13830EOF
13831 # Now try linking the two files.
13832 mv conftest.$ac_objext conftstm.$ac_objext
13833 lt_save_LIBS="$LIBS"
13834 lt_save_CFLAGS="$CFLAGS"
13835 LIBS="conftstm.$ac_objext"
13836 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13842 pipe_works=yes
13843 fi
13844 LIBS="$lt_save_LIBS"
13845 CFLAGS="$lt_save_CFLAGS"
13846 else
13847 echo "cannot find nm_test_func in $nlist" >&5
13848 fi
13849 else
13850 echo "cannot find nm_test_var in $nlist" >&5
13851 fi
13852 else
13853 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13854 fi
13855 else
13856 echo "$progname: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 fi
13859 rm -f conftest* conftst*
13860
13861 # Do not use the global_symbol_pipe unless it works.
13862 if test "$pipe_works" = yes; then
13863 break
13864 else
13865 lt_cv_sys_global_symbol_pipe=
13866 fi
13867done
13868
13869fi
13870
13871if test -z "$lt_cv_sys_global_symbol_pipe"; then
13872 lt_cv_sys_global_symbol_to_cdecl=
13873fi
13874if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013875 { echo "$as_me:$LINENO: result: failed" >&5
13876echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013877else
Reid Spencera773bd52006-08-04 18:18:08 +000013878 { echo "$as_me:$LINENO: result: ok" >&5
13879echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013880fi
13881
Reid Spencera773bd52006-08-04 18:18:08 +000013882{ echo "$as_me:$LINENO: checking for objdir" >&5
13883echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013884if test "${lt_cv_objdir+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886else
13887 rm -f .libs 2>/dev/null
13888mkdir .libs 2>/dev/null
13889if test -d .libs; then
13890 lt_cv_objdir=.libs
13891else
13892 # MS-DOS does not allow filenames that begin with a dot.
13893 lt_cv_objdir=_libs
13894fi
13895rmdir .libs 2>/dev/null
13896fi
Reid Spencera773bd52006-08-04 18:18:08 +000013897{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13898echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013899objdir=$lt_cv_objdir
13900
13901
13902
13903
13904
13905case $host_os in
13906aix3*)
13907 # AIX sometimes has problems with the GCC collect2 program. For some
13908 # reason, if we set the COLLECT_NAMES environment variable, the problems
13909 # vanish in a puff of smoke.
13910 if test "X${COLLECT_NAMES+set}" != Xset; then
13911 COLLECT_NAMES=
13912 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013913 fi
13914 ;;
13915esac
13916
John Criswell47fdd832003-07-14 16:52:07 +000013917# Sed substitution that helps us do robust quoting. It backslashifies
13918# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013919Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013920sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13921
13922# Same as above, but do not quote variable references.
13923double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13924
13925# Sed substitution to delay expansion of an escaped shell variable in a
13926# double_quote_subst'ed string.
13927delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13928
13929# Sed substitution to avoid accidental globbing in evaled expressions
13930no_glob_subst='s/\*/\\\*/g'
13931
13932# Constants:
13933rm="rm -f"
13934
13935# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013936default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013937can_build_shared=yes
13938
Reid Spencera773bd52006-08-04 18:18:08 +000013939# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013940# which needs '.lib').
13941libext=a
13942ltmain="$ac_aux_dir/ltmain.sh"
13943ofile="$default_ofile"
13944with_gnu_ld="$lt_cv_prog_gnu_ld"
13945
13946if test -n "$ac_tool_prefix"; then
13947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13948set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013951if test "${ac_cv_prog_AR+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 if test -n "$AR"; then
13955 ac_cv_prog_AR="$AR" # Let the user override the test.
13956else
13957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958for as_dir in $PATH
13959do
13960 IFS=$as_save_IFS
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013963 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 +000013964 ac_cv_prog_AR="${ac_tool_prefix}ar"
13965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13966 break 2
13967 fi
13968done
13969done
Reid Spencera773bd52006-08-04 18:18:08 +000013970IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013971
13972fi
13973fi
13974AR=$ac_cv_prog_AR
13975if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013976 { echo "$as_me:$LINENO: result: $AR" >&5
13977echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013978else
Reid Spencera773bd52006-08-04 18:18:08 +000013979 { echo "$as_me:$LINENO: result: no" >&5
13980echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013981fi
13982
Reid Spencera773bd52006-08-04 18:18:08 +000013983
John Criswell47fdd832003-07-14 16:52:07 +000013984fi
13985if test -z "$ac_cv_prog_AR"; then
13986 ac_ct_AR=$AR
13987 # Extract the first word of "ar", so it can be a program name with args.
13988set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013991if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993else
13994 if test -n "$ac_ct_AR"; then
13995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13996else
13997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998for as_dir in $PATH
13999do
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014003 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 +000014004 ac_cv_prog_ac_ct_AR="ar"
14005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14007 fi
14008done
14009done
Reid Spencera773bd52006-08-04 18:18:08 +000014010IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014011
John Criswell47fdd832003-07-14 16:52:07 +000014012fi
14013fi
14014ac_ct_AR=$ac_cv_prog_ac_ct_AR
14015if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014016 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14017echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014018else
Reid Spencera773bd52006-08-04 18:18:08 +000014019 { echo "$as_me:$LINENO: result: no" >&5
14020echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014021fi
14022
Reid Spencera773bd52006-08-04 18:18:08 +000014023 if test "x$ac_ct_AR" = x; then
14024 AR="false"
14025 else
14026 case $cross_compiling:$ac_tool_warned in
14027yes:)
14028{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14029whose name does not start with the host triplet. If you think this
14030configuration is useful to you, please write to autoconf@gnu.org." >&5
14031echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14032whose name does not start with the host triplet. If you think this
14033configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14034ac_tool_warned=yes ;;
14035esac
14036 AR=$ac_ct_AR
14037 fi
John Criswell47fdd832003-07-14 16:52:07 +000014038else
14039 AR="$ac_cv_prog_AR"
14040fi
14041
John Criswell7a73b802003-06-30 21:59:07 +000014042if test -n "$ac_tool_prefix"; then
14043 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14044set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014045{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014047if test "${ac_cv_prog_RANLIB+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050 if test -n "$RANLIB"; then
14051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14052else
14053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054for as_dir in $PATH
14055do
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014059 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 +000014060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14063 fi
14064done
14065done
Reid Spencera773bd52006-08-04 18:18:08 +000014066IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014067
14068fi
14069fi
14070RANLIB=$ac_cv_prog_RANLIB
14071if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014072 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14073echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014074else
Reid Spencera773bd52006-08-04 18:18:08 +000014075 { echo "$as_me:$LINENO: result: no" >&5
14076echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014077fi
14078
Reid Spencera773bd52006-08-04 18:18:08 +000014079
John Criswell7a73b802003-06-30 21:59:07 +000014080fi
14081if test -z "$ac_cv_prog_RANLIB"; then
14082 ac_ct_RANLIB=$RANLIB
14083 # Extract the first word of "ranlib", so it can be a program name with args.
14084set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014087if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090 if test -n "$ac_ct_RANLIB"; then
14091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14092else
14093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094for as_dir in $PATH
14095do
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014099 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 +000014100 ac_cv_prog_ac_ct_RANLIB="ranlib"
14101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 break 2
14103 fi
14104done
14105done
Reid Spencera773bd52006-08-04 18:18:08 +000014106IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014107
John Criswell7a73b802003-06-30 21:59:07 +000014108fi
14109fi
14110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14111if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014112 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14113echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014114else
Reid Spencera773bd52006-08-04 18:18:08 +000014115 { echo "$as_me:$LINENO: result: no" >&5
14116echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014117fi
14118
Reid Spencera773bd52006-08-04 18:18:08 +000014119 if test "x$ac_ct_RANLIB" = x; then
14120 RANLIB=":"
14121 else
14122 case $cross_compiling:$ac_tool_warned in
14123yes:)
14124{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14125whose name does not start with the host triplet. If you think this
14126configuration is useful to you, please write to autoconf@gnu.org." >&5
14127echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14128whose name does not start with the host triplet. If you think this
14129configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14130ac_tool_warned=yes ;;
14131esac
14132 RANLIB=$ac_ct_RANLIB
14133 fi
John Criswell7a73b802003-06-30 21:59:07 +000014134else
14135 RANLIB="$ac_cv_prog_RANLIB"
14136fi
14137
14138if test -n "$ac_tool_prefix"; then
14139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14140set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014143if test "${ac_cv_prog_STRIP+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145else
14146 if test -n "$STRIP"; then
14147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14148else
14149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150for as_dir in $PATH
14151do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014155 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 +000014156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14159 fi
14160done
14161done
Reid Spencera773bd52006-08-04 18:18:08 +000014162IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014163
14164fi
14165fi
14166STRIP=$ac_cv_prog_STRIP
14167if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014168 { echo "$as_me:$LINENO: result: $STRIP" >&5
14169echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014170else
Reid Spencera773bd52006-08-04 18:18:08 +000014171 { echo "$as_me:$LINENO: result: no" >&5
14172echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014173fi
14174
Reid Spencera773bd52006-08-04 18:18:08 +000014175
John Criswell7a73b802003-06-30 21:59:07 +000014176fi
14177if test -z "$ac_cv_prog_STRIP"; then
14178 ac_ct_STRIP=$STRIP
14179 # Extract the first word of "strip", so it can be a program name with args.
14180set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014183if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185else
14186 if test -n "$ac_ct_STRIP"; then
14187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14188else
14189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190for as_dir in $PATH
14191do
14192 IFS=$as_save_IFS
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014195 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 +000014196 ac_cv_prog_ac_ct_STRIP="strip"
14197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 break 2
14199 fi
14200done
14201done
Reid Spencera773bd52006-08-04 18:18:08 +000014202IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014203
John Criswell7a73b802003-06-30 21:59:07 +000014204fi
14205fi
14206ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14207if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014208 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14209echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014210else
Reid Spencera773bd52006-08-04 18:18:08 +000014211 { echo "$as_me:$LINENO: result: no" >&5
14212echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014213fi
14214
Reid Spencera773bd52006-08-04 18:18:08 +000014215 if test "x$ac_ct_STRIP" = x; then
14216 STRIP=":"
14217 else
14218 case $cross_compiling:$ac_tool_warned in
14219yes:)
14220{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14221whose name does not start with the host triplet. If you think this
14222configuration is useful to you, please write to autoconf@gnu.org." >&5
14223echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14224whose name does not start with the host triplet. If you think this
14225configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14226ac_tool_warned=yes ;;
14227esac
14228 STRIP=$ac_ct_STRIP
14229 fi
John Criswell7a73b802003-06-30 21:59:07 +000014230else
14231 STRIP="$ac_cv_prog_STRIP"
14232fi
14233
14234
John Criswell7a73b802003-06-30 21:59:07 +000014235old_CC="$CC"
14236old_CFLAGS="$CFLAGS"
14237
14238# Set sane defaults for various variables
14239test -z "$AR" && AR=ar
14240test -z "$AR_FLAGS" && AR_FLAGS=cru
14241test -z "$AS" && AS=as
14242test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014243test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014244test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014245test -z "$DLLTOOL" && DLLTOOL=dlltool
14246test -z "$LD" && LD=ld
14247test -z "$LN_S" && LN_S="ln -s"
14248test -z "$MAGIC_CMD" && MAGIC_CMD=file
14249test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014250test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014251test -z "$OBJDUMP" && OBJDUMP=objdump
14252test -z "$RANLIB" && RANLIB=:
14253test -z "$STRIP" && STRIP=:
14254test -z "$ac_objext" && ac_objext=o
14255
John Criswell7a73b802003-06-30 21:59:07 +000014256# Determine commands to create old-style static archives.
14257old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14258old_postinstall_cmds='chmod 644 $oldlib'
14259old_postuninstall_cmds=
14260
14261if test -n "$RANLIB"; then
14262 case $host_os in
14263 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014265 ;;
14266 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014267 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014268 ;;
14269 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014271fi
14272
Reid Spencera773bd52006-08-04 18:18:08 +000014273for cc_temp in $compiler""; do
14274 case $cc_temp in
14275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14277 \-*) ;;
14278 *) break;;
14279 esac
14280done
14281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14282
Reid Spencer2706f8c2004-09-19 23:53:36 +000014283
John Criswell47fdd832003-07-14 16:52:07 +000014284# Only perform the check for file, if the check method requires it
14285case $deplibs_check_method in
14286file_magic*)
14287 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014288 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14289echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014290if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014292else
John Criswell47fdd832003-07-14 16:52:07 +000014293 case $MAGIC_CMD in
14294[\\/*] | ?:[\\/]*)
14295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14296 ;;
14297*)
14298 lt_save_MAGIC_CMD="$MAGIC_CMD"
14299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14301 for ac_dir in $ac_dummy; do
14302 IFS="$lt_save_ifs"
14303 test -z "$ac_dir" && ac_dir=.
14304 if test -f $ac_dir/${ac_tool_prefix}file; then
14305 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14306 if test -n "$file_magic_test_file"; then
14307 case $deplibs_check_method in
14308 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14312 $EGREP "$file_magic_regex" > /dev/null; then
14313 :
14314 else
14315 cat <<EOF 1>&2
14316
14317*** Warning: the command libtool uses to detect shared libraries,
14318*** $file_magic_cmd, produces output that libtool cannot recognize.
14319*** The result is that libtool may fail to recognize shared libraries
14320*** as such. This will affect the creation of libtool libraries that
14321*** depend on shared libraries, but programs linked with such libtool
14322*** libraries will work regardless of this problem. Nevertheless, you
14323*** may want to report the problem to your system manager and/or to
14324*** bug-libtool@gnu.org
14325
14326EOF
14327 fi ;;
14328 esac
14329 fi
14330 break
14331 fi
14332 done
14333 IFS="$lt_save_ifs"
14334 MAGIC_CMD="$lt_save_MAGIC_CMD"
14335 ;;
14336esac
John Criswell7a73b802003-06-30 21:59:07 +000014337fi
John Criswell7a73b802003-06-30 21:59:07 +000014338
John Criswell47fdd832003-07-14 16:52:07 +000014339MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14340if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014341 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14342echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014343else
Reid Spencera773bd52006-08-04 18:18:08 +000014344 { echo "$as_me:$LINENO: result: no" >&5
14345echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014346fi
John Criswell7a73b802003-06-30 21:59:07 +000014347
John Criswell47fdd832003-07-14 16:52:07 +000014348if test -z "$lt_cv_path_MAGIC_CMD"; then
14349 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014350 { echo "$as_me:$LINENO: checking for file" >&5
14351echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014352if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
14355 case $MAGIC_CMD in
14356[\\/*] | ?:[\\/]*)
14357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14358 ;;
14359*)
14360 lt_save_MAGIC_CMD="$MAGIC_CMD"
14361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14363 for ac_dir in $ac_dummy; do
14364 IFS="$lt_save_ifs"
14365 test -z "$ac_dir" && ac_dir=.
14366 if test -f $ac_dir/file; then
14367 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14368 if test -n "$file_magic_test_file"; then
14369 case $deplibs_check_method in
14370 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14374 $EGREP "$file_magic_regex" > /dev/null; then
14375 :
14376 else
14377 cat <<EOF 1>&2
14378
14379*** Warning: the command libtool uses to detect shared libraries,
14380*** $file_magic_cmd, produces output that libtool cannot recognize.
14381*** The result is that libtool may fail to recognize shared libraries
14382*** as such. This will affect the creation of libtool libraries that
14383*** depend on shared libraries, but programs linked with such libtool
14384*** libraries will work regardless of this problem. Nevertheless, you
14385*** may want to report the problem to your system manager and/or to
14386*** bug-libtool@gnu.org
14387
14388EOF
14389 fi ;;
14390 esac
14391 fi
14392 break
14393 fi
14394 done
14395 IFS="$lt_save_ifs"
14396 MAGIC_CMD="$lt_save_MAGIC_CMD"
14397 ;;
14398esac
14399fi
14400
14401MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14402if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014403 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14404echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014405else
Reid Spencera773bd52006-08-04 18:18:08 +000014406 { echo "$as_me:$LINENO: result: no" >&5
14407echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014408fi
14409
14410 else
14411 MAGIC_CMD=:
14412 fi
14413fi
14414
14415 fi
14416 ;;
14417esac
14418
Reid Spencer17795972004-11-18 09:47:37 +000014419enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014420enable_win32_dll=no
14421
Reid Spencera773bd52006-08-04 18:18:08 +000014422# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014423if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014424 enableval=$enable_libtool_lock;
14425fi
John Criswell47fdd832003-07-14 16:52:07 +000014426
John Criswell47fdd832003-07-14 16:52:07 +000014427test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14428
John Criswell7a73b802003-06-30 21:59:07 +000014429
Reid Spencera773bd52006-08-04 18:18:08 +000014430# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014431if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014432 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014433else
14434 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014435fi
14436
John Criswell7a73b802003-06-30 21:59:07 +000014437test -z "$pic_mode" && pic_mode=default
14438
John Criswell47fdd832003-07-14 16:52:07 +000014439# Use C for the default configuration in the libtool script
14440tagname=
14441lt_save_CC="$CC"
14442ac_ext=c
14443ac_cpp='$CPP $CPPFLAGS'
14444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14446ac_compiler_gnu=$ac_cv_c_compiler_gnu
14447
14448
14449# Source file extension for C test sources.
14450ac_ext=c
14451
14452# Object file extension for compiled C test sources.
14453objext=o
14454objext=$objext
14455
14456# Code to be used in simple compile tests
14457lt_simple_compile_test_code="int some_variable = 0;\n"
14458
14459# Code to be used in simple link tests
14460lt_simple_link_test_code='int main(){return(0);}\n'
14461
14462
14463# If no C compiler was specified, use CC.
14464LTCC=${LTCC-"$CC"}
14465
Reid Spencera773bd52006-08-04 18:18:08 +000014466# If no C compiler flags were specified, use CFLAGS.
14467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14468
John Criswell47fdd832003-07-14 16:52:07 +000014469# Allow CC to be a program name with arguments.
14470compiler=$CC
14471
14472
Reid Spencera773bd52006-08-04 18:18:08 +000014473# save warnings/boilerplate of simple test code
14474ac_outfile=conftest.$ac_objext
14475printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477_lt_compiler_boilerplate=`cat conftest.err`
14478$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014479
Reid Spencera773bd52006-08-04 18:18:08 +000014480ac_outfile=conftest.$ac_objext
14481printf "$lt_simple_link_test_code" >conftest.$ac_ext
14482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14483_lt_linker_boilerplate=`cat conftest.err`
14484$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014485
14486
John Criswell47fdd832003-07-14 16:52:07 +000014487
14488lt_prog_compiler_no_builtin_flag=
14489
14490if test "$GCC" = yes; then
14491 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14492
Reid Spencer2706f8c2004-09-19 23:53:36 +000014493
Reid Spencera773bd52006-08-04 18:18:08 +000014494{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14495echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014496if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499 lt_cv_prog_compiler_rtti_exceptions=no
14500 ac_outfile=conftest.$ac_objext
14501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14502 lt_compiler_flag="-fno-rtti -fno-exceptions"
14503 # Insert the option either (1) after the last *FLAGS variable, or
14504 # (2) before a word containing "conftest.", or (3) at the end.
14505 # Note that $ac_compile itself does not contain backslashes and begins
14506 # with a dollar sign (not a hyphen), so the echo should work correctly.
14507 # The option is referenced via a variable to avoid confusing sed.
14508 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14511 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000014512 (eval echo "\"\$as_me:14512: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014513 (eval "$lt_compile" 2>conftest.err)
14514 ac_status=$?
14515 cat conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000014516 echo "$as_me:14516: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014517 if (exit $ac_status) && test -s "$ac_outfile"; then
14518 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014519 # So say no if there are warnings other than the usual output.
14520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014523 lt_cv_prog_compiler_rtti_exceptions=yes
14524 fi
14525 fi
14526 $rm conftest*
14527
14528fi
Reid Spencera773bd52006-08-04 18:18:08 +000014529{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14530echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014531
14532if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14533 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14534else
14535 :
14536fi
14537
14538fi
14539
14540lt_prog_compiler_wl=
14541lt_prog_compiler_pic=
14542lt_prog_compiler_static=
14543
Reid Spencera773bd52006-08-04 18:18:08 +000014544{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14545echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014546
14547 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014548 lt_prog_compiler_wl='-Wl,'
14549 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014550
14551 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014552 aix*)
14553 # All AIX code is PIC.
14554 if test "$host_cpu" = ia64; then
14555 # AIX 5 now supports IA64 processor
14556 lt_prog_compiler_static='-Bstatic'
14557 fi
John Criswell7a73b802003-06-30 21:59:07 +000014558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014559
John Criswell7a73b802003-06-30 21:59:07 +000014560 amigaos*)
14561 # FIXME: we need at least 68020 code to build shared libraries, but
14562 # adding the `-m68020' flag to GCC prevents building anything better,
14563 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014565 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014566
14567 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014568 # PIC is the default for these OSes.
14569 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014570
14571 mingw* | pw32* | os2*)
14572 # This hack is so that the source file can tell whether it is being
14573 # built for inclusion in a dll (and should export symbols for example).
14574 lt_prog_compiler_pic='-DDLL_EXPORT'
14575 ;;
14576
John Criswell7a73b802003-06-30 21:59:07 +000014577 darwin* | rhapsody*)
14578 # PIC is the default on this platform
14579 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014580 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014581 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014582
Reid Spencera773bd52006-08-04 18:18:08 +000014583 interix3*)
14584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14585 # Instead, we relocate shared libraries at runtime.
14586 ;;
14587
John Criswell47fdd832003-07-14 16:52:07 +000014588 msdosdjgpp*)
14589 # Just because we use GCC doesn't mean we suddenly get shared libraries
14590 # on systems that don't support them.
14591 lt_prog_compiler_can_build_shared=no
14592 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014594
John Criswell7a73b802003-06-30 21:59:07 +000014595 sysv4*MP*)
14596 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014597 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014598 fi
14599 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014600
14601 hpux*)
14602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14603 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014604 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014605 hppa*64*|ia64*)
14606 # +Z the default
14607 ;;
14608 *)
14609 lt_prog_compiler_pic='-fPIC'
14610 ;;
14611 esac
14612 ;;
14613
John Criswell7a73b802003-06-30 21:59:07 +000014614 *)
John Criswell47fdd832003-07-14 16:52:07 +000014615 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014616 ;;
14617 esac
14618 else
John Criswell47fdd832003-07-14 16:52:07 +000014619 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014620 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014621 aix*)
14622 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014623 if test "$host_cpu" = ia64; then
14624 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014625 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014626 else
John Criswell47fdd832003-07-14 16:52:07 +000014627 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014628 fi
14629 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014630 darwin*)
14631 # PIC is the default on this platform
14632 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014633 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014634 xlc*)
14635 lt_prog_compiler_pic='-qnocommon'
14636 lt_prog_compiler_wl='-Wl,'
14637 ;;
14638 esac
14639 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014640
John Criswell47fdd832003-07-14 16:52:07 +000014641 mingw* | pw32* | os2*)
14642 # This hack is so that the source file can tell whether it is being
14643 # built for inclusion in a dll (and should export symbols for example).
14644 lt_prog_compiler_pic='-DDLL_EXPORT'
14645 ;;
14646
John Criswell7a73b802003-06-30 21:59:07 +000014647 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014648 lt_prog_compiler_wl='-Wl,'
14649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14650 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014651 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014652 hppa*64*|ia64*)
14653 # +Z the default
14654 ;;
14655 *)
14656 lt_prog_compiler_pic='+Z'
14657 ;;
14658 esac
14659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14660 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014661 ;;
14662
John Criswell47fdd832003-07-14 16:52:07 +000014663 irix5* | irix6* | nonstopux*)
14664 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014665 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014666 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014667 ;;
14668
14669 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-Bstatic'
14672 ;;
14673
14674 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014675 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014676 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014677 lt_prog_compiler_wl='-Wl,'
14678 lt_prog_compiler_pic='-KPIC'
14679 lt_prog_compiler_static='-static'
14680 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014681 pgcc* | pgf77* | pgf90* | pgf95*)
14682 # Portland Group compilers (*not* the Pentium gcc compiler,
14683 # which looks to be a dead project)
14684 lt_prog_compiler_wl='-Wl,'
14685 lt_prog_compiler_pic='-fpic'
14686 lt_prog_compiler_static='-Bstatic'
14687 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014688 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014689 lt_prog_compiler_wl='-Wl,'
14690 # All Alpha code is PIC.
14691 lt_prog_compiler_static='-non_shared'
14692 ;;
14693 esac
John Criswell7a73b802003-06-30 21:59:07 +000014694 ;;
14695
14696 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014697 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014698 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014699 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014700 ;;
14701
John Criswell7a73b802003-06-30 21:59:07 +000014702 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014703 lt_prog_compiler_pic='-KPIC'
14704 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014705 case $cc_basename in
14706 f77* | f90* | f95*)
14707 lt_prog_compiler_wl='-Qoption ld ';;
14708 *)
14709 lt_prog_compiler_wl='-Wl,';;
14710 esac
John Criswell7a73b802003-06-30 21:59:07 +000014711 ;;
14712
14713 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014714 lt_prog_compiler_wl='-Qoption ld '
14715 lt_prog_compiler_pic='-PIC'
14716 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014717 ;;
14718
Reid Spencera773bd52006-08-04 18:18:08 +000014719 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_pic='-KPIC'
14722 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014723 ;;
14724
14725 sysv4*MP*)
14726 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014727 lt_prog_compiler_pic='-Kconform_pic'
14728 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014729 fi
14730 ;;
14731
Reid Spencera773bd52006-08-04 18:18:08 +000014732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_pic='-KPIC'
14735 lt_prog_compiler_static='-Bstatic'
14736 ;;
14737
14738 unicos*)
14739 lt_prog_compiler_wl='-Wl,'
14740 lt_prog_compiler_can_build_shared=no
14741 ;;
14742
John Criswell47fdd832003-07-14 16:52:07 +000014743 uts4*)
14744 lt_prog_compiler_pic='-pic'
14745 lt_prog_compiler_static='-Bstatic'
14746 ;;
14747
John Criswell7a73b802003-06-30 21:59:07 +000014748 *)
John Criswell47fdd832003-07-14 16:52:07 +000014749 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014750 ;;
14751 esac
14752 fi
14753
Reid Spencera773bd52006-08-04 18:18:08 +000014754{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14755echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014756
John Criswell47fdd832003-07-14 16:52:07 +000014757#
14758# Check to make sure the PIC flag actually works.
14759#
14760if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014761
Reid Spencera773bd52006-08-04 18:18:08 +000014762{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14763echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014764if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
John Criswell47fdd832003-07-14 16:52:07 +000014767 lt_prog_compiler_pic_works=no
14768 ac_outfile=conftest.$ac_objext
14769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 # The option is referenced via a variable to avoid confusing sed.
14776 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000014780 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014781 (eval "$lt_compile" 2>conftest.err)
14782 ac_status=$?
14783 cat conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000014784 echo "$as_me:14784: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014785 if (exit $ac_status) && test -s "$ac_outfile"; then
14786 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014787 # So say no if there are warnings other than the usual output.
14788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014791 lt_prog_compiler_pic_works=yes
14792 fi
14793 fi
14794 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014795
John Criswell47fdd832003-07-14 16:52:07 +000014796fi
Reid Spencera773bd52006-08-04 18:18:08 +000014797{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14798echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014799
John Criswell47fdd832003-07-14 16:52:07 +000014800if test x"$lt_prog_compiler_pic_works" = xyes; then
14801 case $lt_prog_compiler_pic in
14802 "" | " "*) ;;
14803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14804 esac
John Criswell7a73b802003-06-30 21:59:07 +000014805else
John Criswell47fdd832003-07-14 16:52:07 +000014806 lt_prog_compiler_pic=
14807 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014808fi
14809
John Criswell7a73b802003-06-30 21:59:07 +000014810fi
Reid Spencera773bd52006-08-04 18:18:08 +000014811case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014812 # For platforms which do not support PIC, -DPIC is meaningless:
14813 *djgpp*)
14814 lt_prog_compiler_pic=
14815 ;;
14816 *)
14817 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14818 ;;
14819esac
John Criswell7a73b802003-06-30 21:59:07 +000014820
Reid Spencera773bd52006-08-04 18:18:08 +000014821#
14822# Check to make sure the static flag actually works.
14823#
14824wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14825{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14826echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14827if test "${lt_prog_compiler_static_works+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829else
14830 lt_prog_compiler_static_works=no
14831 save_LDFLAGS="$LDFLAGS"
14832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14835 # The linker can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
14837 if test -s conftest.err; then
14838 # Append any errors to the config.log.
14839 cat conftest.err 1>&5
14840 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14842 if diff conftest.exp conftest.er2 >/dev/null; then
14843 lt_prog_compiler_static_works=yes
14844 fi
14845 else
14846 lt_prog_compiler_static_works=yes
14847 fi
14848 fi
14849 $rm conftest*
14850 LDFLAGS="$save_LDFLAGS"
14851
14852fi
14853{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14854echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14855
14856if test x"$lt_prog_compiler_static_works" = xyes; then
14857 :
14858else
14859 lt_prog_compiler_static=
14860fi
14861
14862
14863{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14864echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014865if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867else
John Criswell47fdd832003-07-14 16:52:07 +000014868 lt_cv_prog_compiler_c_o=no
14869 $rm -r conftest 2>/dev/null
14870 mkdir conftest
14871 cd conftest
14872 mkdir out
14873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014874
John Criswell47fdd832003-07-14 16:52:07 +000014875 lt_compiler_flag="-o out/conftest2.$ac_objext"
14876 # Insert the option either (1) after the last *FLAGS variable, or
14877 # (2) before a word containing "conftest.", or (3) at the end.
14878 # Note that $ac_compile itself does not contain backslashes and begins
14879 # with a dollar sign (not a hyphen), so the echo should work correctly.
14880 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14883 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000014884 (eval echo "\"\$as_me:14884: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014885 (eval "$lt_compile" 2>out/conftest.err)
14886 ac_status=$?
14887 cat out/conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000014888 echo "$as_me:14888: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14890 then
14891 # The compiler can only warn and ignore the option if not recognized
14892 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014893 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014896 lt_cv_prog_compiler_c_o=yes
14897 fi
14898 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014899 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014900 $rm conftest*
14901 # SGI C++ compiler will create directory out/ii_files/ for
14902 # template instantiation
14903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14904 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014905 cd ..
14906 rmdir conftest
14907 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014908
14909fi
Reid Spencera773bd52006-08-04 18:18:08 +000014910{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14911echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014912
John Criswell7a73b802003-06-30 21:59:07 +000014913
John Criswell7a73b802003-06-30 21:59:07 +000014914hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014915if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014916 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014917 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14918echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014919 hard_links=yes
14920 $rm conftest*
14921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 touch conftest.a
14923 ln conftest.a conftest.b 2>&5 || hard_links=no
14924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014925 { echo "$as_me:$LINENO: result: $hard_links" >&5
14926echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014927 if test "$hard_links" = no; then
14928 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14929echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14930 need_locks=warn
14931 fi
14932else
14933 need_locks=no
14934fi
John Criswell7a73b802003-06-30 21:59:07 +000014935
Reid Spencera773bd52006-08-04 18:18:08 +000014936{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14937echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014938
14939 runpath_var=
14940 allow_undefined_flag=
14941 enable_shared_with_static_runtimes=no
14942 archive_cmds=
14943 archive_expsym_cmds=
14944 old_archive_From_new_cmds=
14945 old_archive_from_expsyms_cmds=
14946 export_dynamic_flag_spec=
14947 whole_archive_flag_spec=
14948 thread_safe_flag_spec=
14949 hardcode_libdir_flag_spec=
14950 hardcode_libdir_flag_spec_ld=
14951 hardcode_libdir_separator=
14952 hardcode_direct=no
14953 hardcode_minus_L=no
14954 hardcode_shlibpath_var=unsupported
14955 link_all_deplibs=unknown
14956 hardcode_automatic=no
14957 module_cmds=
14958 module_expsym_cmds=
14959 always_export_symbols=no
14960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14961 # include_expsyms should be a list of space-separated symbols to be *always*
14962 # included in the symbol list
14963 include_expsyms=
14964 # exclude_expsyms can be an extended regexp of symbols to exclude
14965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14967 # as well as any symbol that contains `d'.
14968 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14970 # platforms (ab)use it in PIC code, but their linkers get confused if
14971 # the symbol is explicitly referenced. Since portable code cannot
14972 # rely on this symbol name, it's probably fine to never include it in
14973 # preloaded symbol tables.
14974 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014975 # Just being paranoid about ensuring that cc_basename is set.
14976 for cc_temp in $compiler""; do
14977 case $cc_temp in
14978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14980 \-*) ;;
14981 *) break;;
14982 esac
14983done
14984cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014985
14986 case $host_os in
14987 cygwin* | mingw* | pw32*)
14988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14989 # When not using gcc, we currently assume that we are using
14990 # Microsoft Visual C++.
14991 if test "$GCC" != yes; then
14992 with_gnu_ld=no
14993 fi
14994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014995 interix*)
14996 # we just hope/assume this is gcc and not c89 (= MSVC++)
14997 with_gnu_ld=yes
14998 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014999 openbsd*)
15000 with_gnu_ld=no
15001 ;;
15002 esac
15003
15004 ld_shlibs=yes
15005 if test "$with_gnu_ld" = yes; then
15006 # If archive_cmds runs LD, not CC, wlarc should be empty
15007 wlarc='${wl}'
15008
Reid Spencera773bd52006-08-04 18:18:08 +000015009 # Set some defaults for GNU ld with shared library support. These
15010 # are reset later if shared libraries are not supported. Putting them
15011 # here allows them to be overridden if necessary.
15012 runpath_var=LD_RUN_PATH
15013 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15014 export_dynamic_flag_spec='${wl}--export-dynamic'
15015 # ancient GNU ld didn't support --whole-archive et. al.
15016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15018 else
15019 whole_archive_flag_spec=
15020 fi
15021 supports_anon_versioning=no
15022 case `$LD -v 2>/dev/null` in
15023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15026 *\ 2.11.*) ;; # other 2.11 versions
15027 *) supports_anon_versioning=yes ;;
15028 esac
15029
John Criswell47fdd832003-07-14 16:52:07 +000015030 # See if GNU ld supports shared libraries.
15031 case $host_os in
15032 aix3* | aix4* | aix5*)
15033 # On AIX/PPC, the GNU linker is very broken
15034 if test "$host_cpu" != ia64; then
15035 ld_shlibs=no
15036 cat <<EOF 1>&2
15037
15038*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15039*** to be unable to reliably create shared libraries on AIX.
15040*** Therefore, libtool is disabling shared libraries support. If you
15041*** really care for shared libraries, you may want to modify your PATH
15042*** so that a non-GNU linker is found, and then restart.
15043
15044EOF
15045 fi
15046 ;;
15047
15048 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015049 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 +000015050 hardcode_libdir_flag_spec='-L$libdir'
15051 hardcode_minus_L=yes
15052
15053 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15054 # that the semantics of dynamic libraries on AmigaOS, at least up
15055 # to version 4, is to share data among multiple programs linked
15056 # with the same dynamic library. Since this doesn't match the
15057 # behavior of shared libraries on other platforms, we can't use
15058 # them.
15059 ld_shlibs=no
15060 ;;
15061
15062 beos*)
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 allow_undefined_flag=unsupported
15065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15066 # support --undefined. This deserves some investigation. FIXME
15067 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15068 else
15069 ld_shlibs=no
15070 fi
15071 ;;
15072
15073 cygwin* | mingw* | pw32*)
15074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15075 # as there is no search path for DLLs.
15076 hardcode_libdir_flag_spec='-L$libdir'
15077 allow_undefined_flag=unsupported
15078 always_export_symbols=no
15079 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015080 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 +000015081
15082 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015083 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 +000015084 # If the export-symbols file already is a .def file (1st line
15085 # is EXPORTS), use it as is; otherwise, prepend...
15086 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15087 cp $export_symbols $output_objdir/$soname.def;
15088 else
15089 echo EXPORTS > $output_objdir/$soname.def;
15090 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015091 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15093 else
15094 ld_shlibs=no
15095 fi
15096 ;;
15097
15098 interix3*)
15099 hardcode_direct=no
15100 hardcode_shlibpath_var=no
15101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15102 export_dynamic_flag_spec='${wl}-E'
15103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15104 # Instead, shared libraries are loaded at an image base (0x10000000 by
15105 # default) and relocated if they conflict, which is a slow very memory
15106 # consuming and fragmenting process. To avoid this, we pick a random,
15107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15110 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'
15111 ;;
15112
15113 linux*)
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 tmp_addflag=
15116 case $cc_basename,$host_cpu in
15117 pgcc*) # Portland Group C compiler
15118 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'
15119 tmp_addflag=' $pic_flag'
15120 ;;
15121 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15122 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'
15123 tmp_addflag=' $pic_flag -Mnomain' ;;
15124 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15125 tmp_addflag=' -i_dynamic' ;;
15126 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15127 tmp_addflag=' -i_dynamic -nofor_main' ;;
15128 ifc* | ifort*) # Intel Fortran compiler
15129 tmp_addflag=' -nofor_main' ;;
15130 esac
15131 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15132
15133 if test $supports_anon_versioning = yes; then
15134 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15136 $echo "local: *; };" >> $output_objdir/$libname.ver~
15137 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15138 fi
John Criswell47fdd832003-07-14 16:52:07 +000015139 else
15140 ld_shlibs=no
15141 fi
15142 ;;
15143
15144 netbsd*)
15145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15146 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15147 wlarc=
15148 else
15149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15151 fi
15152 ;;
15153
Reid Spencera773bd52006-08-04 18:18:08 +000015154 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015155 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15156 ld_shlibs=no
15157 cat <<EOF 1>&2
15158
15159*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15160*** create shared libraries on Solaris systems. Therefore, libtool
15161*** is disabling shared libraries support. We urge you to upgrade GNU
15162*** binutils to release 2.9.1 or newer. Another option is to modify
15163*** your PATH or compiler configuration so that the native linker is
15164*** used, and then restart.
15165
15166EOF
15167 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15170 else
15171 ld_shlibs=no
15172 fi
15173 ;;
15174
Reid Spencera773bd52006-08-04 18:18:08 +000015175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15176 case `$LD -v 2>&1` in
15177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15178 ld_shlibs=no
15179 cat <<_LT_EOF 1>&2
15180
15181*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15182*** reliably create shared libraries on SCO systems. Therefore, libtool
15183*** is disabling shared libraries support. We urge you to upgrade GNU
15184*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15185*** your PATH or compiler configuration so that the native linker is
15186*** used, and then restart.
15187
15188_LT_EOF
15189 ;;
15190 *)
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15195 else
15196 ld_shlibs=no
15197 fi
15198 ;;
15199 esac
15200 ;;
15201
John Criswell47fdd832003-07-14 16:52:07 +000015202 sunos4*)
15203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15204 wlarc=
15205 hardcode_direct=yes
15206 hardcode_shlibpath_var=no
15207 ;;
15208
15209 *)
15210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213 else
15214 ld_shlibs=no
15215 fi
15216 ;;
15217 esac
15218
Reid Spencera773bd52006-08-04 18:18:08 +000015219 if test "$ld_shlibs" = no; then
15220 runpath_var=
15221 hardcode_libdir_flag_spec=
15222 export_dynamic_flag_spec=
15223 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015224 fi
15225 else
15226 # PORTME fill in a description of your system's linker (not GNU ld)
15227 case $host_os in
15228 aix3*)
15229 allow_undefined_flag=unsupported
15230 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015231 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 +000015232 # Note: this linker hardcodes the directories in LIBPATH if there
15233 # are no directories specified by -L.
15234 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015236 # Neither direct hardcoding nor static linking is supported with a
15237 # broken collect2.
15238 hardcode_direct=unsupported
15239 fi
15240 ;;
15241
15242 aix4* | aix5*)
15243 if test "$host_cpu" = ia64; then
15244 # On IA64, the linker does run time linking by default, so we don't
15245 # have to do anything special.
15246 aix_use_runtimelinking=no
15247 exp_sym_flag='-Bexport'
15248 no_entry_flag=""
15249 else
15250 # If we're using GNU nm, then we don't want the "-C" option.
15251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15252 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15253 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'
15254 else
15255 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'
15256 fi
15257 aix_use_runtimelinking=no
15258
15259 # Test if we are trying to use run time linking or normal
15260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261 # need to do runtime linking.
15262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15263 for ld_flag in $LDFLAGS; do
15264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15265 aix_use_runtimelinking=yes
15266 break
15267 fi
15268 done
Reid Spencera773bd52006-08-04 18:18:08 +000015269 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015270 esac
15271
15272 exp_sym_flag='-bexport'
15273 no_entry_flag='-bnoentry'
15274 fi
15275
15276 # When large executables or shared objects are built, AIX ld can
15277 # have problems creating the table of contents. If linking a library
15278 # or program results in "error TOC overflow" add -mminimal-toc to
15279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15281
15282 archive_cmds=''
15283 hardcode_direct=yes
15284 hardcode_libdir_separator=':'
15285 link_all_deplibs=yes
15286
15287 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015288 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015289 # We only want to do this on AIX 4.2 and lower, the check
15290 # below for broken collect2 doesn't work under 4.3+
15291 collect2name=`${CC} -print-prog-name=collect2`
15292 if test -f "$collect2name" && \
15293 strings "$collect2name" | grep resolve_lib_name >/dev/null
15294 then
15295 # We have reworked collect2
15296 hardcode_direct=yes
15297 else
15298 # We have old collect2
15299 hardcode_direct=unsupported
15300 # It fails to find uninstalled libraries when the uninstalled
15301 # path is not listed in the libpath. Setting hardcode_minus_L
15302 # to unsupported forces relinking
15303 hardcode_minus_L=yes
15304 hardcode_libdir_flag_spec='-L$libdir'
15305 hardcode_libdir_separator=
15306 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015307 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015308 esac
15309 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015310 if test "$aix_use_runtimelinking" = yes; then
15311 shared_flag="$shared_flag "'${wl}-G'
15312 fi
John Criswell47fdd832003-07-14 16:52:07 +000015313 else
15314 # not using gcc
15315 if test "$host_cpu" = ia64; then
15316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15317 # chokes on -Wl,-G. The following line is correct:
15318 shared_flag='-G'
15319 else
Reid Spencera773bd52006-08-04 18:18:08 +000015320 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015321 shared_flag='${wl}-G'
15322 else
15323 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015324 fi
John Criswell47fdd832003-07-14 16:52:07 +000015325 fi
15326 fi
15327
15328 # It seems that -bexpall does not export symbols beginning with
15329 # underscore (_), so it is better to generate a list of symbols to export.
15330 always_export_symbols=yes
15331 if test "$aix_use_runtimelinking" = yes; then
15332 # Warning - without using the other runtime loading flags (-brtl),
15333 # -berok will link without error, but may produce a broken library.
15334 allow_undefined_flag='-berok'
15335 # Determine the default libpath from the value encoded in an empty executable.
15336 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015342
John Criswell7a73b802003-06-30 21:59:07 +000015343int
15344main ()
15345{
John Criswell47fdd832003-07-14 16:52:07 +000015346
John Criswell7a73b802003-06-30 21:59:07 +000015347 ;
15348 return 0;
15349}
15350_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015351rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015352if { (ac_try="$ac_link"
15353case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015359 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369esac
15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379esac
15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015385
John Criswell47fdd832003-07-14 16:52:07 +000015386aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15387}'`
15388# Check for a 64-bit object if we didn't find anything.
15389if 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; }
15390}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015391else
15392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015393sed 's/^/| /' conftest.$ac_ext >&5
15394
Reid Spencera773bd52006-08-04 18:18:08 +000015395
John Criswell7a73b802003-06-30 21:59:07 +000015396fi
Reid Spencera773bd52006-08-04 18:18:08 +000015397
Tanya Lattnercf067672008-01-17 05:57:22 +000015398rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015399 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015400if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015401
John Criswell47fdd832003-07-14 16:52:07 +000015402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015403 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 +000015404 else
15405 if test "$host_cpu" = ia64; then
15406 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15407 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015408 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 +000015409 else
15410 # Determine the default libpath from the value encoded in an empty executable.
15411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015417
John Criswell47fdd832003-07-14 16:52:07 +000015418int
15419main ()
15420{
John Criswell7a73b802003-06-30 21:59:07 +000015421
John Criswell47fdd832003-07-14 16:52:07 +000015422 ;
15423 return 0;
15424}
15425_ACEOF
15426rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015427if { (ac_try="$ac_link"
15428case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest$ac_exeext'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
15455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015460
John Criswell47fdd832003-07-14 16:52:07 +000015461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15462}'`
15463# Check for a 64-bit object if we didn't find anything.
15464if 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; }
15465}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015466else
John Criswell47fdd832003-07-14 16:52:07 +000015467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015468sed 's/^/| /' conftest.$ac_ext >&5
15469
Reid Spencera773bd52006-08-04 18:18:08 +000015470
John Criswell47fdd832003-07-14 16:52:07 +000015471fi
Reid Spencera773bd52006-08-04 18:18:08 +000015472
Tanya Lattnercf067672008-01-17 05:57:22 +000015473rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015474 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015475if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015476
John Criswell47fdd832003-07-14 16:52:07 +000015477 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15478 # Warning - without using the other run time loading flags,
15479 # -berok will link without error, but may produce a broken library.
15480 no_undefined_flag=' ${wl}-bernotok'
15481 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015482 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015483 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015484 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015485 # This is similar to how AIX traditionally builds its shared libraries.
15486 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 +000015487 fi
15488 fi
John Criswell7a73b802003-06-30 21:59:07 +000015489 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015490
15491 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015492 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 +000015493 hardcode_libdir_flag_spec='-L$libdir'
15494 hardcode_minus_L=yes
15495 # see comment about different semantics on the GNU ld section
15496 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015497 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015498
Reid Spencer2706f8c2004-09-19 23:53:36 +000015499 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015500 export_dynamic_flag_spec=-rdynamic
15501 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015502
John Criswell47fdd832003-07-14 16:52:07 +000015503 cygwin* | mingw* | pw32*)
15504 # When not using gcc, we currently assume that we are using
15505 # Microsoft Visual C++.
15506 # hardcode_libdir_flag_spec is actually meaningless, as there is
15507 # no search path for DLLs.
15508 hardcode_libdir_flag_spec=' '
15509 allow_undefined_flag=unsupported
15510 # Tell ltmain to make .lib files, not .a files.
15511 libext=lib
15512 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015513 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015514 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015515 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015516 # The linker will automatically build a .lib file if we build a DLL.
15517 old_archive_From_new_cmds='true'
15518 # FIXME: Should let the user specify the lib program.
15519 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15520 fix_srcfile_path='`cygpath -w "$srcfile"`'
15521 enable_shared_with_static_runtimes=yes
15522 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015523
John Criswell47fdd832003-07-14 16:52:07 +000015524 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015525 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015526 rhapsody* | darwin1.[012])
15527 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15528 ;;
15529 *) # Darwin 1.3 on
15530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15531 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15532 else
15533 case ${MACOSX_DEPLOYMENT_TARGET} in
15534 10.[012])
15535 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15536 ;;
15537 10.*)
15538 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15539 ;;
15540 esac
15541 fi
15542 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015543 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015544 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015545 hardcode_direct=no
15546 hardcode_automatic=yes
15547 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015548 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015549 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015550 if test "$GCC" = yes ; then
15551 output_verbose_link_cmd='echo'
15552 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15553 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015554 # 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 +000015555 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}'
15556 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 +000015557 else
Reid Spencera773bd52006-08-04 18:18:08 +000015558 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015559 xlc*)
15560 output_verbose_link_cmd='echo'
15561 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15562 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015563 # 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 +000015564 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}'
15565 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 +000015566 ;;
15567 *)
15568 ld_shlibs=no
15569 ;;
15570 esac
John Criswell7a73b802003-06-30 21:59:07 +000015571 fi
John Criswell47fdd832003-07-14 16:52:07 +000015572 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015573
John Criswell47fdd832003-07-14 16:52:07 +000015574 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015576 hardcode_libdir_flag_spec='-L$libdir'
15577 hardcode_shlibpath_var=no
15578 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015579
John Criswell47fdd832003-07-14 16:52:07 +000015580 freebsd1*)
15581 ld_shlibs=no
15582 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015583
John Criswell47fdd832003-07-14 16:52:07 +000015584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15585 # support. Future versions do this automatically, but an explicit c++rt0.o
15586 # does not break anything, and helps significantly (at the cost of a little
15587 # extra space).
15588 freebsd2.2*)
15589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15590 hardcode_libdir_flag_spec='-R$libdir'
15591 hardcode_direct=yes
15592 hardcode_shlibpath_var=no
15593 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015594
John Criswell47fdd832003-07-14 16:52:07 +000015595 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15596 freebsd2*)
15597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct=yes
15599 hardcode_minus_L=yes
15600 hardcode_shlibpath_var=no
15601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015602
John Criswell47fdd832003-07-14 16:52:07 +000015603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015604 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015605 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15606 hardcode_libdir_flag_spec='-R$libdir'
15607 hardcode_direct=yes
15608 hardcode_shlibpath_var=no
15609 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015610
John Criswell47fdd832003-07-14 16:52:07 +000015611 hpux9*)
15612 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015613 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 +000015614 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015615 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 +000015616 fi
15617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator=:
15619 hardcode_direct=yes
15620
15621 # hardcode_minus_L: Not really in the search PATH,
15622 # but as the default location of the library.
15623 hardcode_minus_L=yes
15624 export_dynamic_flag_spec='${wl}-E'
15625 ;;
15626
Reid Spencera773bd52006-08-04 18:18:08 +000015627 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015629 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15630 else
15631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15632 fi
15633 if test "$with_gnu_ld" = no; then
15634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15635 hardcode_libdir_separator=:
15636
15637 hardcode_direct=yes
15638 export_dynamic_flag_spec='${wl}-E'
15639
15640 # hardcode_minus_L: Not really in the search PATH,
15641 # but as the default location of the library.
15642 hardcode_minus_L=yes
15643 fi
15644 ;;
15645
15646 hpux11*)
15647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15648 case $host_cpu in
15649 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015650 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15651 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015652 ia64*)
15653 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15654 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015655 *)
15656 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15657 ;;
15658 esac
15659 else
Reid Spencera773bd52006-08-04 18:18:08 +000015660 case $host_cpu in
15661 hppa*64*)
15662 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 ;;
15664 ia64*)
15665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015666 ;;
15667 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015668 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 +000015669 ;;
15670 esac
15671 fi
15672 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015675
Reid Spencera773bd52006-08-04 18:18:08 +000015676 case $host_cpu in
15677 hppa*64*|ia64*)
15678 hardcode_libdir_flag_spec_ld='+b $libdir'
15679 hardcode_direct=no
15680 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015681 ;;
15682 *)
John Criswell47fdd832003-07-14 16:52:07 +000015683 hardcode_direct=yes
15684 export_dynamic_flag_spec='${wl}-E'
15685
15686 # hardcode_minus_L: Not really in the search PATH,
15687 # but as the default location of the library.
15688 hardcode_minus_L=yes
15689 ;;
15690 esac
15691 fi
15692 ;;
15693
15694 irix5* | irix6* | nonstopux*)
15695 if test "$GCC" = yes; then
15696 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'
15697 else
15698 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'
15699 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15700 fi
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702 hardcode_libdir_separator=:
15703 link_all_deplibs=yes
15704 ;;
15705
15706 netbsd*)
15707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15709 else
15710 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15711 fi
15712 hardcode_libdir_flag_spec='-R$libdir'
15713 hardcode_direct=yes
15714 hardcode_shlibpath_var=no
15715 ;;
15716
15717 newsos6)
15718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_direct=yes
15720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator=:
15722 hardcode_shlibpath_var=no
15723 ;;
15724
15725 openbsd*)
15726 hardcode_direct=yes
15727 hardcode_shlibpath_var=no
15728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015730 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 +000015731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15732 export_dynamic_flag_spec='${wl}-E'
15733 else
15734 case $host_os in
15735 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15737 hardcode_libdir_flag_spec='-R$libdir'
15738 ;;
15739 *)
15740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15742 ;;
15743 esac
15744 fi
15745 ;;
15746
15747 os2*)
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_minus_L=yes
15750 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015751 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 +000015752 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15753 ;;
15754
15755 osf3*)
15756 if test "$GCC" = yes; then
15757 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15758 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'
15759 else
15760 allow_undefined_flag=' -expect_unresolved \*'
15761 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'
15762 fi
15763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15764 hardcode_libdir_separator=:
15765 ;;
15766
15767 osf4* | osf5*) # as osf3* with the addition of -msym flag
15768 if test "$GCC" = yes; then
15769 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15770 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'
15771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15772 else
15773 allow_undefined_flag=' -expect_unresolved \*'
15774 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 +000015775 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 +000015776 $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 +000015777
John Criswell47fdd832003-07-14 16:52:07 +000015778 # Both c and cxx compiler support -rpath directly
15779 hardcode_libdir_flag_spec='-rpath $libdir'
15780 fi
15781 hardcode_libdir_separator=:
15782 ;;
15783
John Criswell47fdd832003-07-14 16:52:07 +000015784 solaris*)
15785 no_undefined_flag=' -z text'
15786 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015787 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015788 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790 $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 +000015791 else
Reid Spencera773bd52006-08-04 18:18:08 +000015792 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015793 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015794 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15795 $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 +000015796 fi
15797 hardcode_libdir_flag_spec='-R$libdir'
15798 hardcode_shlibpath_var=no
15799 case $host_os in
15800 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015801 *)
15802 # The compiler driver will combine linker options so we
15803 # cannot just pass the convience library names through
15804 # without $wl, iff we do not link with $LD.
15805 # Luckily, gcc supports the same syntax we need for Sun Studio.
15806 # Supported since Solaris 2.6 (maybe 2.5.1?)
15807 case $wlarc in
15808 '')
15809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15810 *)
15811 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' ;;
15812 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015813 esac
15814 link_all_deplibs=yes
15815 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015816
John Criswell47fdd832003-07-14 16:52:07 +000015817 sunos4*)
15818 if test "x$host_vendor" = xsequent; then
15819 # Use $CC to link under sequent, because it throws in some extra .o
15820 # files that make .init and .fini sections work.
15821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15822 else
15823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15824 fi
15825 hardcode_libdir_flag_spec='-L$libdir'
15826 hardcode_direct=yes
15827 hardcode_minus_L=yes
15828 hardcode_shlibpath_var=no
15829 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015830
John Criswell47fdd832003-07-14 16:52:07 +000015831 sysv4)
15832 case $host_vendor in
15833 sni)
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct=yes # is this really true???
15836 ;;
15837 siemens)
15838 ## LD is ld it makes a PLAMLIB
15839 ## CC just makes a GrossModule.
15840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15841 reload_cmds='$CC -r -o $output$reload_objs'
15842 hardcode_direct=no
15843 ;;
15844 motorola)
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15847 ;;
15848 esac
15849 runpath_var='LD_RUN_PATH'
15850 hardcode_shlibpath_var=no
15851 ;;
15852
15853 sysv4.3*)
15854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_shlibpath_var=no
15856 export_dynamic_flag_spec='-Bexport'
15857 ;;
15858
15859 sysv4*MP*)
15860 if test -d /usr/nec; then
15861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_shlibpath_var=no
15863 runpath_var=LD_RUN_PATH
15864 hardcode_runpath_var=yes
15865 ld_shlibs=yes
15866 fi
15867 ;;
15868
Reid Spencera773bd52006-08-04 18:18:08 +000015869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15870 no_undefined_flag='${wl}-z,text'
15871 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015872 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015873 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015874
John Criswell47fdd832003-07-14 16:52:07 +000015875 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 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 +000015878 else
Reid Spencera773bd52006-08-04 18:18:08 +000015879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 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 +000015881 fi
John Criswell47fdd832003-07-14 16:52:07 +000015882 ;;
15883
Reid Spencera773bd52006-08-04 18:18:08 +000015884 sysv5* | sco3.2v5* | sco5v6*)
15885 # Note: We can NOT use -z defs as we might desire, because we do not
15886 # link with -lc, and that would cause any symbols used from libc to
15887 # always be unresolved, which means just about no library would
15888 # ever link correctly. If we're not using GNU ld we use -z text
15889 # though, which does catch some bad symbols but isn't as heavy-handed
15890 # as -z defs.
15891 no_undefined_flag='${wl}-z,text'
15892 allow_undefined_flag='${wl}-z,nodefs'
15893 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015894 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015895 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15896 hardcode_libdir_separator=':'
15897 link_all_deplibs=yes
15898 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015899 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015900
15901 if test "$GCC" = yes; then
15902 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 else
15905 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15907 fi
John Criswell47fdd832003-07-14 16:52:07 +000015908 ;;
15909
15910 uts4*)
15911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 hardcode_libdir_flag_spec='-L$libdir'
15913 hardcode_shlibpath_var=no
15914 ;;
15915
15916 *)
15917 ld_shlibs=no
15918 ;;
15919 esac
15920 fi
15921
Reid Spencera773bd52006-08-04 18:18:08 +000015922{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15923echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015924test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015925
John Criswell47fdd832003-07-14 16:52:07 +000015926#
15927# Do we need to explicitly link libc?
15928#
15929case "x$archive_cmds_need_lc" in
15930x|xyes)
15931 # Assume -lc should be added
15932 archive_cmds_need_lc=yes
15933
15934 if test "$enable_shared" = yes && test "$GCC" = yes; then
15935 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015936 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015937 # FIXME: we may have to deal with multi-command sequences.
15938 ;;
15939 '$CC '*)
15940 # Test whether the compiler implicitly links with -lc since on some
15941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15942 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015943 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15944echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015945 $rm conftest*
15946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15947
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } 2>conftest.err; then
15953 soname=conftest
15954 lib=conftest
15955 libobjs=conftest.$ac_objext
15956 deplibs=
15957 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015958 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015959 compiler_flags=-v
15960 linker_flags=-v
15961 verstring=
15962 output_objdir=.
15963 libname=conftest
15964 lt_save_allow_undefined_flag=$allow_undefined_flag
15965 allow_undefined_flag=
15966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15967 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }
15971 then
15972 archive_cmds_need_lc=no
15973 else
15974 archive_cmds_need_lc=yes
15975 fi
15976 allow_undefined_flag=$lt_save_allow_undefined_flag
15977 else
15978 cat conftest.err 1>&5
15979 fi
15980 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015981 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15982echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015983 ;;
15984 esac
15985 fi
15986 ;;
15987esac
15988
Reid Spencera773bd52006-08-04 18:18:08 +000015989{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15990echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015991library_names_spec=
15992libname_spec='lib$name'
15993soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015994shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015995postinstall_cmds=
15996postuninstall_cmds=
15997finish_cmds=
15998finish_eval=
15999shlibpath_var=
16000shlibpath_overrides_runpath=unknown
16001version_type=none
16002dynamic_linker="$host_os ld.so"
16003sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016004if test "$GCC" = yes; then
16005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16007 # if the path contains ";" then we assume it to be the separator
16008 # otherwise default to the standard path separator (i.e. ":") - it is
16009 # assumed that no part of a normal pathname contains ";" but that should
16010 # okay in the real world where ";" in dirpaths is itself problematic.
16011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16012 else
16013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16014 fi
16015else
16016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16017fi
16018need_lib_prefix=unknown
16019hardcode_into_libs=no
16020
16021# when you set need_version to no, make sure it does not cause -set_version
16022# flags to be left without arguments
16023need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016024
16025case $host_os in
16026aix3*)
16027 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016029 shlibpath_var=LIBPATH
16030
John Criswell47fdd832003-07-14 16:52:07 +000016031 # AIX 3 has no versioning support, so we append a major version to the name.
16032 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016033 ;;
16034
16035aix4* | aix5*)
16036 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016037 need_lib_prefix=no
16038 need_version=no
16039 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016040 if test "$host_cpu" = ia64; then
16041 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016043 shlibpath_var=LD_LIBRARY_PATH
16044 else
16045 # With GCC up to 2.95.x, collect2 would create an import file
16046 # for dependence libraries. The import file would start with
16047 # the line `#! .'. This would cause the generated library to
16048 # depend on `.', always an invalid library. This was fixed in
16049 # development snapshots of GCC prior to 3.0.
16050 case $host_os in
16051 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16053 echo ' yes '
16054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16055 :
16056 else
16057 can_build_shared=no
16058 fi
16059 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016060 esac
John Criswell47fdd832003-07-14 16:52:07 +000016061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16062 # soname into executable. Probably we can add versioning support to
16063 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016064 if test "$aix_use_runtimelinking" = yes; then
16065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16066 # instead of lib<name>.a to let people know that these are not
16067 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016069 else
16070 # We preserve .a as extension for shared libraries through AIX4.2
16071 # and later when we are not doing run time linking.
16072 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016073 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016074 fi
16075 shlibpath_var=LIBPATH
16076 fi
16077 ;;
16078
16079amigaos*)
16080 library_names_spec='$libname.ixlibrary $libname.a'
16081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016082 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 +000016083 ;;
16084
16085beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016086 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016087 dynamic_linker="$host_os ld.so"
16088 shlibpath_var=LIBRARY_PATH
16089 ;;
16090
Reid Spencer2706f8c2004-09-19 23:53:36 +000016091bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016092 version_type=linux
16093 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016100 # the default ld.so.conf also contains /usr/contrib/lib and
16101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16102 # libtool to hard-code these into programs
16103 ;;
16104
16105cygwin* | mingw* | pw32*)
16106 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016107 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016108 need_version=no
16109 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016110
John Criswell7a73b802003-06-30 21:59:07 +000016111 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016112 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016113 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016115 postinstall_cmds='base_file=`basename \${file}`~
16116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16117 dldir=$destdir/`dirname \$dlpath`~
16118 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016119 $install_prog $dir/$dlname \$dldir/$dlname~
16120 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16122 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016123 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016124 shlibpath_overrides_runpath=yes
16125
16126 case $host_os in
16127 cygwin*)
16128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16129 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 +000016130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016131 ;;
16132 mingw*)
16133 # MinGW DLLs use traditional 'lib' prefix
16134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16137 # It is most probably a Windows format PATH printed by
16138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16139 # path with ; separators, and with drive letters. We can handle the
16140 # drive letters (cygwin fileutils understands them), so leave them,
16141 # especially as we might pass files found there to a mingw objdump,
16142 # which wouldn't understand a cygwinified path. Ahh.
16143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16144 else
16145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16146 fi
16147 ;;
16148 pw32*)
16149 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016150 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 +000016151 ;;
16152 esac
John Criswell7a73b802003-06-30 21:59:07 +000016153 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016154
John Criswell7a73b802003-06-30 21:59:07 +000016155 *)
John Criswell47fdd832003-07-14 16:52:07 +000016156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016157 ;;
16158 esac
16159 dynamic_linker='Win32 ld.exe'
16160 # FIXME: first we should search . and the directory the executable is in
16161 shlibpath_var=PATH
16162 ;;
16163
16164darwin* | rhapsody*)
16165 dynamic_linker="$host_os dyld"
16166 version_type=darwin
16167 need_lib_prefix=no
16168 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016170 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016171 shlibpath_overrides_runpath=yes
16172 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016173 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016174 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016175 if test "$GCC" = yes; then
16176 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"`
16177 else
16178 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016179 fi
16180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16181 ;;
16182
16183dgux*)
16184 version_type=linux
16185 need_lib_prefix=no
16186 need_version=no
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016190 ;;
16191
16192freebsd1*)
16193 dynamic_linker=no
16194 ;;
16195
Reid Spencer2706f8c2004-09-19 23:53:36 +000016196kfreebsd*-gnu)
16197 version_type=linux
16198 need_lib_prefix=no
16199 need_version=no
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=no
16204 hardcode_into_libs=yes
16205 dynamic_linker='GNU ld.so'
16206 ;;
16207
Reid Spencera773bd52006-08-04 18:18:08 +000016208freebsd* | dragonfly*)
16209 # DragonFly does not have aout. When/if they implement a new
16210 # versioning mechanism, adjust this.
16211 if test -x /usr/bin/objformat; then
16212 objformat=`/usr/bin/objformat`
16213 else
16214 case $host_os in
16215 freebsd[123]*) objformat=aout ;;
16216 *) objformat=elf ;;
16217 esac
16218 fi
John Criswell7a73b802003-06-30 21:59:07 +000016219 version_type=freebsd-$objformat
16220 case $version_type in
16221 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016223 need_version=no
16224 need_lib_prefix=no
16225 ;;
16226 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016228 need_version=yes
16229 ;;
16230 esac
16231 shlibpath_var=LD_LIBRARY_PATH
16232 case $host_os in
16233 freebsd2*)
16234 shlibpath_overrides_runpath=yes
16235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016236 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016237 shlibpath_overrides_runpath=yes
16238 hardcode_into_libs=yes
16239 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016242 shlibpath_overrides_runpath=no
16243 hardcode_into_libs=yes
16244 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016245 freebsd*) # from 4.6 on
16246 shlibpath_overrides_runpath=yes
16247 hardcode_into_libs=yes
16248 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016249 esac
16250 ;;
16251
16252gnu*)
16253 version_type=linux
16254 need_lib_prefix=no
16255 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016258 shlibpath_var=LD_LIBRARY_PATH
16259 hardcode_into_libs=yes
16260 ;;
16261
16262hpux9* | hpux10* | hpux11*)
16263 # Give a soname corresponding to the major version so that dld.sl refuses to
16264 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016265 version_type=sunos
16266 need_lib_prefix=no
16267 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016268 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016269 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016270 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016271 hardcode_into_libs=yes
16272 dynamic_linker="$host_os dld.so"
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 if test "X$HPUX_IA64_MODE" = X32; then
16278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16279 else
16280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16281 fi
16282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16283 ;;
16284 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016285 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016286 hardcode_into_libs=yes
16287 dynamic_linker="$host_os dld.sl"
16288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16294 ;;
16295 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016296 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016297 dynamic_linker="$host_os dld.sl"
16298 shlibpath_var=SHLIB_PATH
16299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 ;;
16303 esac
John Criswell7a73b802003-06-30 21:59:07 +000016304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16305 postinstall_cmds='chmod 555 $lib'
16306 ;;
16307
Reid Spencera773bd52006-08-04 18:18:08 +000016308interix3*)
16309 version_type=linux
16310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=no
16317 hardcode_into_libs=yes
16318 ;;
16319
John Criswell47fdd832003-07-14 16:52:07 +000016320irix5* | irix6* | nonstopux*)
16321 case $host_os in
16322 nonstopux*) version_type=nonstopux ;;
16323 *)
16324 if test "$lt_cv_prog_gnu_ld" = yes; then
16325 version_type=linux
16326 else
16327 version_type=irix
16328 fi ;;
16329 esac
John Criswell7a73b802003-06-30 21:59:07 +000016330 need_lib_prefix=no
16331 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016332 soname_spec='${libname}${release}${shared_ext}$major'
16333 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 +000016334 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016335 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016336 libsuff= shlibsuff=
16337 ;;
16338 *)
16339 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16341 libsuff= shlibsuff= libmagic=32-bit;;
16342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16343 libsuff=32 shlibsuff=N32 libmagic=N32;;
16344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016346 *) libsuff= shlibsuff= libmagic=never-match;;
16347 esac
16348 ;;
16349 esac
16350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16351 shlibpath_overrides_runpath=no
16352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016354 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016355 ;;
16356
16357# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016358linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016359 dynamic_linker=no
16360 ;;
16361
16362# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016363linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016364 version_type=linux
16365 need_lib_prefix=no
16366 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=no
16372 # This implies no fast_install, which is unacceptable.
16373 # Some rework will be needed to allow for fast_install
16374 # before this can be enabled.
16375 hardcode_into_libs=yes
16376
Reid Spencer2706f8c2004-09-19 23:53:36 +000016377 # Append ld.so.conf contents to the search path
16378 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016379 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 +000016380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16381 fi
16382
John Criswell7a73b802003-06-30 21:59:07 +000016383 # We used to test for /lib/ld.so.1 and disable shared libraries on
16384 # powerpc, because MkLinux only supported shared libraries with the
16385 # GNU dynamic linker. Since this was broken with cross compilers,
16386 # most powerpc-linux boxes support dynamic linking these days and
16387 # people can always --disable-shared, the test was removed, and we
16388 # assume the GNU/Linux dynamic linker is in use.
16389 dynamic_linker='GNU/Linux ld.so'
16390 ;;
16391
Reid Spencer2706f8c2004-09-19 23:53:36 +000016392knetbsd*-gnu)
16393 version_type=linux
16394 need_lib_prefix=no
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=no
16400 hardcode_into_libs=yes
16401 dynamic_linker='GNU ld.so'
16402 ;;
16403
John Criswell7a73b802003-06-30 21:59:07 +000016404netbsd*)
16405 version_type=sunos
16406 need_lib_prefix=no
16407 need_version=no
16408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16411 dynamic_linker='NetBSD (a.out) ld.so'
16412 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016414 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016415 dynamic_linker='NetBSD ld.elf_so'
16416 fi
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 hardcode_into_libs=yes
16420 ;;
16421
16422newsos6)
16423 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16427 ;;
16428
Reid Spencer2706f8c2004-09-19 23:53:36 +000016429nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016430 version_type=linux
16431 need_lib_prefix=no
16432 need_version=no
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=yes
16437 ;;
16438
16439openbsd*)
16440 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016441 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016442 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016443 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16444 case $host_os in
16445 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16446 *) need_version=no ;;
16447 esac
John Criswell47fdd832003-07-14 16:52:07 +000016448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16450 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016451 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 +000016452 case $host_os in
16453 openbsd2.[89] | openbsd2.[89].*)
16454 shlibpath_overrides_runpath=no
16455 ;;
16456 *)
16457 shlibpath_overrides_runpath=yes
16458 ;;
16459 esac
John Criswell7a73b802003-06-30 21:59:07 +000016460 else
16461 shlibpath_overrides_runpath=yes
16462 fi
John Criswell7a73b802003-06-30 21:59:07 +000016463 ;;
16464
16465os2*)
16466 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016467 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016468 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016469 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016470 dynamic_linker='OS/2 ld.exe'
16471 shlibpath_var=LIBPATH
16472 ;;
16473
16474osf3* | osf4* | osf5*)
16475 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016476 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016477 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016478 soname_spec='${libname}${release}${shared_ext}$major'
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016480 shlibpath_var=LD_LIBRARY_PATH
16481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16483 ;;
16484
John Criswell7a73b802003-06-30 21:59:07 +000016485solaris*)
16486 version_type=linux
16487 need_lib_prefix=no
16488 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16494 # ldd complains unless libraries are executable
16495 postinstall_cmds='chmod +x $lib'
16496 ;;
16497
16498sunos4*)
16499 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=yes
16504 if test "$with_gnu_ld" = yes; then
16505 need_lib_prefix=no
16506 fi
16507 need_version=yes
16508 ;;
16509
Reid Spencera773bd52006-08-04 18:18:08 +000016510sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016511 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16513 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016514 shlibpath_var=LD_LIBRARY_PATH
16515 case $host_vendor in
16516 sni)
16517 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016518 need_lib_prefix=no
16519 export_dynamic_flag_spec='${wl}-Blargedynsym'
16520 runpath_var=LD_RUN_PATH
16521 ;;
16522 siemens)
16523 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016524 ;;
16525 motorola)
16526 need_lib_prefix=no
16527 need_version=no
16528 shlibpath_overrides_runpath=no
16529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16530 ;;
16531 esac
16532 ;;
16533
John Criswell7a73b802003-06-30 21:59:07 +000016534sysv4*MP*)
16535 if test -d /usr/nec ;then
16536 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16538 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016539 shlibpath_var=LD_LIBRARY_PATH
16540 fi
16541 ;;
16542
Reid Spencera773bd52006-08-04 18:18:08 +000016543sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16544 version_type=freebsd-elf
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 hardcode_into_libs=yes
16551 if test "$with_gnu_ld" = yes; then
16552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16553 shlibpath_overrides_runpath=no
16554 else
16555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16556 shlibpath_overrides_runpath=yes
16557 case $host_os in
16558 sco3.2v5*)
16559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16560 ;;
16561 esac
16562 fi
16563 sys_lib_dlsearch_path_spec='/usr/lib'
16564 ;;
16565
John Criswell47fdd832003-07-14 16:52:07 +000016566uts4*)
16567 version_type=linux
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 ;;
16572
John Criswell7a73b802003-06-30 21:59:07 +000016573*)
16574 dynamic_linker=no
16575 ;;
16576esac
Reid Spencera773bd52006-08-04 18:18:08 +000016577{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16578echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016579test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016580
Reid Spencera773bd52006-08-04 18:18:08 +000016581variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16582if test "$GCC" = yes; then
16583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16584fi
16585
16586{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16587echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016588hardcode_action=
16589if test -n "$hardcode_libdir_flag_spec" || \
16590 test -n "$runpath_var" || \
16591 test "X$hardcode_automatic" = "Xyes" ; then
16592
16593 # We can hardcode non-existant directories.
16594 if test "$hardcode_direct" != no &&
16595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16596 # have to relink, otherwise we might link with an installed library
16597 # when we should be linking with a yet-to-be-installed one
16598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16599 test "$hardcode_minus_L" != no; then
16600 # Linking always hardcodes the temporary library directory.
16601 hardcode_action=relink
16602 else
16603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16604 hardcode_action=immediate
16605 fi
16606else
16607 # We cannot hardcode anything, or else we can only hardcode existing
16608 # directories.
16609 hardcode_action=unsupported
16610fi
Reid Spencera773bd52006-08-04 18:18:08 +000016611{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16612echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016613
16614if test "$hardcode_action" = relink; then
16615 # Fast installation is not supported
16616 enable_fast_install=no
16617elif test "$shlibpath_overrides_runpath" = yes ||
16618 test "$enable_shared" = no; then
16619 # Fast installation is not necessary
16620 enable_fast_install=needless
16621fi
16622
16623striplib=
16624old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016625{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16626echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016627if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16629 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016630 { echo "$as_me:$LINENO: result: yes" >&5
16631echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632else
16633# FIXME - insert some real tests, host_os isn't really good enough
16634 case $host_os in
16635 darwin*)
16636 if test -n "$STRIP" ; then
16637 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016638 { echo "$as_me:$LINENO: result: yes" >&5
16639echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016640 else
Reid Spencera773bd52006-08-04 18:18:08 +000016641 { echo "$as_me:$LINENO: result: no" >&5
16642echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016643fi
16644 ;;
16645 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016646 { echo "$as_me:$LINENO: result: no" >&5
16647echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016648 ;;
16649 esac
16650fi
16651
John Criswell7a73b802003-06-30 21:59:07 +000016652if test "x$enable_dlopen" != xyes; then
16653 enable_dlopen=unknown
16654 enable_dlopen_self=unknown
16655 enable_dlopen_self_static=unknown
16656else
16657 lt_cv_dlopen=no
16658 lt_cv_dlopen_libs=
16659
16660 case $host_os in
16661 beos*)
16662 lt_cv_dlopen="load_add_on"
16663 lt_cv_dlopen_libs=
16664 lt_cv_dlopen_self=yes
16665 ;;
16666
John Criswell47fdd832003-07-14 16:52:07 +000016667 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016668 lt_cv_dlopen="LoadLibrary"
16669 lt_cv_dlopen_libs=
16670 ;;
16671
John Criswell47fdd832003-07-14 16:52:07 +000016672 cygwin*)
16673 lt_cv_dlopen="dlopen"
16674 lt_cv_dlopen_libs=
16675 ;;
16676
16677 darwin*)
16678 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016679 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16680echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016681if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684 ac_check_lib_save_LIBS=$LIBS
16685LIBS="-ldl $LIBS"
16686cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016692
Reid Spencera773bd52006-08-04 18:18:08 +000016693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016696#ifdef __cplusplus
16697extern "C"
16698#endif
John Criswell47fdd832003-07-14 16:52:07 +000016699char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016700int
16701main ()
16702{
Reid Spencera773bd52006-08-04 18:18:08 +000016703return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016709if { (ac_try="$ac_link"
16710case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016716 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736esac
16737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016742 ac_cv_lib_dl_dlopen=yes
16743else
16744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016745sed 's/^/| /' conftest.$ac_ext >&5
16746
Reid Spencera773bd52006-08-04 18:18:08 +000016747 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016748fi
Reid Spencera773bd52006-08-04 18:18:08 +000016749
Tanya Lattnercf067672008-01-17 05:57:22 +000016750rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016751 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016752LIBS=$ac_check_lib_save_LIBS
16753fi
Reid Spencera773bd52006-08-04 18:18:08 +000016754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16755echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016756if test $ac_cv_lib_dl_dlopen = yes; then
16757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16758else
16759
16760 lt_cv_dlopen="dyld"
16761 lt_cv_dlopen_libs=
16762 lt_cv_dlopen_self=yes
16763
16764fi
16765
16766 ;;
16767
John Criswell7a73b802003-06-30 21:59:07 +000016768 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016769 { echo "$as_me:$LINENO: checking for shl_load" >&5
16770echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016771if test "${ac_cv_func_shl_load+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773else
16774 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016780/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782#define shl_load innocuous_shl_load
16783
John Criswell7a73b802003-06-30 21:59:07 +000016784/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016785 which can conflict with char shl_load (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016788
John Criswell0c38eaf2003-09-10 15:17:25 +000016789#ifdef __STDC__
16790# include <limits.h>
16791#else
16792# include <assert.h>
16793#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016794
16795#undef shl_load
16796
Reid Spencera773bd52006-08-04 18:18:08 +000016797/* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016800#ifdef __cplusplus
16801extern "C"
16802#endif
John Criswell7a73b802003-06-30 21:59:07 +000016803char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016804/* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016807#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016808choke me
John Criswell7a73b802003-06-30 21:59:07 +000016809#endif
16810
John Criswell0c38eaf2003-09-10 15:17:25 +000016811int
16812main ()
16813{
Reid Spencera773bd52006-08-04 18:18:08 +000016814return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016815 ;
16816 return 0;
16817}
16818_ACEOF
16819rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016820if { (ac_try="$ac_link"
16821case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016827 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837esac
16838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016853 ac_cv_func_shl_load=yes
16854else
16855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016856sed 's/^/| /' conftest.$ac_ext >&5
16857
Reid Spencera773bd52006-08-04 18:18:08 +000016858 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016859fi
Reid Spencera773bd52006-08-04 18:18:08 +000016860
Tanya Lattnercf067672008-01-17 05:57:22 +000016861rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016862 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016863fi
Reid Spencera773bd52006-08-04 18:18:08 +000016864{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16865echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016866if test $ac_cv_func_shl_load = yes; then
16867 lt_cv_dlopen="shl_load"
16868else
Reid Spencera773bd52006-08-04 18:18:08 +000016869 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16870echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016871if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16873else
16874 ac_check_lib_save_LIBS=$LIBS
16875LIBS="-ldld $LIBS"
16876cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016882
Reid Spencera773bd52006-08-04 18:18:08 +000016883/* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016886#ifdef __cplusplus
16887extern "C"
16888#endif
John Criswell7a73b802003-06-30 21:59:07 +000016889char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016890int
16891main ()
16892{
Reid Spencera773bd52006-08-04 18:18:08 +000016893return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016894 ;
16895 return 0;
16896}
16897_ACEOF
16898rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016899if { (ac_try="$ac_link"
16900case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916esac
16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926esac
16927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_try") 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016932 ac_cv_lib_dld_shl_load=yes
16933else
16934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016935sed 's/^/| /' conftest.$ac_ext >&5
16936
Reid Spencera773bd52006-08-04 18:18:08 +000016937 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016938fi
Reid Spencera773bd52006-08-04 18:18:08 +000016939
Tanya Lattnercf067672008-01-17 05:57:22 +000016940rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016941 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016942LIBS=$ac_check_lib_save_LIBS
16943fi
Reid Spencera773bd52006-08-04 18:18:08 +000016944{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16945echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016946if test $ac_cv_lib_dld_shl_load = yes; then
16947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16948else
Reid Spencera773bd52006-08-04 18:18:08 +000016949 { echo "$as_me:$LINENO: checking for dlopen" >&5
16950echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016951if test "${ac_cv_func_dlopen+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962#define dlopen innocuous_dlopen
16963
John Criswell7a73b802003-06-30 21:59:07 +000016964/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016965 which can conflict with char dlopen (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016968
John Criswell0c38eaf2003-09-10 15:17:25 +000016969#ifdef __STDC__
16970# include <limits.h>
16971#else
16972# include <assert.h>
16973#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974
16975#undef dlopen
16976
Reid Spencera773bd52006-08-04 18:18:08 +000016977/* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016980#ifdef __cplusplus
16981extern "C"
16982#endif
John Criswell7a73b802003-06-30 21:59:07 +000016983char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016984/* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016987#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016988choke me
John Criswell7a73b802003-06-30 21:59:07 +000016989#endif
16990
John Criswell0c38eaf2003-09-10 15:17:25 +000016991int
16992main ()
16993{
Reid Spencera773bd52006-08-04 18:18:08 +000016994return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016995 ;
16996 return 0;
16997}
16998_ACEOF
16999rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017000if { (ac_try="$ac_link"
17001case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017esac
17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027esac
17028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017033 ac_cv_func_dlopen=yes
17034else
17035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017036sed 's/^/| /' conftest.$ac_ext >&5
17037
Reid Spencera773bd52006-08-04 18:18:08 +000017038 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017039fi
Reid Spencera773bd52006-08-04 18:18:08 +000017040
Tanya Lattnercf067672008-01-17 05:57:22 +000017041rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017042 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017043fi
Reid Spencera773bd52006-08-04 18:18:08 +000017044{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17045echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017046if test $ac_cv_func_dlopen = yes; then
17047 lt_cv_dlopen="dlopen"
17048else
Reid Spencera773bd52006-08-04 18:18:08 +000017049 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017051if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054 ac_check_lib_save_LIBS=$LIBS
17055LIBS="-ldl $LIBS"
17056cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017062
Reid Spencera773bd52006-08-04 18:18:08 +000017063/* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017066#ifdef __cplusplus
17067extern "C"
17068#endif
John Criswell7a73b802003-06-30 21:59:07 +000017069char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017070int
17071main ()
17072{
Reid Spencera773bd52006-08-04 18:18:08 +000017073return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017074 ;
17075 return 0;
17076}
17077_ACEOF
17078rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017079if { (ac_try="$ac_link"
17080case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096esac
17097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest$ac_exeext'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17106esac
17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017112 ac_cv_lib_dl_dlopen=yes
17113else
17114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017115sed 's/^/| /' conftest.$ac_ext >&5
17116
Reid Spencera773bd52006-08-04 18:18:08 +000017117 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017118fi
Reid Spencera773bd52006-08-04 18:18:08 +000017119
Tanya Lattnercf067672008-01-17 05:57:22 +000017120rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017121 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017122LIBS=$ac_check_lib_save_LIBS
17123fi
Reid Spencera773bd52006-08-04 18:18:08 +000017124{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17125echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017126if test $ac_cv_lib_dl_dlopen = yes; then
17127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17128else
Reid Spencera773bd52006-08-04 18:18:08 +000017129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17130echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017131if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134 ac_check_lib_save_LIBS=$LIBS
17135LIBS="-lsvld $LIBS"
17136cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017142
Reid Spencera773bd52006-08-04 18:18:08 +000017143/* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017146#ifdef __cplusplus
17147extern "C"
17148#endif
John Criswell7a73b802003-06-30 21:59:07 +000017149char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017150int
17151main ()
17152{
Reid Spencera773bd52006-08-04 18:18:08 +000017153return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017159if { (ac_try="$ac_link"
17160case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017192 ac_cv_lib_svld_dlopen=yes
17193else
17194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017195sed 's/^/| /' conftest.$ac_ext >&5
17196
Reid Spencera773bd52006-08-04 18:18:08 +000017197 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017198fi
Reid Spencera773bd52006-08-04 18:18:08 +000017199
Tanya Lattnercf067672008-01-17 05:57:22 +000017200rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017201 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017202LIBS=$ac_check_lib_save_LIBS
17203fi
Reid Spencera773bd52006-08-04 18:18:08 +000017204{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17205echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017206if test $ac_cv_lib_svld_dlopen = yes; then
17207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17208else
Reid Spencera773bd52006-08-04 18:18:08 +000017209 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17210echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017211if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 ac_check_lib_save_LIBS=$LIBS
17215LIBS="-ldld $LIBS"
17216cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017217/* confdefs.h. */
17218_ACEOF
17219cat confdefs.h >>conftest.$ac_ext
17220cat >>conftest.$ac_ext <<_ACEOF
17221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017222
Reid Spencera773bd52006-08-04 18:18:08 +000017223/* Override any GCC internal prototype to avoid an error.
17224 Use char because int might match the return type of a GCC
17225 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017226#ifdef __cplusplus
17227extern "C"
17228#endif
John Criswell7a73b802003-06-30 21:59:07 +000017229char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017230int
17231main ()
17232{
Reid Spencera773bd52006-08-04 18:18:08 +000017233return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017239if { (ac_try="$ac_link"
17240case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243esac
17244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256esac
17257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017272 ac_cv_lib_dld_dld_link=yes
17273else
17274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017275sed 's/^/| /' conftest.$ac_ext >&5
17276
Reid Spencera773bd52006-08-04 18:18:08 +000017277 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017278fi
Reid Spencera773bd52006-08-04 18:18:08 +000017279
Tanya Lattnercf067672008-01-17 05:57:22 +000017280rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017281 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017282LIBS=$ac_check_lib_save_LIBS
17283fi
Reid Spencera773bd52006-08-04 18:18:08 +000017284{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17285echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017286if test $ac_cv_lib_dld_dld_link = yes; then
17287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17288fi
17289
17290
17291fi
17292
17293
17294fi
17295
17296
17297fi
17298
17299
17300fi
17301
17302
17303fi
17304
17305 ;;
17306 esac
17307
17308 if test "x$lt_cv_dlopen" != xno; then
17309 enable_dlopen=yes
17310 else
17311 enable_dlopen=no
17312 fi
17313
17314 case $lt_cv_dlopen in
17315 dlopen)
17316 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017318
17319 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017321
17322 save_LIBS="$LIBS"
17323 LIBS="$lt_cv_dlopen_libs $LIBS"
17324
Reid Spencera773bd52006-08-04 18:18:08 +000017325 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17326echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017327if test "${lt_cv_dlopen_self+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329else
17330 if test "$cross_compiling" = yes; then :
17331 lt_cv_dlopen_self=cross
17332else
John Criswell47fdd832003-07-14 16:52:07 +000017333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017334 lt_status=$lt_dlunknown
17335 cat > conftest.$ac_ext <<EOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017336#line 17336 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017337#include "confdefs.h"
17338
17339#if HAVE_DLFCN_H
17340#include <dlfcn.h>
17341#endif
17342
17343#include <stdio.h>
17344
17345#ifdef RTLD_GLOBAL
17346# define LT_DLGLOBAL RTLD_GLOBAL
17347#else
17348# ifdef DL_GLOBAL
17349# define LT_DLGLOBAL DL_GLOBAL
17350# else
17351# define LT_DLGLOBAL 0
17352# endif
17353#endif
17354
17355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17356 find out it does not work in some platform. */
17357#ifndef LT_DLLAZY_OR_NOW
17358# ifdef RTLD_LAZY
17359# define LT_DLLAZY_OR_NOW RTLD_LAZY
17360# else
17361# ifdef DL_LAZY
17362# define LT_DLLAZY_OR_NOW DL_LAZY
17363# else
17364# ifdef RTLD_NOW
17365# define LT_DLLAZY_OR_NOW RTLD_NOW
17366# else
17367# ifdef DL_NOW
17368# define LT_DLLAZY_OR_NOW DL_NOW
17369# else
17370# define LT_DLLAZY_OR_NOW 0
17371# endif
17372# endif
17373# endif
17374# endif
17375#endif
17376
17377#ifdef __cplusplus
17378extern "C" void exit (int);
17379#endif
17380
17381void fnord() { int i=42;}
17382int main ()
17383{
17384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17385 int status = $lt_dlunknown;
17386
17387 if (self)
17388 {
17389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17391 /* dlclose (self); */
17392 }
Reid Spencera773bd52006-08-04 18:18:08 +000017393 else
17394 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017395
17396 exit (status);
17397}
17398EOF
17399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17400 (eval $ac_link) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017404 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017405 lt_status=$?
17406 case x$lt_status in
17407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017410 esac
17411 else :
17412 # compilation failed
17413 lt_cv_dlopen_self=no
17414 fi
17415fi
17416rm -fr conftest*
17417
17418
17419fi
Reid Spencera773bd52006-08-04 18:18:08 +000017420{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17421echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017422
17423 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17425 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17426echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017427if test "${lt_cv_dlopen_self_static+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429else
17430 if test "$cross_compiling" = yes; then :
17431 lt_cv_dlopen_self_static=cross
17432else
John Criswell47fdd832003-07-14 16:52:07 +000017433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017434 lt_status=$lt_dlunknown
17435 cat > conftest.$ac_ext <<EOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017436#line 17436 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017437#include "confdefs.h"
17438
17439#if HAVE_DLFCN_H
17440#include <dlfcn.h>
17441#endif
17442
17443#include <stdio.h>
17444
17445#ifdef RTLD_GLOBAL
17446# define LT_DLGLOBAL RTLD_GLOBAL
17447#else
17448# ifdef DL_GLOBAL
17449# define LT_DLGLOBAL DL_GLOBAL
17450# else
17451# define LT_DLGLOBAL 0
17452# endif
17453#endif
17454
17455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17456 find out it does not work in some platform. */
17457#ifndef LT_DLLAZY_OR_NOW
17458# ifdef RTLD_LAZY
17459# define LT_DLLAZY_OR_NOW RTLD_LAZY
17460# else
17461# ifdef DL_LAZY
17462# define LT_DLLAZY_OR_NOW DL_LAZY
17463# else
17464# ifdef RTLD_NOW
17465# define LT_DLLAZY_OR_NOW RTLD_NOW
17466# else
17467# ifdef DL_NOW
17468# define LT_DLLAZY_OR_NOW DL_NOW
17469# else
17470# define LT_DLLAZY_OR_NOW 0
17471# endif
17472# endif
17473# endif
17474# endif
17475#endif
17476
17477#ifdef __cplusplus
17478extern "C" void exit (int);
17479#endif
17480
17481void fnord() { int i=42;}
17482int main ()
17483{
17484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17485 int status = $lt_dlunknown;
17486
17487 if (self)
17488 {
17489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17491 /* dlclose (self); */
17492 }
Reid Spencera773bd52006-08-04 18:18:08 +000017493 else
17494 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017495
17496 exit (status);
17497}
17498EOF
17499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017504 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017505 lt_status=$?
17506 case x$lt_status in
17507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017510 esac
17511 else :
17512 # compilation failed
17513 lt_cv_dlopen_self_static=no
17514 fi
17515fi
17516rm -fr conftest*
17517
17518
17519fi
Reid Spencera773bd52006-08-04 18:18:08 +000017520{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17521echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017522 fi
17523
17524 CPPFLAGS="$save_CPPFLAGS"
17525 LDFLAGS="$save_LDFLAGS"
17526 LIBS="$save_LIBS"
17527 ;;
17528 esac
17529
17530 case $lt_cv_dlopen_self in
17531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17532 *) enable_dlopen_self=unknown ;;
17533 esac
17534
17535 case $lt_cv_dlopen_self_static in
17536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17537 *) enable_dlopen_self_static=unknown ;;
17538 esac
17539fi
17540
17541
Reid Spencera773bd52006-08-04 18:18:08 +000017542# Report which library types will actually be built
17543{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17544echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17545{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17546echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017547
Reid Spencera773bd52006-08-04 18:18:08 +000017548{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17549echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017550test "$can_build_shared" = "no" && enable_shared=no
17551
17552# On AIX, shared libraries and static libraries use the same namespace, and
17553# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017554case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017555aix3*)
17556 test "$enable_shared" = yes && enable_static=no
17557 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017559 postinstall_cmds='$RANLIB $lib'
17560 fi
17561 ;;
17562
Reid Spencer2706f8c2004-09-19 23:53:36 +000017563aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17565 test "$enable_shared" = yes && enable_static=no
17566 fi
John Criswell7a73b802003-06-30 21:59:07 +000017567 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017568esac
Reid Spencera773bd52006-08-04 18:18:08 +000017569{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17570echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017571
Reid Spencera773bd52006-08-04 18:18:08 +000017572{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17573echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017574# Make sure either enable_shared or enable_static is yes.
17575test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017576{ echo "$as_me:$LINENO: result: $enable_static" >&5
17577echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017578
17579# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017580# libtool distribution, otherwise you forgot to ship ltmain.sh
17581# with your package, and you will get complaints that there are
17582# no rules to generate ltmain.sh.
17583if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017584 # See if we are running on zsh, and set the options which allow our commands through
17585 # without removal of \ escapes.
17586 if test -n "${ZSH_VERSION+set}" ; then
17587 setopt NO_GLOB_SUBST
17588 fi
John Criswell7a73b802003-06-30 21:59:07 +000017589 # Now quote all the things that may contain metacharacters while being
17590 # careful not to overquote the AC_SUBSTed values. We take copies of the
17591 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017592 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 +000017593 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17596 deplibs_check_method reload_flag reload_cmds need_locks \
17597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17598 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017600 old_postinstall_cmds old_postuninstall_cmds \
17601 compiler \
17602 CC \
17603 LD \
17604 lt_prog_compiler_wl \
17605 lt_prog_compiler_pic \
17606 lt_prog_compiler_static \
17607 lt_prog_compiler_no_builtin_flag \
17608 export_dynamic_flag_spec \
17609 thread_safe_flag_spec \
17610 whole_archive_flag_spec \
17611 enable_shared_with_static_runtimes \
17612 old_archive_cmds \
17613 old_archive_from_new_cmds \
17614 predep_objects \
17615 postdep_objects \
17616 predeps \
17617 postdeps \
17618 compiler_lib_search_path \
17619 archive_cmds \
17620 archive_expsym_cmds \
17621 postinstall_cmds \
17622 postuninstall_cmds \
17623 old_archive_from_expsyms_cmds \
17624 allow_undefined_flag \
17625 no_undefined_flag \
17626 export_symbols_cmds \
17627 hardcode_libdir_flag_spec \
17628 hardcode_libdir_flag_spec_ld \
17629 hardcode_libdir_separator \
17630 hardcode_automatic \
17631 module_cmds \
17632 module_expsym_cmds \
17633 lt_cv_prog_compiler_c_o \
17634 exclude_expsyms \
17635 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017636
17637 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017638 old_archive_cmds | \
17639 old_archive_from_new_cmds | \
17640 archive_cmds | \
17641 archive_expsym_cmds | \
17642 module_cmds | \
17643 module_expsym_cmds | \
17644 old_archive_from_expsyms_cmds | \
17645 export_symbols_cmds | \
17646 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017647 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017648 old_postinstall_cmds | old_postuninstall_cmds | \
17649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017650 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017651 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 +000017652 ;;
17653 *)
17654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17655 ;;
17656 esac
17657 done
17658
John Criswell47fdd832003-07-14 16:52:07 +000017659 case $lt_echo in
17660 *'\$0 --fallback-echo"')
17661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17662 ;;
17663 esac
17664
17665cfgfile="${ofile}T"
17666 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17667 $rm -f "$cfgfile"
17668 { echo "$as_me:$LINENO: creating $ofile" >&5
17669echo "$as_me: creating $ofile" >&6;}
17670
17671 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017672#! $SHELL
17673
John Criswell47fdd832003-07-14 16:52:07 +000017674# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017675# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17676# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17677#
John Criswell47fdd832003-07-14 16:52:07 +000017678# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17679# Free Software Foundation, Inc.
17680#
17681# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017682# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17683#
17684# This program is free software; you can redistribute it and/or modify
17685# it under the terms of the GNU General Public License as published by
17686# the Free Software Foundation; either version 2 of the License, or
17687# (at your option) any later version.
17688#
17689# This program is distributed in the hope that it will be useful, but
17690# WITHOUT ANY WARRANTY; without even the implied warranty of
17691# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17692# General Public License for more details.
17693#
17694# You should have received a copy of the GNU General Public License
17695# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017696# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017697#
17698# As a special exception to the GNU General Public License, if you
17699# distribute this file as part of a program that contains a
17700# configuration script generated by Autoconf, you may include it under
17701# the same distribution terms that you use for the rest of that program.
17702
John Criswell47fdd832003-07-14 16:52:07 +000017703# A sed program that does not truncate output.
17704SED=$lt_SED
17705
John Criswell7a73b802003-06-30 21:59:07 +000017706# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017707Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017708
17709# The HP-UX ksh and POSIX shell print the target directory to stdout
17710# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017711(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017712
John Criswell47fdd832003-07-14 16:52:07 +000017713# The names of the tagged configurations supported by this script.
17714available_tags=
17715
John Criswell7a73b802003-06-30 21:59:07 +000017716# ### BEGIN LIBTOOL CONFIG
17717
17718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17719
17720# Shell to use when invoking shell scripts.
17721SHELL=$lt_SHELL
17722
17723# Whether or not to build shared libraries.
17724build_libtool_libs=$enable_shared
17725
17726# Whether or not to build static libraries.
17727build_old_libs=$enable_static
17728
17729# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017730build_libtool_need_lc=$archive_cmds_need_lc
17731
17732# Whether or not to disallow shared libs when runtime libs are static
17733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017734
17735# Whether or not to optimize for fast installation.
17736fast_install=$enable_fast_install
17737
17738# The host system.
17739host_alias=$host_alias
17740host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017741host_os=$host_os
17742
17743# The build system.
17744build_alias=$build_alias
17745build=$build
17746build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017747
17748# An echo program that does not interpret backslashes.
17749echo=$lt_echo
17750
17751# The archiver.
17752AR=$lt_AR
17753AR_FLAGS=$lt_AR_FLAGS
17754
John Criswell47fdd832003-07-14 16:52:07 +000017755# A C compiler.
17756LTCC=$lt_LTCC
17757
Reid Spencera773bd52006-08-04 18:18:08 +000017758# LTCC compiler flags.
17759LTCFLAGS=$lt_LTCFLAGS
17760
John Criswell47fdd832003-07-14 16:52:07 +000017761# A language-specific compiler.
17762CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017763
17764# Is the compiler the GNU C compiler?
17765with_gcc=$GCC
17766
John Criswell47fdd832003-07-14 16:52:07 +000017767# An ERE matcher.
17768EGREP=$lt_EGREP
17769
John Criswell7a73b802003-06-30 21:59:07 +000017770# The linker used to build libraries.
17771LD=$lt_LD
17772
17773# Whether we need hard or soft links.
17774LN_S=$lt_LN_S
17775
17776# A BSD-compatible nm program.
17777NM=$lt_NM
17778
17779# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017780STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017781
17782# Used to examine libraries when file_magic_cmd begins "file"
17783MAGIC_CMD=$MAGIC_CMD
17784
17785# Used on cygwin: DLL creation program.
17786DLLTOOL="$DLLTOOL"
17787
17788# Used on cygwin: object dumper.
17789OBJDUMP="$OBJDUMP"
17790
17791# Used on cygwin: assembler.
17792AS="$AS"
17793
17794# The name of the directory that contains temporary libtool files.
17795objdir=$objdir
17796
17797# How to create reloadable object files.
17798reload_flag=$lt_reload_flag
17799reload_cmds=$lt_reload_cmds
17800
17801# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017802wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017803
17804# Object file suffix (normally "o").
17805objext="$ac_objext"
17806
17807# Old archive suffix (normally "a").
17808libext="$libext"
17809
John Criswell47fdd832003-07-14 16:52:07 +000017810# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017811shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017812
John Criswell7a73b802003-06-30 21:59:07 +000017813# Executable file suffix (normally "").
17814exeext="$exeext"
17815
17816# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017817pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017818pic_mode=$pic_mode
17819
John Criswell47fdd832003-07-14 16:52:07 +000017820# What is the maximum length of a command?
17821max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017822
John Criswell47fdd832003-07-14 16:52:07 +000017823# Does compiler simultaneously support -c and -o options?
17824compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017825
Reid Spencera773bd52006-08-04 18:18:08 +000017826# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017827need_locks=$lt_need_locks
17828
17829# Do we need the lib prefix for modules?
17830need_lib_prefix=$need_lib_prefix
17831
17832# Do we need a version for libraries?
17833need_version=$need_version
17834
17835# Whether dlopen is supported.
17836dlopen_support=$enable_dlopen
17837
17838# Whether dlopen of programs is supported.
17839dlopen_self=$enable_dlopen_self
17840
17841# Whether dlopen of statically linked programs is supported.
17842dlopen_self_static=$enable_dlopen_self_static
17843
17844# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017845link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017846
17847# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017849
17850# Compiler flag to allow reflexive dlopens.
17851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17852
17853# Compiler flag to generate shared objects directly from archives.
17854whole_archive_flag_spec=$lt_whole_archive_flag_spec
17855
17856# Compiler flag to generate thread-safe objects.
17857thread_safe_flag_spec=$lt_thread_safe_flag_spec
17858
17859# Library versioning type.
17860version_type=$version_type
17861
17862# Format of library name prefix.
17863libname_spec=$lt_libname_spec
17864
17865# List of archive names. First name is the real one, the rest are links.
17866# The last name is the one that the linker finds with -lNAME.
17867library_names_spec=$lt_library_names_spec
17868
17869# The coded name of the library, if different from the real name.
17870soname_spec=$lt_soname_spec
17871
17872# Commands used to build and install an old-style archive.
17873RANLIB=$lt_RANLIB
17874old_archive_cmds=$lt_old_archive_cmds
17875old_postinstall_cmds=$lt_old_postinstall_cmds
17876old_postuninstall_cmds=$lt_old_postuninstall_cmds
17877
17878# Create an old-style archive from a shared archive.
17879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17880
17881# Create a temporary old-style archive to link instead of a shared archive.
17882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17883
17884# Commands used to build and install a shared archive.
17885archive_cmds=$lt_archive_cmds
17886archive_expsym_cmds=$lt_archive_expsym_cmds
17887postinstall_cmds=$lt_postinstall_cmds
17888postuninstall_cmds=$lt_postuninstall_cmds
17889
John Criswell47fdd832003-07-14 16:52:07 +000017890# Commands used to build a loadable module (assumed same as above if empty)
17891module_cmds=$lt_module_cmds
17892module_expsym_cmds=$lt_module_expsym_cmds
17893
John Criswell7a73b802003-06-30 21:59:07 +000017894# Commands to strip libraries.
17895old_striplib=$lt_old_striplib
17896striplib=$lt_striplib
17897
John Criswell47fdd832003-07-14 16:52:07 +000017898# Dependencies to place before the objects being linked to create a
17899# shared library.
17900predep_objects=$lt_predep_objects
17901
17902# Dependencies to place after the objects being linked to create a
17903# shared library.
17904postdep_objects=$lt_postdep_objects
17905
17906# Dependencies to place before the objects being linked to create a
17907# shared library.
17908predeps=$lt_predeps
17909
17910# Dependencies to place after the objects being linked to create a
17911# shared library.
17912postdeps=$lt_postdeps
17913
17914# The library search path used internally by the compiler when linking
17915# a shared library.
17916compiler_lib_search_path=$lt_compiler_lib_search_path
17917
John Criswell7a73b802003-06-30 21:59:07 +000017918# Method to check whether dependent libraries are shared objects.
17919deplibs_check_method=$lt_deplibs_check_method
17920
17921# Command to use when deplibs_check_method == file_magic.
17922file_magic_cmd=$lt_file_magic_cmd
17923
17924# Flag that allows shared libraries with undefined symbols to be built.
17925allow_undefined_flag=$lt_allow_undefined_flag
17926
17927# Flag that forces no undefined symbols.
17928no_undefined_flag=$lt_no_undefined_flag
17929
17930# Commands used to finish a libtool library installation in a directory.
17931finish_cmds=$lt_finish_cmds
17932
17933# Same as above, but a single script fragment to be evaled but not shown.
17934finish_eval=$lt_finish_eval
17935
17936# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017938
17939# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017941
17942# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017944
17945# This is the shared library runtime path variable.
17946runpath_var=$runpath_var
17947
17948# This is the shared library path variable.
17949shlibpath_var=$shlibpath_var
17950
17951# Is shlibpath searched before the hard-coded library search path?
17952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17953
17954# How to hardcode a shared library path into an executable.
17955hardcode_action=$hardcode_action
17956
17957# Whether we should hardcode library paths into libraries.
17958hardcode_into_libs=$hardcode_into_libs
17959
17960# Flag to hardcode \$libdir into a binary during linking.
17961# This must work even if \$libdir does not exist.
17962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17963
John Criswell47fdd832003-07-14 16:52:07 +000017964# If ld is used when linking, flag to hardcode \$libdir into
17965# a binary during linking. This must work even if \$libdir does
17966# not exist.
17967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17968
John Criswell7a73b802003-06-30 21:59:07 +000017969# Whether we need a single -rpath flag with a separated argument.
17970hardcode_libdir_separator=$lt_hardcode_libdir_separator
17971
John Criswell47fdd832003-07-14 16:52:07 +000017972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017973# resulting binary.
17974hardcode_direct=$hardcode_direct
17975
17976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17977# resulting binary.
17978hardcode_minus_L=$hardcode_minus_L
17979
17980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17981# the resulting binary.
17982hardcode_shlibpath_var=$hardcode_shlibpath_var
17983
John Criswell47fdd832003-07-14 16:52:07 +000017984# Set to yes if building a shared library automatically hardcodes DIR into the library
17985# and all subsequent libraries and executables linked against it.
17986hardcode_automatic=$hardcode_automatic
17987
John Criswell7a73b802003-06-30 21:59:07 +000017988# Variables whose values should be saved in libtool wrapper scripts and
17989# restored at relink time.
17990variables_saved_for_relink="$variables_saved_for_relink"
17991
17992# Whether libtool must link a program against all its dependency libraries.
17993link_all_deplibs=$link_all_deplibs
17994
17995# Compile-time system search path for libraries
17996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17997
17998# Run-time system search path for libraries
17999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18000
18001# Fix the shell variable \$srcfile for the compiler.
18002fix_srcfile_path="$fix_srcfile_path"
18003
18004# Set to yes if exported symbols are required.
18005always_export_symbols=$always_export_symbols
18006
18007# The commands to list exported symbols.
18008export_symbols_cmds=$lt_export_symbols_cmds
18009
18010# The commands to extract the exported symbol list from a shared archive.
18011extract_expsyms_cmds=$lt_extract_expsyms_cmds
18012
18013# Symbols that should not be listed in the preloaded symbols.
18014exclude_expsyms=$lt_exclude_expsyms
18015
18016# Symbols that must always be exported.
18017include_expsyms=$lt_include_expsyms
18018
18019# ### END LIBTOOL CONFIG
18020
18021__EOF__
18022
John Criswell47fdd832003-07-14 16:52:07 +000018023
John Criswell7a73b802003-06-30 21:59:07 +000018024 case $host_os in
18025 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018026 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018027
18028# AIX sometimes has problems with the GCC collect2 program. For some
18029# reason, if we set the COLLECT_NAMES environment variable, the problems
18030# vanish in a puff of smoke.
18031if test "X${COLLECT_NAMES+set}" != Xset; then
18032 COLLECT_NAMES=
18033 export COLLECT_NAMES
18034fi
18035EOF
18036 ;;
18037 esac
18038
John Criswell7a73b802003-06-30 21:59:07 +000018039 # We use sed instead of cat because bash on DJGPP gets confused if
18040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18041 # text mode, it properly converts lines to CR/LF. This bash problem
18042 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018043 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018044
John Criswell47fdd832003-07-14 16:52:07 +000018045 mv -f "$cfgfile" "$ofile" || \
18046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018047 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018048
18049else
18050 # If there is no Makefile yet, we rely on a make rule to execute
18051 # `config.status --recheck' to rerun these tests and create the
18052 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18054 if test -f "$ltmain_in"; then
18055 test -f Makefile && make "$ltmain"
18056 fi
John Criswell7a73b802003-06-30 21:59:07 +000018057fi
John Criswell7a73b802003-06-30 21:59:07 +000018058
18059
John Criswell47fdd832003-07-14 16:52:07 +000018060ac_ext=c
18061ac_cpp='$CPP $CPPFLAGS'
18062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064ac_compiler_gnu=$ac_cv_c_compiler_gnu
18065
18066CC="$lt_save_CC"
18067
18068
Reid Spencera773bd52006-08-04 18:18:08 +000018069# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018070if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018071 withval=$with_tags; tagnames="$withval"
18072fi
18073
John Criswell47fdd832003-07-14 16:52:07 +000018074
18075if test -f "$ltmain" && test -n "$tagnames"; then
18076 if test ! -f "${ofile}"; then
18077 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18078echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18079 fi
18080
18081 if test -z "$LTCC"; then
18082 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18083 if test -z "$LTCC"; then
18084 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18085echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18086 else
18087 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18088echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18089 fi
18090 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018091 if test -z "$LTCFLAGS"; then
18092 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18093 fi
John Criswell47fdd832003-07-14 16:52:07 +000018094
18095 # Extract list of available tagged configurations in $ofile.
18096 # Note that this assumes the entire list is on one line.
18097 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18098
18099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18100 for tagname in $tagnames; do
18101 IFS="$lt_save_ifs"
18102 # Check whether tagname contains only valid characters
18103 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18104 "") ;;
18105 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18106echo "$as_me: error: invalid tag name: $tagname" >&2;}
18107 { (exit 1); exit 1; }; }
18108 ;;
18109 esac
18110
18111 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18112 then
18113 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18114echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18115 { (exit 1); exit 1; }; }
18116 fi
18117
18118 # Update the list of available tags.
18119 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018120 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018121
18122 case $tagname in
18123 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18126 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018127 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018128ac_cpp='$CXXCPP $CPPFLAGS'
18129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18132
18133
18134
18135
18136archive_cmds_need_lc_CXX=no
18137allow_undefined_flag_CXX=
18138always_export_symbols_CXX=no
18139archive_expsym_cmds_CXX=
18140export_dynamic_flag_spec_CXX=
18141hardcode_direct_CXX=no
18142hardcode_libdir_flag_spec_CXX=
18143hardcode_libdir_flag_spec_ld_CXX=
18144hardcode_libdir_separator_CXX=
18145hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018146hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018147hardcode_automatic_CXX=no
18148module_cmds_CXX=
18149module_expsym_cmds_CXX=
18150link_all_deplibs_CXX=unknown
18151old_archive_cmds_CXX=$old_archive_cmds
18152no_undefined_flag_CXX=
18153whole_archive_flag_spec_CXX=
18154enable_shared_with_static_runtimes_CXX=no
18155
18156# Dependencies to place before and after the object being linked:
18157predep_objects_CXX=
18158postdep_objects_CXX=
18159predeps_CXX=
18160postdeps_CXX=
18161compiler_lib_search_path_CXX=
18162
18163# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018164ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018165
18166# Object file extension for compiled C++ test sources.
18167objext=o
18168objext_CXX=$objext
18169
18170# Code to be used in simple compile tests
18171lt_simple_compile_test_code="int some_variable = 0;\n"
18172
18173# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018174lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018175
18176# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18177
18178# If no C compiler was specified, use CC.
18179LTCC=${LTCC-"$CC"}
18180
Reid Spencera773bd52006-08-04 18:18:08 +000018181# If no C compiler flags were specified, use CFLAGS.
18182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18183
John Criswell47fdd832003-07-14 16:52:07 +000018184# Allow CC to be a program name with arguments.
18185compiler=$CC
18186
18187
Reid Spencera773bd52006-08-04 18:18:08 +000018188# save warnings/boilerplate of simple test code
18189ac_outfile=conftest.$ac_objext
18190printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18191eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18192_lt_compiler_boilerplate=`cat conftest.err`
18193$rm conftest*
18194
18195ac_outfile=conftest.$ac_objext
18196printf "$lt_simple_link_test_code" >conftest.$ac_ext
18197eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18198_lt_linker_boilerplate=`cat conftest.err`
18199$rm conftest*
18200
18201
John Criswell47fdd832003-07-14 16:52:07 +000018202# Allow CC to be a program name with arguments.
18203lt_save_CC=$CC
18204lt_save_LD=$LD
18205lt_save_GCC=$GCC
18206GCC=$GXX
18207lt_save_with_gnu_ld=$with_gnu_ld
18208lt_save_path_LD=$lt_cv_path_LD
18209if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18210 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18211else
Reid Spencera773bd52006-08-04 18:18:08 +000018212 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018213fi
18214if test -n "${lt_cv_path_LDCXX+set}"; then
18215 lt_cv_path_LD=$lt_cv_path_LDCXX
18216else
Reid Spencera773bd52006-08-04 18:18:08 +000018217 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018218fi
18219test -z "${LDCXX+set}" || LD=$LDCXX
18220CC=${CXX-"c++"}
18221compiler=$CC
18222compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018223for cc_temp in $compiler""; do
18224 case $cc_temp in
18225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18227 \-*) ;;
18228 *) break;;
18229 esac
18230done
18231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18232
John Criswell47fdd832003-07-14 16:52:07 +000018233
18234# We don't want -fno-exception wen compiling C++ code, so set the
18235# no_builtin_flag separately
18236if test "$GXX" = yes; then
18237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18238else
18239 lt_prog_compiler_no_builtin_flag_CXX=
18240fi
18241
18242if test "$GXX" = yes; then
18243 # Set up default GNU C++ configuration
18244
18245
Reid Spencera773bd52006-08-04 18:18:08 +000018246# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018247if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018249else
18250 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018251fi
18252
John Criswell47fdd832003-07-14 16:52:07 +000018253ac_prog=ld
18254if test "$GCC" = yes; then
18255 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018256 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18257echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018258 case $host in
18259 *-*-mingw*)
18260 # gcc leaves a trailing carriage return which upsets mingw
18261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18262 *)
18263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18264 esac
18265 case $ac_prog in
18266 # Accept absolute paths.
18267 [\\/]* | ?:[\\/]*)
18268 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018269 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018270 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18272 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18273 done
18274 test -z "$LD" && LD="$ac_prog"
18275 ;;
18276 "")
18277 # If it fails, then pretend we aren't using GCC.
18278 ac_prog=ld
18279 ;;
18280 *)
18281 # If it is relative, then search for the first ld in PATH.
18282 with_gnu_ld=unknown
18283 ;;
18284 esac
18285elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018286 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18287echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018288else
Reid Spencera773bd52006-08-04 18:18:08 +000018289 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18290echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018291fi
18292if test "${lt_cv_path_LD+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294else
18295 if test -z "$LD"; then
18296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18297 for ac_dir in $PATH; do
18298 IFS="$lt_save_ifs"
18299 test -z "$ac_dir" && ac_dir=.
18300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18301 lt_cv_path_LD="$ac_dir/$ac_prog"
18302 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018303 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018304 # Break only if it was the GNU/non-GNU ld that we prefer.
18305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18306 *GNU* | *'with BFD'*)
18307 test "$with_gnu_ld" != no && break
18308 ;;
18309 *)
18310 test "$with_gnu_ld" != yes && break
18311 ;;
18312 esac
18313 fi
18314 done
18315 IFS="$lt_save_ifs"
18316else
18317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18318fi
18319fi
18320
18321LD="$lt_cv_path_LD"
18322if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018323 { echo "$as_me:$LINENO: result: $LD" >&5
18324echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018325else
Reid Spencera773bd52006-08-04 18:18:08 +000018326 { echo "$as_me:$LINENO: result: no" >&5
18327echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018328fi
18329test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18330echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18331 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018332{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18333echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018334if test "${lt_cv_prog_gnu_ld+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18336else
Reid Spencera773bd52006-08-04 18:18:08 +000018337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018338case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018339*GNU* | *'with BFD'*)
18340 lt_cv_prog_gnu_ld=yes
18341 ;;
18342*)
18343 lt_cv_prog_gnu_ld=no
18344 ;;
18345esac
18346fi
Reid Spencera773bd52006-08-04 18:18:08 +000018347{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18348echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018349with_gnu_ld=$lt_cv_prog_gnu_ld
18350
18351
18352
18353 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18354 # archiving commands below assume that GNU ld is being used.
18355 if test "$with_gnu_ld" = yes; then
18356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18357 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'
18358
18359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18361
18362 # If archive_cmds runs LD, not CC, wlarc should be empty
18363 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18364 # investigate it a little bit more. (MM)
18365 wlarc='${wl}'
18366
18367 # ancient GNU ld didn't support --whole-archive et. al.
18368 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18369 grep 'no-whole-archive' > /dev/null; then
18370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18371 else
18372 whole_archive_flag_spec_CXX=
18373 fi
18374 else
18375 with_gnu_ld=no
18376 wlarc=
18377
18378 # A generic and very simple default shared library creation
18379 # command for GNU C++ for the case where it uses the native
18380 # linker, instead of GNU ld. If possible, this setting should
18381 # overridden to take advantage of the native linker features on
18382 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018384 fi
18385
18386 # Commands to make compiler produce verbose output that lists
18387 # what "hidden" libraries, object files and flags are used when
18388 # linking a shared library.
18389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18390
18391else
18392 GXX=no
18393 with_gnu_ld=no
18394 wlarc=
18395fi
18396
18397# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018398{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18399echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018400ld_shlibs_CXX=yes
18401case $host_os in
18402 aix3*)
18403 # FIXME: insert proper C++ library support
18404 ld_shlibs_CXX=no
18405 ;;
18406 aix4* | aix5*)
18407 if test "$host_cpu" = ia64; then
18408 # On IA64, the linker does run time linking by default, so we don't
18409 # have to do anything special.
18410 aix_use_runtimelinking=no
18411 exp_sym_flag='-Bexport'
18412 no_entry_flag=""
18413 else
18414 aix_use_runtimelinking=no
18415
18416 # Test if we are trying to use run time linking or normal
18417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18418 # need to do runtime linking.
18419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18420 for ld_flag in $LDFLAGS; do
18421 case $ld_flag in
18422 *-brtl*)
18423 aix_use_runtimelinking=yes
18424 break
18425 ;;
18426 esac
18427 done
Reid Spencera773bd52006-08-04 18:18:08 +000018428 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018429 esac
18430
18431 exp_sym_flag='-bexport'
18432 no_entry_flag='-bnoentry'
18433 fi
18434
18435 # When large executables or shared objects are built, AIX ld can
18436 # have problems creating the table of contents. If linking a library
18437 # or program results in "error TOC overflow" add -mminimal-toc to
18438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18440
18441 archive_cmds_CXX=''
18442 hardcode_direct_CXX=yes
18443 hardcode_libdir_separator_CXX=':'
18444 link_all_deplibs_CXX=yes
18445
18446 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018447 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018448 # We only want to do this on AIX 4.2 and lower, the check
18449 # below for broken collect2 doesn't work under 4.3+
18450 collect2name=`${CC} -print-prog-name=collect2`
18451 if test -f "$collect2name" && \
18452 strings "$collect2name" | grep resolve_lib_name >/dev/null
18453 then
18454 # We have reworked collect2
18455 hardcode_direct_CXX=yes
18456 else
18457 # We have old collect2
18458 hardcode_direct_CXX=unsupported
18459 # It fails to find uninstalled libraries when the uninstalled
18460 # path is not listed in the libpath. Setting hardcode_minus_L
18461 # to unsupported forces relinking
18462 hardcode_minus_L_CXX=yes
18463 hardcode_libdir_flag_spec_CXX='-L$libdir'
18464 hardcode_libdir_separator_CXX=
18465 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018466 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018467 esac
18468 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018469 if test "$aix_use_runtimelinking" = yes; then
18470 shared_flag="$shared_flag "'${wl}-G'
18471 fi
John Criswell47fdd832003-07-14 16:52:07 +000018472 else
18473 # not using gcc
18474 if test "$host_cpu" = ia64; then
18475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18476 # chokes on -Wl,-G. The following line is correct:
18477 shared_flag='-G'
18478 else
18479 if test "$aix_use_runtimelinking" = yes; then
18480 shared_flag='${wl}-G'
18481 else
18482 shared_flag='${wl}-bM:SRE'
18483 fi
18484 fi
18485 fi
18486
18487 # It seems that -bexpall does not export symbols beginning with
18488 # underscore (_), so it is better to generate a list of symbols to export.
18489 always_export_symbols_CXX=yes
18490 if test "$aix_use_runtimelinking" = yes; then
18491 # Warning - without using the other runtime loading flags (-brtl),
18492 # -berok will link without error, but may produce a broken library.
18493 allow_undefined_flag_CXX='-berok'
18494 # Determine the default libpath from the value encoded in an empty executable.
18495 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018501
John Criswell47fdd832003-07-14 16:52:07 +000018502int
18503main ()
18504{
18505
18506 ;
18507 return 0;
18508}
18509_ACEOF
18510rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018511if { (ac_try="$ac_link"
18512case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515esac
18516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018518 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18525 { (case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_try") 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest$ac_exeext'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538esac
18539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018544
18545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18546}'`
18547# Check for a 64-bit object if we didn't find anything.
18548if 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; }
18549}'`; fi
18550else
18551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018552sed 's/^/| /' conftest.$ac_ext >&5
18553
Reid Spencera773bd52006-08-04 18:18:08 +000018554
John Criswell47fdd832003-07-14 16:52:07 +000018555fi
Reid Spencera773bd52006-08-04 18:18:08 +000018556
Tanya Lattnercf067672008-01-17 05:57:22 +000018557rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018558 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18560
18561 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18562
Reid Spencera773bd52006-08-04 18:18:08 +000018563 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 +000018564 else
18565 if test "$host_cpu" = ia64; then
18566 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18567 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018568 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 +000018569 else
18570 # Determine the default libpath from the value encoded in an empty executable.
18571 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018577
John Criswell47fdd832003-07-14 16:52:07 +000018578int
18579main ()
18580{
18581
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018587if { (ac_try="$ac_link"
18588case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591esac
18592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604esac
18605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest$ac_exeext'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614esac
18615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018620
18621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18622}'`
18623# Check for a 64-bit object if we didn't find anything.
18624if 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; }
18625}'`; fi
18626else
18627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018628sed 's/^/| /' conftest.$ac_ext >&5
18629
Reid Spencera773bd52006-08-04 18:18:08 +000018630
John Criswell47fdd832003-07-14 16:52:07 +000018631fi
Reid Spencera773bd52006-08-04 18:18:08 +000018632
Tanya Lattnercf067672008-01-17 05:57:22 +000018633rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018635if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18636
18637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18638 # Warning - without using the other run time loading flags,
18639 # -berok will link without error, but may produce a broken library.
18640 no_undefined_flag_CXX=' ${wl}-bernotok'
18641 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018642 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018643 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018644 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018645 # This is similar to how AIX traditionally builds its shared libraries.
18646 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 +000018647 fi
18648 fi
18649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018650
18651 beos*)
18652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18653 allow_undefined_flag_CXX=unsupported
18654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18655 # support --undefined. This deserves some investigation. FIXME
18656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657 else
18658 ld_shlibs_CXX=no
18659 fi
18660 ;;
18661
John Criswell47fdd832003-07-14 16:52:07 +000018662 chorus*)
18663 case $cc_basename in
18664 *)
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18667 ;;
18668 esac
18669 ;;
18670
18671 cygwin* | mingw* | pw32*)
18672 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18673 # as there is no search path for DLLs.
18674 hardcode_libdir_flag_spec_CXX='-L$libdir'
18675 allow_undefined_flag_CXX=unsupported
18676 always_export_symbols_CXX=no
18677 enable_shared_with_static_runtimes_CXX=yes
18678
18679 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018680 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 +000018681 # If the export-symbols file already is a .def file (1st line
18682 # is EXPORTS), use it as is; otherwise, prepend...
18683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18684 cp $export_symbols $output_objdir/$soname.def;
18685 else
18686 echo EXPORTS > $output_objdir/$soname.def;
18687 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018688 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018689 $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 +000018690 else
18691 ld_shlibs_CXX=no
18692 fi
18693 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018694 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018695 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018696 rhapsody* | darwin1.[012])
18697 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18698 ;;
18699 *) # Darwin 1.3 on
18700 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18701 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18702 else
18703 case ${MACOSX_DEPLOYMENT_TARGET} in
18704 10.[012])
18705 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18706 ;;
18707 10.*)
18708 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18709 ;;
18710 esac
18711 fi
18712 ;;
18713 esac
18714 archive_cmds_need_lc_CXX=no
18715 hardcode_direct_CXX=no
18716 hardcode_automatic_CXX=yes
18717 hardcode_shlibpath_var_CXX=unsupported
18718 whole_archive_flag_spec_CXX=''
18719 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018720
Reid Spencer2706f8c2004-09-19 23:53:36 +000018721 if test "$GXX" = yes ; then
18722 lt_int_apple_cc_single_mod=no
18723 output_verbose_link_cmd='echo'
18724 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18725 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018726 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018727 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018728 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 +000018729 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018730 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 +000018731 fi
18732 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018733 # 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 +000018734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018735 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 +000018736 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018737 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 +000018738 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018739 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 +000018740 else
Reid Spencera773bd52006-08-04 18:18:08 +000018741 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018742 xlc*)
18743 output_verbose_link_cmd='echo'
18744 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'
18745 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018746 # 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 +000018747 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}'
18748 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 +000018749 ;;
18750 *)
18751 ld_shlibs_CXX=no
18752 ;;
18753 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018754 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018755 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018756
18757 dgux*)
18758 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018759 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18762 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018763 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018764 # Green Hills C++ Compiler
18765 # FIXME: insert proper C++ library support
18766 ld_shlibs_CXX=no
18767 ;;
18768 *)
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18771 ;;
18772 esac
18773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018774 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018775 # C++ shared libraries reported to be fairly broken before switch to ELF
18776 ld_shlibs_CXX=no
18777 ;;
18778 freebsd-elf*)
18779 archive_cmds_need_lc_CXX=no
18780 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018781 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018782 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18783 # conventions
18784 ld_shlibs_CXX=yes
18785 ;;
18786 gnu*)
18787 ;;
18788 hpux9*)
18789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18791 export_dynamic_flag_spec_CXX='${wl}-E'
18792 hardcode_direct_CXX=yes
18793 hardcode_minus_L_CXX=yes # Not in the search PATH,
18794 # but as the default
18795 # location of the library.
18796
18797 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018798 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018802 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018803 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 +000018804 # Commands to make compiler produce verbose output that lists
18805 # what "hidden" libraries, object files and flags are used when
18806 # linking a shared library.
18807 #
18808 # There doesn't appear to be a way to prevent this compiler from
18809 # explicitly linking system object files so we need to strip them
18810 # from the output so that they don't get included in the library
18811 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018812 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 +000018813 ;;
18814 *)
18815 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018816 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 +000018817 else
18818 # FIXME: insert proper C++ library support
18819 ld_shlibs_CXX=no
18820 fi
18821 ;;
18822 esac
18823 ;;
18824 hpux10*|hpux11*)
18825 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18827 hardcode_libdir_separator_CXX=:
18828
18829 case $host_cpu in
18830 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018831 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018832 ;;
18833 *)
John Criswell47fdd832003-07-14 16:52:07 +000018834 export_dynamic_flag_spec_CXX='${wl}-E'
18835 ;;
18836 esac
18837 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018838 case $host_cpu in
18839 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018840 hardcode_direct_CXX=no
18841 hardcode_shlibpath_var_CXX=no
18842 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018843 *)
18844 hardcode_direct_CXX=yes
18845 hardcode_minus_L_CXX=yes # Not in the search PATH,
18846 # but as the default
18847 # location of the library.
18848 ;;
18849 esac
18850
18851 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018852 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018853 # FIXME: insert proper C++ library support
18854 ld_shlibs_CXX=no
18855 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018856 aCC*)
18857 case $host_cpu in
18858 hppa*64*)
18859 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18860 ;;
18861 ia64*)
18862 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 +000018863 ;;
18864 *)
18865 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18866 ;;
18867 esac
18868 # Commands to make compiler produce verbose output that lists
18869 # what "hidden" libraries, object files and flags are used when
18870 # linking a shared library.
18871 #
18872 # There doesn't appear to be a way to prevent this compiler from
18873 # explicitly linking system object files so we need to strip them
18874 # from the output so that they don't get included in the library
18875 # dependencies.
18876 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'
18877 ;;
18878 *)
18879 if test "$GXX" = yes; then
18880 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018881 case $host_cpu in
18882 hppa*64*)
18883 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18884 ;;
18885 ia64*)
18886 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 +000018887 ;;
18888 *)
18889 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'
18890 ;;
18891 esac
18892 fi
18893 else
18894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18896 fi
18897 ;;
18898 esac
18899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018900 interix3*)
18901 hardcode_direct_CXX=no
18902 hardcode_shlibpath_var_CXX=no
18903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18904 export_dynamic_flag_spec_CXX='${wl}-E'
18905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18906 # Instead, shared libraries are loaded at an image base (0x10000000 by
18907 # default) and relocated if they conflict, which is a slow very memory
18908 # consuming and fragmenting process. To avoid this, we pick a random,
18909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18911 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'
18912 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'
18913 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018914 irix5* | irix6*)
18915 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018916 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018917 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018918 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 +000018919
18920 # Archives containing C++ object files must be created using
18921 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18922 # necessary to make sure instantiated templates are included
18923 # in the archive.
18924 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18925 ;;
18926 *)
18927 if test "$GXX" = yes; then
18928 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018929 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 +000018930 else
18931 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'
18932 fi
18933 fi
18934 link_all_deplibs_CXX=yes
18935 ;;
18936 esac
18937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18938 hardcode_libdir_separator_CXX=:
18939 ;;
18940 linux*)
18941 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018942 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018943 # Kuck and Associates, Inc. (KAI) C++ Compiler
18944
18945 # KCC will only create a shared library if the output file
18946 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18947 # to its proper name (with version) after linking.
18948 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'
18949 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'
18950 # Commands to make compiler produce verbose output that lists
18951 # what "hidden" libraries, object files and flags are used when
18952 # linking a shared library.
18953 #
18954 # There doesn't appear to be a way to prevent this compiler from
18955 # explicitly linking system object files so we need to strip them
18956 # from the output so that they don't get included in the library
18957 # dependencies.
18958 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'
18959
18960 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18962
18963 # Archives containing C++ object files must be created using
18964 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18965 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018967 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018968 # Intel C++
18969 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018970 # version 8.0 and above of icpc choke on multiply defined symbols
18971 # if we add $predep_objects and $postdep_objects, however 7.1 and
18972 # earlier do not add the objects themselves.
18973 case `$CC -V 2>&1` in
18974 *"Version 7."*)
18975 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18976 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'
18977 ;;
18978 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018979 tmp_idyn=
18980 case $host_cpu in
18981 ia64*) tmp_idyn=' -i_dynamic';;
18982 esac
18983 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18984 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 +000018985 ;;
18986 esac
John Criswell47fdd832003-07-14 16:52:07 +000018987 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018988 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18990 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018992 pgCC*)
18993 # Portland Group C++ compiler
18994 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18995 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'
18996
18997 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18999 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'
19000 ;;
19001 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019002 # Compaq C++
19003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 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'
19005
19006 runpath_var=LD_RUN_PATH
19007 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19008 hardcode_libdir_separator_CXX=:
19009
19010 # Commands to make compiler produce verbose output that lists
19011 # what "hidden" libraries, object files and flags are used when
19012 # linking a shared library.
19013 #
19014 # There doesn't appear to be a way to prevent this compiler from
19015 # explicitly linking system object files so we need to strip them
19016 # from the output so that they don't get included in the library
19017 # dependencies.
19018 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'
19019 ;;
19020 esac
19021 ;;
19022 lynxos*)
19023 # FIXME: insert proper C++ library support
19024 ld_shlibs_CXX=no
19025 ;;
19026 m88k*)
19027 # FIXME: insert proper C++ library support
19028 ld_shlibs_CXX=no
19029 ;;
19030 mvs*)
19031 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019032 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19035 ;;
19036 *)
19037 # FIXME: insert proper C++ library support
19038 ld_shlibs_CXX=no
19039 ;;
19040 esac
19041 ;;
19042 netbsd*)
19043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19044 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19045 wlarc=
19046 hardcode_libdir_flag_spec_CXX='-R$libdir'
19047 hardcode_direct_CXX=yes
19048 hardcode_shlibpath_var_CXX=no
19049 fi
19050 # Workaround some broken pre-1.5 toolchains
19051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19052 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019053 openbsd2*)
19054 # C++ shared libraries are fairly broken
19055 ld_shlibs_CXX=no
19056 ;;
19057 openbsd*)
19058 hardcode_direct_CXX=yes
19059 hardcode_shlibpath_var_CXX=no
19060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19064 export_dynamic_flag_spec_CXX='${wl}-E'
19065 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19066 fi
19067 output_verbose_link_cmd='echo'
19068 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019069 osf3*)
19070 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019071 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019072 # Kuck and Associates, Inc. (KAI) C++ Compiler
19073
19074 # KCC will only create a shared library if the output file
19075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19076 # to its proper name (with version) after linking.
19077 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'
19078
19079 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19080 hardcode_libdir_separator_CXX=:
19081
19082 # Archives containing C++ object files must be created using
19083 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19084 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19085
19086 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019087 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019088 # Rational C++ 2.4.1
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19091 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019092 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019094 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 +000019095
19096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19097 hardcode_libdir_separator_CXX=:
19098
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19102 #
19103 # There doesn't appear to be a way to prevent this compiler from
19104 # explicitly linking system object files so we need to strip them
19105 # from the output so that they don't get included in the library
19106 # dependencies.
19107 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'
19108 ;;
19109 *)
19110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019112 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 +000019113
19114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19116
19117 # Commands to make compiler produce verbose output that lists
19118 # what "hidden" libraries, object files and flags are used when
19119 # linking a shared library.
19120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19121
19122 else
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 fi
19126 ;;
19127 esac
19128 ;;
19129 osf4* | osf5*)
19130 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019131 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019132 # Kuck and Associates, Inc. (KAI) C++ Compiler
19133
19134 # KCC will only create a shared library if the output file
19135 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19136 # to its proper name (with version) after linking.
19137 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'
19138
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19140 hardcode_libdir_separator_CXX=:
19141
19142 # Archives containing C++ object files must be created using
19143 # the KAI C++ compiler.
19144 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19145 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019146 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019147 # Rational C++ 2.4.1
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019151 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019152 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019153 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 +000019154 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19155 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019156 $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 +000019157 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019158
19159 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19160 hardcode_libdir_separator_CXX=:
19161
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 #
19166 # There doesn't appear to be a way to prevent this compiler from
19167 # explicitly linking system object files so we need to strip them
19168 # from the output so that they don't get included in the library
19169 # dependencies.
19170 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'
19171 ;;
19172 *)
19173 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019175 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 +000019176
19177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19178 hardcode_libdir_separator_CXX=:
19179
19180 # Commands to make compiler produce verbose output that lists
19181 # what "hidden" libraries, object files and flags are used when
19182 # linking a shared library.
19183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19184
19185 else
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 fi
19189 ;;
19190 esac
19191 ;;
19192 psos*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019196 sunos4*)
19197 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019198 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019199 # Sun C++ 4.x
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019203 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019204 # Lucid
19205 # FIXME: insert proper C++ library support
19206 ld_shlibs_CXX=no
19207 ;;
19208 *)
19209 # FIXME: insert proper C++ library support
19210 ld_shlibs_CXX=no
19211 ;;
19212 esac
19213 ;;
19214 solaris*)
19215 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019216 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019217 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019218 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019219 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019220 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 +000019221 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 +000019222 $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 +000019223
19224 hardcode_libdir_flag_spec_CXX='-R$libdir'
19225 hardcode_shlibpath_var_CXX=no
19226 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019227 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019228 *)
19229 # The C++ compiler is used as linker so we must use $wl
19230 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019231 # linker. We must also pass each convience library through
19232 # to the system linker between allextract/defaultextract.
19233 # The C++ compiler will combine linker options so we
19234 # cannot just pass the convience library names through
19235 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019236 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019237 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 +000019238 ;;
19239 esac
19240 link_all_deplibs_CXX=yes
19241
Reid Spencera773bd52006-08-04 18:18:08 +000019242 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019243
19244 # Archives containing C++ object files must be created using
19245 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19246 # necessary to make sure instantiated templates are included
19247 # in the archive.
19248 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19249 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019250 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019251 # Green Hills C++ Compiler
19252 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19253
19254 # The C++ compiler must be used to create the archive.
19255 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19256 ;;
19257 *)
19258 # GNU C++ compiler with Solaris linker
19259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19260 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19261 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019262 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 +000019263 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19264 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19265
John Criswell47fdd832003-07-14 16:52:07 +000019266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019269 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019270 else
19271 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19272 # platform.
19273 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 +000019274 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19275 $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 +000019276
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19280 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19281 fi
19282
19283 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19284 fi
19285 ;;
19286 esac
19287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19289 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019290 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019291 hardcode_shlibpath_var_CXX=no
19292 runpath_var='LD_RUN_PATH'
19293
19294 case $cc_basename in
19295 CC*)
19296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19298 ;;
19299 *)
19300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19302 ;;
19303 esac
19304 ;;
19305 sysv5* | sco3.2v5* | sco5v6*)
19306 # Note: We can NOT use -z defs as we might desire, because we do not
19307 # link with -lc, and that would cause any symbols used from libc to
19308 # always be unresolved, which means just about no library would
19309 # ever link correctly. If we're not using GNU ld we use -z text
19310 # though, which does catch some bad symbols but isn't as heavy-handed
19311 # as -z defs.
19312 # For security reasons, it is highly recommended that you always
19313 # use absolute paths for naming shared libraries, and exclude the
19314 # DT_RUNPATH tag from executables and libraries. But doing so
19315 # requires that you compile everything twice, which is a pain.
19316 # So that behaviour is only enabled if SCOABSPATH is set to a
19317 # non-empty value in the environment. Most likely only useful for
19318 # creating official distributions of packages.
19319 # This is a hack until libtool officially supports absolute path
19320 # names for shared libraries.
19321 no_undefined_flag_CXX='${wl}-z,text'
19322 allow_undefined_flag_CXX='${wl}-z,nodefs'
19323 archive_cmds_need_lc_CXX=no
19324 hardcode_shlibpath_var_CXX=no
19325 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19326 hardcode_libdir_separator_CXX=':'
19327 link_all_deplibs_CXX=yes
19328 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19329 runpath_var='LD_RUN_PATH'
19330
19331 case $cc_basename in
19332 CC*)
19333 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19335 ;;
19336 *)
19337 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19339 ;;
19340 esac
John Criswell47fdd832003-07-14 16:52:07 +000019341 ;;
19342 tandem*)
19343 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019344 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019345 # NonStop-UX NCC 3.20
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19348 ;;
19349 *)
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19352 ;;
19353 esac
19354 ;;
19355 vxworks*)
19356 # FIXME: insert proper C++ library support
19357 ld_shlibs_CXX=no
19358 ;;
19359 *)
19360 # FIXME: insert proper C++ library support
19361 ld_shlibs_CXX=no
19362 ;;
19363esac
Reid Spencera773bd52006-08-04 18:18:08 +000019364{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19365echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019366test "$ld_shlibs_CXX" = no && can_build_shared=no
19367
19368GCC_CXX="$GXX"
19369LD_CXX="$LD"
19370
John Criswell47fdd832003-07-14 16:52:07 +000019371
19372cat > conftest.$ac_ext <<EOF
19373class Foo
19374{
19375public:
19376 Foo (void) { a = 0; }
19377private:
19378 int a;
19379};
19380EOF
19381
19382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; then
19387 # Parse the compiler output and extract the necessary
19388 # objects, libraries and library flags.
19389
19390 # Sentinel used to keep track of whether or not we are before
19391 # the conftest object file.
19392 pre_test_object_deps_done=no
19393
19394 # The `*' in the case matches for architectures that use `case' in
19395 # $output_verbose_cmd can trigger glob expansion during the loop
19396 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019397 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019398
19399 for p in `eval $output_verbose_link_cmd`; do
19400 case $p in
19401
19402 -L* | -R* | -l*)
19403 # Some compilers place space between "-{L,R}" and the path.
19404 # Remove the space.
19405 if test $p = "-L" \
19406 || test $p = "-R"; then
19407 prev=$p
19408 continue
19409 else
19410 prev=
19411 fi
19412
19413 if test "$pre_test_object_deps_done" = no; then
19414 case $p in
19415 -L* | -R*)
19416 # Internal compiler library paths should come after those
19417 # provided the user. The postdeps already come after the
19418 # user supplied libs so there is no need to process them.
19419 if test -z "$compiler_lib_search_path_CXX"; then
19420 compiler_lib_search_path_CXX="${prev}${p}"
19421 else
19422 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19423 fi
19424 ;;
19425 # The "-l" case would never come before the object being
19426 # linked, so don't bother handling this case.
19427 esac
19428 else
19429 if test -z "$postdeps_CXX"; then
19430 postdeps_CXX="${prev}${p}"
19431 else
19432 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19433 fi
19434 fi
19435 ;;
19436
19437 *.$objext)
19438 # This assumes that the test object file only shows up
19439 # once in the compiler output.
19440 if test "$p" = "conftest.$objext"; then
19441 pre_test_object_deps_done=yes
19442 continue
19443 fi
19444
19445 if test "$pre_test_object_deps_done" = no; then
19446 if test -z "$predep_objects_CXX"; then
19447 predep_objects_CXX="$p"
19448 else
19449 predep_objects_CXX="$predep_objects_CXX $p"
19450 fi
19451 else
19452 if test -z "$postdep_objects_CXX"; then
19453 postdep_objects_CXX="$p"
19454 else
19455 postdep_objects_CXX="$postdep_objects_CXX $p"
19456 fi
19457 fi
19458 ;;
19459
19460 *) ;; # Ignore the rest.
19461
19462 esac
19463 done
19464
19465 # Clean up.
19466 rm -f a.out a.exe
19467else
19468 echo "libtool.m4: error: problem compiling CXX test program"
19469fi
19470
19471$rm -f confest.$objext
19472
Reid Spencera773bd52006-08-04 18:18:08 +000019473# PORTME: override above test on systems where it is broken
19474case $host_os in
19475interix3*)
19476 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19477 # hack all around it, let's just trust "g++" to DTRT.
19478 predep_objects_CXX=
19479 postdep_objects_CXX=
19480 postdeps_CXX=
19481 ;;
19482
19483solaris*)
19484 case $cc_basename in
19485 CC*)
19486 # Adding this requires a known-good setup of shared libraries for
19487 # Sun compiler versions before 5.6, else PIC objects from an old
19488 # archive will be linked into the output, leading to subtle bugs.
19489 postdeps_CXX='-lCstd -lCrun'
19490 ;;
19491 esac
19492 ;;
19493esac
19494
19495
John Criswell47fdd832003-07-14 16:52:07 +000019496case " $postdeps_CXX " in
19497*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19498esac
19499
19500lt_prog_compiler_wl_CXX=
19501lt_prog_compiler_pic_CXX=
19502lt_prog_compiler_static_CXX=
19503
Reid Spencera773bd52006-08-04 18:18:08 +000019504{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19505echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019506
19507 # C++ specific cases for pic, static, wl, etc.
19508 if test "$GXX" = yes; then
19509 lt_prog_compiler_wl_CXX='-Wl,'
19510 lt_prog_compiler_static_CXX='-static'
19511
19512 case $host_os in
19513 aix*)
19514 # All AIX code is PIC.
19515 if test "$host_cpu" = ia64; then
19516 # AIX 5 now supports IA64 processor
19517 lt_prog_compiler_static_CXX='-Bstatic'
19518 fi
19519 ;;
19520 amigaos*)
19521 # FIXME: we need at least 68020 code to build shared libraries, but
19522 # adding the `-m68020' flag to GCC prevents building anything better,
19523 # like `-m68040'.
19524 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19525 ;;
19526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19527 # PIC is the default for these OSes.
19528 ;;
19529 mingw* | os2* | pw32*)
19530 # This hack is so that the source file can tell whether it is being
19531 # built for inclusion in a dll (and should export symbols for example).
19532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19533 ;;
19534 darwin* | rhapsody*)
19535 # PIC is the default on this platform
19536 # Common symbols not allowed in MH_DYLIB files
19537 lt_prog_compiler_pic_CXX='-fno-common'
19538 ;;
19539 *djgpp*)
19540 # DJGPP does not support shared libraries at all
19541 lt_prog_compiler_pic_CXX=
19542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019543 interix3*)
19544 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19545 # Instead, we relocate shared libraries at runtime.
19546 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019547 sysv4*MP*)
19548 if test -d /usr/nec; then
19549 lt_prog_compiler_pic_CXX=-Kconform_pic
19550 fi
19551 ;;
19552 hpux*)
19553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19554 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019555 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019556 hppa*64*|ia64*)
19557 ;;
19558 *)
19559 lt_prog_compiler_pic_CXX='-fPIC'
19560 ;;
19561 esac
19562 ;;
19563 *)
19564 lt_prog_compiler_pic_CXX='-fPIC'
19565 ;;
19566 esac
19567 else
19568 case $host_os in
19569 aix4* | aix5*)
19570 # All AIX code is PIC.
19571 if test "$host_cpu" = ia64; then
19572 # AIX 5 now supports IA64 processor
19573 lt_prog_compiler_static_CXX='-Bstatic'
19574 else
19575 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19576 fi
19577 ;;
19578 chorus*)
19579 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019580 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019581 # Green Hills C++ Compiler
19582 # _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"
19583 ;;
19584 esac
19585 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019586 darwin*)
19587 # PIC is the default on this platform
19588 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019589 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019590 xlc*)
19591 lt_prog_compiler_pic_CXX='-qnocommon'
19592 lt_prog_compiler_wl_CXX='-Wl,'
19593 ;;
19594 esac
19595 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019596 dgux*)
19597 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019598 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019599 lt_prog_compiler_pic_CXX='-KPIC'
19600 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019601 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 # Green Hills C++ Compiler
19603 lt_prog_compiler_pic_CXX='-pic'
19604 ;;
19605 *)
19606 ;;
19607 esac
19608 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019609 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019610 # FreeBSD uses GNU C++
19611 ;;
19612 hpux9* | hpux10* | hpux11*)
19613 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019614 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019615 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019616 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019617 if test "$host_cpu" != ia64; then
19618 lt_prog_compiler_pic_CXX='+Z'
19619 fi
19620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019621 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019622 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019623 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19624 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019625 hppa*64*|ia64*)
19626 # +Z the default
19627 ;;
19628 *)
19629 lt_prog_compiler_pic_CXX='+Z'
19630 ;;
19631 esac
19632 ;;
19633 *)
19634 ;;
19635 esac
19636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019637 interix*)
19638 # This is c89, which is MS Visual C++ (no shared libs)
19639 # Anyone wants to do a port?
19640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019641 irix5* | irix6* | nonstopux*)
19642 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019643 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019644 lt_prog_compiler_wl_CXX='-Wl,'
19645 lt_prog_compiler_static_CXX='-non_shared'
19646 # CC pic flag -KPIC is the default.
19647 ;;
19648 *)
19649 ;;
19650 esac
19651 ;;
19652 linux*)
19653 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019654 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019655 # KAI C++ Compiler
19656 lt_prog_compiler_wl_CXX='--backend -Wl,'
19657 lt_prog_compiler_pic_CXX='-fPIC'
19658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019659 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019660 # Intel C++
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_pic_CXX='-KPIC'
19663 lt_prog_compiler_static_CXX='-static'
19664 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019665 pgCC*)
19666 # Portland Group C++ compiler.
19667 lt_prog_compiler_wl_CXX='-Wl,'
19668 lt_prog_compiler_pic_CXX='-fpic'
19669 lt_prog_compiler_static_CXX='-Bstatic'
19670 ;;
19671 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019672 # Compaq C++
19673 # Make sure the PIC flag is empty. It appears that all Alpha
19674 # Linux and Compaq Tru64 Unix objects are PIC.
19675 lt_prog_compiler_pic_CXX=
19676 lt_prog_compiler_static_CXX='-non_shared'
19677 ;;
19678 *)
19679 ;;
19680 esac
19681 ;;
19682 lynxos*)
19683 ;;
19684 m88k*)
19685 ;;
19686 mvs*)
19687 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019688 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019689 lt_prog_compiler_pic_CXX='-W c,exportall'
19690 ;;
19691 *)
19692 ;;
19693 esac
19694 ;;
19695 netbsd*)
19696 ;;
19697 osf3* | osf4* | osf5*)
19698 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019699 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019700 lt_prog_compiler_wl_CXX='--backend -Wl,'
19701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019702 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019703 # Rational C++ 2.4.1
19704 lt_prog_compiler_pic_CXX='-pic'
19705 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019706 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019707 # Digital/Compaq C++
19708 lt_prog_compiler_wl_CXX='-Wl,'
19709 # Make sure the PIC flag is empty. It appears that all Alpha
19710 # Linux and Compaq Tru64 Unix objects are PIC.
19711 lt_prog_compiler_pic_CXX=
19712 lt_prog_compiler_static_CXX='-non_shared'
19713 ;;
19714 *)
19715 ;;
19716 esac
19717 ;;
19718 psos*)
19719 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019720 solaris*)
19721 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019722 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019723 # Sun C++ 4.2, 5.x and Centerline C++
19724 lt_prog_compiler_pic_CXX='-KPIC'
19725 lt_prog_compiler_static_CXX='-Bstatic'
19726 lt_prog_compiler_wl_CXX='-Qoption ld '
19727 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019728 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019729 # Green Hills C++ Compiler
19730 lt_prog_compiler_pic_CXX='-PIC'
19731 ;;
19732 *)
19733 ;;
19734 esac
19735 ;;
19736 sunos4*)
19737 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019738 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019739 # Sun C++ 4.x
19740 lt_prog_compiler_pic_CXX='-pic'
19741 lt_prog_compiler_static_CXX='-Bstatic'
19742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019743 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019744 # Lucid
19745 lt_prog_compiler_pic_CXX='-pic'
19746 ;;
19747 *)
19748 ;;
19749 esac
19750 ;;
19751 tandem*)
19752 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019753 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019754 # NonStop-UX NCC 3.20
19755 lt_prog_compiler_pic_CXX='-KPIC'
19756 ;;
19757 *)
19758 ;;
19759 esac
19760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19762 case $cc_basename in
19763 CC*)
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_pic_CXX='-KPIC'
19766 lt_prog_compiler_static_CXX='-Bstatic'
19767 ;;
19768 esac
John Criswell47fdd832003-07-14 16:52:07 +000019769 ;;
19770 vxworks*)
19771 ;;
19772 *)
19773 lt_prog_compiler_can_build_shared_CXX=no
19774 ;;
19775 esac
19776 fi
19777
Reid Spencera773bd52006-08-04 18:18:08 +000019778{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19779echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019780
19781#
19782# Check to make sure the PIC flag actually works.
19783#
19784if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019785
Reid Spencera773bd52006-08-04 18:18:08 +000019786{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19787echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019788if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790else
19791 lt_prog_compiler_pic_works_CXX=no
19792 ac_outfile=conftest.$ac_objext
19793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19794 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19795 # Insert the option either (1) after the last *FLAGS variable, or
19796 # (2) before a word containing "conftest.", or (3) at the end.
19797 # Note that $ac_compile itself does not contain backslashes and begins
19798 # with a dollar sign (not a hyphen), so the echo should work correctly.
19799 # The option is referenced via a variable to avoid confusing sed.
19800 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19803 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019804 (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019805 (eval "$lt_compile" 2>conftest.err)
19806 ac_status=$?
19807 cat conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019808 echo "$as_me:19808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019809 if (exit $ac_status) && test -s "$ac_outfile"; then
19810 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019811 # So say no if there are warnings other than the usual output.
19812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019815 lt_prog_compiler_pic_works_CXX=yes
19816 fi
19817 fi
19818 $rm conftest*
19819
19820fi
Reid Spencera773bd52006-08-04 18:18:08 +000019821{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19822echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019823
19824if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19825 case $lt_prog_compiler_pic_CXX in
19826 "" | " "*) ;;
19827 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19828 esac
19829else
19830 lt_prog_compiler_pic_CXX=
19831 lt_prog_compiler_can_build_shared_CXX=no
19832fi
19833
19834fi
Reid Spencera773bd52006-08-04 18:18:08 +000019835case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019836 # For platforms which do not support PIC, -DPIC is meaningless:
19837 *djgpp*)
19838 lt_prog_compiler_pic_CXX=
19839 ;;
19840 *)
19841 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19842 ;;
19843esac
19844
Reid Spencera773bd52006-08-04 18:18:08 +000019845#
19846# Check to make sure the static flag actually works.
19847#
19848wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19849{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19850echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19851if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 lt_prog_compiler_static_works_CXX=no
19855 save_LDFLAGS="$LDFLAGS"
19856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19857 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19859 # The linker can only warn and ignore the option if not recognized
19860 # So say no if there are warnings
19861 if test -s conftest.err; then
19862 # Append any errors to the config.log.
19863 cat conftest.err 1>&5
19864 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19866 if diff conftest.exp conftest.er2 >/dev/null; then
19867 lt_prog_compiler_static_works_CXX=yes
19868 fi
19869 else
19870 lt_prog_compiler_static_works_CXX=yes
19871 fi
19872 fi
19873 $rm conftest*
19874 LDFLAGS="$save_LDFLAGS"
19875
19876fi
19877{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19878echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19879
19880if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19881 :
19882else
19883 lt_prog_compiler_static_CXX=
19884fi
19885
19886
19887{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19888echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019889if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891else
19892 lt_cv_prog_compiler_c_o_CXX=no
19893 $rm -r conftest 2>/dev/null
19894 mkdir conftest
19895 cd conftest
19896 mkdir out
19897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19898
John Criswell47fdd832003-07-14 16:52:07 +000019899 lt_compiler_flag="-o out/conftest2.$ac_objext"
19900 # Insert the option either (1) after the last *FLAGS variable, or
19901 # (2) before a word containing "conftest.", or (3) at the end.
19902 # Note that $ac_compile itself does not contain backslashes and begins
19903 # with a dollar sign (not a hyphen), so the echo should work correctly.
19904 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19907 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019908 (eval echo "\"\$as_me:19908: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019909 (eval "$lt_compile" 2>out/conftest.err)
19910 ac_status=$?
19911 cat out/conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019912 echo "$as_me:19912: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19914 then
19915 # The compiler can only warn and ignore the option if not recognized
19916 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019920 lt_cv_prog_compiler_c_o_CXX=yes
19921 fi
19922 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019923 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019924 $rm conftest*
19925 # SGI C++ compiler will create directory out/ii_files/ for
19926 # template instantiation
19927 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19928 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019929 cd ..
19930 rmdir conftest
19931 $rm conftest*
19932
19933fi
Reid Spencera773bd52006-08-04 18:18:08 +000019934{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19935echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019936
19937
19938hard_links="nottested"
19939if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19940 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19942echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019943 hard_links=yes
19944 $rm conftest*
19945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19946 touch conftest.a
19947 ln conftest.a conftest.b 2>&5 || hard_links=no
19948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019949 { echo "$as_me:$LINENO: result: $hard_links" >&5
19950echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019951 if test "$hard_links" = no; then
19952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19953echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19954 need_locks=warn
19955 fi
19956else
19957 need_locks=no
19958fi
19959
Reid Spencera773bd52006-08-04 18:18:08 +000019960{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19961echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019962
19963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19964 case $host_os in
19965 aix4* | aix5*)
19966 # If we're using GNU nm, then we don't want the "-C" option.
19967 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19968 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19969 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'
19970 else
19971 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'
19972 fi
19973 ;;
19974 pw32*)
19975 export_symbols_cmds_CXX="$ltdll_cmds"
19976 ;;
19977 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019978 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 +000019979 ;;
19980 *)
19981 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19982 ;;
19983 esac
19984
Reid Spencera773bd52006-08-04 18:18:08 +000019985{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19986echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019987test "$ld_shlibs_CXX" = no && can_build_shared=no
19988
John Criswell47fdd832003-07-14 16:52:07 +000019989#
19990# Do we need to explicitly link libc?
19991#
19992case "x$archive_cmds_need_lc_CXX" in
19993x|xyes)
19994 # Assume -lc should be added
19995 archive_cmds_need_lc_CXX=yes
19996
19997 if test "$enable_shared" = yes && test "$GCC" = yes; then
19998 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019999 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020000 # FIXME: we may have to deal with multi-command sequences.
20001 ;;
20002 '$CC '*)
20003 # Test whether the compiler implicitly links with -lc since on some
20004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20005 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020006 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20007echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020008 $rm conftest*
20009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20010
20011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20012 (eval $ac_compile) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } 2>conftest.err; then
20016 soname=conftest
20017 lib=conftest
20018 libobjs=conftest.$ac_objext
20019 deplibs=
20020 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020021 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020022 compiler_flags=-v
20023 linker_flags=-v
20024 verstring=
20025 output_objdir=.
20026 libname=conftest
20027 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20028 allow_undefined_flag_CXX=
20029 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20030 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }
20034 then
20035 archive_cmds_need_lc_CXX=no
20036 else
20037 archive_cmds_need_lc_CXX=yes
20038 fi
20039 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20040 else
20041 cat conftest.err 1>&5
20042 fi
20043 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020044 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20045echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020046 ;;
20047 esac
20048 fi
20049 ;;
20050esac
20051
Reid Spencera773bd52006-08-04 18:18:08 +000020052{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20053echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020054library_names_spec=
20055libname_spec='lib$name'
20056soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020057shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020058postinstall_cmds=
20059postuninstall_cmds=
20060finish_cmds=
20061finish_eval=
20062shlibpath_var=
20063shlibpath_overrides_runpath=unknown
20064version_type=none
20065dynamic_linker="$host_os ld.so"
20066sys_lib_dlsearch_path_spec="/lib /usr/lib"
20067if test "$GCC" = yes; then
20068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20069 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20070 # if the path contains ";" then we assume it to be the separator
20071 # otherwise default to the standard path separator (i.e. ":") - it is
20072 # assumed that no part of a normal pathname contains ";" but that should
20073 # okay in the real world where ";" in dirpaths is itself problematic.
20074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20075 else
20076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20077 fi
20078else
20079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20080fi
20081need_lib_prefix=unknown
20082hardcode_into_libs=no
20083
20084# when you set need_version to no, make sure it does not cause -set_version
20085# flags to be left without arguments
20086need_version=unknown
20087
20088case $host_os in
20089aix3*)
20090 version_type=linux
20091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20092 shlibpath_var=LIBPATH
20093
20094 # AIX 3 has no versioning support, so we append a major version to the name.
20095 soname_spec='${libname}${release}${shared_ext}$major'
20096 ;;
20097
20098aix4* | aix5*)
20099 version_type=linux
20100 need_lib_prefix=no
20101 need_version=no
20102 hardcode_into_libs=yes
20103 if test "$host_cpu" = ia64; then
20104 # AIX 5 supports IA64
20105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20106 shlibpath_var=LD_LIBRARY_PATH
20107 else
20108 # With GCC up to 2.95.x, collect2 would create an import file
20109 # for dependence libraries. The import file would start with
20110 # the line `#! .'. This would cause the generated library to
20111 # depend on `.', always an invalid library. This was fixed in
20112 # development snapshots of GCC prior to 3.0.
20113 case $host_os in
20114 aix4 | aix4.[01] | aix4.[01].*)
20115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20116 echo ' yes '
20117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20118 :
20119 else
20120 can_build_shared=no
20121 fi
20122 ;;
20123 esac
20124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20125 # soname into executable. Probably we can add versioning support to
20126 # collect2, so additional links can be useful in future.
20127 if test "$aix_use_runtimelinking" = yes; then
20128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20129 # instead of lib<name>.a to let people know that these are not
20130 # typical AIX shared libraries.
20131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20132 else
20133 # We preserve .a as extension for shared libraries through AIX4.2
20134 # and later when we are not doing run time linking.
20135 library_names_spec='${libname}${release}.a $libname.a'
20136 soname_spec='${libname}${release}${shared_ext}$major'
20137 fi
20138 shlibpath_var=LIBPATH
20139 fi
20140 ;;
20141
20142amigaos*)
20143 library_names_spec='$libname.ixlibrary $libname.a'
20144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020145 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 +000020146 ;;
20147
20148beos*)
20149 library_names_spec='${libname}${shared_ext}'
20150 dynamic_linker="$host_os ld.so"
20151 shlibpath_var=LIBRARY_PATH
20152 ;;
20153
Reid Spencer2706f8c2004-09-19 23:53:36 +000020154bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020155 version_type=linux
20156 need_version=no
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20163 # the default ld.so.conf also contains /usr/contrib/lib and
20164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20165 # libtool to hard-code these into programs
20166 ;;
20167
20168cygwin* | mingw* | pw32*)
20169 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020170 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020171 need_version=no
20172 need_lib_prefix=no
20173
20174 case $GCC,$host_os in
20175 yes,cygwin* | yes,mingw* | yes,pw32*)
20176 library_names_spec='$libname.dll.a'
20177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020178 postinstall_cmds='base_file=`basename \${file}`~
20179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20180 dldir=$destdir/`dirname \$dlpath`~
20181 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020182 $install_prog $dir/$dlname \$dldir/$dlname~
20183 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20185 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020186 $rm \$dlpath'
20187 shlibpath_overrides_runpath=yes
20188
20189 case $host_os in
20190 cygwin*)
20191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20192 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 +000020193 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020194 ;;
20195 mingw*)
20196 # MinGW DLLs use traditional 'lib' prefix
20197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20199 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20200 # It is most probably a Windows format PATH printed by
20201 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20202 # path with ; separators, and with drive letters. We can handle the
20203 # drive letters (cygwin fileutils understands them), so leave them,
20204 # especially as we might pass files found there to a mingw objdump,
20205 # which wouldn't understand a cygwinified path. Ahh.
20206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20207 else
20208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20209 fi
20210 ;;
20211 pw32*)
20212 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020213 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 +000020214 ;;
20215 esac
20216 ;;
20217
20218 *)
20219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20220 ;;
20221 esac
20222 dynamic_linker='Win32 ld.exe'
20223 # FIXME: first we should search . and the directory the executable is in
20224 shlibpath_var=PATH
20225 ;;
20226
20227darwin* | rhapsody*)
20228 dynamic_linker="$host_os dyld"
20229 version_type=darwin
20230 need_lib_prefix=no
20231 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020233 soname_spec='${libname}${release}${major}$shared_ext'
20234 shlibpath_overrides_runpath=yes
20235 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020236 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020238 if test "$GCC" = yes; then
20239 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"`
20240 else
20241 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020242 fi
20243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20244 ;;
20245
20246dgux*)
20247 version_type=linux
20248 need_lib_prefix=no
20249 need_version=no
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 ;;
20254
20255freebsd1*)
20256 dynamic_linker=no
20257 ;;
20258
Reid Spencer2706f8c2004-09-19 23:53:36 +000020259kfreebsd*-gnu)
20260 version_type=linux
20261 need_lib_prefix=no
20262 need_version=no
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20264 soname_spec='${libname}${release}${shared_ext}$major'
20265 shlibpath_var=LD_LIBRARY_PATH
20266 shlibpath_overrides_runpath=no
20267 hardcode_into_libs=yes
20268 dynamic_linker='GNU ld.so'
20269 ;;
20270
Reid Spencera773bd52006-08-04 18:18:08 +000020271freebsd* | dragonfly*)
20272 # DragonFly does not have aout. When/if they implement a new
20273 # versioning mechanism, adjust this.
20274 if test -x /usr/bin/objformat; then
20275 objformat=`/usr/bin/objformat`
20276 else
20277 case $host_os in
20278 freebsd[123]*) objformat=aout ;;
20279 *) objformat=elf ;;
20280 esac
20281 fi
John Criswell47fdd832003-07-14 16:52:07 +000020282 version_type=freebsd-$objformat
20283 case $version_type in
20284 freebsd-elf*)
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20286 need_version=no
20287 need_lib_prefix=no
20288 ;;
20289 freebsd-*)
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20291 need_version=yes
20292 ;;
20293 esac
20294 shlibpath_var=LD_LIBRARY_PATH
20295 case $host_os in
20296 freebsd2*)
20297 shlibpath_overrides_runpath=yes
20298 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020299 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020300 shlibpath_overrides_runpath=yes
20301 hardcode_into_libs=yes
20302 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020305 shlibpath_overrides_runpath=no
20306 hardcode_into_libs=yes
20307 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020308 freebsd*) # from 4.6 on
20309 shlibpath_overrides_runpath=yes
20310 hardcode_into_libs=yes
20311 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020312 esac
20313 ;;
20314
20315gnu*)
20316 version_type=linux
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 shlibpath_var=LD_LIBRARY_PATH
20322 hardcode_into_libs=yes
20323 ;;
20324
20325hpux9* | hpux10* | hpux11*)
20326 # Give a soname corresponding to the major version so that dld.sl refuses to
20327 # link against other versions.
20328 version_type=sunos
20329 need_lib_prefix=no
20330 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020331 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020332 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020334 hardcode_into_libs=yes
20335 dynamic_linker="$host_os dld.so"
20336 shlibpath_var=LD_LIBRARY_PATH
20337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339 soname_spec='${libname}${release}${shared_ext}$major'
20340 if test "X$HPUX_IA64_MODE" = X32; then
20341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20342 else
20343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20344 fi
20345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20346 ;;
20347 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020348 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020349 hardcode_into_libs=yes
20350 dynamic_linker="$host_os dld.sl"
20351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20357 ;;
20358 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020359 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020360 dynamic_linker="$host_os dld.sl"
20361 shlibpath_var=SHLIB_PATH
20362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 soname_spec='${libname}${release}${shared_ext}$major'
20365 ;;
20366 esac
20367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20368 postinstall_cmds='chmod 555 $lib'
20369 ;;
20370
Reid Spencera773bd52006-08-04 18:18:08 +000020371interix3*)
20372 version_type=linux
20373 need_lib_prefix=no
20374 need_version=no
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=no
20380 hardcode_into_libs=yes
20381 ;;
20382
John Criswell47fdd832003-07-14 16:52:07 +000020383irix5* | irix6* | nonstopux*)
20384 case $host_os in
20385 nonstopux*) version_type=nonstopux ;;
20386 *)
20387 if test "$lt_cv_prog_gnu_ld" = yes; then
20388 version_type=linux
20389 else
20390 version_type=irix
20391 fi ;;
20392 esac
20393 need_lib_prefix=no
20394 need_version=no
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20397 case $host_os in
20398 irix5* | nonstopux*)
20399 libsuff= shlibsuff=
20400 ;;
20401 *)
20402 case $LD in # libtool.m4 will add one of these switches to LD
20403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20404 libsuff= shlibsuff= libmagic=32-bit;;
20405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20406 libsuff=32 shlibsuff=N32 libmagic=N32;;
20407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20409 *) libsuff= shlibsuff= libmagic=never-match;;
20410 esac
20411 ;;
20412 esac
20413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20414 shlibpath_overrides_runpath=no
20415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20417 hardcode_into_libs=yes
20418 ;;
20419
20420# No shared lib support for Linux oldld, aout, or coff.
20421linux*oldld* | linux*aout* | linux*coff*)
20422 dynamic_linker=no
20423 ;;
20424
20425# This must be Linux ELF.
20426linux*)
20427 version_type=linux
20428 need_lib_prefix=no
20429 need_version=no
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath=no
20435 # This implies no fast_install, which is unacceptable.
20436 # Some rework will be needed to allow for fast_install
20437 # before this can be enabled.
20438 hardcode_into_libs=yes
20439
Reid Spencer2706f8c2004-09-19 23:53:36 +000020440 # Append ld.so.conf contents to the search path
20441 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020442 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 +000020443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20444 fi
20445
John Criswell47fdd832003-07-14 16:52:07 +000020446 # We used to test for /lib/ld.so.1 and disable shared libraries on
20447 # powerpc, because MkLinux only supported shared libraries with the
20448 # GNU dynamic linker. Since this was broken with cross compilers,
20449 # most powerpc-linux boxes support dynamic linking these days and
20450 # people can always --disable-shared, the test was removed, and we
20451 # assume the GNU/Linux dynamic linker is in use.
20452 dynamic_linker='GNU/Linux ld.so'
20453 ;;
20454
Reid Spencer2706f8c2004-09-19 23:53:36 +000020455knetbsd*-gnu)
20456 version_type=linux
20457 need_lib_prefix=no
20458 need_version=no
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20460 soname_spec='${libname}${release}${shared_ext}$major'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=no
20463 hardcode_into_libs=yes
20464 dynamic_linker='GNU ld.so'
20465 ;;
20466
John Criswell47fdd832003-07-14 16:52:07 +000020467netbsd*)
20468 version_type=sunos
20469 need_lib_prefix=no
20470 need_version=no
20471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20474 dynamic_linker='NetBSD (a.out) ld.so'
20475 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020477 soname_spec='${libname}${release}${shared_ext}$major'
20478 dynamic_linker='NetBSD ld.elf_so'
20479 fi
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20482 hardcode_into_libs=yes
20483 ;;
20484
20485newsos6)
20486 version_type=linux
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 shlibpath_overrides_runpath=yes
20490 ;;
20491
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020493 version_type=linux
20494 need_lib_prefix=no
20495 need_version=no
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20497 soname_spec='${libname}${release}${shared_ext}$major'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes
20500 ;;
20501
20502openbsd*)
20503 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020504 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020505 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20507 case $host_os in
20508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20509 *) need_version=no ;;
20510 esac
John Criswell47fdd832003-07-14 16:52:07 +000020511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20513 shlibpath_var=LD_LIBRARY_PATH
20514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20515 case $host_os in
20516 openbsd2.[89] | openbsd2.[89].*)
20517 shlibpath_overrides_runpath=no
20518 ;;
20519 *)
20520 shlibpath_overrides_runpath=yes
20521 ;;
20522 esac
20523 else
20524 shlibpath_overrides_runpath=yes
20525 fi
20526 ;;
20527
20528os2*)
20529 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020530 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020531 need_lib_prefix=no
20532 library_names_spec='$libname${shared_ext} $libname.a'
20533 dynamic_linker='OS/2 ld.exe'
20534 shlibpath_var=LIBPATH
20535 ;;
20536
20537osf3* | osf4* | osf5*)
20538 version_type=osf
20539 need_lib_prefix=no
20540 need_version=no
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20543 shlibpath_var=LD_LIBRARY_PATH
20544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20546 ;;
20547
John Criswell47fdd832003-07-14 16:52:07 +000020548solaris*)
20549 version_type=linux
20550 need_lib_prefix=no
20551 need_version=no
20552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 soname_spec='${libname}${release}${shared_ext}$major'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 shlibpath_overrides_runpath=yes
20556 hardcode_into_libs=yes
20557 # ldd complains unless libraries are executable
20558 postinstall_cmds='chmod +x $lib'
20559 ;;
20560
20561sunos4*)
20562 version_type=sunos
20563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 shlibpath_overrides_runpath=yes
20567 if test "$with_gnu_ld" = yes; then
20568 need_lib_prefix=no
20569 fi
20570 need_version=yes
20571 ;;
20572
Reid Spencera773bd52006-08-04 18:18:08 +000020573sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020574 version_type=linux
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 case $host_vendor in
20579 sni)
20580 shlibpath_overrides_runpath=no
20581 need_lib_prefix=no
20582 export_dynamic_flag_spec='${wl}-Blargedynsym'
20583 runpath_var=LD_RUN_PATH
20584 ;;
20585 siemens)
20586 need_lib_prefix=no
20587 ;;
20588 motorola)
20589 need_lib_prefix=no
20590 need_version=no
20591 shlibpath_overrides_runpath=no
20592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20593 ;;
20594 esac
20595 ;;
20596
20597sysv4*MP*)
20598 if test -d /usr/nec ;then
20599 version_type=linux
20600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20601 soname_spec='$libname${shared_ext}.$major'
20602 shlibpath_var=LD_LIBRARY_PATH
20603 fi
20604 ;;
20605
Reid Spencera773bd52006-08-04 18:18:08 +000020606sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20607 version_type=freebsd-elf
20608 need_lib_prefix=no
20609 need_version=no
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 hardcode_into_libs=yes
20614 if test "$with_gnu_ld" = yes; then
20615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20616 shlibpath_overrides_runpath=no
20617 else
20618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20619 shlibpath_overrides_runpath=yes
20620 case $host_os in
20621 sco3.2v5*)
20622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20623 ;;
20624 esac
20625 fi
20626 sys_lib_dlsearch_path_spec='/usr/lib'
20627 ;;
20628
John Criswell47fdd832003-07-14 16:52:07 +000020629uts4*)
20630 version_type=linux
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20632 soname_spec='${libname}${release}${shared_ext}$major'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 ;;
20635
20636*)
20637 dynamic_linker=no
20638 ;;
20639esac
Reid Spencera773bd52006-08-04 18:18:08 +000020640{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20641echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020642test "$dynamic_linker" = no && can_build_shared=no
20643
Reid Spencera773bd52006-08-04 18:18:08 +000020644variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20645if test "$GCC" = yes; then
20646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20647fi
20648
20649{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20650echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020651hardcode_action_CXX=
20652if test -n "$hardcode_libdir_flag_spec_CXX" || \
20653 test -n "$runpath_var_CXX" || \
20654 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20655
20656 # We can hardcode non-existant directories.
20657 if test "$hardcode_direct_CXX" != no &&
20658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20659 # have to relink, otherwise we might link with an installed library
20660 # when we should be linking with a yet-to-be-installed one
20661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20662 test "$hardcode_minus_L_CXX" != no; then
20663 # Linking always hardcodes the temporary library directory.
20664 hardcode_action_CXX=relink
20665 else
20666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20667 hardcode_action_CXX=immediate
20668 fi
20669else
20670 # We cannot hardcode anything, or else we can only hardcode existing
20671 # directories.
20672 hardcode_action_CXX=unsupported
20673fi
Reid Spencera773bd52006-08-04 18:18:08 +000020674{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20675echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020676
20677if test "$hardcode_action_CXX" = relink; then
20678 # Fast installation is not supported
20679 enable_fast_install=no
20680elif test "$shlibpath_overrides_runpath" = yes ||
20681 test "$enable_shared" = no; then
20682 # Fast installation is not necessary
20683 enable_fast_install=needless
20684fi
20685
John Criswell47fdd832003-07-14 16:52:07 +000020686
20687# The else clause should only fire when bootstrapping the
20688# libtool distribution, otherwise you forgot to ship ltmain.sh
20689# with your package, and you will get complaints that there are
20690# no rules to generate ltmain.sh.
20691if test -f "$ltmain"; then
20692 # See if we are running on zsh, and set the options which allow our commands through
20693 # without removal of \ escapes.
20694 if test -n "${ZSH_VERSION+set}" ; then
20695 setopt NO_GLOB_SUBST
20696 fi
20697 # Now quote all the things that may contain metacharacters while being
20698 # careful not to overquote the AC_SUBSTed values. We take copies of the
20699 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020700 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 +000020701 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20704 deplibs_check_method reload_flag reload_cmds need_locks \
20705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20706 lt_cv_sys_global_symbol_to_c_name_address \
20707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20708 old_postinstall_cmds old_postuninstall_cmds \
20709 compiler_CXX \
20710 CC_CXX \
20711 LD_CXX \
20712 lt_prog_compiler_wl_CXX \
20713 lt_prog_compiler_pic_CXX \
20714 lt_prog_compiler_static_CXX \
20715 lt_prog_compiler_no_builtin_flag_CXX \
20716 export_dynamic_flag_spec_CXX \
20717 thread_safe_flag_spec_CXX \
20718 whole_archive_flag_spec_CXX \
20719 enable_shared_with_static_runtimes_CXX \
20720 old_archive_cmds_CXX \
20721 old_archive_from_new_cmds_CXX \
20722 predep_objects_CXX \
20723 postdep_objects_CXX \
20724 predeps_CXX \
20725 postdeps_CXX \
20726 compiler_lib_search_path_CXX \
20727 archive_cmds_CXX \
20728 archive_expsym_cmds_CXX \
20729 postinstall_cmds_CXX \
20730 postuninstall_cmds_CXX \
20731 old_archive_from_expsyms_cmds_CXX \
20732 allow_undefined_flag_CXX \
20733 no_undefined_flag_CXX \
20734 export_symbols_cmds_CXX \
20735 hardcode_libdir_flag_spec_CXX \
20736 hardcode_libdir_flag_spec_ld_CXX \
20737 hardcode_libdir_separator_CXX \
20738 hardcode_automatic_CXX \
20739 module_cmds_CXX \
20740 module_expsym_cmds_CXX \
20741 lt_cv_prog_compiler_c_o_CXX \
20742 exclude_expsyms_CXX \
20743 include_expsyms_CXX; do
20744
20745 case $var in
20746 old_archive_cmds_CXX | \
20747 old_archive_from_new_cmds_CXX | \
20748 archive_cmds_CXX | \
20749 archive_expsym_cmds_CXX | \
20750 module_cmds_CXX | \
20751 module_expsym_cmds_CXX | \
20752 old_archive_from_expsyms_cmds_CXX | \
20753 export_symbols_cmds_CXX | \
20754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20755 postinstall_cmds | postuninstall_cmds | \
20756 old_postinstall_cmds | old_postuninstall_cmds | \
20757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20758 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020759 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 +000020760 ;;
20761 *)
20762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20763 ;;
20764 esac
20765 done
20766
20767 case $lt_echo in
20768 *'\$0 --fallback-echo"')
20769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20770 ;;
20771 esac
20772
20773cfgfile="$ofile"
20774
20775 cat <<__EOF__ >> "$cfgfile"
20776# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20777
20778# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20779
20780# Shell to use when invoking shell scripts.
20781SHELL=$lt_SHELL
20782
20783# Whether or not to build shared libraries.
20784build_libtool_libs=$enable_shared
20785
20786# Whether or not to build static libraries.
20787build_old_libs=$enable_static
20788
20789# Whether or not to add -lc for building shared libraries.
20790build_libtool_need_lc=$archive_cmds_need_lc_CXX
20791
20792# Whether or not to disallow shared libs when runtime libs are static
20793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20794
20795# Whether or not to optimize for fast installation.
20796fast_install=$enable_fast_install
20797
20798# The host system.
20799host_alias=$host_alias
20800host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020801host_os=$host_os
20802
20803# The build system.
20804build_alias=$build_alias
20805build=$build
20806build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020807
20808# An echo program that does not interpret backslashes.
20809echo=$lt_echo
20810
20811# The archiver.
20812AR=$lt_AR
20813AR_FLAGS=$lt_AR_FLAGS
20814
20815# A C compiler.
20816LTCC=$lt_LTCC
20817
Reid Spencera773bd52006-08-04 18:18:08 +000020818# LTCC compiler flags.
20819LTCFLAGS=$lt_LTCFLAGS
20820
John Criswell47fdd832003-07-14 16:52:07 +000020821# A language-specific compiler.
20822CC=$lt_compiler_CXX
20823
20824# Is the compiler the GNU C compiler?
20825with_gcc=$GCC_CXX
20826
20827# An ERE matcher.
20828EGREP=$lt_EGREP
20829
20830# The linker used to build libraries.
20831LD=$lt_LD_CXX
20832
20833# Whether we need hard or soft links.
20834LN_S=$lt_LN_S
20835
20836# A BSD-compatible nm program.
20837NM=$lt_NM
20838
20839# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020840STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020841
20842# Used to examine libraries when file_magic_cmd begins "file"
20843MAGIC_CMD=$MAGIC_CMD
20844
20845# Used on cygwin: DLL creation program.
20846DLLTOOL="$DLLTOOL"
20847
20848# Used on cygwin: object dumper.
20849OBJDUMP="$OBJDUMP"
20850
20851# Used on cygwin: assembler.
20852AS="$AS"
20853
20854# The name of the directory that contains temporary libtool files.
20855objdir=$objdir
20856
20857# How to create reloadable object files.
20858reload_flag=$lt_reload_flag
20859reload_cmds=$lt_reload_cmds
20860
20861# How to pass a linker flag through the compiler.
20862wl=$lt_lt_prog_compiler_wl_CXX
20863
20864# Object file suffix (normally "o").
20865objext="$ac_objext"
20866
20867# Old archive suffix (normally "a").
20868libext="$libext"
20869
20870# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020871shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020872
20873# Executable file suffix (normally "").
20874exeext="$exeext"
20875
20876# Additional compiler flags for building library objects.
20877pic_flag=$lt_lt_prog_compiler_pic_CXX
20878pic_mode=$pic_mode
20879
20880# What is the maximum length of a command?
20881max_cmd_len=$lt_cv_sys_max_cmd_len
20882
20883# Does compiler simultaneously support -c and -o options?
20884compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20885
Reid Spencera773bd52006-08-04 18:18:08 +000020886# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020887need_locks=$lt_need_locks
20888
20889# Do we need the lib prefix for modules?
20890need_lib_prefix=$need_lib_prefix
20891
20892# Do we need a version for libraries?
20893need_version=$need_version
20894
20895# Whether dlopen is supported.
20896dlopen_support=$enable_dlopen
20897
20898# Whether dlopen of programs is supported.
20899dlopen_self=$enable_dlopen_self
20900
20901# Whether dlopen of statically linked programs is supported.
20902dlopen_self_static=$enable_dlopen_self_static
20903
20904# Compiler flag to prevent dynamic linking.
20905link_static_flag=$lt_lt_prog_compiler_static_CXX
20906
20907# Compiler flag to turn off builtin functions.
20908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20909
20910# Compiler flag to allow reflexive dlopens.
20911export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20912
20913# Compiler flag to generate shared objects directly from archives.
20914whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20915
20916# Compiler flag to generate thread-safe objects.
20917thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20918
20919# Library versioning type.
20920version_type=$version_type
20921
20922# Format of library name prefix.
20923libname_spec=$lt_libname_spec
20924
20925# List of archive names. First name is the real one, the rest are links.
20926# The last name is the one that the linker finds with -lNAME.
20927library_names_spec=$lt_library_names_spec
20928
20929# The coded name of the library, if different from the real name.
20930soname_spec=$lt_soname_spec
20931
20932# Commands used to build and install an old-style archive.
20933RANLIB=$lt_RANLIB
20934old_archive_cmds=$lt_old_archive_cmds_CXX
20935old_postinstall_cmds=$lt_old_postinstall_cmds
20936old_postuninstall_cmds=$lt_old_postuninstall_cmds
20937
20938# Create an old-style archive from a shared archive.
20939old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20940
20941# Create a temporary old-style archive to link instead of a shared archive.
20942old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20943
20944# Commands used to build and install a shared archive.
20945archive_cmds=$lt_archive_cmds_CXX
20946archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20947postinstall_cmds=$lt_postinstall_cmds
20948postuninstall_cmds=$lt_postuninstall_cmds
20949
20950# Commands used to build a loadable module (assumed same as above if empty)
20951module_cmds=$lt_module_cmds_CXX
20952module_expsym_cmds=$lt_module_expsym_cmds_CXX
20953
20954# Commands to strip libraries.
20955old_striplib=$lt_old_striplib
20956striplib=$lt_striplib
20957
20958# Dependencies to place before the objects being linked to create a
20959# shared library.
20960predep_objects=$lt_predep_objects_CXX
20961
20962# Dependencies to place after the objects being linked to create a
20963# shared library.
20964postdep_objects=$lt_postdep_objects_CXX
20965
20966# Dependencies to place before the objects being linked to create a
20967# shared library.
20968predeps=$lt_predeps_CXX
20969
20970# Dependencies to place after the objects being linked to create a
20971# shared library.
20972postdeps=$lt_postdeps_CXX
20973
20974# The library search path used internally by the compiler when linking
20975# a shared library.
20976compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20977
20978# Method to check whether dependent libraries are shared objects.
20979deplibs_check_method=$lt_deplibs_check_method
20980
20981# Command to use when deplibs_check_method == file_magic.
20982file_magic_cmd=$lt_file_magic_cmd
20983
20984# Flag that allows shared libraries with undefined symbols to be built.
20985allow_undefined_flag=$lt_allow_undefined_flag_CXX
20986
20987# Flag that forces no undefined symbols.
20988no_undefined_flag=$lt_no_undefined_flag_CXX
20989
20990# Commands used to finish a libtool library installation in a directory.
20991finish_cmds=$lt_finish_cmds
20992
20993# Same as above, but a single script fragment to be evaled but not shown.
20994finish_eval=$lt_finish_eval
20995
20996# Take the output of nm and produce a listing of raw symbols and C names.
20997global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20998
20999# Transform the output of nm in a proper C declaration
21000global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21001
21002# Transform the output of nm in a C name address pair
21003global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21004
21005# This is the shared library runtime path variable.
21006runpath_var=$runpath_var
21007
21008# This is the shared library path variable.
21009shlibpath_var=$shlibpath_var
21010
21011# Is shlibpath searched before the hard-coded library search path?
21012shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21013
21014# How to hardcode a shared library path into an executable.
21015hardcode_action=$hardcode_action_CXX
21016
21017# Whether we should hardcode library paths into libraries.
21018hardcode_into_libs=$hardcode_into_libs
21019
21020# Flag to hardcode \$libdir into a binary during linking.
21021# This must work even if \$libdir does not exist.
21022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21023
21024# If ld is used when linking, flag to hardcode \$libdir into
21025# a binary during linking. This must work even if \$libdir does
21026# not exist.
21027hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21028
21029# Whether we need a single -rpath flag with a separated argument.
21030hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21031
21032# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21033# resulting binary.
21034hardcode_direct=$hardcode_direct_CXX
21035
21036# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21037# resulting binary.
21038hardcode_minus_L=$hardcode_minus_L_CXX
21039
21040# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21041# the resulting binary.
21042hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21043
21044# Set to yes if building a shared library automatically hardcodes DIR into the library
21045# and all subsequent libraries and executables linked against it.
21046hardcode_automatic=$hardcode_automatic_CXX
21047
21048# Variables whose values should be saved in libtool wrapper scripts and
21049# restored at relink time.
21050variables_saved_for_relink="$variables_saved_for_relink"
21051
21052# Whether libtool must link a program against all its dependency libraries.
21053link_all_deplibs=$link_all_deplibs_CXX
21054
21055# Compile-time system search path for libraries
21056sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21057
21058# Run-time system search path for libraries
21059sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21060
21061# Fix the shell variable \$srcfile for the compiler.
21062fix_srcfile_path="$fix_srcfile_path_CXX"
21063
21064# Set to yes if exported symbols are required.
21065always_export_symbols=$always_export_symbols_CXX
21066
21067# The commands to list exported symbols.
21068export_symbols_cmds=$lt_export_symbols_cmds_CXX
21069
21070# The commands to extract the exported symbol list from a shared archive.
21071extract_expsyms_cmds=$lt_extract_expsyms_cmds
21072
21073# Symbols that should not be listed in the preloaded symbols.
21074exclude_expsyms=$lt_exclude_expsyms_CXX
21075
21076# Symbols that must always be exported.
21077include_expsyms=$lt_include_expsyms_CXX
21078
21079# ### END LIBTOOL TAG CONFIG: $tagname
21080
21081__EOF__
21082
21083
21084else
21085 # If there is no Makefile yet, we rely on a make rule to execute
21086 # `config.status --recheck' to rerun these tests and create the
21087 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21089 if test -f "$ltmain_in"; then
21090 test -f Makefile && make "$ltmain"
21091 fi
John Criswell47fdd832003-07-14 16:52:07 +000021092fi
21093
21094
21095ac_ext=c
21096ac_cpp='$CPP $CPPFLAGS'
21097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21099ac_compiler_gnu=$ac_cv_c_compiler_gnu
21100
21101CC=$lt_save_CC
21102LDCXX=$LD
21103LD=$lt_save_LD
21104GCC=$lt_save_GCC
21105with_gnu_ldcxx=$with_gnu_ld
21106with_gnu_ld=$lt_save_with_gnu_ld
21107lt_cv_path_LDCXX=$lt_cv_path_LD
21108lt_cv_path_LD=$lt_save_path_LD
21109lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21110lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21111
21112 else
21113 tagname=""
21114 fi
21115 ;;
21116
21117 F77)
21118 if test -n "$F77" && test "X$F77" != "Xno"; then
21119
21120ac_ext=f
21121ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21122ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21124
21125
21126archive_cmds_need_lc_F77=no
21127allow_undefined_flag_F77=
21128always_export_symbols_F77=no
21129archive_expsym_cmds_F77=
21130export_dynamic_flag_spec_F77=
21131hardcode_direct_F77=no
21132hardcode_libdir_flag_spec_F77=
21133hardcode_libdir_flag_spec_ld_F77=
21134hardcode_libdir_separator_F77=
21135hardcode_minus_L_F77=no
21136hardcode_automatic_F77=no
21137module_cmds_F77=
21138module_expsym_cmds_F77=
21139link_all_deplibs_F77=unknown
21140old_archive_cmds_F77=$old_archive_cmds
21141no_undefined_flag_F77=
21142whole_archive_flag_spec_F77=
21143enable_shared_with_static_runtimes_F77=no
21144
21145# Source file extension for f77 test sources.
21146ac_ext=f
21147
21148# Object file extension for compiled f77 test sources.
21149objext=o
21150objext_F77=$objext
21151
21152# Code to be used in simple compile tests
21153lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21154
21155# Code to be used in simple link tests
21156lt_simple_link_test_code=" program t\n end\n"
21157
21158# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21159
21160# If no C compiler was specified, use CC.
21161LTCC=${LTCC-"$CC"}
21162
Reid Spencera773bd52006-08-04 18:18:08 +000021163# If no C compiler flags were specified, use CFLAGS.
21164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21165
John Criswell47fdd832003-07-14 16:52:07 +000021166# Allow CC to be a program name with arguments.
21167compiler=$CC
21168
21169
Reid Spencera773bd52006-08-04 18:18:08 +000021170# save warnings/boilerplate of simple test code
21171ac_outfile=conftest.$ac_objext
21172printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21173eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21174_lt_compiler_boilerplate=`cat conftest.err`
21175$rm conftest*
21176
21177ac_outfile=conftest.$ac_objext
21178printf "$lt_simple_link_test_code" >conftest.$ac_ext
21179eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21180_lt_linker_boilerplate=`cat conftest.err`
21181$rm conftest*
21182
21183
John Criswell47fdd832003-07-14 16:52:07 +000021184# Allow CC to be a program name with arguments.
21185lt_save_CC="$CC"
21186CC=${F77-"f77"}
21187compiler=$CC
21188compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021189for cc_temp in $compiler""; do
21190 case $cc_temp in
21191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21193 \-*) ;;
21194 *) break;;
21195 esac
21196done
21197cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021198
John Criswell47fdd832003-07-14 16:52:07 +000021199
Reid Spencera773bd52006-08-04 18:18:08 +000021200{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21201echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21202{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21203echo "${ECHO_T}$can_build_shared" >&6; }
21204
21205{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21206echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021207test "$can_build_shared" = "no" && enable_shared=no
21208
21209# On AIX, shared libraries and static libraries use the same namespace, and
21210# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021211case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021212aix3*)
21213 test "$enable_shared" = yes && enable_static=no
21214 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021215 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021216 postinstall_cmds='$RANLIB $lib'
21217 fi
21218 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021219aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21221 test "$enable_shared" = yes && enable_static=no
21222 fi
John Criswell47fdd832003-07-14 16:52:07 +000021223 ;;
21224esac
Reid Spencera773bd52006-08-04 18:18:08 +000021225{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21226echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021227
Reid Spencera773bd52006-08-04 18:18:08 +000021228{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21229echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021230# Make sure either enable_shared or enable_static is yes.
21231test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021232{ echo "$as_me:$LINENO: result: $enable_static" >&5
21233echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021234
21235GCC_F77="$G77"
21236LD_F77="$LD"
21237
21238lt_prog_compiler_wl_F77=
21239lt_prog_compiler_pic_F77=
21240lt_prog_compiler_static_F77=
21241
Reid Spencera773bd52006-08-04 18:18:08 +000021242{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21243echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021244
21245 if test "$GCC" = yes; then
21246 lt_prog_compiler_wl_F77='-Wl,'
21247 lt_prog_compiler_static_F77='-static'
21248
21249 case $host_os in
21250 aix*)
21251 # All AIX code is PIC.
21252 if test "$host_cpu" = ia64; then
21253 # AIX 5 now supports IA64 processor
21254 lt_prog_compiler_static_F77='-Bstatic'
21255 fi
21256 ;;
21257
21258 amigaos*)
21259 # FIXME: we need at least 68020 code to build shared libraries, but
21260 # adding the `-m68020' flag to GCC prevents building anything better,
21261 # like `-m68040'.
21262 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21263 ;;
21264
21265 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21266 # PIC is the default for these OSes.
21267 ;;
21268
21269 mingw* | pw32* | os2*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21273 ;;
21274
21275 darwin* | rhapsody*)
21276 # PIC is the default on this platform
21277 # Common symbols not allowed in MH_DYLIB files
21278 lt_prog_compiler_pic_F77='-fno-common'
21279 ;;
21280
Reid Spencera773bd52006-08-04 18:18:08 +000021281 interix3*)
21282 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21283 # Instead, we relocate shared libraries at runtime.
21284 ;;
21285
John Criswell47fdd832003-07-14 16:52:07 +000021286 msdosdjgpp*)
21287 # Just because we use GCC doesn't mean we suddenly get shared libraries
21288 # on systems that don't support them.
21289 lt_prog_compiler_can_build_shared_F77=no
21290 enable_shared=no
21291 ;;
21292
21293 sysv4*MP*)
21294 if test -d /usr/nec; then
21295 lt_prog_compiler_pic_F77=-Kconform_pic
21296 fi
21297 ;;
21298
21299 hpux*)
21300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21301 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021302 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021303 hppa*64*|ia64*)
21304 # +Z the default
21305 ;;
21306 *)
21307 lt_prog_compiler_pic_F77='-fPIC'
21308 ;;
21309 esac
21310 ;;
21311
21312 *)
21313 lt_prog_compiler_pic_F77='-fPIC'
21314 ;;
21315 esac
21316 else
21317 # PORTME Check for flag to pass linker flags through the system compiler.
21318 case $host_os in
21319 aix*)
21320 lt_prog_compiler_wl_F77='-Wl,'
21321 if test "$host_cpu" = ia64; then
21322 # AIX 5 now supports IA64 processor
21323 lt_prog_compiler_static_F77='-Bstatic'
21324 else
21325 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21326 fi
21327 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021328 darwin*)
21329 # PIC is the default on this platform
21330 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021331 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021332 xlc*)
21333 lt_prog_compiler_pic_F77='-qnocommon'
21334 lt_prog_compiler_wl_F77='-Wl,'
21335 ;;
21336 esac
21337 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021338
21339 mingw* | pw32* | os2*)
21340 # This hack is so that the source file can tell whether it is being
21341 # built for inclusion in a dll (and should export symbols for example).
21342 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21343 ;;
21344
21345 hpux9* | hpux10* | hpux11*)
21346 lt_prog_compiler_wl_F77='-Wl,'
21347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21348 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021349 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021350 hppa*64*|ia64*)
21351 # +Z the default
21352 ;;
21353 *)
21354 lt_prog_compiler_pic_F77='+Z'
21355 ;;
21356 esac
21357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21358 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21359 ;;
21360
21361 irix5* | irix6* | nonstopux*)
21362 lt_prog_compiler_wl_F77='-Wl,'
21363 # PIC (with -KPIC) is the default.
21364 lt_prog_compiler_static_F77='-non_shared'
21365 ;;
21366
21367 newsos6)
21368 lt_prog_compiler_pic_F77='-KPIC'
21369 lt_prog_compiler_static_F77='-Bstatic'
21370 ;;
21371
21372 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021373 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021374 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021375 lt_prog_compiler_wl_F77='-Wl,'
21376 lt_prog_compiler_pic_F77='-KPIC'
21377 lt_prog_compiler_static_F77='-static'
21378 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021379 pgcc* | pgf77* | pgf90* | pgf95*)
21380 # Portland Group compilers (*not* the Pentium gcc compiler,
21381 # which looks to be a dead project)
21382 lt_prog_compiler_wl_F77='-Wl,'
21383 lt_prog_compiler_pic_F77='-fpic'
21384 lt_prog_compiler_static_F77='-Bstatic'
21385 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021386 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021387 lt_prog_compiler_wl_F77='-Wl,'
21388 # All Alpha code is PIC.
21389 lt_prog_compiler_static_F77='-non_shared'
21390 ;;
21391 esac
21392 ;;
21393
21394 osf3* | osf4* | osf5*)
21395 lt_prog_compiler_wl_F77='-Wl,'
21396 # All OSF/1 code is PIC.
21397 lt_prog_compiler_static_F77='-non_shared'
21398 ;;
21399
John Criswell47fdd832003-07-14 16:52:07 +000021400 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021401 lt_prog_compiler_pic_F77='-KPIC'
21402 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021403 case $cc_basename in
21404 f77* | f90* | f95*)
21405 lt_prog_compiler_wl_F77='-Qoption ld ';;
21406 *)
21407 lt_prog_compiler_wl_F77='-Wl,';;
21408 esac
John Criswell47fdd832003-07-14 16:52:07 +000021409 ;;
21410
21411 sunos4*)
21412 lt_prog_compiler_wl_F77='-Qoption ld '
21413 lt_prog_compiler_pic_F77='-PIC'
21414 lt_prog_compiler_static_F77='-Bstatic'
21415 ;;
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021418 lt_prog_compiler_wl_F77='-Wl,'
21419 lt_prog_compiler_pic_F77='-KPIC'
21420 lt_prog_compiler_static_F77='-Bstatic'
21421 ;;
21422
21423 sysv4*MP*)
21424 if test -d /usr/nec ;then
21425 lt_prog_compiler_pic_F77='-Kconform_pic'
21426 lt_prog_compiler_static_F77='-Bstatic'
21427 fi
21428 ;;
21429
Reid Spencera773bd52006-08-04 18:18:08 +000021430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21431 lt_prog_compiler_wl_F77='-Wl,'
21432 lt_prog_compiler_pic_F77='-KPIC'
21433 lt_prog_compiler_static_F77='-Bstatic'
21434 ;;
21435
21436 unicos*)
21437 lt_prog_compiler_wl_F77='-Wl,'
21438 lt_prog_compiler_can_build_shared_F77=no
21439 ;;
21440
John Criswell47fdd832003-07-14 16:52:07 +000021441 uts4*)
21442 lt_prog_compiler_pic_F77='-pic'
21443 lt_prog_compiler_static_F77='-Bstatic'
21444 ;;
21445
21446 *)
21447 lt_prog_compiler_can_build_shared_F77=no
21448 ;;
21449 esac
21450 fi
21451
Reid Spencera773bd52006-08-04 18:18:08 +000021452{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21453echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021454
21455#
21456# Check to make sure the PIC flag actually works.
21457#
21458if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021459
Reid Spencera773bd52006-08-04 18:18:08 +000021460{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21461echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021462if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464else
21465 lt_prog_compiler_pic_works_F77=no
21466 ac_outfile=conftest.$ac_objext
21467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21469 # Insert the option either (1) after the last *FLAGS variable, or
21470 # (2) before a word containing "conftest.", or (3) at the end.
21471 # Note that $ac_compile itself does not contain backslashes and begins
21472 # with a dollar sign (not a hyphen), so the echo should work correctly.
21473 # The option is referenced via a variable to avoid confusing sed.
21474 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021479 (eval "$lt_compile" 2>conftest.err)
21480 ac_status=$?
21481 cat conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021482 echo "$as_me:21482: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021483 if (exit $ac_status) && test -s "$ac_outfile"; then
21484 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021485 # So say no if there are warnings other than the usual output.
21486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021489 lt_prog_compiler_pic_works_F77=yes
21490 fi
21491 fi
21492 $rm conftest*
21493
21494fi
Reid Spencera773bd52006-08-04 18:18:08 +000021495{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21496echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021497
21498if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21499 case $lt_prog_compiler_pic_F77 in
21500 "" | " "*) ;;
21501 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21502 esac
21503else
21504 lt_prog_compiler_pic_F77=
21505 lt_prog_compiler_can_build_shared_F77=no
21506fi
21507
21508fi
Reid Spencera773bd52006-08-04 18:18:08 +000021509case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021510 # For platforms which do not support PIC, -DPIC is meaningless:
21511 *djgpp*)
21512 lt_prog_compiler_pic_F77=
21513 ;;
21514 *)
21515 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21516 ;;
21517esac
21518
Reid Spencera773bd52006-08-04 18:18:08 +000021519#
21520# Check to make sure the static flag actually works.
21521#
21522wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21523{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21524echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21525if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527else
21528 lt_prog_compiler_static_works_F77=no
21529 save_LDFLAGS="$LDFLAGS"
21530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21531 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21533 # The linker can only warn and ignore the option if not recognized
21534 # So say no if there are warnings
21535 if test -s conftest.err; then
21536 # Append any errors to the config.log.
21537 cat conftest.err 1>&5
21538 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21540 if diff conftest.exp conftest.er2 >/dev/null; then
21541 lt_prog_compiler_static_works_F77=yes
21542 fi
21543 else
21544 lt_prog_compiler_static_works_F77=yes
21545 fi
21546 fi
21547 $rm conftest*
21548 LDFLAGS="$save_LDFLAGS"
21549
21550fi
21551{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21552echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21553
21554if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21555 :
21556else
21557 lt_prog_compiler_static_F77=
21558fi
21559
21560
21561{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21562echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021563if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565else
21566 lt_cv_prog_compiler_c_o_F77=no
21567 $rm -r conftest 2>/dev/null
21568 mkdir conftest
21569 cd conftest
21570 mkdir out
21571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21572
John Criswell47fdd832003-07-14 16:52:07 +000021573 lt_compiler_flag="-o out/conftest2.$ac_objext"
21574 # Insert the option either (1) after the last *FLAGS variable, or
21575 # (2) before a word containing "conftest.", or (3) at the end.
21576 # Note that $ac_compile itself does not contain backslashes and begins
21577 # with a dollar sign (not a hyphen), so the echo should work correctly.
21578 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21581 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021582 (eval echo "\"\$as_me:21582: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021583 (eval "$lt_compile" 2>out/conftest.err)
21584 ac_status=$?
21585 cat out/conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021586 echo "$as_me:21586: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21588 then
21589 # The compiler can only warn and ignore the option if not recognized
21590 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021594 lt_cv_prog_compiler_c_o_F77=yes
21595 fi
21596 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021597 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021598 $rm conftest*
21599 # SGI C++ compiler will create directory out/ii_files/ for
21600 # template instantiation
21601 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21602 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021603 cd ..
21604 rmdir conftest
21605 $rm conftest*
21606
21607fi
Reid Spencera773bd52006-08-04 18:18:08 +000021608{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21609echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021610
21611
21612hard_links="nottested"
21613if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21614 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021615 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21616echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021617 hard_links=yes
21618 $rm conftest*
21619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21620 touch conftest.a
21621 ln conftest.a conftest.b 2>&5 || hard_links=no
21622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021623 { echo "$as_me:$LINENO: result: $hard_links" >&5
21624echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021625 if test "$hard_links" = no; then
21626 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21627echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21628 need_locks=warn
21629 fi
21630else
21631 need_locks=no
21632fi
21633
Reid Spencera773bd52006-08-04 18:18:08 +000021634{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21635echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021636
21637 runpath_var=
21638 allow_undefined_flag_F77=
21639 enable_shared_with_static_runtimes_F77=no
21640 archive_cmds_F77=
21641 archive_expsym_cmds_F77=
21642 old_archive_From_new_cmds_F77=
21643 old_archive_from_expsyms_cmds_F77=
21644 export_dynamic_flag_spec_F77=
21645 whole_archive_flag_spec_F77=
21646 thread_safe_flag_spec_F77=
21647 hardcode_libdir_flag_spec_F77=
21648 hardcode_libdir_flag_spec_ld_F77=
21649 hardcode_libdir_separator_F77=
21650 hardcode_direct_F77=no
21651 hardcode_minus_L_F77=no
21652 hardcode_shlibpath_var_F77=unsupported
21653 link_all_deplibs_F77=unknown
21654 hardcode_automatic_F77=no
21655 module_cmds_F77=
21656 module_expsym_cmds_F77=
21657 always_export_symbols_F77=no
21658 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21659 # include_expsyms should be a list of space-separated symbols to be *always*
21660 # included in the symbol list
21661 include_expsyms_F77=
21662 # exclude_expsyms can be an extended regexp of symbols to exclude
21663 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21664 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21665 # as well as any symbol that contains `d'.
21666 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21667 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21668 # platforms (ab)use it in PIC code, but their linkers get confused if
21669 # the symbol is explicitly referenced. Since portable code cannot
21670 # rely on this symbol name, it's probably fine to never include it in
21671 # preloaded symbol tables.
21672 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021673 # Just being paranoid about ensuring that cc_basename is set.
21674 for cc_temp in $compiler""; do
21675 case $cc_temp in
21676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21678 \-*) ;;
21679 *) break;;
21680 esac
21681done
21682cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021683
21684 case $host_os in
21685 cygwin* | mingw* | pw32*)
21686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21687 # When not using gcc, we currently assume that we are using
21688 # Microsoft Visual C++.
21689 if test "$GCC" != yes; then
21690 with_gnu_ld=no
21691 fi
21692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021693 interix*)
21694 # we just hope/assume this is gcc and not c89 (= MSVC++)
21695 with_gnu_ld=yes
21696 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021697 openbsd*)
21698 with_gnu_ld=no
21699 ;;
21700 esac
21701
21702 ld_shlibs_F77=yes
21703 if test "$with_gnu_ld" = yes; then
21704 # If archive_cmds runs LD, not CC, wlarc should be empty
21705 wlarc='${wl}'
21706
Reid Spencera773bd52006-08-04 18:18:08 +000021707 # Set some defaults for GNU ld with shared library support. These
21708 # are reset later if shared libraries are not supported. Putting them
21709 # here allows them to be overridden if necessary.
21710 runpath_var=LD_RUN_PATH
21711 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21712 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21713 # ancient GNU ld didn't support --whole-archive et. al.
21714 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21715 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21716 else
21717 whole_archive_flag_spec_F77=
21718 fi
21719 supports_anon_versioning=no
21720 case `$LD -v 2>/dev/null` in
21721 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21722 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21723 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21724 *\ 2.11.*) ;; # other 2.11 versions
21725 *) supports_anon_versioning=yes ;;
21726 esac
21727
John Criswell47fdd832003-07-14 16:52:07 +000021728 # See if GNU ld supports shared libraries.
21729 case $host_os in
21730 aix3* | aix4* | aix5*)
21731 # On AIX/PPC, the GNU linker is very broken
21732 if test "$host_cpu" != ia64; then
21733 ld_shlibs_F77=no
21734 cat <<EOF 1>&2
21735
21736*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21737*** to be unable to reliably create shared libraries on AIX.
21738*** Therefore, libtool is disabling shared libraries support. If you
21739*** really care for shared libraries, you may want to modify your PATH
21740*** so that a non-GNU linker is found, and then restart.
21741
21742EOF
21743 fi
21744 ;;
21745
21746 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021747 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 +000021748 hardcode_libdir_flag_spec_F77='-L$libdir'
21749 hardcode_minus_L_F77=yes
21750
21751 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21752 # that the semantics of dynamic libraries on AmigaOS, at least up
21753 # to version 4, is to share data among multiple programs linked
21754 # with the same dynamic library. Since this doesn't match the
21755 # behavior of shared libraries on other platforms, we can't use
21756 # them.
21757 ld_shlibs_F77=no
21758 ;;
21759
21760 beos*)
21761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762 allow_undefined_flag_F77=unsupported
21763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21764 # support --undefined. This deserves some investigation. FIXME
21765 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21766 else
21767 ld_shlibs_F77=no
21768 fi
21769 ;;
21770
21771 cygwin* | mingw* | pw32*)
21772 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21773 # as there is no search path for DLLs.
21774 hardcode_libdir_flag_spec_F77='-L$libdir'
21775 allow_undefined_flag_F77=unsupported
21776 always_export_symbols_F77=no
21777 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021778 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 +000021779
21780 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021781 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 +000021782 # If the export-symbols file already is a .def file (1st line
21783 # is EXPORTS), use it as is; otherwise, prepend...
21784 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21785 cp $export_symbols $output_objdir/$soname.def;
21786 else
21787 echo EXPORTS > $output_objdir/$soname.def;
21788 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021789 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021790 $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 +000021791 else
Reid Spencera773bd52006-08-04 18:18:08 +000021792 ld_shlibs_F77=no
21793 fi
21794 ;;
21795
21796 interix3*)
21797 hardcode_direct_F77=no
21798 hardcode_shlibpath_var_F77=no
21799 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21800 export_dynamic_flag_spec_F77='${wl}-E'
21801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21802 # Instead, shared libraries are loaded at an image base (0x10000000 by
21803 # default) and relocated if they conflict, which is a slow very memory
21804 # consuming and fragmenting process. To avoid this, we pick a random,
21805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21807 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'
21808 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'
21809 ;;
21810
21811 linux*)
21812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 tmp_addflag=
21814 case $cc_basename,$host_cpu in
21815 pgcc*) # Portland Group C compiler
21816 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'
21817 tmp_addflag=' $pic_flag'
21818 ;;
21819 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21820 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'
21821 tmp_addflag=' $pic_flag -Mnomain' ;;
21822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21823 tmp_addflag=' -i_dynamic' ;;
21824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21825 tmp_addflag=' -i_dynamic -nofor_main' ;;
21826 ifc* | ifort*) # Intel Fortran compiler
21827 tmp_addflag=' -nofor_main' ;;
21828 esac
21829 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830
21831 if test $supports_anon_versioning = yes; then
21832 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21834 $echo "local: *; };" >> $output_objdir/$libname.ver~
21835 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21836 fi
21837 else
21838 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021839 fi
21840 ;;
21841
21842 netbsd*)
21843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21844 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21845 wlarc=
21846 else
21847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21849 fi
21850 ;;
21851
Reid Spencera773bd52006-08-04 18:18:08 +000021852 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021853 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21854 ld_shlibs_F77=no
21855 cat <<EOF 1>&2
21856
21857*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21858*** create shared libraries on Solaris systems. Therefore, libtool
21859*** is disabling shared libraries support. We urge you to upgrade GNU
21860*** binutils to release 2.9.1 or newer. Another option is to modify
21861*** your PATH or compiler configuration so that the native linker is
21862*** used, and then restart.
21863
21864EOF
21865 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21866 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21867 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21868 else
21869 ld_shlibs_F77=no
21870 fi
21871 ;;
21872
Reid Spencera773bd52006-08-04 18:18:08 +000021873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21874 case `$LD -v 2>&1` in
21875 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21876 ld_shlibs_F77=no
21877 cat <<_LT_EOF 1>&2
21878
21879*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21880*** reliably create shared libraries on SCO systems. Therefore, libtool
21881*** is disabling shared libraries support. We urge you to upgrade GNU
21882*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21883*** your PATH or compiler configuration so that the native linker is
21884*** used, and then restart.
21885
21886_LT_EOF
21887 ;;
21888 *)
21889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21893 else
21894 ld_shlibs_F77=no
21895 fi
21896 ;;
21897 esac
21898 ;;
21899
John Criswell47fdd832003-07-14 16:52:07 +000021900 sunos4*)
21901 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21902 wlarc=
21903 hardcode_direct_F77=yes
21904 hardcode_shlibpath_var_F77=no
21905 ;;
21906
21907 *)
21908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21909 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21910 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21911 else
21912 ld_shlibs_F77=no
21913 fi
21914 ;;
21915 esac
21916
Reid Spencera773bd52006-08-04 18:18:08 +000021917 if test "$ld_shlibs_F77" = no; then
21918 runpath_var=
21919 hardcode_libdir_flag_spec_F77=
21920 export_dynamic_flag_spec_F77=
21921 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021922 fi
21923 else
21924 # PORTME fill in a description of your system's linker (not GNU ld)
21925 case $host_os in
21926 aix3*)
21927 allow_undefined_flag_F77=unsupported
21928 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021929 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 +000021930 # Note: this linker hardcodes the directories in LIBPATH if there
21931 # are no directories specified by -L.
21932 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021933 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021934 # Neither direct hardcoding nor static linking is supported with a
21935 # broken collect2.
21936 hardcode_direct_F77=unsupported
21937 fi
21938 ;;
21939
21940 aix4* | aix5*)
21941 if test "$host_cpu" = ia64; then
21942 # On IA64, the linker does run time linking by default, so we don't
21943 # have to do anything special.
21944 aix_use_runtimelinking=no
21945 exp_sym_flag='-Bexport'
21946 no_entry_flag=""
21947 else
21948 # If we're using GNU nm, then we don't want the "-C" option.
21949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21950 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21951 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'
21952 else
21953 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'
21954 fi
21955 aix_use_runtimelinking=no
21956
21957 # Test if we are trying to use run time linking or normal
21958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21959 # need to do runtime linking.
21960 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21961 for ld_flag in $LDFLAGS; do
21962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21963 aix_use_runtimelinking=yes
21964 break
21965 fi
21966 done
Reid Spencera773bd52006-08-04 18:18:08 +000021967 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021968 esac
21969
21970 exp_sym_flag='-bexport'
21971 no_entry_flag='-bnoentry'
21972 fi
21973
21974 # When large executables or shared objects are built, AIX ld can
21975 # have problems creating the table of contents. If linking a library
21976 # or program results in "error TOC overflow" add -mminimal-toc to
21977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21979
21980 archive_cmds_F77=''
21981 hardcode_direct_F77=yes
21982 hardcode_libdir_separator_F77=':'
21983 link_all_deplibs_F77=yes
21984
21985 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021986 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021987 # We only want to do this on AIX 4.2 and lower, the check
21988 # below for broken collect2 doesn't work under 4.3+
21989 collect2name=`${CC} -print-prog-name=collect2`
21990 if test -f "$collect2name" && \
21991 strings "$collect2name" | grep resolve_lib_name >/dev/null
21992 then
21993 # We have reworked collect2
21994 hardcode_direct_F77=yes
21995 else
21996 # We have old collect2
21997 hardcode_direct_F77=unsupported
21998 # It fails to find uninstalled libraries when the uninstalled
21999 # path is not listed in the libpath. Setting hardcode_minus_L
22000 # to unsupported forces relinking
22001 hardcode_minus_L_F77=yes
22002 hardcode_libdir_flag_spec_F77='-L$libdir'
22003 hardcode_libdir_separator_F77=
22004 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022005 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022006 esac
22007 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022008 if test "$aix_use_runtimelinking" = yes; then
22009 shared_flag="$shared_flag "'${wl}-G'
22010 fi
John Criswell47fdd832003-07-14 16:52:07 +000022011 else
22012 # not using gcc
22013 if test "$host_cpu" = ia64; then
22014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22015 # chokes on -Wl,-G. The following line is correct:
22016 shared_flag='-G'
22017 else
Reid Spencera773bd52006-08-04 18:18:08 +000022018 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022019 shared_flag='${wl}-G'
22020 else
22021 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022022 fi
John Criswell47fdd832003-07-14 16:52:07 +000022023 fi
22024 fi
22025
22026 # It seems that -bexpall does not export symbols beginning with
22027 # underscore (_), so it is better to generate a list of symbols to export.
22028 always_export_symbols_F77=yes
22029 if test "$aix_use_runtimelinking" = yes; then
22030 # Warning - without using the other runtime loading flags (-brtl),
22031 # -berok will link without error, but may produce a broken library.
22032 allow_undefined_flag_F77='-berok'
22033 # Determine the default libpath from the value encoded in an empty executable.
22034 cat >conftest.$ac_ext <<_ACEOF
22035 program main
22036
22037 end
22038_ACEOF
22039rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022040if { (ac_try="$ac_link"
22041case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044esac
22045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057esac
22058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try='test -s conftest$ac_exeext'
22064 { (case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067esac
22068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_try") 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022073
22074aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22075}'`
22076# Check for a 64-bit object if we didn't find anything.
22077if 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; }
22078}'`; fi
22079else
22080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022081sed 's/^/| /' conftest.$ac_ext >&5
22082
Reid Spencera773bd52006-08-04 18:18:08 +000022083
John Criswell47fdd832003-07-14 16:52:07 +000022084fi
Reid Spencera773bd52006-08-04 18:18:08 +000022085
Tanya Lattnercf067672008-01-17 05:57:22 +000022086rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022088if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22089
22090 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022091 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 +000022092 else
22093 if test "$host_cpu" = ia64; then
22094 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22095 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022096 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 +000022097 else
22098 # Determine the default libpath from the value encoded in an empty executable.
22099 cat >conftest.$ac_ext <<_ACEOF
22100 program main
22101
22102 end
22103_ACEOF
22104rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022105if { (ac_try="$ac_link"
22106case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22109esac
22110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022117 (exit $ac_status); } &&
22118 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22119 { (case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122esac
22123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest$ac_exeext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132esac
22133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022138
22139aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22140}'`
22141# Check for a 64-bit object if we didn't find anything.
22142if 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; }
22143}'`; fi
22144else
22145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022146sed 's/^/| /' conftest.$ac_ext >&5
22147
Reid Spencera773bd52006-08-04 18:18:08 +000022148
John Criswell47fdd832003-07-14 16:52:07 +000022149fi
Reid Spencera773bd52006-08-04 18:18:08 +000022150
Tanya Lattnercf067672008-01-17 05:57:22 +000022151rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022152 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022153if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22154
22155 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22156 # Warning - without using the other run time loading flags,
22157 # -berok will link without error, but may produce a broken library.
22158 no_undefined_flag_F77=' ${wl}-bernotok'
22159 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022160 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022161 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022162 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022163 # This is similar to how AIX traditionally builds its shared libraries.
22164 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 +000022165 fi
22166 fi
22167 ;;
22168
22169 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022170 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 +000022171 hardcode_libdir_flag_spec_F77='-L$libdir'
22172 hardcode_minus_L_F77=yes
22173 # see comment about different semantics on the GNU ld section
22174 ld_shlibs_F77=no
22175 ;;
22176
Reid Spencer2706f8c2004-09-19 23:53:36 +000022177 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022178 export_dynamic_flag_spec_F77=-rdynamic
22179 ;;
22180
22181 cygwin* | mingw* | pw32*)
22182 # When not using gcc, we currently assume that we are using
22183 # Microsoft Visual C++.
22184 # hardcode_libdir_flag_spec is actually meaningless, as there is
22185 # no search path for DLLs.
22186 hardcode_libdir_flag_spec_F77=' '
22187 allow_undefined_flag_F77=unsupported
22188 # Tell ltmain to make .lib files, not .a files.
22189 libext=lib
22190 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022191 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022192 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022193 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 +000022194 # The linker will automatically build a .lib file if we build a DLL.
22195 old_archive_From_new_cmds_F77='true'
22196 # FIXME: Should let the user specify the lib program.
22197 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022198 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022199 enable_shared_with_static_runtimes_F77=yes
22200 ;;
22201
22202 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022203 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022204 rhapsody* | darwin1.[012])
22205 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22206 ;;
22207 *) # Darwin 1.3 on
22208 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22209 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22210 else
22211 case ${MACOSX_DEPLOYMENT_TARGET} in
22212 10.[012])
22213 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22214 ;;
22215 10.*)
22216 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22217 ;;
22218 esac
22219 fi
22220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022221 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022222 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022223 hardcode_direct_F77=no
22224 hardcode_automatic_F77=yes
22225 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022226 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022227 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022228 if test "$GCC" = yes ; then
22229 output_verbose_link_cmd='echo'
22230 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22231 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022232 # 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 +000022233 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}'
22234 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 +000022235 else
Reid Spencera773bd52006-08-04 18:18:08 +000022236 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022237 xlc*)
22238 output_verbose_link_cmd='echo'
22239 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22240 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022241 # 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 +000022242 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}'
22243 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 +000022244 ;;
22245 *)
22246 ld_shlibs_F77=no
22247 ;;
22248 esac
John Criswell47fdd832003-07-14 16:52:07 +000022249 fi
22250 ;;
22251
22252 dgux*)
22253 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22254 hardcode_libdir_flag_spec_F77='-L$libdir'
22255 hardcode_shlibpath_var_F77=no
22256 ;;
22257
22258 freebsd1*)
22259 ld_shlibs_F77=no
22260 ;;
22261
22262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22263 # support. Future versions do this automatically, but an explicit c++rt0.o
22264 # does not break anything, and helps significantly (at the cost of a little
22265 # extra space).
22266 freebsd2.2*)
22267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22268 hardcode_libdir_flag_spec_F77='-R$libdir'
22269 hardcode_direct_F77=yes
22270 hardcode_shlibpath_var_F77=no
22271 ;;
22272
22273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22274 freebsd2*)
22275 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22276 hardcode_direct_F77=yes
22277 hardcode_minus_L_F77=yes
22278 hardcode_shlibpath_var_F77=no
22279 ;;
22280
22281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022282 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022283 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22284 hardcode_libdir_flag_spec_F77='-R$libdir'
22285 hardcode_direct_F77=yes
22286 hardcode_shlibpath_var_F77=no
22287 ;;
22288
22289 hpux9*)
22290 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022291 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 +000022292 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022293 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 +000022294 fi
22295 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22296 hardcode_libdir_separator_F77=:
22297 hardcode_direct_F77=yes
22298
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_F77=yes
22302 export_dynamic_flag_spec_F77='${wl}-E'
22303 ;;
22304
Reid Spencera773bd52006-08-04 18:18:08 +000022305 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022307 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22308 else
22309 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22310 fi
22311 if test "$with_gnu_ld" = no; then
22312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22313 hardcode_libdir_separator_F77=:
22314
22315 hardcode_direct_F77=yes
22316 export_dynamic_flag_spec_F77='${wl}-E'
22317
22318 # hardcode_minus_L: Not really in the search PATH,
22319 # but as the default location of the library.
22320 hardcode_minus_L_F77=yes
22321 fi
22322 ;;
22323
22324 hpux11*)
22325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22326 case $host_cpu in
22327 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022328 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22329 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022330 ia64*)
22331 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22332 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022333 *)
22334 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22335 ;;
22336 esac
22337 else
Reid Spencera773bd52006-08-04 18:18:08 +000022338 case $host_cpu in
22339 hppa*64*)
22340 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22341 ;;
22342 ia64*)
22343 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022344 ;;
22345 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022346 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 +000022347 ;;
22348 esac
22349 fi
22350 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022351 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22352 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022353
Reid Spencera773bd52006-08-04 18:18:08 +000022354 case $host_cpu in
22355 hppa*64*|ia64*)
22356 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22357 hardcode_direct_F77=no
22358 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022359 ;;
22360 *)
John Criswell47fdd832003-07-14 16:52:07 +000022361 hardcode_direct_F77=yes
22362 export_dynamic_flag_spec_F77='${wl}-E'
22363
22364 # hardcode_minus_L: Not really in the search PATH,
22365 # but as the default location of the library.
22366 hardcode_minus_L_F77=yes
22367 ;;
22368 esac
22369 fi
22370 ;;
22371
22372 irix5* | irix6* | nonstopux*)
22373 if test "$GCC" = yes; then
22374 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'
22375 else
22376 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'
22377 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22378 fi
22379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380 hardcode_libdir_separator_F77=:
22381 link_all_deplibs_F77=yes
22382 ;;
22383
22384 netbsd*)
22385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22386 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22387 else
22388 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22389 fi
22390 hardcode_libdir_flag_spec_F77='-R$libdir'
22391 hardcode_direct_F77=yes
22392 hardcode_shlibpath_var_F77=no
22393 ;;
22394
22395 newsos6)
22396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_direct_F77=yes
22398 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22399 hardcode_libdir_separator_F77=:
22400 hardcode_shlibpath_var_F77=no
22401 ;;
22402
22403 openbsd*)
22404 hardcode_direct_F77=yes
22405 hardcode_shlibpath_var_F77=no
22406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022408 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 +000022409 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22410 export_dynamic_flag_spec_F77='${wl}-E'
22411 else
22412 case $host_os in
22413 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22414 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22415 hardcode_libdir_flag_spec_F77='-R$libdir'
22416 ;;
22417 *)
22418 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22419 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22420 ;;
22421 esac
22422 fi
22423 ;;
22424
22425 os2*)
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_minus_L_F77=yes
22428 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022429 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 +000022430 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22431 ;;
22432
22433 osf3*)
22434 if test "$GCC" = yes; then
22435 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22436 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'
22437 else
22438 allow_undefined_flag_F77=' -expect_unresolved \*'
22439 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'
22440 fi
22441 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22442 hardcode_libdir_separator_F77=:
22443 ;;
22444
22445 osf4* | osf5*) # as osf3* with the addition of -msym flag
22446 if test "$GCC" = yes; then
22447 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22448 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'
22449 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22450 else
22451 allow_undefined_flag_F77=' -expect_unresolved \*'
22452 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 +000022453 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 +000022454 $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 +000022455
John Criswell47fdd832003-07-14 16:52:07 +000022456 # Both c and cxx compiler support -rpath directly
22457 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22458 fi
22459 hardcode_libdir_separator_F77=:
22460 ;;
22461
John Criswell47fdd832003-07-14 16:52:07 +000022462 solaris*)
22463 no_undefined_flag_F77=' -z text'
22464 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022465 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022466 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022467 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22468 $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 +000022469 else
Reid Spencera773bd52006-08-04 18:18:08 +000022470 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022471 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022472 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22473 $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 +000022474 fi
22475 hardcode_libdir_flag_spec_F77='-R$libdir'
22476 hardcode_shlibpath_var_F77=no
22477 case $host_os in
22478 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022479 *)
22480 # The compiler driver will combine linker options so we
22481 # cannot just pass the convience library names through
22482 # without $wl, iff we do not link with $LD.
22483 # Luckily, gcc supports the same syntax we need for Sun Studio.
22484 # Supported since Solaris 2.6 (maybe 2.5.1?)
22485 case $wlarc in
22486 '')
22487 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22488 *)
22489 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' ;;
22490 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022491 esac
22492 link_all_deplibs_F77=yes
22493 ;;
22494
22495 sunos4*)
22496 if test "x$host_vendor" = xsequent; then
22497 # Use $CC to link under sequent, because it throws in some extra .o
22498 # files that make .init and .fini sections work.
22499 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22500 else
22501 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22502 fi
22503 hardcode_libdir_flag_spec_F77='-L$libdir'
22504 hardcode_direct_F77=yes
22505 hardcode_minus_L_F77=yes
22506 hardcode_shlibpath_var_F77=no
22507 ;;
22508
22509 sysv4)
22510 case $host_vendor in
22511 sni)
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_direct_F77=yes # is this really true???
22514 ;;
22515 siemens)
22516 ## LD is ld it makes a PLAMLIB
22517 ## CC just makes a GrossModule.
22518 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22519 reload_cmds_F77='$CC -r -o $output$reload_objs'
22520 hardcode_direct_F77=no
22521 ;;
22522 motorola)
22523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22525 ;;
22526 esac
22527 runpath_var='LD_RUN_PATH'
22528 hardcode_shlibpath_var_F77=no
22529 ;;
22530
22531 sysv4.3*)
22532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_shlibpath_var_F77=no
22534 export_dynamic_flag_spec_F77='-Bexport'
22535 ;;
22536
22537 sysv4*MP*)
22538 if test -d /usr/nec; then
22539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22540 hardcode_shlibpath_var_F77=no
22541 runpath_var=LD_RUN_PATH
22542 hardcode_runpath_var=yes
22543 ld_shlibs_F77=yes
22544 fi
22545 ;;
22546
Reid Spencera773bd52006-08-04 18:18:08 +000022547 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22548 no_undefined_flag_F77='${wl}-z,text'
22549 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022550 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022551 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022552
John Criswell47fdd832003-07-14 16:52:07 +000022553 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022554 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22555 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 +000022556 else
Reid Spencera773bd52006-08-04 18:18:08 +000022557 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22558 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 +000022559 fi
John Criswell47fdd832003-07-14 16:52:07 +000022560 ;;
22561
Reid Spencera773bd52006-08-04 18:18:08 +000022562 sysv5* | sco3.2v5* | sco5v6*)
22563 # Note: We can NOT use -z defs as we might desire, because we do not
22564 # link with -lc, and that would cause any symbols used from libc to
22565 # always be unresolved, which means just about no library would
22566 # ever link correctly. If we're not using GNU ld we use -z text
22567 # though, which does catch some bad symbols but isn't as heavy-handed
22568 # as -z defs.
22569 no_undefined_flag_F77='${wl}-z,text'
22570 allow_undefined_flag_F77='${wl}-z,nodefs'
22571 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022572 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022573 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22574 hardcode_libdir_separator_F77=':'
22575 link_all_deplibs_F77=yes
22576 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022577 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022578
22579 if test "$GCC" = yes; then
22580 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22582 else
22583 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22585 fi
John Criswell47fdd832003-07-14 16:52:07 +000022586 ;;
22587
22588 uts4*)
22589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22590 hardcode_libdir_flag_spec_F77='-L$libdir'
22591 hardcode_shlibpath_var_F77=no
22592 ;;
22593
22594 *)
22595 ld_shlibs_F77=no
22596 ;;
22597 esac
22598 fi
22599
Reid Spencera773bd52006-08-04 18:18:08 +000022600{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22601echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022602test "$ld_shlibs_F77" = no && can_build_shared=no
22603
John Criswell47fdd832003-07-14 16:52:07 +000022604#
22605# Do we need to explicitly link libc?
22606#
22607case "x$archive_cmds_need_lc_F77" in
22608x|xyes)
22609 # Assume -lc should be added
22610 archive_cmds_need_lc_F77=yes
22611
22612 if test "$enable_shared" = yes && test "$GCC" = yes; then
22613 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022614 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022615 # FIXME: we may have to deal with multi-command sequences.
22616 ;;
22617 '$CC '*)
22618 # Test whether the compiler implicitly links with -lc since on some
22619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22620 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022621 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22622echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022623 $rm conftest*
22624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22625
22626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22627 (eval $ac_compile) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } 2>conftest.err; then
22631 soname=conftest
22632 lib=conftest
22633 libobjs=conftest.$ac_objext
22634 deplibs=
22635 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022636 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022637 compiler_flags=-v
22638 linker_flags=-v
22639 verstring=
22640 output_objdir=.
22641 libname=conftest
22642 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22643 allow_undefined_flag_F77=
22644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22645 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }
22649 then
22650 archive_cmds_need_lc_F77=no
22651 else
22652 archive_cmds_need_lc_F77=yes
22653 fi
22654 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22655 else
22656 cat conftest.err 1>&5
22657 fi
22658 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022659 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22660echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022661 ;;
22662 esac
22663 fi
22664 ;;
22665esac
22666
Reid Spencera773bd52006-08-04 18:18:08 +000022667{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22668echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022669library_names_spec=
22670libname_spec='lib$name'
22671soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022672shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022673postinstall_cmds=
22674postuninstall_cmds=
22675finish_cmds=
22676finish_eval=
22677shlibpath_var=
22678shlibpath_overrides_runpath=unknown
22679version_type=none
22680dynamic_linker="$host_os ld.so"
22681sys_lib_dlsearch_path_spec="/lib /usr/lib"
22682if test "$GCC" = yes; then
22683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22684 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22685 # if the path contains ";" then we assume it to be the separator
22686 # otherwise default to the standard path separator (i.e. ":") - it is
22687 # assumed that no part of a normal pathname contains ";" but that should
22688 # okay in the real world where ";" in dirpaths is itself problematic.
22689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22690 else
22691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22692 fi
22693else
22694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22695fi
22696need_lib_prefix=unknown
22697hardcode_into_libs=no
22698
22699# when you set need_version to no, make sure it does not cause -set_version
22700# flags to be left without arguments
22701need_version=unknown
22702
22703case $host_os in
22704aix3*)
22705 version_type=linux
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22707 shlibpath_var=LIBPATH
22708
22709 # AIX 3 has no versioning support, so we append a major version to the name.
22710 soname_spec='${libname}${release}${shared_ext}$major'
22711 ;;
22712
22713aix4* | aix5*)
22714 version_type=linux
22715 need_lib_prefix=no
22716 need_version=no
22717 hardcode_into_libs=yes
22718 if test "$host_cpu" = ia64; then
22719 # AIX 5 supports IA64
22720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22721 shlibpath_var=LD_LIBRARY_PATH
22722 else
22723 # With GCC up to 2.95.x, collect2 would create an import file
22724 # for dependence libraries. The import file would start with
22725 # the line `#! .'. This would cause the generated library to
22726 # depend on `.', always an invalid library. This was fixed in
22727 # development snapshots of GCC prior to 3.0.
22728 case $host_os in
22729 aix4 | aix4.[01] | aix4.[01].*)
22730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22731 echo ' yes '
22732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22733 :
22734 else
22735 can_build_shared=no
22736 fi
22737 ;;
22738 esac
22739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22740 # soname into executable. Probably we can add versioning support to
22741 # collect2, so additional links can be useful in future.
22742 if test "$aix_use_runtimelinking" = yes; then
22743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22744 # instead of lib<name>.a to let people know that these are not
22745 # typical AIX shared libraries.
22746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22747 else
22748 # We preserve .a as extension for shared libraries through AIX4.2
22749 # and later when we are not doing run time linking.
22750 library_names_spec='${libname}${release}.a $libname.a'
22751 soname_spec='${libname}${release}${shared_ext}$major'
22752 fi
22753 shlibpath_var=LIBPATH
22754 fi
22755 ;;
22756
22757amigaos*)
22758 library_names_spec='$libname.ixlibrary $libname.a'
22759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022760 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 +000022761 ;;
22762
22763beos*)
22764 library_names_spec='${libname}${shared_ext}'
22765 dynamic_linker="$host_os ld.so"
22766 shlibpath_var=LIBRARY_PATH
22767 ;;
22768
Reid Spencer2706f8c2004-09-19 23:53:36 +000022769bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022770 version_type=linux
22771 need_version=no
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22778 # the default ld.so.conf also contains /usr/contrib/lib and
22779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22780 # libtool to hard-code these into programs
22781 ;;
22782
22783cygwin* | mingw* | pw32*)
22784 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022785 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022786 need_version=no
22787 need_lib_prefix=no
22788
22789 case $GCC,$host_os in
22790 yes,cygwin* | yes,mingw* | yes,pw32*)
22791 library_names_spec='$libname.dll.a'
22792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022793 postinstall_cmds='base_file=`basename \${file}`~
22794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22795 dldir=$destdir/`dirname \$dlpath`~
22796 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022797 $install_prog $dir/$dlname \$dldir/$dlname~
22798 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22800 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022801 $rm \$dlpath'
22802 shlibpath_overrides_runpath=yes
22803
22804 case $host_os in
22805 cygwin*)
22806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22807 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 +000022808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022809 ;;
22810 mingw*)
22811 # MinGW DLLs use traditional 'lib' prefix
22812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22814 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22815 # It is most probably a Windows format PATH printed by
22816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22817 # path with ; separators, and with drive letters. We can handle the
22818 # drive letters (cygwin fileutils understands them), so leave them,
22819 # especially as we might pass files found there to a mingw objdump,
22820 # which wouldn't understand a cygwinified path. Ahh.
22821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22822 else
22823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22824 fi
22825 ;;
22826 pw32*)
22827 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022828 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 +000022829 ;;
22830 esac
22831 ;;
22832
22833 *)
22834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22835 ;;
22836 esac
22837 dynamic_linker='Win32 ld.exe'
22838 # FIXME: first we should search . and the directory the executable is in
22839 shlibpath_var=PATH
22840 ;;
22841
22842darwin* | rhapsody*)
22843 dynamic_linker="$host_os dyld"
22844 version_type=darwin
22845 need_lib_prefix=no
22846 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022847 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022848 soname_spec='${libname}${release}${major}$shared_ext'
22849 shlibpath_overrides_runpath=yes
22850 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022851 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022852 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022853 if test "$GCC" = yes; then
22854 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"`
22855 else
22856 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022857 fi
22858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22859 ;;
22860
22861dgux*)
22862 version_type=linux
22863 need_lib_prefix=no
22864 need_version=no
22865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22866 soname_spec='${libname}${release}${shared_ext}$major'
22867 shlibpath_var=LD_LIBRARY_PATH
22868 ;;
22869
22870freebsd1*)
22871 dynamic_linker=no
22872 ;;
22873
Reid Spencer2706f8c2004-09-19 23:53:36 +000022874kfreebsd*-gnu)
22875 version_type=linux
22876 need_lib_prefix=no
22877 need_version=no
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22879 soname_spec='${libname}${release}${shared_ext}$major'
22880 shlibpath_var=LD_LIBRARY_PATH
22881 shlibpath_overrides_runpath=no
22882 hardcode_into_libs=yes
22883 dynamic_linker='GNU ld.so'
22884 ;;
22885
Reid Spencera773bd52006-08-04 18:18:08 +000022886freebsd* | dragonfly*)
22887 # DragonFly does not have aout. When/if they implement a new
22888 # versioning mechanism, adjust this.
22889 if test -x /usr/bin/objformat; then
22890 objformat=`/usr/bin/objformat`
22891 else
22892 case $host_os in
22893 freebsd[123]*) objformat=aout ;;
22894 *) objformat=elf ;;
22895 esac
22896 fi
John Criswell47fdd832003-07-14 16:52:07 +000022897 version_type=freebsd-$objformat
22898 case $version_type in
22899 freebsd-elf*)
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22901 need_version=no
22902 need_lib_prefix=no
22903 ;;
22904 freebsd-*)
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22906 need_version=yes
22907 ;;
22908 esac
22909 shlibpath_var=LD_LIBRARY_PATH
22910 case $host_os in
22911 freebsd2*)
22912 shlibpath_overrides_runpath=yes
22913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022914 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022915 shlibpath_overrides_runpath=yes
22916 hardcode_into_libs=yes
22917 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022920 shlibpath_overrides_runpath=no
22921 hardcode_into_libs=yes
22922 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022923 freebsd*) # from 4.6 on
22924 shlibpath_overrides_runpath=yes
22925 hardcode_into_libs=yes
22926 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022927 esac
22928 ;;
22929
22930gnu*)
22931 version_type=linux
22932 need_lib_prefix=no
22933 need_version=no
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22935 soname_spec='${libname}${release}${shared_ext}$major'
22936 shlibpath_var=LD_LIBRARY_PATH
22937 hardcode_into_libs=yes
22938 ;;
22939
22940hpux9* | hpux10* | hpux11*)
22941 # Give a soname corresponding to the major version so that dld.sl refuses to
22942 # link against other versions.
22943 version_type=sunos
22944 need_lib_prefix=no
22945 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022946 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022947 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022948 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022949 hardcode_into_libs=yes
22950 dynamic_linker="$host_os dld.so"
22951 shlibpath_var=LD_LIBRARY_PATH
22952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22954 soname_spec='${libname}${release}${shared_ext}$major'
22955 if test "X$HPUX_IA64_MODE" = X32; then
22956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22957 else
22958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22959 fi
22960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22961 ;;
22962 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022964 hardcode_into_libs=yes
22965 dynamic_linker="$host_os dld.sl"
22966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec='${libname}${release}${shared_ext}$major'
22970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22972 ;;
22973 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022974 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022975 dynamic_linker="$host_os dld.sl"
22976 shlibpath_var=SHLIB_PATH
22977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979 soname_spec='${libname}${release}${shared_ext}$major'
22980 ;;
22981 esac
22982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22983 postinstall_cmds='chmod 555 $lib'
22984 ;;
22985
Reid Spencera773bd52006-08-04 18:18:08 +000022986interix3*)
22987 version_type=linux
22988 need_lib_prefix=no
22989 need_version=no
22990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22993 shlibpath_var=LD_LIBRARY_PATH
22994 shlibpath_overrides_runpath=no
22995 hardcode_into_libs=yes
22996 ;;
22997
John Criswell47fdd832003-07-14 16:52:07 +000022998irix5* | irix6* | nonstopux*)
22999 case $host_os in
23000 nonstopux*) version_type=nonstopux ;;
23001 *)
23002 if test "$lt_cv_prog_gnu_ld" = yes; then
23003 version_type=linux
23004 else
23005 version_type=irix
23006 fi ;;
23007 esac
23008 need_lib_prefix=no
23009 need_version=no
23010 soname_spec='${libname}${release}${shared_ext}$major'
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23012 case $host_os in
23013 irix5* | nonstopux*)
23014 libsuff= shlibsuff=
23015 ;;
23016 *)
23017 case $LD in # libtool.m4 will add one of these switches to LD
23018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23019 libsuff= shlibsuff= libmagic=32-bit;;
23020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23021 libsuff=32 shlibsuff=N32 libmagic=N32;;
23022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23024 *) libsuff= shlibsuff= libmagic=never-match;;
23025 esac
23026 ;;
23027 esac
23028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23029 shlibpath_overrides_runpath=no
23030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23032 hardcode_into_libs=yes
23033 ;;
23034
23035# No shared lib support for Linux oldld, aout, or coff.
23036linux*oldld* | linux*aout* | linux*coff*)
23037 dynamic_linker=no
23038 ;;
23039
23040# This must be Linux ELF.
23041linux*)
23042 version_type=linux
23043 need_lib_prefix=no
23044 need_version=no
23045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23046 soname_spec='${libname}${release}${shared_ext}$major'
23047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23048 shlibpath_var=LD_LIBRARY_PATH
23049 shlibpath_overrides_runpath=no
23050 # This implies no fast_install, which is unacceptable.
23051 # Some rework will be needed to allow for fast_install
23052 # before this can be enabled.
23053 hardcode_into_libs=yes
23054
Reid Spencer2706f8c2004-09-19 23:53:36 +000023055 # Append ld.so.conf contents to the search path
23056 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023057 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 +000023058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23059 fi
23060
John Criswell47fdd832003-07-14 16:52:07 +000023061 # We used to test for /lib/ld.so.1 and disable shared libraries on
23062 # powerpc, because MkLinux only supported shared libraries with the
23063 # GNU dynamic linker. Since this was broken with cross compilers,
23064 # most powerpc-linux boxes support dynamic linking these days and
23065 # people can always --disable-shared, the test was removed, and we
23066 # assume the GNU/Linux dynamic linker is in use.
23067 dynamic_linker='GNU/Linux ld.so'
23068 ;;
23069
Reid Spencer2706f8c2004-09-19 23:53:36 +000023070knetbsd*-gnu)
23071 version_type=linux
23072 need_lib_prefix=no
23073 need_version=no
23074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075 soname_spec='${libname}${release}${shared_ext}$major'
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=no
23078 hardcode_into_libs=yes
23079 dynamic_linker='GNU ld.so'
23080 ;;
23081
John Criswell47fdd832003-07-14 16:52:07 +000023082netbsd*)
23083 version_type=sunos
23084 need_lib_prefix=no
23085 need_version=no
23086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23089 dynamic_linker='NetBSD (a.out) ld.so'
23090 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023092 soname_spec='${libname}${release}${shared_ext}$major'
23093 dynamic_linker='NetBSD ld.elf_so'
23094 fi
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=yes
23097 hardcode_into_libs=yes
23098 ;;
23099
23100newsos6)
23101 version_type=linux
23102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes
23105 ;;
23106
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023108 version_type=linux
23109 need_lib_prefix=no
23110 need_version=no
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23112 soname_spec='${libname}${release}${shared_ext}$major'
23113 shlibpath_var=LD_LIBRARY_PATH
23114 shlibpath_overrides_runpath=yes
23115 ;;
23116
23117openbsd*)
23118 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023119 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023120 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23122 case $host_os in
23123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23124 *) need_version=no ;;
23125 esac
John Criswell47fdd832003-07-14 16:52:07 +000023126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23128 shlibpath_var=LD_LIBRARY_PATH
23129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23130 case $host_os in
23131 openbsd2.[89] | openbsd2.[89].*)
23132 shlibpath_overrides_runpath=no
23133 ;;
23134 *)
23135 shlibpath_overrides_runpath=yes
23136 ;;
23137 esac
23138 else
23139 shlibpath_overrides_runpath=yes
23140 fi
23141 ;;
23142
23143os2*)
23144 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023145 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023146 need_lib_prefix=no
23147 library_names_spec='$libname${shared_ext} $libname.a'
23148 dynamic_linker='OS/2 ld.exe'
23149 shlibpath_var=LIBPATH
23150 ;;
23151
23152osf3* | osf4* | osf5*)
23153 version_type=osf
23154 need_lib_prefix=no
23155 need_version=no
23156 soname_spec='${libname}${release}${shared_ext}$major'
23157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23158 shlibpath_var=LD_LIBRARY_PATH
23159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23161 ;;
23162
John Criswell47fdd832003-07-14 16:52:07 +000023163solaris*)
23164 version_type=linux
23165 need_lib_prefix=no
23166 need_version=no
23167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23168 soname_spec='${libname}${release}${shared_ext}$major'
23169 shlibpath_var=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath=yes
23171 hardcode_into_libs=yes
23172 # ldd complains unless libraries are executable
23173 postinstall_cmds='chmod +x $lib'
23174 ;;
23175
23176sunos4*)
23177 version_type=sunos
23178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23180 shlibpath_var=LD_LIBRARY_PATH
23181 shlibpath_overrides_runpath=yes
23182 if test "$with_gnu_ld" = yes; then
23183 need_lib_prefix=no
23184 fi
23185 need_version=yes
23186 ;;
23187
Reid Spencera773bd52006-08-04 18:18:08 +000023188sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023189 version_type=linux
23190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23191 soname_spec='${libname}${release}${shared_ext}$major'
23192 shlibpath_var=LD_LIBRARY_PATH
23193 case $host_vendor in
23194 sni)
23195 shlibpath_overrides_runpath=no
23196 need_lib_prefix=no
23197 export_dynamic_flag_spec='${wl}-Blargedynsym'
23198 runpath_var=LD_RUN_PATH
23199 ;;
23200 siemens)
23201 need_lib_prefix=no
23202 ;;
23203 motorola)
23204 need_lib_prefix=no
23205 need_version=no
23206 shlibpath_overrides_runpath=no
23207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23208 ;;
23209 esac
23210 ;;
23211
23212sysv4*MP*)
23213 if test -d /usr/nec ;then
23214 version_type=linux
23215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23216 soname_spec='$libname${shared_ext}.$major'
23217 shlibpath_var=LD_LIBRARY_PATH
23218 fi
23219 ;;
23220
Reid Spencera773bd52006-08-04 18:18:08 +000023221sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23222 version_type=freebsd-elf
23223 need_lib_prefix=no
23224 need_version=no
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 hardcode_into_libs=yes
23229 if test "$with_gnu_ld" = yes; then
23230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23231 shlibpath_overrides_runpath=no
23232 else
23233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23234 shlibpath_overrides_runpath=yes
23235 case $host_os in
23236 sco3.2v5*)
23237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23238 ;;
23239 esac
23240 fi
23241 sys_lib_dlsearch_path_spec='/usr/lib'
23242 ;;
23243
John Criswell47fdd832003-07-14 16:52:07 +000023244uts4*)
23245 version_type=linux
23246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23247 soname_spec='${libname}${release}${shared_ext}$major'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 ;;
23250
23251*)
23252 dynamic_linker=no
23253 ;;
23254esac
Reid Spencera773bd52006-08-04 18:18:08 +000023255{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23256echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023257test "$dynamic_linker" = no && can_build_shared=no
23258
Reid Spencera773bd52006-08-04 18:18:08 +000023259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23260if test "$GCC" = yes; then
23261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23262fi
23263
23264{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23265echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023266hardcode_action_F77=
23267if test -n "$hardcode_libdir_flag_spec_F77" || \
23268 test -n "$runpath_var_F77" || \
23269 test "X$hardcode_automatic_F77" = "Xyes" ; then
23270
23271 # We can hardcode non-existant directories.
23272 if test "$hardcode_direct_F77" != no &&
23273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23274 # have to relink, otherwise we might link with an installed library
23275 # when we should be linking with a yet-to-be-installed one
23276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23277 test "$hardcode_minus_L_F77" != no; then
23278 # Linking always hardcodes the temporary library directory.
23279 hardcode_action_F77=relink
23280 else
23281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23282 hardcode_action_F77=immediate
23283 fi
23284else
23285 # We cannot hardcode anything, or else we can only hardcode existing
23286 # directories.
23287 hardcode_action_F77=unsupported
23288fi
Reid Spencera773bd52006-08-04 18:18:08 +000023289{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23290echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023291
23292if test "$hardcode_action_F77" = relink; then
23293 # Fast installation is not supported
23294 enable_fast_install=no
23295elif test "$shlibpath_overrides_runpath" = yes ||
23296 test "$enable_shared" = no; then
23297 # Fast installation is not necessary
23298 enable_fast_install=needless
23299fi
23300
John Criswell47fdd832003-07-14 16:52:07 +000023301
23302# The else clause should only fire when bootstrapping the
23303# libtool distribution, otherwise you forgot to ship ltmain.sh
23304# with your package, and you will get complaints that there are
23305# no rules to generate ltmain.sh.
23306if test -f "$ltmain"; then
23307 # See if we are running on zsh, and set the options which allow our commands through
23308 # without removal of \ escapes.
23309 if test -n "${ZSH_VERSION+set}" ; then
23310 setopt NO_GLOB_SUBST
23311 fi
23312 # Now quote all the things that may contain metacharacters while being
23313 # careful not to overquote the AC_SUBSTed values. We take copies of the
23314 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023315 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 +000023316 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23319 deplibs_check_method reload_flag reload_cmds need_locks \
23320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23321 lt_cv_sys_global_symbol_to_c_name_address \
23322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23323 old_postinstall_cmds old_postuninstall_cmds \
23324 compiler_F77 \
23325 CC_F77 \
23326 LD_F77 \
23327 lt_prog_compiler_wl_F77 \
23328 lt_prog_compiler_pic_F77 \
23329 lt_prog_compiler_static_F77 \
23330 lt_prog_compiler_no_builtin_flag_F77 \
23331 export_dynamic_flag_spec_F77 \
23332 thread_safe_flag_spec_F77 \
23333 whole_archive_flag_spec_F77 \
23334 enable_shared_with_static_runtimes_F77 \
23335 old_archive_cmds_F77 \
23336 old_archive_from_new_cmds_F77 \
23337 predep_objects_F77 \
23338 postdep_objects_F77 \
23339 predeps_F77 \
23340 postdeps_F77 \
23341 compiler_lib_search_path_F77 \
23342 archive_cmds_F77 \
23343 archive_expsym_cmds_F77 \
23344 postinstall_cmds_F77 \
23345 postuninstall_cmds_F77 \
23346 old_archive_from_expsyms_cmds_F77 \
23347 allow_undefined_flag_F77 \
23348 no_undefined_flag_F77 \
23349 export_symbols_cmds_F77 \
23350 hardcode_libdir_flag_spec_F77 \
23351 hardcode_libdir_flag_spec_ld_F77 \
23352 hardcode_libdir_separator_F77 \
23353 hardcode_automatic_F77 \
23354 module_cmds_F77 \
23355 module_expsym_cmds_F77 \
23356 lt_cv_prog_compiler_c_o_F77 \
23357 exclude_expsyms_F77 \
23358 include_expsyms_F77; do
23359
23360 case $var in
23361 old_archive_cmds_F77 | \
23362 old_archive_from_new_cmds_F77 | \
23363 archive_cmds_F77 | \
23364 archive_expsym_cmds_F77 | \
23365 module_cmds_F77 | \
23366 module_expsym_cmds_F77 | \
23367 old_archive_from_expsyms_cmds_F77 | \
23368 export_symbols_cmds_F77 | \
23369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23370 postinstall_cmds | postuninstall_cmds | \
23371 old_postinstall_cmds | old_postuninstall_cmds | \
23372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23373 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023374 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 +000023375 ;;
23376 *)
23377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23378 ;;
23379 esac
23380 done
23381
23382 case $lt_echo in
23383 *'\$0 --fallback-echo"')
23384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23385 ;;
23386 esac
23387
23388cfgfile="$ofile"
23389
23390 cat <<__EOF__ >> "$cfgfile"
23391# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23392
23393# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23394
23395# Shell to use when invoking shell scripts.
23396SHELL=$lt_SHELL
23397
23398# Whether or not to build shared libraries.
23399build_libtool_libs=$enable_shared
23400
23401# Whether or not to build static libraries.
23402build_old_libs=$enable_static
23403
23404# Whether or not to add -lc for building shared libraries.
23405build_libtool_need_lc=$archive_cmds_need_lc_F77
23406
23407# Whether or not to disallow shared libs when runtime libs are static
23408allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23409
23410# Whether or not to optimize for fast installation.
23411fast_install=$enable_fast_install
23412
23413# The host system.
23414host_alias=$host_alias
23415host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023416host_os=$host_os
23417
23418# The build system.
23419build_alias=$build_alias
23420build=$build
23421build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023422
23423# An echo program that does not interpret backslashes.
23424echo=$lt_echo
23425
23426# The archiver.
23427AR=$lt_AR
23428AR_FLAGS=$lt_AR_FLAGS
23429
23430# A C compiler.
23431LTCC=$lt_LTCC
23432
Reid Spencera773bd52006-08-04 18:18:08 +000023433# LTCC compiler flags.
23434LTCFLAGS=$lt_LTCFLAGS
23435
John Criswell47fdd832003-07-14 16:52:07 +000023436# A language-specific compiler.
23437CC=$lt_compiler_F77
23438
23439# Is the compiler the GNU C compiler?
23440with_gcc=$GCC_F77
23441
23442# An ERE matcher.
23443EGREP=$lt_EGREP
23444
23445# The linker used to build libraries.
23446LD=$lt_LD_F77
23447
23448# Whether we need hard or soft links.
23449LN_S=$lt_LN_S
23450
23451# A BSD-compatible nm program.
23452NM=$lt_NM
23453
23454# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023455STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023456
23457# Used to examine libraries when file_magic_cmd begins "file"
23458MAGIC_CMD=$MAGIC_CMD
23459
23460# Used on cygwin: DLL creation program.
23461DLLTOOL="$DLLTOOL"
23462
23463# Used on cygwin: object dumper.
23464OBJDUMP="$OBJDUMP"
23465
23466# Used on cygwin: assembler.
23467AS="$AS"
23468
23469# The name of the directory that contains temporary libtool files.
23470objdir=$objdir
23471
23472# How to create reloadable object files.
23473reload_flag=$lt_reload_flag
23474reload_cmds=$lt_reload_cmds
23475
23476# How to pass a linker flag through the compiler.
23477wl=$lt_lt_prog_compiler_wl_F77
23478
23479# Object file suffix (normally "o").
23480objext="$ac_objext"
23481
23482# Old archive suffix (normally "a").
23483libext="$libext"
23484
23485# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023486shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023487
23488# Executable file suffix (normally "").
23489exeext="$exeext"
23490
23491# Additional compiler flags for building library objects.
23492pic_flag=$lt_lt_prog_compiler_pic_F77
23493pic_mode=$pic_mode
23494
23495# What is the maximum length of a command?
23496max_cmd_len=$lt_cv_sys_max_cmd_len
23497
23498# Does compiler simultaneously support -c and -o options?
23499compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23500
Reid Spencera773bd52006-08-04 18:18:08 +000023501# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023502need_locks=$lt_need_locks
23503
23504# Do we need the lib prefix for modules?
23505need_lib_prefix=$need_lib_prefix
23506
23507# Do we need a version for libraries?
23508need_version=$need_version
23509
23510# Whether dlopen is supported.
23511dlopen_support=$enable_dlopen
23512
23513# Whether dlopen of programs is supported.
23514dlopen_self=$enable_dlopen_self
23515
23516# Whether dlopen of statically linked programs is supported.
23517dlopen_self_static=$enable_dlopen_self_static
23518
23519# Compiler flag to prevent dynamic linking.
23520link_static_flag=$lt_lt_prog_compiler_static_F77
23521
23522# Compiler flag to turn off builtin functions.
23523no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23524
23525# Compiler flag to allow reflexive dlopens.
23526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23527
23528# Compiler flag to generate shared objects directly from archives.
23529whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23530
23531# Compiler flag to generate thread-safe objects.
23532thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23533
23534# Library versioning type.
23535version_type=$version_type
23536
23537# Format of library name prefix.
23538libname_spec=$lt_libname_spec
23539
23540# List of archive names. First name is the real one, the rest are links.
23541# The last name is the one that the linker finds with -lNAME.
23542library_names_spec=$lt_library_names_spec
23543
23544# The coded name of the library, if different from the real name.
23545soname_spec=$lt_soname_spec
23546
23547# Commands used to build and install an old-style archive.
23548RANLIB=$lt_RANLIB
23549old_archive_cmds=$lt_old_archive_cmds_F77
23550old_postinstall_cmds=$lt_old_postinstall_cmds
23551old_postuninstall_cmds=$lt_old_postuninstall_cmds
23552
23553# Create an old-style archive from a shared archive.
23554old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23555
23556# Create a temporary old-style archive to link instead of a shared archive.
23557old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23558
23559# Commands used to build and install a shared archive.
23560archive_cmds=$lt_archive_cmds_F77
23561archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23562postinstall_cmds=$lt_postinstall_cmds
23563postuninstall_cmds=$lt_postuninstall_cmds
23564
23565# Commands used to build a loadable module (assumed same as above if empty)
23566module_cmds=$lt_module_cmds_F77
23567module_expsym_cmds=$lt_module_expsym_cmds_F77
23568
23569# Commands to strip libraries.
23570old_striplib=$lt_old_striplib
23571striplib=$lt_striplib
23572
23573# Dependencies to place before the objects being linked to create a
23574# shared library.
23575predep_objects=$lt_predep_objects_F77
23576
23577# Dependencies to place after the objects being linked to create a
23578# shared library.
23579postdep_objects=$lt_postdep_objects_F77
23580
23581# Dependencies to place before the objects being linked to create a
23582# shared library.
23583predeps=$lt_predeps_F77
23584
23585# Dependencies to place after the objects being linked to create a
23586# shared library.
23587postdeps=$lt_postdeps_F77
23588
23589# The library search path used internally by the compiler when linking
23590# a shared library.
23591compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23592
23593# Method to check whether dependent libraries are shared objects.
23594deplibs_check_method=$lt_deplibs_check_method
23595
23596# Command to use when deplibs_check_method == file_magic.
23597file_magic_cmd=$lt_file_magic_cmd
23598
23599# Flag that allows shared libraries with undefined symbols to be built.
23600allow_undefined_flag=$lt_allow_undefined_flag_F77
23601
23602# Flag that forces no undefined symbols.
23603no_undefined_flag=$lt_no_undefined_flag_F77
23604
23605# Commands used to finish a libtool library installation in a directory.
23606finish_cmds=$lt_finish_cmds
23607
23608# Same as above, but a single script fragment to be evaled but not shown.
23609finish_eval=$lt_finish_eval
23610
23611# Take the output of nm and produce a listing of raw symbols and C names.
23612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23613
23614# Transform the output of nm in a proper C declaration
23615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23616
23617# Transform the output of nm in a C name address pair
23618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23619
23620# This is the shared library runtime path variable.
23621runpath_var=$runpath_var
23622
23623# This is the shared library path variable.
23624shlibpath_var=$shlibpath_var
23625
23626# Is shlibpath searched before the hard-coded library search path?
23627shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23628
23629# How to hardcode a shared library path into an executable.
23630hardcode_action=$hardcode_action_F77
23631
23632# Whether we should hardcode library paths into libraries.
23633hardcode_into_libs=$hardcode_into_libs
23634
23635# Flag to hardcode \$libdir into a binary during linking.
23636# This must work even if \$libdir does not exist.
23637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23638
23639# If ld is used when linking, flag to hardcode \$libdir into
23640# a binary during linking. This must work even if \$libdir does
23641# not exist.
23642hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23643
23644# Whether we need a single -rpath flag with a separated argument.
23645hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23646
23647# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23648# resulting binary.
23649hardcode_direct=$hardcode_direct_F77
23650
23651# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23652# resulting binary.
23653hardcode_minus_L=$hardcode_minus_L_F77
23654
23655# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23656# the resulting binary.
23657hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23658
23659# Set to yes if building a shared library automatically hardcodes DIR into the library
23660# and all subsequent libraries and executables linked against it.
23661hardcode_automatic=$hardcode_automatic_F77
23662
23663# Variables whose values should be saved in libtool wrapper scripts and
23664# restored at relink time.
23665variables_saved_for_relink="$variables_saved_for_relink"
23666
23667# Whether libtool must link a program against all its dependency libraries.
23668link_all_deplibs=$link_all_deplibs_F77
23669
23670# Compile-time system search path for libraries
23671sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23672
23673# Run-time system search path for libraries
23674sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23675
23676# Fix the shell variable \$srcfile for the compiler.
23677fix_srcfile_path="$fix_srcfile_path_F77"
23678
23679# Set to yes if exported symbols are required.
23680always_export_symbols=$always_export_symbols_F77
23681
23682# The commands to list exported symbols.
23683export_symbols_cmds=$lt_export_symbols_cmds_F77
23684
23685# The commands to extract the exported symbol list from a shared archive.
23686extract_expsyms_cmds=$lt_extract_expsyms_cmds
23687
23688# Symbols that should not be listed in the preloaded symbols.
23689exclude_expsyms=$lt_exclude_expsyms_F77
23690
23691# Symbols that must always be exported.
23692include_expsyms=$lt_include_expsyms_F77
23693
23694# ### END LIBTOOL TAG CONFIG: $tagname
23695
23696__EOF__
23697
23698
23699else
23700 # If there is no Makefile yet, we rely on a make rule to execute
23701 # `config.status --recheck' to rerun these tests and create the
23702 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23704 if test -f "$ltmain_in"; then
23705 test -f Makefile && make "$ltmain"
23706 fi
John Criswell47fdd832003-07-14 16:52:07 +000023707fi
23708
23709
23710ac_ext=c
23711ac_cpp='$CPP $CPPFLAGS'
23712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23714ac_compiler_gnu=$ac_cv_c_compiler_gnu
23715
23716CC="$lt_save_CC"
23717
23718 else
23719 tagname=""
23720 fi
23721 ;;
23722
23723 GCJ)
23724 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023725 ac_ext=c
23726ac_cpp='$CPP $CPPFLAGS'
23727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23729ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023730
23731
23732# Source file extension for Java test sources.
23733ac_ext=java
23734
23735# Object file extension for compiled Java test sources.
23736objext=o
23737objext_GCJ=$objext
23738
23739# Code to be used in simple compile tests
23740lt_simple_compile_test_code="class foo {}\n"
23741
23742# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023743lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023744
23745# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23746
23747# If no C compiler was specified, use CC.
23748LTCC=${LTCC-"$CC"}
23749
Reid Spencera773bd52006-08-04 18:18:08 +000023750# If no C compiler flags were specified, use CFLAGS.
23751LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23752
John Criswell47fdd832003-07-14 16:52:07 +000023753# Allow CC to be a program name with arguments.
23754compiler=$CC
23755
23756
Reid Spencera773bd52006-08-04 18:18:08 +000023757# save warnings/boilerplate of simple test code
23758ac_outfile=conftest.$ac_objext
23759printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23760eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23761_lt_compiler_boilerplate=`cat conftest.err`
23762$rm conftest*
23763
23764ac_outfile=conftest.$ac_objext
23765printf "$lt_simple_link_test_code" >conftest.$ac_ext
23766eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23767_lt_linker_boilerplate=`cat conftest.err`
23768$rm conftest*
23769
23770
John Criswell47fdd832003-07-14 16:52:07 +000023771# Allow CC to be a program name with arguments.
23772lt_save_CC="$CC"
23773CC=${GCJ-"gcj"}
23774compiler=$CC
23775compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023776for cc_temp in $compiler""; do
23777 case $cc_temp in
23778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23780 \-*) ;;
23781 *) break;;
23782 esac
23783done
23784cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23785
John Criswell47fdd832003-07-14 16:52:07 +000023786
23787# GCJ did not exist at the time GCC didn't implicitly link libc in.
23788archive_cmds_need_lc_GCJ=no
23789
Reid Spencera773bd52006-08-04 18:18:08 +000023790old_archive_cmds_GCJ=$old_archive_cmds
23791
John Criswell47fdd832003-07-14 16:52:07 +000023792
23793lt_prog_compiler_no_builtin_flag_GCJ=
23794
23795if test "$GCC" = yes; then
23796 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23797
Reid Spencer2706f8c2004-09-19 23:53:36 +000023798
Reid Spencera773bd52006-08-04 18:18:08 +000023799{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23800echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023801if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23803else
23804 lt_cv_prog_compiler_rtti_exceptions=no
23805 ac_outfile=conftest.$ac_objext
23806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23807 lt_compiler_flag="-fno-rtti -fno-exceptions"
23808 # Insert the option either (1) after the last *FLAGS variable, or
23809 # (2) before a word containing "conftest.", or (3) at the end.
23810 # Note that $ac_compile itself does not contain backslashes and begins
23811 # with a dollar sign (not a hyphen), so the echo should work correctly.
23812 # The option is referenced via a variable to avoid confusing sed.
23813 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23816 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000023817 (eval echo "\"\$as_me:23817: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023818 (eval "$lt_compile" 2>conftest.err)
23819 ac_status=$?
23820 cat conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000023821 echo "$as_me:23821: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023822 if (exit $ac_status) && test -s "$ac_outfile"; then
23823 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023824 # So say no if there are warnings other than the usual output.
23825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023828 lt_cv_prog_compiler_rtti_exceptions=yes
23829 fi
23830 fi
23831 $rm conftest*
23832
23833fi
Reid Spencera773bd52006-08-04 18:18:08 +000023834{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23835echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023836
23837if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23838 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23839else
23840 :
23841fi
23842
23843fi
23844
23845lt_prog_compiler_wl_GCJ=
23846lt_prog_compiler_pic_GCJ=
23847lt_prog_compiler_static_GCJ=
23848
Reid Spencera773bd52006-08-04 18:18:08 +000023849{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23850echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023851
23852 if test "$GCC" = yes; then
23853 lt_prog_compiler_wl_GCJ='-Wl,'
23854 lt_prog_compiler_static_GCJ='-static'
23855
23856 case $host_os in
23857 aix*)
23858 # All AIX code is PIC.
23859 if test "$host_cpu" = ia64; then
23860 # AIX 5 now supports IA64 processor
23861 lt_prog_compiler_static_GCJ='-Bstatic'
23862 fi
23863 ;;
23864
23865 amigaos*)
23866 # FIXME: we need at least 68020 code to build shared libraries, but
23867 # adding the `-m68020' flag to GCC prevents building anything better,
23868 # like `-m68040'.
23869 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23870 ;;
23871
23872 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23873 # PIC is the default for these OSes.
23874 ;;
23875
23876 mingw* | pw32* | os2*)
23877 # This hack is so that the source file can tell whether it is being
23878 # built for inclusion in a dll (and should export symbols for example).
23879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23880 ;;
23881
23882 darwin* | rhapsody*)
23883 # PIC is the default on this platform
23884 # Common symbols not allowed in MH_DYLIB files
23885 lt_prog_compiler_pic_GCJ='-fno-common'
23886 ;;
23887
Reid Spencera773bd52006-08-04 18:18:08 +000023888 interix3*)
23889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23890 # Instead, we relocate shared libraries at runtime.
23891 ;;
23892
John Criswell47fdd832003-07-14 16:52:07 +000023893 msdosdjgpp*)
23894 # Just because we use GCC doesn't mean we suddenly get shared libraries
23895 # on systems that don't support them.
23896 lt_prog_compiler_can_build_shared_GCJ=no
23897 enable_shared=no
23898 ;;
23899
23900 sysv4*MP*)
23901 if test -d /usr/nec; then
23902 lt_prog_compiler_pic_GCJ=-Kconform_pic
23903 fi
23904 ;;
23905
23906 hpux*)
23907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23908 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023909 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023910 hppa*64*|ia64*)
23911 # +Z the default
23912 ;;
23913 *)
23914 lt_prog_compiler_pic_GCJ='-fPIC'
23915 ;;
23916 esac
23917 ;;
23918
23919 *)
23920 lt_prog_compiler_pic_GCJ='-fPIC'
23921 ;;
23922 esac
23923 else
23924 # PORTME Check for flag to pass linker flags through the system compiler.
23925 case $host_os in
23926 aix*)
23927 lt_prog_compiler_wl_GCJ='-Wl,'
23928 if test "$host_cpu" = ia64; then
23929 # AIX 5 now supports IA64 processor
23930 lt_prog_compiler_static_GCJ='-Bstatic'
23931 else
23932 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23933 fi
23934 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023935 darwin*)
23936 # PIC is the default on this platform
23937 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023938 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023939 xlc*)
23940 lt_prog_compiler_pic_GCJ='-qnocommon'
23941 lt_prog_compiler_wl_GCJ='-Wl,'
23942 ;;
23943 esac
23944 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023945
23946 mingw* | pw32* | os2*)
23947 # This hack is so that the source file can tell whether it is being
23948 # built for inclusion in a dll (and should export symbols for example).
23949 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23950 ;;
23951
23952 hpux9* | hpux10* | hpux11*)
23953 lt_prog_compiler_wl_GCJ='-Wl,'
23954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23955 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023956 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023957 hppa*64*|ia64*)
23958 # +Z the default
23959 ;;
23960 *)
23961 lt_prog_compiler_pic_GCJ='+Z'
23962 ;;
23963 esac
23964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23965 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23966 ;;
23967
23968 irix5* | irix6* | nonstopux*)
23969 lt_prog_compiler_wl_GCJ='-Wl,'
23970 # PIC (with -KPIC) is the default.
23971 lt_prog_compiler_static_GCJ='-non_shared'
23972 ;;
23973
23974 newsos6)
23975 lt_prog_compiler_pic_GCJ='-KPIC'
23976 lt_prog_compiler_static_GCJ='-Bstatic'
23977 ;;
23978
23979 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023980 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023981 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023982 lt_prog_compiler_wl_GCJ='-Wl,'
23983 lt_prog_compiler_pic_GCJ='-KPIC'
23984 lt_prog_compiler_static_GCJ='-static'
23985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023986 pgcc* | pgf77* | pgf90* | pgf95*)
23987 # Portland Group compilers (*not* the Pentium gcc compiler,
23988 # which looks to be a dead project)
23989 lt_prog_compiler_wl_GCJ='-Wl,'
23990 lt_prog_compiler_pic_GCJ='-fpic'
23991 lt_prog_compiler_static_GCJ='-Bstatic'
23992 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023993 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023994 lt_prog_compiler_wl_GCJ='-Wl,'
23995 # All Alpha code is PIC.
23996 lt_prog_compiler_static_GCJ='-non_shared'
23997 ;;
23998 esac
23999 ;;
24000
24001 osf3* | osf4* | osf5*)
24002 lt_prog_compiler_wl_GCJ='-Wl,'
24003 # All OSF/1 code is PIC.
24004 lt_prog_compiler_static_GCJ='-non_shared'
24005 ;;
24006
John Criswell47fdd832003-07-14 16:52:07 +000024007 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024008 lt_prog_compiler_pic_GCJ='-KPIC'
24009 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024010 case $cc_basename in
24011 f77* | f90* | f95*)
24012 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24013 *)
24014 lt_prog_compiler_wl_GCJ='-Wl,';;
24015 esac
John Criswell47fdd832003-07-14 16:52:07 +000024016 ;;
24017
24018 sunos4*)
24019 lt_prog_compiler_wl_GCJ='-Qoption ld '
24020 lt_prog_compiler_pic_GCJ='-PIC'
24021 lt_prog_compiler_static_GCJ='-Bstatic'
24022 ;;
24023
Reid Spencera773bd52006-08-04 18:18:08 +000024024 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024025 lt_prog_compiler_wl_GCJ='-Wl,'
24026 lt_prog_compiler_pic_GCJ='-KPIC'
24027 lt_prog_compiler_static_GCJ='-Bstatic'
24028 ;;
24029
24030 sysv4*MP*)
24031 if test -d /usr/nec ;then
24032 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24033 lt_prog_compiler_static_GCJ='-Bstatic'
24034 fi
24035 ;;
24036
Reid Spencera773bd52006-08-04 18:18:08 +000024037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24038 lt_prog_compiler_wl_GCJ='-Wl,'
24039 lt_prog_compiler_pic_GCJ='-KPIC'
24040 lt_prog_compiler_static_GCJ='-Bstatic'
24041 ;;
24042
24043 unicos*)
24044 lt_prog_compiler_wl_GCJ='-Wl,'
24045 lt_prog_compiler_can_build_shared_GCJ=no
24046 ;;
24047
John Criswell47fdd832003-07-14 16:52:07 +000024048 uts4*)
24049 lt_prog_compiler_pic_GCJ='-pic'
24050 lt_prog_compiler_static_GCJ='-Bstatic'
24051 ;;
24052
24053 *)
24054 lt_prog_compiler_can_build_shared_GCJ=no
24055 ;;
24056 esac
24057 fi
24058
Reid Spencera773bd52006-08-04 18:18:08 +000024059{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24060echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024061
24062#
24063# Check to make sure the PIC flag actually works.
24064#
24065if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024066
Reid Spencera773bd52006-08-04 18:18:08 +000024067{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24068echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024069if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071else
24072 lt_prog_compiler_pic_works_GCJ=no
24073 ac_outfile=conftest.$ac_objext
24074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24075 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24076 # Insert the option either (1) after the last *FLAGS variable, or
24077 # (2) before a word containing "conftest.", or (3) at the end.
24078 # Note that $ac_compile itself does not contain backslashes and begins
24079 # with a dollar sign (not a hyphen), so the echo should work correctly.
24080 # The option is referenced via a variable to avoid confusing sed.
24081 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24084 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000024085 (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024086 (eval "$lt_compile" 2>conftest.err)
24087 ac_status=$?
24088 cat conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000024089 echo "$as_me:24089: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024090 if (exit $ac_status) && test -s "$ac_outfile"; then
24091 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024092 # So say no if there are warnings other than the usual output.
24093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024096 lt_prog_compiler_pic_works_GCJ=yes
24097 fi
24098 fi
24099 $rm conftest*
24100
24101fi
Reid Spencera773bd52006-08-04 18:18:08 +000024102{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24103echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024104
24105if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24106 case $lt_prog_compiler_pic_GCJ in
24107 "" | " "*) ;;
24108 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24109 esac
24110else
24111 lt_prog_compiler_pic_GCJ=
24112 lt_prog_compiler_can_build_shared_GCJ=no
24113fi
24114
24115fi
Reid Spencera773bd52006-08-04 18:18:08 +000024116case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024117 # For platforms which do not support PIC, -DPIC is meaningless:
24118 *djgpp*)
24119 lt_prog_compiler_pic_GCJ=
24120 ;;
24121 *)
24122 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24123 ;;
24124esac
24125
Reid Spencera773bd52006-08-04 18:18:08 +000024126#
24127# Check to make sure the static flag actually works.
24128#
24129wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24130{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24131echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24132if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134else
24135 lt_prog_compiler_static_works_GCJ=no
24136 save_LDFLAGS="$LDFLAGS"
24137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24138 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24140 # The linker can only warn and ignore the option if not recognized
24141 # So say no if there are warnings
24142 if test -s conftest.err; then
24143 # Append any errors to the config.log.
24144 cat conftest.err 1>&5
24145 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24147 if diff conftest.exp conftest.er2 >/dev/null; then
24148 lt_prog_compiler_static_works_GCJ=yes
24149 fi
24150 else
24151 lt_prog_compiler_static_works_GCJ=yes
24152 fi
24153 fi
24154 $rm conftest*
24155 LDFLAGS="$save_LDFLAGS"
24156
24157fi
24158{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24159echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24160
24161if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24162 :
24163else
24164 lt_prog_compiler_static_GCJ=
24165fi
24166
24167
24168{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24169echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024170if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24172else
24173 lt_cv_prog_compiler_c_o_GCJ=no
24174 $rm -r conftest 2>/dev/null
24175 mkdir conftest
24176 cd conftest
24177 mkdir out
24178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24179
John Criswell47fdd832003-07-14 16:52:07 +000024180 lt_compiler_flag="-o out/conftest2.$ac_objext"
24181 # Insert the option either (1) after the last *FLAGS variable, or
24182 # (2) before a word containing "conftest.", or (3) at the end.
24183 # Note that $ac_compile itself does not contain backslashes and begins
24184 # with a dollar sign (not a hyphen), so the echo should work correctly.
24185 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24188 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbardcf114e2008-08-30 01:16:19 +000024189 (eval echo "\"\$as_me:24189: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024190 (eval "$lt_compile" 2>out/conftest.err)
24191 ac_status=$?
24192 cat out/conftest.err >&5
Daniel Dunbardcf114e2008-08-30 01:16:19 +000024193 echo "$as_me:24193: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24195 then
24196 # The compiler can only warn and ignore the option if not recognized
24197 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024198 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024201 lt_cv_prog_compiler_c_o_GCJ=yes
24202 fi
24203 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024204 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024205 $rm conftest*
24206 # SGI C++ compiler will create directory out/ii_files/ for
24207 # template instantiation
24208 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24209 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024210 cd ..
24211 rmdir conftest
24212 $rm conftest*
24213
24214fi
Reid Spencera773bd52006-08-04 18:18:08 +000024215{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24216echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024217
24218
24219hard_links="nottested"
24220if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24221 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024222 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24223echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024224 hard_links=yes
24225 $rm conftest*
24226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24227 touch conftest.a
24228 ln conftest.a conftest.b 2>&5 || hard_links=no
24229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024230 { echo "$as_me:$LINENO: result: $hard_links" >&5
24231echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024232 if test "$hard_links" = no; then
24233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24234echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24235 need_locks=warn
24236 fi
24237else
24238 need_locks=no
24239fi
24240
Reid Spencera773bd52006-08-04 18:18:08 +000024241{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24242echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024243
24244 runpath_var=
24245 allow_undefined_flag_GCJ=
24246 enable_shared_with_static_runtimes_GCJ=no
24247 archive_cmds_GCJ=
24248 archive_expsym_cmds_GCJ=
24249 old_archive_From_new_cmds_GCJ=
24250 old_archive_from_expsyms_cmds_GCJ=
24251 export_dynamic_flag_spec_GCJ=
24252 whole_archive_flag_spec_GCJ=
24253 thread_safe_flag_spec_GCJ=
24254 hardcode_libdir_flag_spec_GCJ=
24255 hardcode_libdir_flag_spec_ld_GCJ=
24256 hardcode_libdir_separator_GCJ=
24257 hardcode_direct_GCJ=no
24258 hardcode_minus_L_GCJ=no
24259 hardcode_shlibpath_var_GCJ=unsupported
24260 link_all_deplibs_GCJ=unknown
24261 hardcode_automatic_GCJ=no
24262 module_cmds_GCJ=
24263 module_expsym_cmds_GCJ=
24264 always_export_symbols_GCJ=no
24265 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24266 # include_expsyms should be a list of space-separated symbols to be *always*
24267 # included in the symbol list
24268 include_expsyms_GCJ=
24269 # exclude_expsyms can be an extended regexp of symbols to exclude
24270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24272 # as well as any symbol that contains `d'.
24273 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24275 # platforms (ab)use it in PIC code, but their linkers get confused if
24276 # the symbol is explicitly referenced. Since portable code cannot
24277 # rely on this symbol name, it's probably fine to never include it in
24278 # preloaded symbol tables.
24279 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024280 # Just being paranoid about ensuring that cc_basename is set.
24281 for cc_temp in $compiler""; do
24282 case $cc_temp in
24283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24285 \-*) ;;
24286 *) break;;
24287 esac
24288done
24289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024290
24291 case $host_os in
24292 cygwin* | mingw* | pw32*)
24293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24294 # When not using gcc, we currently assume that we are using
24295 # Microsoft Visual C++.
24296 if test "$GCC" != yes; then
24297 with_gnu_ld=no
24298 fi
24299 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024300 interix*)
24301 # we just hope/assume this is gcc and not c89 (= MSVC++)
24302 with_gnu_ld=yes
24303 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024304 openbsd*)
24305 with_gnu_ld=no
24306 ;;
24307 esac
24308
24309 ld_shlibs_GCJ=yes
24310 if test "$with_gnu_ld" = yes; then
24311 # If archive_cmds runs LD, not CC, wlarc should be empty
24312 wlarc='${wl}'
24313
Reid Spencera773bd52006-08-04 18:18:08 +000024314 # Set some defaults for GNU ld with shared library support. These
24315 # are reset later if shared libraries are not supported. Putting them
24316 # here allows them to be overridden if necessary.
24317 runpath_var=LD_RUN_PATH
24318 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24319 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24320 # ancient GNU ld didn't support --whole-archive et. al.
24321 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24322 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24323 else
24324 whole_archive_flag_spec_GCJ=
24325 fi
24326 supports_anon_versioning=no
24327 case `$LD -v 2>/dev/null` in
24328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24331 *\ 2.11.*) ;; # other 2.11 versions
24332 *) supports_anon_versioning=yes ;;
24333 esac
24334
John Criswell47fdd832003-07-14 16:52:07 +000024335 # See if GNU ld supports shared libraries.
24336 case $host_os in
24337 aix3* | aix4* | aix5*)
24338 # On AIX/PPC, the GNU linker is very broken
24339 if test "$host_cpu" != ia64; then
24340 ld_shlibs_GCJ=no
24341 cat <<EOF 1>&2
24342
24343*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24344*** to be unable to reliably create shared libraries on AIX.
24345*** Therefore, libtool is disabling shared libraries support. If you
24346*** really care for shared libraries, you may want to modify your PATH
24347*** so that a non-GNU linker is found, and then restart.
24348
24349EOF
24350 fi
24351 ;;
24352
24353 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024354 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 +000024355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24356 hardcode_minus_L_GCJ=yes
24357
24358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24359 # that the semantics of dynamic libraries on AmigaOS, at least up
24360 # to version 4, is to share data among multiple programs linked
24361 # with the same dynamic library. Since this doesn't match the
24362 # behavior of shared libraries on other platforms, we can't use
24363 # them.
24364 ld_shlibs_GCJ=no
24365 ;;
24366
24367 beos*)
24368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369 allow_undefined_flag_GCJ=unsupported
24370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24371 # support --undefined. This deserves some investigation. FIXME
24372 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24373 else
24374 ld_shlibs_GCJ=no
24375 fi
24376 ;;
24377
24378 cygwin* | mingw* | pw32*)
24379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24380 # as there is no search path for DLLs.
24381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24382 allow_undefined_flag_GCJ=unsupported
24383 always_export_symbols_GCJ=no
24384 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024385 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 +000024386
24387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024388 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 +000024389 # If the export-symbols file already is a .def file (1st line
24390 # is EXPORTS), use it as is; otherwise, prepend...
24391 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24392 cp $export_symbols $output_objdir/$soname.def;
24393 else
24394 echo EXPORTS > $output_objdir/$soname.def;
24395 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024396 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024397 $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 +000024398 else
Reid Spencera773bd52006-08-04 18:18:08 +000024399 ld_shlibs_GCJ=no
24400 fi
24401 ;;
24402
24403 interix3*)
24404 hardcode_direct_GCJ=no
24405 hardcode_shlibpath_var_GCJ=no
24406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24407 export_dynamic_flag_spec_GCJ='${wl}-E'
24408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24409 # Instead, shared libraries are loaded at an image base (0x10000000 by
24410 # default) and relocated if they conflict, which is a slow very memory
24411 # consuming and fragmenting process. To avoid this, we pick a random,
24412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24414 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'
24415 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'
24416 ;;
24417
24418 linux*)
24419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 tmp_addflag=
24421 case $cc_basename,$host_cpu in
24422 pgcc*) # Portland Group C compiler
24423 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'
24424 tmp_addflag=' $pic_flag'
24425 ;;
24426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24427 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'
24428 tmp_addflag=' $pic_flag -Mnomain' ;;
24429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24430 tmp_addflag=' -i_dynamic' ;;
24431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24432 tmp_addflag=' -i_dynamic -nofor_main' ;;
24433 ifc* | ifort*) # Intel Fortran compiler
24434 tmp_addflag=' -nofor_main' ;;
24435 esac
24436 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24437
24438 if test $supports_anon_versioning = yes; then
24439 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24441 $echo "local: *; };" >> $output_objdir/$libname.ver~
24442 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24443 fi
24444 else
24445 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024446 fi
24447 ;;
24448
24449 netbsd*)
24450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24451 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24452 wlarc=
24453 else
24454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24456 fi
24457 ;;
24458
Reid Spencera773bd52006-08-04 18:18:08 +000024459 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024460 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24461 ld_shlibs_GCJ=no
24462 cat <<EOF 1>&2
24463
24464*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24465*** create shared libraries on Solaris systems. Therefore, libtool
24466*** is disabling shared libraries support. We urge you to upgrade GNU
24467*** binutils to release 2.9.1 or newer. Another option is to modify
24468*** your PATH or compiler configuration so that the native linker is
24469*** used, and then restart.
24470
24471EOF
24472 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24474 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24475 else
24476 ld_shlibs_GCJ=no
24477 fi
24478 ;;
24479
Reid Spencera773bd52006-08-04 18:18:08 +000024480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24481 case `$LD -v 2>&1` in
24482 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24483 ld_shlibs_GCJ=no
24484 cat <<_LT_EOF 1>&2
24485
24486*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24487*** reliably create shared libraries on SCO systems. Therefore, libtool
24488*** is disabling shared libraries support. We urge you to upgrade GNU
24489*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24490*** your PATH or compiler configuration so that the native linker is
24491*** used, and then restart.
24492
24493_LT_EOF
24494 ;;
24495 *)
24496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24500 else
24501 ld_shlibs_GCJ=no
24502 fi
24503 ;;
24504 esac
24505 ;;
24506
John Criswell47fdd832003-07-14 16:52:07 +000024507 sunos4*)
24508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24509 wlarc=
24510 hardcode_direct_GCJ=yes
24511 hardcode_shlibpath_var_GCJ=no
24512 ;;
24513
24514 *)
24515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24518 else
24519 ld_shlibs_GCJ=no
24520 fi
24521 ;;
24522 esac
24523
Reid Spencera773bd52006-08-04 18:18:08 +000024524 if test "$ld_shlibs_GCJ" = no; then
24525 runpath_var=
24526 hardcode_libdir_flag_spec_GCJ=
24527 export_dynamic_flag_spec_GCJ=
24528 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024529 fi
24530 else
24531 # PORTME fill in a description of your system's linker (not GNU ld)
24532 case $host_os in
24533 aix3*)
24534 allow_undefined_flag_GCJ=unsupported
24535 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024536 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 +000024537 # Note: this linker hardcodes the directories in LIBPATH if there
24538 # are no directories specified by -L.
24539 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024540 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024541 # Neither direct hardcoding nor static linking is supported with a
24542 # broken collect2.
24543 hardcode_direct_GCJ=unsupported
24544 fi
24545 ;;
24546
24547 aix4* | aix5*)
24548 if test "$host_cpu" = ia64; then
24549 # On IA64, the linker does run time linking by default, so we don't
24550 # have to do anything special.
24551 aix_use_runtimelinking=no
24552 exp_sym_flag='-Bexport'
24553 no_entry_flag=""
24554 else
24555 # If we're using GNU nm, then we don't want the "-C" option.
24556 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24557 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24558 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'
24559 else
24560 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'
24561 fi
24562 aix_use_runtimelinking=no
24563
24564 # Test if we are trying to use run time linking or normal
24565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24566 # need to do runtime linking.
24567 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24568 for ld_flag in $LDFLAGS; do
24569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24570 aix_use_runtimelinking=yes
24571 break
24572 fi
24573 done
Reid Spencera773bd52006-08-04 18:18:08 +000024574 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024575 esac
24576
24577 exp_sym_flag='-bexport'
24578 no_entry_flag='-bnoentry'
24579 fi
24580
24581 # When large executables or shared objects are built, AIX ld can
24582 # have problems creating the table of contents. If linking a library
24583 # or program results in "error TOC overflow" add -mminimal-toc to
24584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24586
24587 archive_cmds_GCJ=''
24588 hardcode_direct_GCJ=yes
24589 hardcode_libdir_separator_GCJ=':'
24590 link_all_deplibs_GCJ=yes
24591
24592 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024593 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024594 # We only want to do this on AIX 4.2 and lower, the check
24595 # below for broken collect2 doesn't work under 4.3+
24596 collect2name=`${CC} -print-prog-name=collect2`
24597 if test -f "$collect2name" && \
24598 strings "$collect2name" | grep resolve_lib_name >/dev/null
24599 then
24600 # We have reworked collect2
24601 hardcode_direct_GCJ=yes
24602 else
24603 # We have old collect2
24604 hardcode_direct_GCJ=unsupported
24605 # It fails to find uninstalled libraries when the uninstalled
24606 # path is not listed in the libpath. Setting hardcode_minus_L
24607 # to unsupported forces relinking
24608 hardcode_minus_L_GCJ=yes
24609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24610 hardcode_libdir_separator_GCJ=
24611 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024612 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024613 esac
24614 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024615 if test "$aix_use_runtimelinking" = yes; then
24616 shared_flag="$shared_flag "'${wl}-G'
24617 fi
John Criswell47fdd832003-07-14 16:52:07 +000024618 else
24619 # not using gcc
24620 if test "$host_cpu" = ia64; then
24621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24622 # chokes on -Wl,-G. The following line is correct:
24623 shared_flag='-G'
24624 else
Reid Spencera773bd52006-08-04 18:18:08 +000024625 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024626 shared_flag='${wl}-G'
24627 else
24628 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024629 fi
John Criswell47fdd832003-07-14 16:52:07 +000024630 fi
24631 fi
24632
24633 # It seems that -bexpall does not export symbols beginning with
24634 # underscore (_), so it is better to generate a list of symbols to export.
24635 always_export_symbols_GCJ=yes
24636 if test "$aix_use_runtimelinking" = yes; then
24637 # Warning - without using the other runtime loading flags (-brtl),
24638 # -berok will link without error, but may produce a broken library.
24639 allow_undefined_flag_GCJ='-berok'
24640 # Determine the default libpath from the value encoded in an empty executable.
24641 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024642/* confdefs.h. */
24643_ACEOF
24644cat confdefs.h >>conftest.$ac_ext
24645cat >>conftest.$ac_ext <<_ACEOF
24646/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024647
John Criswell47fdd832003-07-14 16:52:07 +000024648int
24649main ()
24650{
24651
24652 ;
24653 return 0;
24654}
24655_ACEOF
24656rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024657if { (ac_try="$ac_link"
24658case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24661esac
24662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024669 (exit $ac_status); } &&
24670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24671 { (case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24674esac
24675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_try") 2>&5
24677 ac_status=$?
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; } &&
24680 { ac_try='test -s conftest$ac_exeext'
24681 { (case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24684esac
24685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_try") 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024690
24691aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24692}'`
24693# Check for a 64-bit object if we didn't find anything.
24694if 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; }
24695}'`; fi
24696else
24697 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024698sed 's/^/| /' conftest.$ac_ext >&5
24699
Reid Spencera773bd52006-08-04 18:18:08 +000024700
John Criswell47fdd832003-07-14 16:52:07 +000024701fi
Reid Spencera773bd52006-08-04 18:18:08 +000024702
Tanya Lattnercf067672008-01-17 05:57:22 +000024703rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024704 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24706
24707 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024708 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 +000024709 else
24710 if test "$host_cpu" = ia64; then
24711 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24712 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024713 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 +000024714 else
24715 # Determine the default libpath from the value encoded in an empty executable.
24716 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024717/* confdefs.h. */
24718_ACEOF
24719cat confdefs.h >>conftest.$ac_ext
24720cat >>conftest.$ac_ext <<_ACEOF
24721/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024722
John Criswell47fdd832003-07-14 16:52:07 +000024723int
24724main ()
24725{
24726
24727 ;
24728 return 0;
24729}
24730_ACEOF
24731rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024732if { (ac_try="$ac_link"
24733case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24736esac
24737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024744 (exit $ac_status); } &&
24745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24746 { (case "(($ac_try" in
24747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24749esac
24750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_try") 2>&5
24752 ac_status=$?
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; } &&
24755 { ac_try='test -s conftest$ac_exeext'
24756 { (case "(($ac_try" in
24757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758 *) ac_try_echo=$ac_try;;
24759esac
24760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_try") 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024765
24766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24767}'`
24768# Check for a 64-bit object if we didn't find anything.
24769if 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; }
24770}'`; fi
24771else
24772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024773sed 's/^/| /' conftest.$ac_ext >&5
24774
Reid Spencera773bd52006-08-04 18:18:08 +000024775
John Criswell47fdd832003-07-14 16:52:07 +000024776fi
Reid Spencera773bd52006-08-04 18:18:08 +000024777
Tanya Lattnercf067672008-01-17 05:57:22 +000024778rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024779 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24781
24782 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24783 # Warning - without using the other run time loading flags,
24784 # -berok will link without error, but may produce a broken library.
24785 no_undefined_flag_GCJ=' ${wl}-bernotok'
24786 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024787 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024788 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024789 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024790 # This is similar to how AIX traditionally builds its shared libraries.
24791 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 +000024792 fi
24793 fi
24794 ;;
24795
24796 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024797 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 +000024798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24799 hardcode_minus_L_GCJ=yes
24800 # see comment about different semantics on the GNU ld section
24801 ld_shlibs_GCJ=no
24802 ;;
24803
Reid Spencer2706f8c2004-09-19 23:53:36 +000024804 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024805 export_dynamic_flag_spec_GCJ=-rdynamic
24806 ;;
24807
24808 cygwin* | mingw* | pw32*)
24809 # When not using gcc, we currently assume that we are using
24810 # Microsoft Visual C++.
24811 # hardcode_libdir_flag_spec is actually meaningless, as there is
24812 # no search path for DLLs.
24813 hardcode_libdir_flag_spec_GCJ=' '
24814 allow_undefined_flag_GCJ=unsupported
24815 # Tell ltmain to make .lib files, not .a files.
24816 libext=lib
24817 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024818 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024819 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024820 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 +000024821 # The linker will automatically build a .lib file if we build a DLL.
24822 old_archive_From_new_cmds_GCJ='true'
24823 # FIXME: Should let the user specify the lib program.
24824 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024825 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024826 enable_shared_with_static_runtimes_GCJ=yes
24827 ;;
24828
24829 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024830 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024831 rhapsody* | darwin1.[012])
24832 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24833 ;;
24834 *) # Darwin 1.3 on
24835 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24836 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24837 else
24838 case ${MACOSX_DEPLOYMENT_TARGET} in
24839 10.[012])
24840 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24841 ;;
24842 10.*)
24843 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24844 ;;
24845 esac
24846 fi
24847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024848 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024849 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024850 hardcode_direct_GCJ=no
24851 hardcode_automatic_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024853 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024854 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024855 if test "$GCC" = yes ; then
24856 output_verbose_link_cmd='echo'
24857 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24858 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024859 # 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 +000024860 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}'
24861 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 +000024862 else
Reid Spencera773bd52006-08-04 18:18:08 +000024863 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024864 xlc*)
24865 output_verbose_link_cmd='echo'
24866 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24867 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024868 # 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 +000024869 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}'
24870 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 +000024871 ;;
24872 *)
24873 ld_shlibs_GCJ=no
24874 ;;
24875 esac
John Criswell47fdd832003-07-14 16:52:07 +000024876 fi
24877 ;;
24878
24879 dgux*)
24880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24882 hardcode_shlibpath_var_GCJ=no
24883 ;;
24884
24885 freebsd1*)
24886 ld_shlibs_GCJ=no
24887 ;;
24888
24889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24890 # support. Future versions do this automatically, but an explicit c++rt0.o
24891 # does not break anything, and helps significantly (at the cost of a little
24892 # extra space).
24893 freebsd2.2*)
24894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896 hardcode_direct_GCJ=yes
24897 hardcode_shlibpath_var_GCJ=no
24898 ;;
24899
24900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24901 freebsd2*)
24902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24903 hardcode_direct_GCJ=yes
24904 hardcode_minus_L_GCJ=yes
24905 hardcode_shlibpath_var_GCJ=no
24906 ;;
24907
24908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024909 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024910 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24912 hardcode_direct_GCJ=yes
24913 hardcode_shlibpath_var_GCJ=no
24914 ;;
24915
24916 hpux9*)
24917 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024918 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 +000024919 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024920 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 +000024921 fi
24922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ=:
24924 hardcode_direct_GCJ=yes
24925
24926 # hardcode_minus_L: Not really in the search PATH,
24927 # but as the default location of the library.
24928 hardcode_minus_L_GCJ=yes
24929 export_dynamic_flag_spec_GCJ='${wl}-E'
24930 ;;
24931
Reid Spencera773bd52006-08-04 18:18:08 +000024932 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24935 else
24936 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24937 fi
24938 if test "$with_gnu_ld" = no; then
24939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24940 hardcode_libdir_separator_GCJ=:
24941
24942 hardcode_direct_GCJ=yes
24943 export_dynamic_flag_spec_GCJ='${wl}-E'
24944
24945 # hardcode_minus_L: Not really in the search PATH,
24946 # but as the default location of the library.
24947 hardcode_minus_L_GCJ=yes
24948 fi
24949 ;;
24950
24951 hpux11*)
24952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24953 case $host_cpu in
24954 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024955 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024957 ia64*)
24958 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024960 *)
24961 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24962 ;;
24963 esac
24964 else
Reid Spencera773bd52006-08-04 18:18:08 +000024965 case $host_cpu in
24966 hppa*64*)
24967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24968 ;;
24969 ia64*)
24970 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024971 ;;
24972 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024973 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 +000024974 ;;
24975 esac
24976 fi
24977 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24979 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024980
Reid Spencera773bd52006-08-04 18:18:08 +000024981 case $host_cpu in
24982 hppa*64*|ia64*)
24983 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24984 hardcode_direct_GCJ=no
24985 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024986 ;;
24987 *)
John Criswell47fdd832003-07-14 16:52:07 +000024988 hardcode_direct_GCJ=yes
24989 export_dynamic_flag_spec_GCJ='${wl}-E'
24990
24991 # hardcode_minus_L: Not really in the search PATH,
24992 # but as the default location of the library.
24993 hardcode_minus_L_GCJ=yes
24994 ;;
24995 esac
24996 fi
24997 ;;
24998
24999 irix5* | irix6* | nonstopux*)
25000 if test "$GCC" = yes; then
25001 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'
25002 else
25003 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'
25004 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25005 fi
25006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007 hardcode_libdir_separator_GCJ=:
25008 link_all_deplibs_GCJ=yes
25009 ;;
25010
25011 netbsd*)
25012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25014 else
25015 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25016 fi
25017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25018 hardcode_direct_GCJ=yes
25019 hardcode_shlibpath_var_GCJ=no
25020 ;;
25021
25022 newsos6)
25023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25024 hardcode_direct_GCJ=yes
25025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25026 hardcode_libdir_separator_GCJ=:
25027 hardcode_shlibpath_var_GCJ=no
25028 ;;
25029
25030 openbsd*)
25031 hardcode_direct_GCJ=yes
25032 hardcode_shlibpath_var_GCJ=no
25033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025035 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 +000025036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25037 export_dynamic_flag_spec_GCJ='${wl}-E'
25038 else
25039 case $host_os in
25040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25042 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25043 ;;
25044 *)
25045 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25047 ;;
25048 esac
25049 fi
25050 ;;
25051
25052 os2*)
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_minus_L_GCJ=yes
25055 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025056 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 +000025057 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25058 ;;
25059
25060 osf3*)
25061 if test "$GCC" = yes; then
25062 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25063 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'
25064 else
25065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25066 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'
25067 fi
25068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25069 hardcode_libdir_separator_GCJ=:
25070 ;;
25071
25072 osf4* | osf5*) # as osf3* with the addition of -msym flag
25073 if test "$GCC" = yes; then
25074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25075 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'
25076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25077 else
25078 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25079 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 +000025080 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 +000025081 $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 +000025082
John Criswell47fdd832003-07-14 16:52:07 +000025083 # Both c and cxx compiler support -rpath directly
25084 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25085 fi
25086 hardcode_libdir_separator_GCJ=:
25087 ;;
25088
John Criswell47fdd832003-07-14 16:52:07 +000025089 solaris*)
25090 no_undefined_flag_GCJ=' -z text'
25091 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025092 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025093 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25095 $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 +000025096 else
Reid Spencera773bd52006-08-04 18:18:08 +000025097 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025098 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025099 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25100 $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 +000025101 fi
25102 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25103 hardcode_shlibpath_var_GCJ=no
25104 case $host_os in
25105 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025106 *)
25107 # The compiler driver will combine linker options so we
25108 # cannot just pass the convience library names through
25109 # without $wl, iff we do not link with $LD.
25110 # Luckily, gcc supports the same syntax we need for Sun Studio.
25111 # Supported since Solaris 2.6 (maybe 2.5.1?)
25112 case $wlarc in
25113 '')
25114 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25115 *)
25116 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' ;;
25117 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025118 esac
25119 link_all_deplibs_GCJ=yes
25120 ;;
25121
25122 sunos4*)
25123 if test "x$host_vendor" = xsequent; then
25124 # Use $CC to link under sequent, because it throws in some extra .o
25125 # files that make .init and .fini sections work.
25126 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25127 else
25128 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25129 fi
25130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25131 hardcode_direct_GCJ=yes
25132 hardcode_minus_L_GCJ=yes
25133 hardcode_shlibpath_var_GCJ=no
25134 ;;
25135
25136 sysv4)
25137 case $host_vendor in
25138 sni)
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_direct_GCJ=yes # is this really true???
25141 ;;
25142 siemens)
25143 ## LD is ld it makes a PLAMLIB
25144 ## CC just makes a GrossModule.
25145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25146 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25147 hardcode_direct_GCJ=no
25148 ;;
25149 motorola)
25150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25151 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25152 ;;
25153 esac
25154 runpath_var='LD_RUN_PATH'
25155 hardcode_shlibpath_var_GCJ=no
25156 ;;
25157
25158 sysv4.3*)
25159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25160 hardcode_shlibpath_var_GCJ=no
25161 export_dynamic_flag_spec_GCJ='-Bexport'
25162 ;;
25163
25164 sysv4*MP*)
25165 if test -d /usr/nec; then
25166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25167 hardcode_shlibpath_var_GCJ=no
25168 runpath_var=LD_RUN_PATH
25169 hardcode_runpath_var=yes
25170 ld_shlibs_GCJ=yes
25171 fi
25172 ;;
25173
Reid Spencera773bd52006-08-04 18:18:08 +000025174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25175 no_undefined_flag_GCJ='${wl}-z,text'
25176 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025177 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025178 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025179
John Criswell47fdd832003-07-14 16:52:07 +000025180 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025181 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25182 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 +000025183 else
Reid Spencera773bd52006-08-04 18:18:08 +000025184 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25185 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 +000025186 fi
John Criswell47fdd832003-07-14 16:52:07 +000025187 ;;
25188
Reid Spencera773bd52006-08-04 18:18:08 +000025189 sysv5* | sco3.2v5* | sco5v6*)
25190 # Note: We can NOT use -z defs as we might desire, because we do not
25191 # link with -lc, and that would cause any symbols used from libc to
25192 # always be unresolved, which means just about no library would
25193 # ever link correctly. If we're not using GNU ld we use -z text
25194 # though, which does catch some bad symbols but isn't as heavy-handed
25195 # as -z defs.
25196 no_undefined_flag_GCJ='${wl}-z,text'
25197 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25198 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025199 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025200 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25201 hardcode_libdir_separator_GCJ=':'
25202 link_all_deplibs_GCJ=yes
25203 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025204 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025205
25206 if test "$GCC" = yes; then
25207 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25209 else
25210 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25212 fi
John Criswell47fdd832003-07-14 16:52:07 +000025213 ;;
25214
25215 uts4*)
25216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25218 hardcode_shlibpath_var_GCJ=no
25219 ;;
25220
25221 *)
25222 ld_shlibs_GCJ=no
25223 ;;
25224 esac
25225 fi
25226
Reid Spencera773bd52006-08-04 18:18:08 +000025227{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25228echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025229test "$ld_shlibs_GCJ" = no && can_build_shared=no
25230
John Criswell47fdd832003-07-14 16:52:07 +000025231#
25232# Do we need to explicitly link libc?
25233#
25234case "x$archive_cmds_need_lc_GCJ" in
25235x|xyes)
25236 # Assume -lc should be added
25237 archive_cmds_need_lc_GCJ=yes
25238
25239 if test "$enable_shared" = yes && test "$GCC" = yes; then
25240 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025241 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025242 # FIXME: we may have to deal with multi-command sequences.
25243 ;;
25244 '$CC '*)
25245 # Test whether the compiler implicitly links with -lc since on some
25246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25247 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025248 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25249echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025250 $rm conftest*
25251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25252
25253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25254 (eval $ac_compile) 2>&5
25255 ac_status=$?
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } 2>conftest.err; then
25258 soname=conftest
25259 lib=conftest
25260 libobjs=conftest.$ac_objext
25261 deplibs=
25262 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025263 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025264 compiler_flags=-v
25265 linker_flags=-v
25266 verstring=
25267 output_objdir=.
25268 libname=conftest
25269 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25270 allow_undefined_flag_GCJ=
25271 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25272 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }
25276 then
25277 archive_cmds_need_lc_GCJ=no
25278 else
25279 archive_cmds_need_lc_GCJ=yes
25280 fi
25281 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25282 else
25283 cat conftest.err 1>&5
25284 fi
25285 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025286 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25287echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025288 ;;
25289 esac
25290 fi
25291 ;;
25292esac
25293
Reid Spencera773bd52006-08-04 18:18:08 +000025294{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25295echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025296library_names_spec=
25297libname_spec='lib$name'
25298soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025299shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025300postinstall_cmds=
25301postuninstall_cmds=
25302finish_cmds=
25303finish_eval=
25304shlibpath_var=
25305shlibpath_overrides_runpath=unknown
25306version_type=none
25307dynamic_linker="$host_os ld.so"
25308sys_lib_dlsearch_path_spec="/lib /usr/lib"
25309if test "$GCC" = yes; then
25310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25311 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25312 # if the path contains ";" then we assume it to be the separator
25313 # otherwise default to the standard path separator (i.e. ":") - it is
25314 # assumed that no part of a normal pathname contains ";" but that should
25315 # okay in the real world where ";" in dirpaths is itself problematic.
25316 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25317 else
25318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25319 fi
25320else
25321 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25322fi
25323need_lib_prefix=unknown
25324hardcode_into_libs=no
25325
25326# when you set need_version to no, make sure it does not cause -set_version
25327# flags to be left without arguments
25328need_version=unknown
25329
25330case $host_os in
25331aix3*)
25332 version_type=linux
25333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25334 shlibpath_var=LIBPATH
25335
25336 # AIX 3 has no versioning support, so we append a major version to the name.
25337 soname_spec='${libname}${release}${shared_ext}$major'
25338 ;;
25339
25340aix4* | aix5*)
25341 version_type=linux
25342 need_lib_prefix=no
25343 need_version=no
25344 hardcode_into_libs=yes
25345 if test "$host_cpu" = ia64; then
25346 # AIX 5 supports IA64
25347 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25348 shlibpath_var=LD_LIBRARY_PATH
25349 else
25350 # With GCC up to 2.95.x, collect2 would create an import file
25351 # for dependence libraries. The import file would start with
25352 # the line `#! .'. This would cause the generated library to
25353 # depend on `.', always an invalid library. This was fixed in
25354 # development snapshots of GCC prior to 3.0.
25355 case $host_os in
25356 aix4 | aix4.[01] | aix4.[01].*)
25357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25358 echo ' yes '
25359 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25360 :
25361 else
25362 can_build_shared=no
25363 fi
25364 ;;
25365 esac
25366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25367 # soname into executable. Probably we can add versioning support to
25368 # collect2, so additional links can be useful in future.
25369 if test "$aix_use_runtimelinking" = yes; then
25370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25371 # instead of lib<name>.a to let people know that these are not
25372 # typical AIX shared libraries.
25373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25374 else
25375 # We preserve .a as extension for shared libraries through AIX4.2
25376 # and later when we are not doing run time linking.
25377 library_names_spec='${libname}${release}.a $libname.a'
25378 soname_spec='${libname}${release}${shared_ext}$major'
25379 fi
25380 shlibpath_var=LIBPATH
25381 fi
25382 ;;
25383
25384amigaos*)
25385 library_names_spec='$libname.ixlibrary $libname.a'
25386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025387 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 +000025388 ;;
25389
25390beos*)
25391 library_names_spec='${libname}${shared_ext}'
25392 dynamic_linker="$host_os ld.so"
25393 shlibpath_var=LIBRARY_PATH
25394 ;;
25395
Reid Spencer2706f8c2004-09-19 23:53:36 +000025396bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025397 version_type=linux
25398 need_version=no
25399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec='${libname}${release}${shared_ext}$major'
25401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25402 shlibpath_var=LD_LIBRARY_PATH
25403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25405 # the default ld.so.conf also contains /usr/contrib/lib and
25406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25407 # libtool to hard-code these into programs
25408 ;;
25409
25410cygwin* | mingw* | pw32*)
25411 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025412 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025413 need_version=no
25414 need_lib_prefix=no
25415
25416 case $GCC,$host_os in
25417 yes,cygwin* | yes,mingw* | yes,pw32*)
25418 library_names_spec='$libname.dll.a'
25419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025420 postinstall_cmds='base_file=`basename \${file}`~
25421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25422 dldir=$destdir/`dirname \$dlpath`~
25423 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025424 $install_prog $dir/$dlname \$dldir/$dlname~
25425 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25427 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025428 $rm \$dlpath'
25429 shlibpath_overrides_runpath=yes
25430
25431 case $host_os in
25432 cygwin*)
25433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25434 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 +000025435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025436 ;;
25437 mingw*)
25438 # MinGW DLLs use traditional 'lib' prefix
25439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25441 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25442 # It is most probably a Windows format PATH printed by
25443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25444 # path with ; separators, and with drive letters. We can handle the
25445 # drive letters (cygwin fileutils understands them), so leave them,
25446 # especially as we might pass files found there to a mingw objdump,
25447 # which wouldn't understand a cygwinified path. Ahh.
25448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25449 else
25450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25451 fi
25452 ;;
25453 pw32*)
25454 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025455 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 +000025456 ;;
25457 esac
25458 ;;
25459
25460 *)
25461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25462 ;;
25463 esac
25464 dynamic_linker='Win32 ld.exe'
25465 # FIXME: first we should search . and the directory the executable is in
25466 shlibpath_var=PATH
25467 ;;
25468
25469darwin* | rhapsody*)
25470 dynamic_linker="$host_os dyld"
25471 version_type=darwin
25472 need_lib_prefix=no
25473 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025474 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025475 soname_spec='${libname}${release}${major}$shared_ext'
25476 shlibpath_overrides_runpath=yes
25477 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025478 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025479 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025480 if test "$GCC" = yes; then
25481 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"`
25482 else
25483 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025484 fi
25485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25486 ;;
25487
25488dgux*)
25489 version_type=linux
25490 need_lib_prefix=no
25491 need_version=no
25492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25493 soname_spec='${libname}${release}${shared_ext}$major'
25494 shlibpath_var=LD_LIBRARY_PATH
25495 ;;
25496
25497freebsd1*)
25498 dynamic_linker=no
25499 ;;
25500
Reid Spencer2706f8c2004-09-19 23:53:36 +000025501kfreebsd*-gnu)
25502 version_type=linux
25503 need_lib_prefix=no
25504 need_version=no
25505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25506 soname_spec='${libname}${release}${shared_ext}$major'
25507 shlibpath_var=LD_LIBRARY_PATH
25508 shlibpath_overrides_runpath=no
25509 hardcode_into_libs=yes
25510 dynamic_linker='GNU ld.so'
25511 ;;
25512
Reid Spencera773bd52006-08-04 18:18:08 +000025513freebsd* | dragonfly*)
25514 # DragonFly does not have aout. When/if they implement a new
25515 # versioning mechanism, adjust this.
25516 if test -x /usr/bin/objformat; then
25517 objformat=`/usr/bin/objformat`
25518 else
25519 case $host_os in
25520 freebsd[123]*) objformat=aout ;;
25521 *) objformat=elf ;;
25522 esac
25523 fi
John Criswell47fdd832003-07-14 16:52:07 +000025524 version_type=freebsd-$objformat
25525 case $version_type in
25526 freebsd-elf*)
25527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25528 need_version=no
25529 need_lib_prefix=no
25530 ;;
25531 freebsd-*)
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25533 need_version=yes
25534 ;;
25535 esac
25536 shlibpath_var=LD_LIBRARY_PATH
25537 case $host_os in
25538 freebsd2*)
25539 shlibpath_overrides_runpath=yes
25540 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025541 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025542 shlibpath_overrides_runpath=yes
25543 hardcode_into_libs=yes
25544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025545 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25546 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025547 shlibpath_overrides_runpath=no
25548 hardcode_into_libs=yes
25549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025550 freebsd*) # from 4.6 on
25551 shlibpath_overrides_runpath=yes
25552 hardcode_into_libs=yes
25553 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025554 esac
25555 ;;
25556
25557gnu*)
25558 version_type=linux
25559 need_lib_prefix=no
25560 need_version=no
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25562 soname_spec='${libname}${release}${shared_ext}$major'
25563 shlibpath_var=LD_LIBRARY_PATH
25564 hardcode_into_libs=yes
25565 ;;
25566
25567hpux9* | hpux10* | hpux11*)
25568 # Give a soname corresponding to the major version so that dld.sl refuses to
25569 # link against other versions.
25570 version_type=sunos
25571 need_lib_prefix=no
25572 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025573 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025574 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025575 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025576 hardcode_into_libs=yes
25577 dynamic_linker="$host_os dld.so"
25578 shlibpath_var=LD_LIBRARY_PATH
25579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25581 soname_spec='${libname}${release}${shared_ext}$major'
25582 if test "X$HPUX_IA64_MODE" = X32; then
25583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25584 else
25585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25586 fi
25587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25588 ;;
25589 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025590 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025591 hardcode_into_libs=yes
25592 dynamic_linker="$host_os dld.sl"
25593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec='${libname}${release}${shared_ext}$major'
25597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25599 ;;
25600 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025601 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025602 dynamic_linker="$host_os dld.sl"
25603 shlibpath_var=SHLIB_PATH
25604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25606 soname_spec='${libname}${release}${shared_ext}$major'
25607 ;;
25608 esac
25609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25610 postinstall_cmds='chmod 555 $lib'
25611 ;;
25612
Reid Spencera773bd52006-08-04 18:18:08 +000025613interix3*)
25614 version_type=linux
25615 need_lib_prefix=no
25616 need_version=no
25617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25618 soname_spec='${libname}${release}${shared_ext}$major'
25619 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25620 shlibpath_var=LD_LIBRARY_PATH
25621 shlibpath_overrides_runpath=no
25622 hardcode_into_libs=yes
25623 ;;
25624
John Criswell47fdd832003-07-14 16:52:07 +000025625irix5* | irix6* | nonstopux*)
25626 case $host_os in
25627 nonstopux*) version_type=nonstopux ;;
25628 *)
25629 if test "$lt_cv_prog_gnu_ld" = yes; then
25630 version_type=linux
25631 else
25632 version_type=irix
25633 fi ;;
25634 esac
25635 need_lib_prefix=no
25636 need_version=no
25637 soname_spec='${libname}${release}${shared_ext}$major'
25638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25639 case $host_os in
25640 irix5* | nonstopux*)
25641 libsuff= shlibsuff=
25642 ;;
25643 *)
25644 case $LD in # libtool.m4 will add one of these switches to LD
25645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25646 libsuff= shlibsuff= libmagic=32-bit;;
25647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25648 libsuff=32 shlibsuff=N32 libmagic=N32;;
25649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25650 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25651 *) libsuff= shlibsuff= libmagic=never-match;;
25652 esac
25653 ;;
25654 esac
25655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25656 shlibpath_overrides_runpath=no
25657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25659 hardcode_into_libs=yes
25660 ;;
25661
25662# No shared lib support for Linux oldld, aout, or coff.
25663linux*oldld* | linux*aout* | linux*coff*)
25664 dynamic_linker=no
25665 ;;
25666
25667# This must be Linux ELF.
25668linux*)
25669 version_type=linux
25670 need_lib_prefix=no
25671 need_version=no
25672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25673 soname_spec='${libname}${release}${shared_ext}$major'
25674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25675 shlibpath_var=LD_LIBRARY_PATH
25676 shlibpath_overrides_runpath=no
25677 # This implies no fast_install, which is unacceptable.
25678 # Some rework will be needed to allow for fast_install
25679 # before this can be enabled.
25680 hardcode_into_libs=yes
25681
Reid Spencer2706f8c2004-09-19 23:53:36 +000025682 # Append ld.so.conf contents to the search path
25683 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025684 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 +000025685 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25686 fi
25687
John Criswell47fdd832003-07-14 16:52:07 +000025688 # We used to test for /lib/ld.so.1 and disable shared libraries on
25689 # powerpc, because MkLinux only supported shared libraries with the
25690 # GNU dynamic linker. Since this was broken with cross compilers,
25691 # most powerpc-linux boxes support dynamic linking these days and
25692 # people can always --disable-shared, the test was removed, and we
25693 # assume the GNU/Linux dynamic linker is in use.
25694 dynamic_linker='GNU/Linux ld.so'
25695 ;;
25696
Reid Spencer2706f8c2004-09-19 23:53:36 +000025697knetbsd*-gnu)
25698 version_type=linux
25699 need_lib_prefix=no
25700 need_version=no
25701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25702 soname_spec='${libname}${release}${shared_ext}$major'
25703 shlibpath_var=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath=no
25705 hardcode_into_libs=yes
25706 dynamic_linker='GNU ld.so'
25707 ;;
25708
John Criswell47fdd832003-07-14 16:52:07 +000025709netbsd*)
25710 version_type=sunos
25711 need_lib_prefix=no
25712 need_version=no
25713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25716 dynamic_linker='NetBSD (a.out) ld.so'
25717 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025719 soname_spec='${libname}${release}${shared_ext}$major'
25720 dynamic_linker='NetBSD ld.elf_so'
25721 fi
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=yes
25724 hardcode_into_libs=yes
25725 ;;
25726
25727newsos6)
25728 version_type=linux
25729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25730 shlibpath_var=LD_LIBRARY_PATH
25731 shlibpath_overrides_runpath=yes
25732 ;;
25733
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025735 version_type=linux
25736 need_lib_prefix=no
25737 need_version=no
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25739 soname_spec='${libname}${release}${shared_ext}$major'
25740 shlibpath_var=LD_LIBRARY_PATH
25741 shlibpath_overrides_runpath=yes
25742 ;;
25743
25744openbsd*)
25745 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025746 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025747 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25749 case $host_os in
25750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25751 *) need_version=no ;;
25752 esac
John Criswell47fdd832003-07-14 16:52:07 +000025753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25755 shlibpath_var=LD_LIBRARY_PATH
25756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25757 case $host_os in
25758 openbsd2.[89] | openbsd2.[89].*)
25759 shlibpath_overrides_runpath=no
25760 ;;
25761 *)
25762 shlibpath_overrides_runpath=yes
25763 ;;
25764 esac
25765 else
25766 shlibpath_overrides_runpath=yes
25767 fi
25768 ;;
25769
25770os2*)
25771 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025772 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025773 need_lib_prefix=no
25774 library_names_spec='$libname${shared_ext} $libname.a'
25775 dynamic_linker='OS/2 ld.exe'
25776 shlibpath_var=LIBPATH
25777 ;;
25778
25779osf3* | osf4* | osf5*)
25780 version_type=osf
25781 need_lib_prefix=no
25782 need_version=no
25783 soname_spec='${libname}${release}${shared_ext}$major'
25784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25785 shlibpath_var=LD_LIBRARY_PATH
25786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25788 ;;
25789
John Criswell47fdd832003-07-14 16:52:07 +000025790solaris*)
25791 version_type=linux
25792 need_lib_prefix=no
25793 need_version=no
25794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25795 soname_spec='${libname}${release}${shared_ext}$major'
25796 shlibpath_var=LD_LIBRARY_PATH
25797 shlibpath_overrides_runpath=yes
25798 hardcode_into_libs=yes
25799 # ldd complains unless libraries are executable
25800 postinstall_cmds='chmod +x $lib'
25801 ;;
25802
25803sunos4*)
25804 version_type=sunos
25805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25807 shlibpath_var=LD_LIBRARY_PATH
25808 shlibpath_overrides_runpath=yes
25809 if test "$with_gnu_ld" = yes; then
25810 need_lib_prefix=no
25811 fi
25812 need_version=yes
25813 ;;
25814
Reid Spencera773bd52006-08-04 18:18:08 +000025815sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025816 version_type=linux
25817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25818 soname_spec='${libname}${release}${shared_ext}$major'
25819 shlibpath_var=LD_LIBRARY_PATH
25820 case $host_vendor in
25821 sni)
25822 shlibpath_overrides_runpath=no
25823 need_lib_prefix=no
25824 export_dynamic_flag_spec='${wl}-Blargedynsym'
25825 runpath_var=LD_RUN_PATH
25826 ;;
25827 siemens)
25828 need_lib_prefix=no
25829 ;;
25830 motorola)
25831 need_lib_prefix=no
25832 need_version=no
25833 shlibpath_overrides_runpath=no
25834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25835 ;;
25836 esac
25837 ;;
25838
25839sysv4*MP*)
25840 if test -d /usr/nec ;then
25841 version_type=linux
25842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25843 soname_spec='$libname${shared_ext}.$major'
25844 shlibpath_var=LD_LIBRARY_PATH
25845 fi
25846 ;;
25847
Reid Spencera773bd52006-08-04 18:18:08 +000025848sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25849 version_type=freebsd-elf
25850 need_lib_prefix=no
25851 need_version=no
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 shlibpath_var=LD_LIBRARY_PATH
25855 hardcode_into_libs=yes
25856 if test "$with_gnu_ld" = yes; then
25857 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25858 shlibpath_overrides_runpath=no
25859 else
25860 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25861 shlibpath_overrides_runpath=yes
25862 case $host_os in
25863 sco3.2v5*)
25864 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25865 ;;
25866 esac
25867 fi
25868 sys_lib_dlsearch_path_spec='/usr/lib'
25869 ;;
25870
John Criswell47fdd832003-07-14 16:52:07 +000025871uts4*)
25872 version_type=linux
25873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25874 soname_spec='${libname}${release}${shared_ext}$major'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 ;;
25877
25878*)
25879 dynamic_linker=no
25880 ;;
25881esac
Reid Spencera773bd52006-08-04 18:18:08 +000025882{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25883echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025884test "$dynamic_linker" = no && can_build_shared=no
25885
Reid Spencera773bd52006-08-04 18:18:08 +000025886variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25887if test "$GCC" = yes; then
25888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25889fi
25890
25891{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25892echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025893hardcode_action_GCJ=
25894if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25895 test -n "$runpath_var_GCJ" || \
25896 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25897
25898 # We can hardcode non-existant directories.
25899 if test "$hardcode_direct_GCJ" != no &&
25900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25901 # have to relink, otherwise we might link with an installed library
25902 # when we should be linking with a yet-to-be-installed one
25903 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25904 test "$hardcode_minus_L_GCJ" != no; then
25905 # Linking always hardcodes the temporary library directory.
25906 hardcode_action_GCJ=relink
25907 else
25908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25909 hardcode_action_GCJ=immediate
25910 fi
25911else
25912 # We cannot hardcode anything, or else we can only hardcode existing
25913 # directories.
25914 hardcode_action_GCJ=unsupported
25915fi
Reid Spencera773bd52006-08-04 18:18:08 +000025916{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25917echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025918
25919if test "$hardcode_action_GCJ" = relink; then
25920 # Fast installation is not supported
25921 enable_fast_install=no
25922elif test "$shlibpath_overrides_runpath" = yes ||
25923 test "$enable_shared" = no; then
25924 # Fast installation is not necessary
25925 enable_fast_install=needless
25926fi
25927
John Criswell47fdd832003-07-14 16:52:07 +000025928
25929# The else clause should only fire when bootstrapping the
25930# libtool distribution, otherwise you forgot to ship ltmain.sh
25931# with your package, and you will get complaints that there are
25932# no rules to generate ltmain.sh.
25933if test -f "$ltmain"; then
25934 # See if we are running on zsh, and set the options which allow our commands through
25935 # without removal of \ escapes.
25936 if test -n "${ZSH_VERSION+set}" ; then
25937 setopt NO_GLOB_SUBST
25938 fi
25939 # Now quote all the things that may contain metacharacters while being
25940 # careful not to overquote the AC_SUBSTed values. We take copies of the
25941 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025942 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 +000025943 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25946 deplibs_check_method reload_flag reload_cmds need_locks \
25947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25948 lt_cv_sys_global_symbol_to_c_name_address \
25949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25950 old_postinstall_cmds old_postuninstall_cmds \
25951 compiler_GCJ \
25952 CC_GCJ \
25953 LD_GCJ \
25954 lt_prog_compiler_wl_GCJ \
25955 lt_prog_compiler_pic_GCJ \
25956 lt_prog_compiler_static_GCJ \
25957 lt_prog_compiler_no_builtin_flag_GCJ \
25958 export_dynamic_flag_spec_GCJ \
25959 thread_safe_flag_spec_GCJ \
25960 whole_archive_flag_spec_GCJ \
25961 enable_shared_with_static_runtimes_GCJ \
25962 old_archive_cmds_GCJ \
25963 old_archive_from_new_cmds_GCJ \
25964 predep_objects_GCJ \
25965 postdep_objects_GCJ \
25966 predeps_GCJ \
25967 postdeps_GCJ \
25968 compiler_lib_search_path_GCJ \
25969 archive_cmds_GCJ \
25970 archive_expsym_cmds_GCJ \
25971 postinstall_cmds_GCJ \
25972 postuninstall_cmds_GCJ \
25973 old_archive_from_expsyms_cmds_GCJ \
25974 allow_undefined_flag_GCJ \
25975 no_undefined_flag_GCJ \
25976 export_symbols_cmds_GCJ \
25977 hardcode_libdir_flag_spec_GCJ \
25978 hardcode_libdir_flag_spec_ld_GCJ \
25979 hardcode_libdir_separator_GCJ \
25980 hardcode_automatic_GCJ \
25981 module_cmds_GCJ \
25982 module_expsym_cmds_GCJ \
25983 lt_cv_prog_compiler_c_o_GCJ \
25984 exclude_expsyms_GCJ \
25985 include_expsyms_GCJ; do
25986
25987 case $var in
25988 old_archive_cmds_GCJ | \
25989 old_archive_from_new_cmds_GCJ | \
25990 archive_cmds_GCJ | \
25991 archive_expsym_cmds_GCJ | \
25992 module_cmds_GCJ | \
25993 module_expsym_cmds_GCJ | \
25994 old_archive_from_expsyms_cmds_GCJ | \
25995 export_symbols_cmds_GCJ | \
25996 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25997 postinstall_cmds | postuninstall_cmds | \
25998 old_postinstall_cmds | old_postuninstall_cmds | \
25999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26000 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026001 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 +000026002 ;;
26003 *)
26004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26005 ;;
26006 esac
26007 done
26008
26009 case $lt_echo in
26010 *'\$0 --fallback-echo"')
26011 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26012 ;;
26013 esac
26014
26015cfgfile="$ofile"
26016
26017 cat <<__EOF__ >> "$cfgfile"
26018# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26019
26020# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26021
26022# Shell to use when invoking shell scripts.
26023SHELL=$lt_SHELL
26024
26025# Whether or not to build shared libraries.
26026build_libtool_libs=$enable_shared
26027
26028# Whether or not to build static libraries.
26029build_old_libs=$enable_static
26030
26031# Whether or not to add -lc for building shared libraries.
26032build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26033
26034# Whether or not to disallow shared libs when runtime libs are static
26035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26036
26037# Whether or not to optimize for fast installation.
26038fast_install=$enable_fast_install
26039
26040# The host system.
26041host_alias=$host_alias
26042host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026043host_os=$host_os
26044
26045# The build system.
26046build_alias=$build_alias
26047build=$build
26048build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026049
26050# An echo program that does not interpret backslashes.
26051echo=$lt_echo
26052
26053# The archiver.
26054AR=$lt_AR
26055AR_FLAGS=$lt_AR_FLAGS
26056
26057# A C compiler.
26058LTCC=$lt_LTCC
26059
Reid Spencera773bd52006-08-04 18:18:08 +000026060# LTCC compiler flags.
26061LTCFLAGS=$lt_LTCFLAGS
26062
John Criswell47fdd832003-07-14 16:52:07 +000026063# A language-specific compiler.
26064CC=$lt_compiler_GCJ
26065
26066# Is the compiler the GNU C compiler?
26067with_gcc=$GCC_GCJ
26068
26069# An ERE matcher.
26070EGREP=$lt_EGREP
26071
26072# The linker used to build libraries.
26073LD=$lt_LD_GCJ
26074
26075# Whether we need hard or soft links.
26076LN_S=$lt_LN_S
26077
26078# A BSD-compatible nm program.
26079NM=$lt_NM
26080
26081# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026082STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026083
26084# Used to examine libraries when file_magic_cmd begins "file"
26085MAGIC_CMD=$MAGIC_CMD
26086
26087# Used on cygwin: DLL creation program.
26088DLLTOOL="$DLLTOOL"
26089
26090# Used on cygwin: object dumper.
26091OBJDUMP="$OBJDUMP"
26092
26093# Used on cygwin: assembler.
26094AS="$AS"
26095
26096# The name of the directory that contains temporary libtool files.
26097objdir=$objdir
26098
26099# How to create reloadable object files.
26100reload_flag=$lt_reload_flag
26101reload_cmds=$lt_reload_cmds
26102
26103# How to pass a linker flag through the compiler.
26104wl=$lt_lt_prog_compiler_wl_GCJ
26105
26106# Object file suffix (normally "o").
26107objext="$ac_objext"
26108
26109# Old archive suffix (normally "a").
26110libext="$libext"
26111
26112# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026113shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026114
26115# Executable file suffix (normally "").
26116exeext="$exeext"
26117
26118# Additional compiler flags for building library objects.
26119pic_flag=$lt_lt_prog_compiler_pic_GCJ
26120pic_mode=$pic_mode
26121
26122# What is the maximum length of a command?
26123max_cmd_len=$lt_cv_sys_max_cmd_len
26124
26125# Does compiler simultaneously support -c and -o options?
26126compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26127
Reid Spencera773bd52006-08-04 18:18:08 +000026128# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026129need_locks=$lt_need_locks
26130
26131# Do we need the lib prefix for modules?
26132need_lib_prefix=$need_lib_prefix
26133
26134# Do we need a version for libraries?
26135need_version=$need_version
26136
26137# Whether dlopen is supported.
26138dlopen_support=$enable_dlopen
26139
26140# Whether dlopen of programs is supported.
26141dlopen_self=$enable_dlopen_self
26142
26143# Whether dlopen of statically linked programs is supported.
26144dlopen_self_static=$enable_dlopen_self_static
26145
26146# Compiler flag to prevent dynamic linking.
26147link_static_flag=$lt_lt_prog_compiler_static_GCJ
26148
26149# Compiler flag to turn off builtin functions.
26150no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26151
26152# Compiler flag to allow reflexive dlopens.
26153export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26154
26155# Compiler flag to generate shared objects directly from archives.
26156whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26157
26158# Compiler flag to generate thread-safe objects.
26159thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26160
26161# Library versioning type.
26162version_type=$version_type
26163
26164# Format of library name prefix.
26165libname_spec=$lt_libname_spec
26166
26167# List of archive names. First name is the real one, the rest are links.
26168# The last name is the one that the linker finds with -lNAME.
26169library_names_spec=$lt_library_names_spec
26170
26171# The coded name of the library, if different from the real name.
26172soname_spec=$lt_soname_spec
26173
26174# Commands used to build and install an old-style archive.
26175RANLIB=$lt_RANLIB
26176old_archive_cmds=$lt_old_archive_cmds_GCJ
26177old_postinstall_cmds=$lt_old_postinstall_cmds
26178old_postuninstall_cmds=$lt_old_postuninstall_cmds
26179
26180# Create an old-style archive from a shared archive.
26181old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26182
26183# Create a temporary old-style archive to link instead of a shared archive.
26184old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26185
26186# Commands used to build and install a shared archive.
26187archive_cmds=$lt_archive_cmds_GCJ
26188archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26189postinstall_cmds=$lt_postinstall_cmds
26190postuninstall_cmds=$lt_postuninstall_cmds
26191
26192# Commands used to build a loadable module (assumed same as above if empty)
26193module_cmds=$lt_module_cmds_GCJ
26194module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26195
26196# Commands to strip libraries.
26197old_striplib=$lt_old_striplib
26198striplib=$lt_striplib
26199
26200# Dependencies to place before the objects being linked to create a
26201# shared library.
26202predep_objects=$lt_predep_objects_GCJ
26203
26204# Dependencies to place after the objects being linked to create a
26205# shared library.
26206postdep_objects=$lt_postdep_objects_GCJ
26207
26208# Dependencies to place before the objects being linked to create a
26209# shared library.
26210predeps=$lt_predeps_GCJ
26211
26212# Dependencies to place after the objects being linked to create a
26213# shared library.
26214postdeps=$lt_postdeps_GCJ
26215
26216# The library search path used internally by the compiler when linking
26217# a shared library.
26218compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26219
26220# Method to check whether dependent libraries are shared objects.
26221deplibs_check_method=$lt_deplibs_check_method
26222
26223# Command to use when deplibs_check_method == file_magic.
26224file_magic_cmd=$lt_file_magic_cmd
26225
26226# Flag that allows shared libraries with undefined symbols to be built.
26227allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26228
26229# Flag that forces no undefined symbols.
26230no_undefined_flag=$lt_no_undefined_flag_GCJ
26231
26232# Commands used to finish a libtool library installation in a directory.
26233finish_cmds=$lt_finish_cmds
26234
26235# Same as above, but a single script fragment to be evaled but not shown.
26236finish_eval=$lt_finish_eval
26237
26238# Take the output of nm and produce a listing of raw symbols and C names.
26239global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26240
26241# Transform the output of nm in a proper C declaration
26242global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26243
26244# Transform the output of nm in a C name address pair
26245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26246
26247# This is the shared library runtime path variable.
26248runpath_var=$runpath_var
26249
26250# This is the shared library path variable.
26251shlibpath_var=$shlibpath_var
26252
26253# Is shlibpath searched before the hard-coded library search path?
26254shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26255
26256# How to hardcode a shared library path into an executable.
26257hardcode_action=$hardcode_action_GCJ
26258
26259# Whether we should hardcode library paths into libraries.
26260hardcode_into_libs=$hardcode_into_libs
26261
26262# Flag to hardcode \$libdir into a binary during linking.
26263# This must work even if \$libdir does not exist.
26264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26265
26266# If ld is used when linking, flag to hardcode \$libdir into
26267# a binary during linking. This must work even if \$libdir does
26268# not exist.
26269hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26270
26271# Whether we need a single -rpath flag with a separated argument.
26272hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26273
26274# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26275# resulting binary.
26276hardcode_direct=$hardcode_direct_GCJ
26277
26278# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26279# resulting binary.
26280hardcode_minus_L=$hardcode_minus_L_GCJ
26281
26282# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26283# the resulting binary.
26284hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26285
26286# Set to yes if building a shared library automatically hardcodes DIR into the library
26287# and all subsequent libraries and executables linked against it.
26288hardcode_automatic=$hardcode_automatic_GCJ
26289
26290# Variables whose values should be saved in libtool wrapper scripts and
26291# restored at relink time.
26292variables_saved_for_relink="$variables_saved_for_relink"
26293
26294# Whether libtool must link a program against all its dependency libraries.
26295link_all_deplibs=$link_all_deplibs_GCJ
26296
26297# Compile-time system search path for libraries
26298sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26299
26300# Run-time system search path for libraries
26301sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26302
26303# Fix the shell variable \$srcfile for the compiler.
26304fix_srcfile_path="$fix_srcfile_path_GCJ"
26305
26306# Set to yes if exported symbols are required.
26307always_export_symbols=$always_export_symbols_GCJ
26308
26309# The commands to list exported symbols.
26310export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26311
26312# The commands to extract the exported symbol list from a shared archive.
26313extract_expsyms_cmds=$lt_extract_expsyms_cmds
26314
26315# Symbols that should not be listed in the preloaded symbols.
26316exclude_expsyms=$lt_exclude_expsyms_GCJ
26317
26318# Symbols that must always be exported.
26319include_expsyms=$lt_include_expsyms_GCJ
26320
26321# ### END LIBTOOL TAG CONFIG: $tagname
26322
26323__EOF__
26324
26325
26326else
26327 # If there is no Makefile yet, we rely on a make rule to execute
26328 # `config.status --recheck' to rerun these tests and create the
26329 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26331 if test -f "$ltmain_in"; then
26332 test -f Makefile && make "$ltmain"
26333 fi
John Criswell47fdd832003-07-14 16:52:07 +000026334fi
26335
26336
26337ac_ext=c
26338ac_cpp='$CPP $CPPFLAGS'
26339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342
26343CC="$lt_save_CC"
26344
26345 else
26346 tagname=""
26347 fi
26348 ;;
26349
26350 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026351 ac_ext=c
26352ac_cpp='$CPP $CPPFLAGS'
26353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26355ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026356
26357
26358# Source file extension for RC test sources.
26359ac_ext=rc
26360
26361# Object file extension for compiled RC test sources.
26362objext=o
26363objext_RC=$objext
26364
26365# Code to be used in simple compile tests
26366lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26367
26368# Code to be used in simple link tests
26369lt_simple_link_test_code="$lt_simple_compile_test_code"
26370
26371# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26372
26373# If no C compiler was specified, use CC.
26374LTCC=${LTCC-"$CC"}
26375
Reid Spencera773bd52006-08-04 18:18:08 +000026376# If no C compiler flags were specified, use CFLAGS.
26377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26378
John Criswell47fdd832003-07-14 16:52:07 +000026379# Allow CC to be a program name with arguments.
26380compiler=$CC
26381
26382
Reid Spencera773bd52006-08-04 18:18:08 +000026383# save warnings/boilerplate of simple test code
26384ac_outfile=conftest.$ac_objext
26385printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26387_lt_compiler_boilerplate=`cat conftest.err`
26388$rm conftest*
26389
26390ac_outfile=conftest.$ac_objext
26391printf "$lt_simple_link_test_code" >conftest.$ac_ext
26392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26393_lt_linker_boilerplate=`cat conftest.err`
26394$rm conftest*
26395
26396
John Criswell47fdd832003-07-14 16:52:07 +000026397# Allow CC to be a program name with arguments.
26398lt_save_CC="$CC"
26399CC=${RC-"windres"}
26400compiler=$CC
26401compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026402for cc_temp in $compiler""; do
26403 case $cc_temp in
26404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26406 \-*) ;;
26407 *) break;;
26408 esac
26409done
26410cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26411
John Criswell47fdd832003-07-14 16:52:07 +000026412lt_cv_prog_compiler_c_o_RC=yes
26413
26414# The else clause should only fire when bootstrapping the
26415# libtool distribution, otherwise you forgot to ship ltmain.sh
26416# with your package, and you will get complaints that there are
26417# no rules to generate ltmain.sh.
26418if test -f "$ltmain"; then
26419 # See if we are running on zsh, and set the options which allow our commands through
26420 # without removal of \ escapes.
26421 if test -n "${ZSH_VERSION+set}" ; then
26422 setopt NO_GLOB_SUBST
26423 fi
26424 # Now quote all the things that may contain metacharacters while being
26425 # careful not to overquote the AC_SUBSTed values. We take copies of the
26426 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026427 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 +000026428 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26431 deplibs_check_method reload_flag reload_cmds need_locks \
26432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26433 lt_cv_sys_global_symbol_to_c_name_address \
26434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26435 old_postinstall_cmds old_postuninstall_cmds \
26436 compiler_RC \
26437 CC_RC \
26438 LD_RC \
26439 lt_prog_compiler_wl_RC \
26440 lt_prog_compiler_pic_RC \
26441 lt_prog_compiler_static_RC \
26442 lt_prog_compiler_no_builtin_flag_RC \
26443 export_dynamic_flag_spec_RC \
26444 thread_safe_flag_spec_RC \
26445 whole_archive_flag_spec_RC \
26446 enable_shared_with_static_runtimes_RC \
26447 old_archive_cmds_RC \
26448 old_archive_from_new_cmds_RC \
26449 predep_objects_RC \
26450 postdep_objects_RC \
26451 predeps_RC \
26452 postdeps_RC \
26453 compiler_lib_search_path_RC \
26454 archive_cmds_RC \
26455 archive_expsym_cmds_RC \
26456 postinstall_cmds_RC \
26457 postuninstall_cmds_RC \
26458 old_archive_from_expsyms_cmds_RC \
26459 allow_undefined_flag_RC \
26460 no_undefined_flag_RC \
26461 export_symbols_cmds_RC \
26462 hardcode_libdir_flag_spec_RC \
26463 hardcode_libdir_flag_spec_ld_RC \
26464 hardcode_libdir_separator_RC \
26465 hardcode_automatic_RC \
26466 module_cmds_RC \
26467 module_expsym_cmds_RC \
26468 lt_cv_prog_compiler_c_o_RC \
26469 exclude_expsyms_RC \
26470 include_expsyms_RC; do
26471
26472 case $var in
26473 old_archive_cmds_RC | \
26474 old_archive_from_new_cmds_RC | \
26475 archive_cmds_RC | \
26476 archive_expsym_cmds_RC | \
26477 module_cmds_RC | \
26478 module_expsym_cmds_RC | \
26479 old_archive_from_expsyms_cmds_RC | \
26480 export_symbols_cmds_RC | \
26481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26482 postinstall_cmds | postuninstall_cmds | \
26483 old_postinstall_cmds | old_postuninstall_cmds | \
26484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26485 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026486 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 +000026487 ;;
26488 *)
26489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26490 ;;
26491 esac
26492 done
26493
26494 case $lt_echo in
26495 *'\$0 --fallback-echo"')
26496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26497 ;;
26498 esac
26499
26500cfgfile="$ofile"
26501
26502 cat <<__EOF__ >> "$cfgfile"
26503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26504
26505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26506
26507# Shell to use when invoking shell scripts.
26508SHELL=$lt_SHELL
26509
26510# Whether or not to build shared libraries.
26511build_libtool_libs=$enable_shared
26512
26513# Whether or not to build static libraries.
26514build_old_libs=$enable_static
26515
26516# Whether or not to add -lc for building shared libraries.
26517build_libtool_need_lc=$archive_cmds_need_lc_RC
26518
26519# Whether or not to disallow shared libs when runtime libs are static
26520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26521
26522# Whether or not to optimize for fast installation.
26523fast_install=$enable_fast_install
26524
26525# The host system.
26526host_alias=$host_alias
26527host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026528host_os=$host_os
26529
26530# The build system.
26531build_alias=$build_alias
26532build=$build
26533build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026534
26535# An echo program that does not interpret backslashes.
26536echo=$lt_echo
26537
26538# The archiver.
26539AR=$lt_AR
26540AR_FLAGS=$lt_AR_FLAGS
26541
26542# A C compiler.
26543LTCC=$lt_LTCC
26544
Reid Spencera773bd52006-08-04 18:18:08 +000026545# LTCC compiler flags.
26546LTCFLAGS=$lt_LTCFLAGS
26547
John Criswell47fdd832003-07-14 16:52:07 +000026548# A language-specific compiler.
26549CC=$lt_compiler_RC
26550
26551# Is the compiler the GNU C compiler?
26552with_gcc=$GCC_RC
26553
26554# An ERE matcher.
26555EGREP=$lt_EGREP
26556
26557# The linker used to build libraries.
26558LD=$lt_LD_RC
26559
26560# Whether we need hard or soft links.
26561LN_S=$lt_LN_S
26562
26563# A BSD-compatible nm program.
26564NM=$lt_NM
26565
26566# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026567STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026568
26569# Used to examine libraries when file_magic_cmd begins "file"
26570MAGIC_CMD=$MAGIC_CMD
26571
26572# Used on cygwin: DLL creation program.
26573DLLTOOL="$DLLTOOL"
26574
26575# Used on cygwin: object dumper.
26576OBJDUMP="$OBJDUMP"
26577
26578# Used on cygwin: assembler.
26579AS="$AS"
26580
26581# The name of the directory that contains temporary libtool files.
26582objdir=$objdir
26583
26584# How to create reloadable object files.
26585reload_flag=$lt_reload_flag
26586reload_cmds=$lt_reload_cmds
26587
26588# How to pass a linker flag through the compiler.
26589wl=$lt_lt_prog_compiler_wl_RC
26590
26591# Object file suffix (normally "o").
26592objext="$ac_objext"
26593
26594# Old archive suffix (normally "a").
26595libext="$libext"
26596
26597# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026598shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026599
26600# Executable file suffix (normally "").
26601exeext="$exeext"
26602
26603# Additional compiler flags for building library objects.
26604pic_flag=$lt_lt_prog_compiler_pic_RC
26605pic_mode=$pic_mode
26606
26607# What is the maximum length of a command?
26608max_cmd_len=$lt_cv_sys_max_cmd_len
26609
26610# Does compiler simultaneously support -c and -o options?
26611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26612
Reid Spencera773bd52006-08-04 18:18:08 +000026613# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026614need_locks=$lt_need_locks
26615
26616# Do we need the lib prefix for modules?
26617need_lib_prefix=$need_lib_prefix
26618
26619# Do we need a version for libraries?
26620need_version=$need_version
26621
26622# Whether dlopen is supported.
26623dlopen_support=$enable_dlopen
26624
26625# Whether dlopen of programs is supported.
26626dlopen_self=$enable_dlopen_self
26627
26628# Whether dlopen of statically linked programs is supported.
26629dlopen_self_static=$enable_dlopen_self_static
26630
26631# Compiler flag to prevent dynamic linking.
26632link_static_flag=$lt_lt_prog_compiler_static_RC
26633
26634# Compiler flag to turn off builtin functions.
26635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26636
26637# Compiler flag to allow reflexive dlopens.
26638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26639
26640# Compiler flag to generate shared objects directly from archives.
26641whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26642
26643# Compiler flag to generate thread-safe objects.
26644thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26645
26646# Library versioning type.
26647version_type=$version_type
26648
26649# Format of library name prefix.
26650libname_spec=$lt_libname_spec
26651
26652# List of archive names. First name is the real one, the rest are links.
26653# The last name is the one that the linker finds with -lNAME.
26654library_names_spec=$lt_library_names_spec
26655
26656# The coded name of the library, if different from the real name.
26657soname_spec=$lt_soname_spec
26658
26659# Commands used to build and install an old-style archive.
26660RANLIB=$lt_RANLIB
26661old_archive_cmds=$lt_old_archive_cmds_RC
26662old_postinstall_cmds=$lt_old_postinstall_cmds
26663old_postuninstall_cmds=$lt_old_postuninstall_cmds
26664
26665# Create an old-style archive from a shared archive.
26666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26667
26668# Create a temporary old-style archive to link instead of a shared archive.
26669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26670
26671# Commands used to build and install a shared archive.
26672archive_cmds=$lt_archive_cmds_RC
26673archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26674postinstall_cmds=$lt_postinstall_cmds
26675postuninstall_cmds=$lt_postuninstall_cmds
26676
26677# Commands used to build a loadable module (assumed same as above if empty)
26678module_cmds=$lt_module_cmds_RC
26679module_expsym_cmds=$lt_module_expsym_cmds_RC
26680
26681# Commands to strip libraries.
26682old_striplib=$lt_old_striplib
26683striplib=$lt_striplib
26684
26685# Dependencies to place before the objects being linked to create a
26686# shared library.
26687predep_objects=$lt_predep_objects_RC
26688
26689# Dependencies to place after the objects being linked to create a
26690# shared library.
26691postdep_objects=$lt_postdep_objects_RC
26692
26693# Dependencies to place before the objects being linked to create a
26694# shared library.
26695predeps=$lt_predeps_RC
26696
26697# Dependencies to place after the objects being linked to create a
26698# shared library.
26699postdeps=$lt_postdeps_RC
26700
26701# The library search path used internally by the compiler when linking
26702# a shared library.
26703compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26704
26705# Method to check whether dependent libraries are shared objects.
26706deplibs_check_method=$lt_deplibs_check_method
26707
26708# Command to use when deplibs_check_method == file_magic.
26709file_magic_cmd=$lt_file_magic_cmd
26710
26711# Flag that allows shared libraries with undefined symbols to be built.
26712allow_undefined_flag=$lt_allow_undefined_flag_RC
26713
26714# Flag that forces no undefined symbols.
26715no_undefined_flag=$lt_no_undefined_flag_RC
26716
26717# Commands used to finish a libtool library installation in a directory.
26718finish_cmds=$lt_finish_cmds
26719
26720# Same as above, but a single script fragment to be evaled but not shown.
26721finish_eval=$lt_finish_eval
26722
26723# Take the output of nm and produce a listing of raw symbols and C names.
26724global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26725
26726# Transform the output of nm in a proper C declaration
26727global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26728
26729# Transform the output of nm in a C name address pair
26730global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26731
26732# This is the shared library runtime path variable.
26733runpath_var=$runpath_var
26734
26735# This is the shared library path variable.
26736shlibpath_var=$shlibpath_var
26737
26738# Is shlibpath searched before the hard-coded library search path?
26739shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26740
26741# How to hardcode a shared library path into an executable.
26742hardcode_action=$hardcode_action_RC
26743
26744# Whether we should hardcode library paths into libraries.
26745hardcode_into_libs=$hardcode_into_libs
26746
26747# Flag to hardcode \$libdir into a binary during linking.
26748# This must work even if \$libdir does not exist.
26749hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26750
26751# If ld is used when linking, flag to hardcode \$libdir into
26752# a binary during linking. This must work even if \$libdir does
26753# not exist.
26754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26755
26756# Whether we need a single -rpath flag with a separated argument.
26757hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26758
26759# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26760# resulting binary.
26761hardcode_direct=$hardcode_direct_RC
26762
26763# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26764# resulting binary.
26765hardcode_minus_L=$hardcode_minus_L_RC
26766
26767# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26768# the resulting binary.
26769hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26770
26771# Set to yes if building a shared library automatically hardcodes DIR into the library
26772# and all subsequent libraries and executables linked against it.
26773hardcode_automatic=$hardcode_automatic_RC
26774
26775# Variables whose values should be saved in libtool wrapper scripts and
26776# restored at relink time.
26777variables_saved_for_relink="$variables_saved_for_relink"
26778
26779# Whether libtool must link a program against all its dependency libraries.
26780link_all_deplibs=$link_all_deplibs_RC
26781
26782# Compile-time system search path for libraries
26783sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26784
26785# Run-time system search path for libraries
26786sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26787
26788# Fix the shell variable \$srcfile for the compiler.
26789fix_srcfile_path="$fix_srcfile_path_RC"
26790
26791# Set to yes if exported symbols are required.
26792always_export_symbols=$always_export_symbols_RC
26793
26794# The commands to list exported symbols.
26795export_symbols_cmds=$lt_export_symbols_cmds_RC
26796
26797# The commands to extract the exported symbol list from a shared archive.
26798extract_expsyms_cmds=$lt_extract_expsyms_cmds
26799
26800# Symbols that should not be listed in the preloaded symbols.
26801exclude_expsyms=$lt_exclude_expsyms_RC
26802
26803# Symbols that must always be exported.
26804include_expsyms=$lt_include_expsyms_RC
26805
26806# ### END LIBTOOL TAG CONFIG: $tagname
26807
26808__EOF__
26809
26810
26811else
26812 # If there is no Makefile yet, we rely on a make rule to execute
26813 # `config.status --recheck' to rerun these tests and create the
26814 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26816 if test -f "$ltmain_in"; then
26817 test -f Makefile && make "$ltmain"
26818 fi
John Criswell47fdd832003-07-14 16:52:07 +000026819fi
26820
26821
26822ac_ext=c
26823ac_cpp='$CPP $CPPFLAGS'
26824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26826ac_compiler_gnu=$ac_cv_c_compiler_gnu
26827
26828CC="$lt_save_CC"
26829
26830 ;;
26831
26832 *)
26833 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26834echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26835 { (exit 1); exit 1; }; }
26836 ;;
26837 esac
26838
26839 # Append the new tag name to the list of available tags.
26840 if test -n "$tagname" ; then
26841 available_tags="$available_tags $tagname"
26842 fi
26843 fi
26844 done
26845 IFS="$lt_save_ifs"
26846
26847 # Now substitute the updated list of available tags.
26848 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26849 mv "${ofile}T" "$ofile"
26850 chmod +x "$ofile"
26851 else
26852 rm -f "${ofile}T"
26853 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26854echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26855 { (exit 1); exit 1; }; }
26856 fi
26857fi
John Criswell7a73b802003-06-30 21:59:07 +000026858
26859
26860
26861# This can be used to rebuild libtool when needed
26862LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26863
26864# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026865LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026866
26867# Prevent multiple expansion
26868
26869
26870
John Criswell47fdd832003-07-14 16:52:07 +000026871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026888
Reid Spencer582a23c2004-12-29 07:07:57 +000026889if test "$lt_cv_dlopen_self" = "yes" ; then
26890
26891cat >>confdefs.h <<\_ACEOF
26892#define CAN_DLOPEN_SELF 1
26893_ACEOF
26894
26895fi
26896
Reid Spencer7931a782004-12-27 06:15:02 +000026897if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026898 LLVMGCC="llvm-gcc${EXEEXT}"
26899 LLVMGXX="llvm-g++${EXEEXT}"
26900 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26901set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026904if test "${ac_cv_path_LLVMGCC+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26906else
26907 case $LLVMGCC in
26908 [\\/]* | ?:[\\/]*)
26909 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26910 ;;
26911 *)
26912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26913for as_dir in $PATH
26914do
26915 IFS=$as_save_IFS
26916 test -z "$as_dir" && as_dir=.
26917 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026918 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 +000026919 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26921 break 2
26922 fi
26923done
26924done
Reid Spencera773bd52006-08-04 18:18:08 +000026925IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026926
Reid Spencer59473af2004-12-25 07:31:29 +000026927 ;;
26928esac
26929fi
26930LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026931if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026932 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26933echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026934else
Reid Spencera773bd52006-08-04 18:18:08 +000026935 { echo "$as_me:$LINENO: result: no" >&5
26936echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026937fi
26938
Reid Spencera773bd52006-08-04 18:18:08 +000026939
Reid Spencerc84492c2005-06-02 22:34:49 +000026940 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26941set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026944if test "${ac_cv_path_LLVMGXX+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26946else
26947 case $LLVMGXX in
26948 [\\/]* | ?:[\\/]*)
26949 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26950 ;;
26951 *)
26952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26953for as_dir in $PATH
26954do
26955 IFS=$as_save_IFS
26956 test -z "$as_dir" && as_dir=.
26957 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026958 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 +000026959 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26961 break 2
26962 fi
26963done
26964done
Reid Spencera773bd52006-08-04 18:18:08 +000026965IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026966
Reid Spencer59473af2004-12-25 07:31:29 +000026967 ;;
26968esac
26969fi
26970LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026971if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026972 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26973echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026974else
Reid Spencera773bd52006-08-04 18:18:08 +000026975 { echo "$as_me:$LINENO: result: no" >&5
26976echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026977fi
26978
Reid Spencera773bd52006-08-04 18:18:08 +000026979
Reid Spencer59473af2004-12-25 07:31:29 +000026980else
Devang Patel5d28b882007-12-04 22:54:47 +000026981 if test -z "$LLVMGCC"; then
26982 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26983 fi
26984 if test -z "$LLVMGXX"; then
26985 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26986 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026987 LLVMGCC=$LLVMGCC
26988
26989 LLVMGXX=$LLVMGXX
26990
26991fi
26992
Reid Spencera773bd52006-08-04 18:18:08 +000026993{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26994echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026995
Reid Spencer86901802004-12-08 23:07:27 +000026996ICC=no
26997IXX=no
26998case $CC in
26999 icc*|icpc*)
27000 ICC=yes
27001 IXX=yes
27002 ;;
27003 *)
27004 ;;
27005esac
27006
Duraid Madina937c60a2006-02-15 07:57:42 +000027007if test "$GCC" != "yes" && test "$ICC" != "yes"
27008then
27009 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27010echo "$as_me: error: gcc|icc required but not found" >&2;}
27011 { (exit 1); exit 1; }; }
27012fi
27013
27014if test "$GXX" != "yes" && test "$IXX" != "yes"
27015then
27016 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27017echo "$as_me: error: g++|icc required but not found" >&2;}
27018 { (exit 1); exit 1; }; }
27019fi
27020
Reid Spencer86901802004-12-08 23:07:27 +000027021if test "$GCC" = "yes"
27022then
Chris Lattner399c7c72008-02-05 19:43:53 +000027023 cat >conftest.$ac_ext <<_ACEOF
27024#if !defined(__GNUC__) || __GNUC__ < 3
27025#error Unsupported GCC version
27026#endif
27027
27028_ACEOF
27029rm -f conftest.$ac_objext
27030if { (ac_try="$ac_compile"
27031case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27034esac
27035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_compile") 2>conftest.er1
27037 ac_status=$?
27038 grep -v '^ *+' conftest.er1 >conftest.err
27039 rm -f conftest.er1
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
27043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27044 { (case "(($ac_try" in
27045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27046 *) ac_try_echo=$ac_try;;
27047esac
27048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27049 (eval "$ac_try") 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; } &&
27053 { ac_try='test -s conftest.$ac_objext'
27054 { (case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27057esac
27058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_try") 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 :
27064else
27065 echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027069echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27070 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027071fi
27072
27073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027074fi
27075
27076if test -z "$llvm_cv_gnu_make_command"
27077then
27078 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27079echo "$as_me: error: GNU Make required but not found" >&2;}
27080 { (exit 1); exit 1; }; }
27081fi
27082
Reid Spencera773bd52006-08-04 18:18:08 +000027083{ echo "$as_me:$LINENO: result: ok" >&5
27084echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027085
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027086
John Criswell7a73b802003-06-30 21:59:07 +000027087
Reid Spencera773bd52006-08-04 18:18:08 +000027088{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27089echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027090if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27092else
27093 ac_check_lib_save_LIBS=$LIBS
27094LIBS="-lelf $LIBS"
27095cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027096/* confdefs.h. */
27097_ACEOF
27098cat confdefs.h >>conftest.$ac_ext
27099cat >>conftest.$ac_ext <<_ACEOF
27100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027101
Reid Spencera773bd52006-08-04 18:18:08 +000027102/* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027105#ifdef __cplusplus
27106extern "C"
27107#endif
John Criswell7a73b802003-06-30 21:59:07 +000027108char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027109int
27110main ()
27111{
Reid Spencera773bd52006-08-04 18:18:08 +000027112return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027118if { (ac_try="$ac_link"
27119case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027125 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27135esac
27136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27145esac
27146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027151 ac_cv_lib_elf_elf_begin=yes
27152else
27153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027154sed 's/^/| /' conftest.$ac_ext >&5
27155
Reid Spencera773bd52006-08-04 18:18:08 +000027156 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027157fi
Reid Spencera773bd52006-08-04 18:18:08 +000027158
Tanya Lattnercf067672008-01-17 05:57:22 +000027159rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027160 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027161LIBS=$ac_check_lib_save_LIBS
27162fi
Reid Spencera773bd52006-08-04 18:18:08 +000027163{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27164echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027165if test $ac_cv_lib_elf_elf_begin = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167#define HAVE_LIBELF 1
27168_ACEOF
27169
27170 LIBS="-lelf $LIBS"
27171
27172fi
27173
27174
Reid Spencera773bd52006-08-04 18:18:08 +000027175{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27176echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027177if test "${ac_cv_lib_m_sin+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180 ac_check_lib_save_LIBS=$LIBS
27181LIBS="-lm $LIBS"
27182cat >conftest.$ac_ext <<_ACEOF
27183/* confdefs.h. */
27184_ACEOF
27185cat confdefs.h >>conftest.$ac_ext
27186cat >>conftest.$ac_ext <<_ACEOF
27187/* end confdefs.h. */
27188
Reid Spencera773bd52006-08-04 18:18:08 +000027189/* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027192#ifdef __cplusplus
27193extern "C"
27194#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027195char sin ();
27196int
27197main ()
27198{
Reid Spencera773bd52006-08-04 18:18:08 +000027199return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027200 ;
27201 return 0;
27202}
27203_ACEOF
27204rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027205if { (ac_try="$ac_link"
27206case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27209esac
27210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027212 ac_status=$?
27213 grep -v '^ *+' conftest.er1 >conftest.err
27214 rm -f conftest.er1
27215 cat conftest.err >&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027217 (exit $ac_status); } &&
27218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27219 { (case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27222esac
27223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_try") 2>&5
27225 ac_status=$?
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; } &&
27228 { ac_try='test -s conftest$ac_exeext'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232esac
27233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027238 ac_cv_lib_m_sin=yes
27239else
27240 echo "$as_me: failed program was:" >&5
27241sed 's/^/| /' conftest.$ac_ext >&5
27242
Reid Spencera773bd52006-08-04 18:18:08 +000027243 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027244fi
Reid Spencera773bd52006-08-04 18:18:08 +000027245
Tanya Lattnercf067672008-01-17 05:57:22 +000027246rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027247 conftest$ac_exeext conftest.$ac_ext
27248LIBS=$ac_check_lib_save_LIBS
27249fi
Reid Spencera773bd52006-08-04 18:18:08 +000027250{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27251echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027252if test $ac_cv_lib_m_sin = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254#define HAVE_LIBM 1
27255_ACEOF
27256
27257 LIBS="-lm $LIBS"
27258
27259fi
27260
Jeff Cohen28783c32007-01-12 18:22:38 +000027261if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027262
Reid Spencera773bd52006-08-04 18:18:08 +000027263{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27264echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027265if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267else
27268 ac_check_lib_save_LIBS=$LIBS
27269LIBS="-limagehlp $LIBS"
27270cat >conftest.$ac_ext <<_ACEOF
27271/* confdefs.h. */
27272_ACEOF
27273cat confdefs.h >>conftest.$ac_ext
27274cat >>conftest.$ac_ext <<_ACEOF
27275/* end confdefs.h. */
27276
Reid Spencer48fdf912006-06-01 19:03:21 +000027277
Reid Spencer484fc8e2006-06-01 16:55:59 +000027278int
27279main ()
27280{
Reid Spencera773bd52006-08-04 18:18:08 +000027281return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027282 ;
27283 return 0;
27284}
27285_ACEOF
27286rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027287if { (ac_try="$ac_link"
27288case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291esac
27292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027294 ac_status=$?
27295 grep -v '^ *+' conftest.er1 >conftest.err
27296 rm -f conftest.er1
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27301 { (case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304esac
27305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_try") 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest$ac_exeext'
27311 { (case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27314esac
27315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_try") 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027320 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027321else
27322 echo "$as_me: failed program was:" >&5
27323sed 's/^/| /' conftest.$ac_ext >&5
27324
Reid Spencera773bd52006-08-04 18:18:08 +000027325 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027326fi
Reid Spencera773bd52006-08-04 18:18:08 +000027327
Tanya Lattnercf067672008-01-17 05:57:22 +000027328rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027329 conftest$ac_exeext conftest.$ac_ext
27330LIBS=$ac_check_lib_save_LIBS
27331fi
Reid Spencera773bd52006-08-04 18:18:08 +000027332{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27333echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027334if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027335 cat >>confdefs.h <<_ACEOF
27336#define HAVE_LIBIMAGEHLP 1
27337_ACEOF
27338
27339 LIBS="-limagehlp $LIBS"
27340
27341fi
27342
27343
Reid Spencera773bd52006-08-04 18:18:08 +000027344{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27345echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027346if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348else
27349 ac_check_lib_save_LIBS=$LIBS
27350LIBS="-lpsapi $LIBS"
27351cat >conftest.$ac_ext <<_ACEOF
27352/* confdefs.h. */
27353_ACEOF
27354cat confdefs.h >>conftest.$ac_ext
27355cat >>conftest.$ac_ext <<_ACEOF
27356/* end confdefs.h. */
27357
Reid Spencer48fdf912006-06-01 19:03:21 +000027358
Reid Spencer484fc8e2006-06-01 16:55:59 +000027359int
27360main ()
27361{
Reid Spencera773bd52006-08-04 18:18:08 +000027362return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027363 ;
27364 return 0;
27365}
27366_ACEOF
27367rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027368if { (ac_try="$ac_link"
27369case "(($ac_try" in
27370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27372esac
27373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027375 ac_status=$?
27376 grep -v '^ *+' conftest.er1 >conftest.err
27377 rm -f conftest.er1
27378 cat conftest.err >&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027380 (exit $ac_status); } &&
27381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385esac
27386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; } &&
27391 { ac_try='test -s conftest$ac_exeext'
27392 { (case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27395esac
27396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_try") 2>&5
27398 ac_status=$?
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027401 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027402else
27403 echo "$as_me: failed program was:" >&5
27404sed 's/^/| /' conftest.$ac_ext >&5
27405
Reid Spencera773bd52006-08-04 18:18:08 +000027406 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027407fi
Reid Spencera773bd52006-08-04 18:18:08 +000027408
Tanya Lattnercf067672008-01-17 05:57:22 +000027409rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027410 conftest$ac_exeext conftest.$ac_ext
27411LIBS=$ac_check_lib_save_LIBS
27412fi
Reid Spencera773bd52006-08-04 18:18:08 +000027413{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27414echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027415if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027416 cat >>confdefs.h <<_ACEOF
27417#define HAVE_LIBPSAPI 1
27418_ACEOF
27419
27420 LIBS="-lpsapi $LIBS"
27421
27422fi
27423
27424fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027425
Reid Spencera773bd52006-08-04 18:18:08 +000027426{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27427echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027428if test "${ac_cv_search_dlopen+set}" = set; then
27429 echo $ECHO_N "(cached) $ECHO_C" >&6
27430else
27431 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027432cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027433/* confdefs.h. */
27434_ACEOF
27435cat confdefs.h >>conftest.$ac_ext
27436cat >>conftest.$ac_ext <<_ACEOF
27437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027438
Reid Spencera773bd52006-08-04 18:18:08 +000027439/* Override any GCC internal prototype to avoid an error.
27440 Use char because int might match the return type of a GCC
27441 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027442#ifdef __cplusplus
27443extern "C"
27444#endif
John Criswell7a73b802003-06-30 21:59:07 +000027445char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027446int
27447main ()
27448{
Reid Spencera773bd52006-08-04 18:18:08 +000027449return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027450 ;
27451 return 0;
27452}
27453_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027454for ac_lib in '' dl; do
27455 if test -z "$ac_lib"; then
27456 ac_res="none required"
27457 else
27458 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027460 fi
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462if { (ac_try="$ac_link"
27463case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466esac
27467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027470 grep -v '^ *+' conftest.er1 >conftest.err
27471 rm -f conftest.er1
27472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027474 (exit $ac_status); } &&
27475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27476 { (case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27479esac
27480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; } &&
27485 { ac_try='test -s conftest$ac_exeext'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27489esac
27490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027495 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027496else
27497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027498sed 's/^/| /' conftest.$ac_ext >&5
27499
Reid Spencera773bd52006-08-04 18:18:08 +000027500
John Criswell7a73b802003-06-30 21:59:07 +000027501fi
Reid Spencera773bd52006-08-04 18:18:08 +000027502
Tanya Lattnercf067672008-01-17 05:57:22 +000027503rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027504 conftest$ac_exeext
27505 if test "${ac_cv_search_dlopen+set}" = set; then
27506 break
John Criswell7a73b802003-06-30 21:59:07 +000027507fi
Reid Spencera773bd52006-08-04 18:18:08 +000027508done
27509if test "${ac_cv_search_dlopen+set}" = set; then
27510 :
27511else
27512 ac_cv_search_dlopen=no
27513fi
27514rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027515LIBS=$ac_func_search_save_LIBS
27516fi
Reid Spencera773bd52006-08-04 18:18:08 +000027517{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27518echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27519ac_res=$ac_cv_search_dlopen
27520if test "$ac_res" != no; then
27521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027522
27523cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027524#define HAVE_DLOPEN 1
27525_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027526
27527else
Brian Gaekec45be042003-10-07 06:01:34 +000027528 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27529echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027530fi
27531
27532
Reid Spencera773bd52006-08-04 18:18:08 +000027533{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27534echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027535if test "${ac_cv_search_mallinfo+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27537else
27538 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027539cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027545
Reid Spencera773bd52006-08-04 18:18:08 +000027546/* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027549#ifdef __cplusplus
27550extern "C"
27551#endif
John Criswell7a73b802003-06-30 21:59:07 +000027552char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027553int
27554main ()
27555{
Reid Spencera773bd52006-08-04 18:18:08 +000027556return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027557 ;
27558 return 0;
27559}
27560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027561for ac_lib in '' malloc; do
27562 if test -z "$ac_lib"; then
27563 ac_res="none required"
27564 else
27565 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027567 fi
27568 rm -f conftest.$ac_objext conftest$ac_exeext
27569if { (ac_try="$ac_link"
27570case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573esac
27574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27586esac
27587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27596esac
27597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027602 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027603else
27604 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027605sed 's/^/| /' conftest.$ac_ext >&5
27606
Reid Spencera773bd52006-08-04 18:18:08 +000027607
John Criswell7a73b802003-06-30 21:59:07 +000027608fi
Reid Spencera773bd52006-08-04 18:18:08 +000027609
Tanya Lattnercf067672008-01-17 05:57:22 +000027610rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027611 conftest$ac_exeext
27612 if test "${ac_cv_search_mallinfo+set}" = set; then
27613 break
John Criswell7a73b802003-06-30 21:59:07 +000027614fi
Reid Spencera773bd52006-08-04 18:18:08 +000027615done
27616if test "${ac_cv_search_mallinfo+set}" = set; then
27617 :
27618else
27619 ac_cv_search_mallinfo=no
27620fi
27621rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027622LIBS=$ac_func_search_save_LIBS
27623fi
Reid Spencera773bd52006-08-04 18:18:08 +000027624{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27625echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27626ac_res=$ac_cv_search_mallinfo
27627if test "$ac_res" != no; then
27628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027629
27630cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027631#define HAVE_MALLINFO 1
27632_ACEOF
27633
27634fi
27635
27636
Reid Spencer0a262ba2005-08-24 10:07:20 +000027637if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027638
Reid Spencera773bd52006-08-04 18:18:08 +000027639{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27640echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027641if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27643else
27644 ac_check_lib_save_LIBS=$LIBS
27645LIBS="-lpthread $LIBS"
27646cat >conftest.$ac_ext <<_ACEOF
27647/* confdefs.h. */
27648_ACEOF
27649cat confdefs.h >>conftest.$ac_ext
27650cat >>conftest.$ac_ext <<_ACEOF
27651/* end confdefs.h. */
27652
Reid Spencera773bd52006-08-04 18:18:08 +000027653/* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027656#ifdef __cplusplus
27657extern "C"
27658#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027659char pthread_mutex_init ();
27660int
27661main ()
27662{
Reid Spencera773bd52006-08-04 18:18:08 +000027663return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027664 ;
27665 return 0;
27666}
27667_ACEOF
27668rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027669if { (ac_try="$ac_link"
27670case "(($ac_try" in
27671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27673esac
27674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027676 ac_status=$?
27677 grep -v '^ *+' conftest.er1 >conftest.err
27678 rm -f conftest.er1
27679 cat conftest.err >&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027681 (exit $ac_status); } &&
27682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27683 { (case "(($ac_try" in
27684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27686esac
27687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688 (eval "$ac_try") 2>&5
27689 ac_status=$?
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest$ac_exeext'
27693 { (case "(($ac_try" in
27694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27695 *) ac_try_echo=$ac_try;;
27696esac
27697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27698 (eval "$ac_try") 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027702 ac_cv_lib_pthread_pthread_mutex_init=yes
27703else
27704 echo "$as_me: failed program was:" >&5
27705sed 's/^/| /' conftest.$ac_ext >&5
27706
Reid Spencera773bd52006-08-04 18:18:08 +000027707 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027708fi
Reid Spencera773bd52006-08-04 18:18:08 +000027709
Tanya Lattnercf067672008-01-17 05:57:22 +000027710rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027711 conftest$ac_exeext conftest.$ac_ext
27712LIBS=$ac_check_lib_save_LIBS
27713fi
Reid Spencera773bd52006-08-04 18:18:08 +000027714{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27715echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027716if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27717 cat >>confdefs.h <<_ACEOF
27718#define HAVE_LIBPTHREAD 1
27719_ACEOF
27720
27721 LIBS="-lpthread $LIBS"
27722
27723fi
27724
Reid Spencera773bd52006-08-04 18:18:08 +000027725 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27726echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027727if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27729else
27730 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027731cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027732/* confdefs.h. */
27733_ACEOF
27734cat confdefs.h >>conftest.$ac_ext
27735cat >>conftest.$ac_ext <<_ACEOF
27736/* end confdefs.h. */
27737
Reid Spencera773bd52006-08-04 18:18:08 +000027738/* Override any GCC internal prototype to avoid an error.
27739 Use char because int might match the return type of a GCC
27740 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027741#ifdef __cplusplus
27742extern "C"
27743#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027744char pthread_mutex_lock ();
27745int
27746main ()
27747{
Reid Spencera773bd52006-08-04 18:18:08 +000027748return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027749 ;
27750 return 0;
27751}
27752_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027753for ac_lib in '' pthread; do
27754 if test -z "$ac_lib"; then
27755 ac_res="none required"
27756 else
27757 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027759 fi
27760 rm -f conftest.$ac_objext conftest$ac_exeext
27761if { (ac_try="$ac_link"
27762case "(($ac_try" in
27763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27765esac
27766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027769 grep -v '^ *+' conftest.er1 >conftest.err
27770 rm -f conftest.er1
27771 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027773 (exit $ac_status); } &&
27774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27778esac
27779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; } &&
27784 { ac_try='test -s conftest$ac_exeext'
27785 { (case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27788esac
27789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_try") 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027794 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027795else
27796 echo "$as_me: failed program was:" >&5
27797sed 's/^/| /' conftest.$ac_ext >&5
27798
Reid Spencera773bd52006-08-04 18:18:08 +000027799
Brian Gaeke5f268f72003-12-05 19:29:01 +000027800fi
Reid Spencera773bd52006-08-04 18:18:08 +000027801
Tanya Lattnercf067672008-01-17 05:57:22 +000027802rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027803 conftest$ac_exeext
27804 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27805 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027806fi
Reid Spencera773bd52006-08-04 18:18:08 +000027807done
27808if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27809 :
27810else
27811 ac_cv_search_pthread_mutex_lock=no
27812fi
27813rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027814LIBS=$ac_func_search_save_LIBS
27815fi
Reid Spencera773bd52006-08-04 18:18:08 +000027816{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27817echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27818ac_res=$ac_cv_search_pthread_mutex_lock
27819if test "$ac_res" != no; then
27820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027821
John Criswell40468462004-09-24 21:19:06 +000027822cat >>confdefs.h <<\_ACEOF
27823#define HAVE_PTHREAD_MUTEX_LOCK 1
27824_ACEOF
27825
27826fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027827
Reid Spencer0a262ba2005-08-24 10:07:20 +000027828fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027829
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027830
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027831# Check whether --with-udis86 was given.
27832if test "${with_udis86+set}" = set; then
27833 withval=$with_udis86;
27834 USE_UDIS86=1
27835
27836 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027837 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027838 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27839 esac
27840
27841{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27842echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27843if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845else
27846 ac_check_lib_save_LIBS=$LIBS
27847LIBS="-ludis86 $LIBS"
27848cat >conftest.$ac_ext <<_ACEOF
27849/* confdefs.h. */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h. */
27854
27855/* Override any GCC internal prototype to avoid an error.
27856 Use char because int might match the return type of a GCC
27857 builtin and then its argument prototype would still apply. */
27858#ifdef __cplusplus
27859extern "C"
27860#endif
27861char ud_init ();
27862int
27863main ()
27864{
27865return ud_init ();
27866 ;
27867 return 0;
27868}
27869_ACEOF
27870rm -f conftest.$ac_objext conftest$ac_exeext
27871if { (ac_try="$ac_link"
27872case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27875esac
27876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_link") 2>conftest.er1
27878 ac_status=$?
27879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885 { (case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27888esac
27889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_try") 2>&5
27891 ac_status=$?
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest$ac_exeext'
27895 { (case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898esac
27899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_try") 2>&5
27901 ac_status=$?
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027904 ac_cv_lib_udis86_ud_init=yes
27905else
27906 echo "$as_me: failed program was:" >&5
27907sed 's/^/| /' conftest.$ac_ext >&5
27908
27909 ac_cv_lib_udis86_ud_init=no
27910fi
27911
Tanya Lattnercf067672008-01-17 05:57:22 +000027912rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027913 conftest$ac_exeext conftest.$ac_ext
27914LIBS=$ac_check_lib_save_LIBS
27915fi
27916{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27917echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27918if test $ac_cv_lib_udis86_ud_init = yes; then
27919 cat >>confdefs.h <<_ACEOF
27920#define HAVE_LIBUDIS86 1
27921_ACEOF
27922
27923 LIBS="-ludis86 $LIBS"
27924
27925else
27926
27927 echo "Error! You need to have libudis86 around."
27928 exit -1
27929
27930fi
27931
27932
27933else
27934 USE_UDIS86=0
27935
27936fi
27937
27938
27939cat >>confdefs.h <<_ACEOF
27940#define USE_UDIS86 $USE_UDIS86
27941_ACEOF
27942
27943
27944
Reid Spencer59473af2004-12-25 07:31:29 +000027945
27946
27947
27948
27949
27950ac_header_dirent=no
27951for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27952 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027953{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27954echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957else
27958 cat >conftest.$ac_ext <<_ACEOF
27959/* confdefs.h. */
27960_ACEOF
27961cat confdefs.h >>conftest.$ac_ext
27962cat >>conftest.$ac_ext <<_ACEOF
27963/* end confdefs.h. */
27964#include <sys/types.h>
27965#include <$ac_hdr>
27966
27967int
27968main ()
27969{
27970if ((DIR *) 0)
27971return 0;
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027977if { (ac_try="$ac_compile"
27978case "(($ac_try" in
27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27981esac
27982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027984 ac_status=$?
27985 grep -v '^ *+' conftest.er1 >conftest.err
27986 rm -f conftest.er1
27987 cat conftest.err >&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027989 (exit $ac_status); } &&
27990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994esac
27995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; } &&
28000 { ac_try='test -s conftest.$ac_objext'
28001 { (case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28004esac
28005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_try") 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028010 eval "$as_ac_Header=yes"
28011else
28012 echo "$as_me: failed program was:" >&5
28013sed 's/^/| /' conftest.$ac_ext >&5
28014
Reid Spencera773bd52006-08-04 18:18:08 +000028015 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028016fi
Reid Spencera773bd52006-08-04 18:18:08 +000028017
28018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028019fi
Reid Spencera773bd52006-08-04 18:18:08 +000028020ac_res=`eval echo '${'$as_ac_Header'}'`
28021 { echo "$as_me:$LINENO: result: $ac_res" >&5
28022echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028023if test `eval echo '${'$as_ac_Header'}'` = yes; then
28024 cat >>confdefs.h <<_ACEOF
28025#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28026_ACEOF
28027
28028ac_header_dirent=$ac_hdr; break
28029fi
28030
28031done
28032# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28033if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028034 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28035echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028036if test "${ac_cv_search_opendir+set}" = set; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28038else
28039 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028040cat >conftest.$ac_ext <<_ACEOF
28041/* confdefs.h. */
28042_ACEOF
28043cat confdefs.h >>conftest.$ac_ext
28044cat >>conftest.$ac_ext <<_ACEOF
28045/* end confdefs.h. */
28046
Reid Spencera773bd52006-08-04 18:18:08 +000028047/* Override any GCC internal prototype to avoid an error.
28048 Use char because int might match the return type of a GCC
28049 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028050#ifdef __cplusplus
28051extern "C"
28052#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028053char opendir ();
28054int
28055main ()
28056{
Reid Spencera773bd52006-08-04 18:18:08 +000028057return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028058 ;
28059 return 0;
28060}
28061_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028062for ac_lib in '' dir; do
28063 if test -z "$ac_lib"; then
28064 ac_res="none required"
28065 else
28066 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028068 fi
28069 rm -f conftest.$ac_objext conftest$ac_exeext
28070if { (ac_try="$ac_link"
28071case "(($ac_try" in
28072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073 *) ac_try_echo=$ac_try;;
28074esac
28075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028077 ac_status=$?
28078 grep -v '^ *+' conftest.er1 >conftest.err
28079 rm -f conftest.er1
28080 cat conftest.err >&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028082 (exit $ac_status); } &&
28083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28084 { (case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28087esac
28088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_try") 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; } &&
28093 { ac_try='test -s conftest$ac_exeext'
28094 { (case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28097esac
28098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_try") 2>&5
28100 ac_status=$?
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028103 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028104else
28105 echo "$as_me: failed program was:" >&5
28106sed 's/^/| /' conftest.$ac_ext >&5
28107
Reid Spencera773bd52006-08-04 18:18:08 +000028108
Reid Spencer59473af2004-12-25 07:31:29 +000028109fi
Reid Spencera773bd52006-08-04 18:18:08 +000028110
Tanya Lattnercf067672008-01-17 05:57:22 +000028111rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028112 conftest$ac_exeext
28113 if test "${ac_cv_search_opendir+set}" = set; then
28114 break
Reid Spencer59473af2004-12-25 07:31:29 +000028115fi
Reid Spencera773bd52006-08-04 18:18:08 +000028116done
28117if test "${ac_cv_search_opendir+set}" = set; then
28118 :
28119else
28120 ac_cv_search_opendir=no
28121fi
28122rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028123LIBS=$ac_func_search_save_LIBS
28124fi
Reid Spencera773bd52006-08-04 18:18:08 +000028125{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28126echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28127ac_res=$ac_cv_search_opendir
28128if test "$ac_res" != no; then
28129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028130
28131fi
28132
28133else
Reid Spencera773bd52006-08-04 18:18:08 +000028134 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28135echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028136if test "${ac_cv_search_opendir+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28138else
28139 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028140cat >conftest.$ac_ext <<_ACEOF
28141/* confdefs.h. */
28142_ACEOF
28143cat confdefs.h >>conftest.$ac_ext
28144cat >>conftest.$ac_ext <<_ACEOF
28145/* end confdefs.h. */
28146
Reid Spencera773bd52006-08-04 18:18:08 +000028147/* Override any GCC internal prototype to avoid an error.
28148 Use char because int might match the return type of a GCC
28149 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028150#ifdef __cplusplus
28151extern "C"
28152#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028153char opendir ();
28154int
28155main ()
28156{
Reid Spencera773bd52006-08-04 18:18:08 +000028157return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028158 ;
28159 return 0;
28160}
28161_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028162for ac_lib in '' x; do
28163 if test -z "$ac_lib"; then
28164 ac_res="none required"
28165 else
28166 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028168 fi
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170if { (ac_try="$ac_link"
28171case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197esac
28198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028203 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028204else
28205 echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
Reid Spencera773bd52006-08-04 18:18:08 +000028208
Reid Spencer59473af2004-12-25 07:31:29 +000028209fi
Reid Spencera773bd52006-08-04 18:18:08 +000028210
Tanya Lattnercf067672008-01-17 05:57:22 +000028211rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028212 conftest$ac_exeext
28213 if test "${ac_cv_search_opendir+set}" = set; then
28214 break
Reid Spencer59473af2004-12-25 07:31:29 +000028215fi
Reid Spencera773bd52006-08-04 18:18:08 +000028216done
28217if test "${ac_cv_search_opendir+set}" = set; then
28218 :
28219else
28220 ac_cv_search_opendir=no
28221fi
28222rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028223LIBS=$ac_func_search_save_LIBS
28224fi
Reid Spencera773bd52006-08-04 18:18:08 +000028225{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28226echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28227ac_res=$ac_cv_search_opendir
28228if test "$ac_res" != no; then
28229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028230
28231fi
28232
28233fi
28234
Reid Spencera773bd52006-08-04 18:18:08 +000028235{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28236echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028237if test "${ac_cv_header_mmap_anon+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239else
28240 ac_ext=c
28241ac_cpp='$CPP $CPPFLAGS'
28242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244ac_compiler_gnu=$ac_cv_c_compiler_gnu
28245
28246 cat >conftest.$ac_ext <<_ACEOF
28247/* confdefs.h. */
28248_ACEOF
28249cat confdefs.h >>conftest.$ac_ext
28250cat >>conftest.$ac_ext <<_ACEOF
28251/* end confdefs.h. */
28252#include <sys/mman.h>
28253#include <unistd.h>
28254#include <fcntl.h>
28255int
28256main ()
28257{
28258mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28259 ;
28260 return 0;
28261}
28262_ACEOF
28263rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028264if { (ac_try="$ac_compile"
28265case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28268esac
28269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028271 ac_status=$?
28272 grep -v '^ *+' conftest.er1 >conftest.err
28273 rm -f conftest.er1
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028276 (exit $ac_status); } &&
28277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28278 { (case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28281esac
28282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_try") 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest.$ac_objext'
28288 { (case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28291esac
28292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_try") 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028297 ac_cv_header_mmap_anon=yes
28298else
28299 echo "$as_me: failed program was:" >&5
28300sed 's/^/| /' conftest.$ac_ext >&5
28301
Reid Spencera773bd52006-08-04 18:18:08 +000028302 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028303fi
Reid Spencera773bd52006-08-04 18:18:08 +000028304
28305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028306 ac_ext=c
28307ac_cpp='$CPP $CPPFLAGS'
28308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28310ac_compiler_gnu=$ac_cv_c_compiler_gnu
28311
28312
28313fi
Reid Spencera773bd52006-08-04 18:18:08 +000028314{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28315echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028316if test "$ac_cv_header_mmap_anon" = yes; then
28317
28318cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028319#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028320_ACEOF
28321
28322fi
28323
Reid Spencera773bd52006-08-04 18:18:08 +000028324{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28325echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028326if test "${ac_cv_header_stat_broken+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328else
28329 cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h. */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h. */
28335#include <sys/types.h>
28336#include <sys/stat.h>
28337
Reid Spencera773bd52006-08-04 18:18:08 +000028338#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028339# if S_ISBLK (S_IFDIR)
28340You lose.
28341# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028342#endif
28343
Reid Spencera773bd52006-08-04 18:18:08 +000028344#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028345# if S_ISBLK (S_IFCHR)
28346You lose.
28347# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028348#endif
28349
Reid Spencera773bd52006-08-04 18:18:08 +000028350#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028351# if S_ISLNK (S_IFREG)
28352You lose.
28353# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028354#endif
28355
Reid Spencera773bd52006-08-04 18:18:08 +000028356#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028357# if S_ISSOCK (S_IFREG)
28358You lose.
28359# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028360#endif
28361
28362_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28364 $EGREP "You lose" >/dev/null 2>&1; then
28365 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028366else
Tanya Lattnercf067672008-01-17 05:57:22 +000028367 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028368fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028369rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028370
Reid Spencer59473af2004-12-25 07:31:29 +000028371fi
Reid Spencera773bd52006-08-04 18:18:08 +000028372{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28373echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028374if test $ac_cv_header_stat_broken = yes; then
28375
28376cat >>confdefs.h <<\_ACEOF
28377#define STAT_MACROS_BROKEN 1
28378_ACEOF
28379
28380fi
28381
Reid Spencera773bd52006-08-04 18:18:08 +000028382{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28383echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028384if test "${ac_cv_header_stdc+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386else
28387 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028388/* confdefs.h. */
28389_ACEOF
28390cat confdefs.h >>conftest.$ac_ext
28391cat >>conftest.$ac_ext <<_ACEOF
28392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028393#include <stdlib.h>
28394#include <stdarg.h>
28395#include <string.h>
28396#include <float.h>
28397
John Criswell0c38eaf2003-09-10 15:17:25 +000028398int
28399main ()
28400{
28401
28402 ;
28403 return 0;
28404}
John Criswell7a73b802003-06-30 21:59:07 +000028405_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028406rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028407if { (ac_try="$ac_compile"
28408case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28411esac
28412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028415 grep -v '^ *+' conftest.er1 >conftest.err
28416 rm -f conftest.er1
28417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028419 (exit $ac_status); } &&
28420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28421 { (case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28424esac
28425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_try") 2>&5
28427 ac_status=$?
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; } &&
28430 { ac_try='test -s conftest.$ac_objext'
28431 { (case "(($ac_try" in
28432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28433 *) ac_try_echo=$ac_try;;
28434esac
28435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28436 (eval "$ac_try") 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028440 ac_cv_header_stdc=yes
28441else
28442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028443sed 's/^/| /' conftest.$ac_ext >&5
28444
Reid Spencera773bd52006-08-04 18:18:08 +000028445 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028446fi
Reid Spencera773bd52006-08-04 18:18:08 +000028447
28448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028449
28450if test $ac_cv_header_stdc = yes; then
28451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028453/* confdefs.h. */
28454_ACEOF
28455cat confdefs.h >>conftest.$ac_ext
28456cat >>conftest.$ac_ext <<_ACEOF
28457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028458#include <string.h>
28459
28460_ACEOF
28461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028462 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028463 :
28464else
28465 ac_cv_header_stdc=no
28466fi
28467rm -f conftest*
28468
28469fi
28470
28471if test $ac_cv_header_stdc = yes; then
28472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028474/* confdefs.h. */
28475_ACEOF
28476cat confdefs.h >>conftest.$ac_ext
28477cat >>conftest.$ac_ext <<_ACEOF
28478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028479#include <stdlib.h>
28480
28481_ACEOF
28482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028483 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028484 :
28485else
28486 ac_cv_header_stdc=no
28487fi
28488rm -f conftest*
28489
28490fi
28491
28492if test $ac_cv_header_stdc = yes; then
28493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28494 if test "$cross_compiling" = yes; then
28495 :
28496else
28497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028498/* confdefs.h. */
28499_ACEOF
28500cat confdefs.h >>conftest.$ac_ext
28501cat >>conftest.$ac_ext <<_ACEOF
28502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028503#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028504#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028505#if ((' ' & 0x0FF) == 0x020)
28506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28508#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028509# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028510 (('a' <= (c) && (c) <= 'i') \
28511 || ('j' <= (c) && (c) <= 'r') \
28512 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28514#endif
28515
28516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28517int
28518main ()
28519{
28520 int i;
28521 for (i = 0; i < 256; i++)
28522 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028523 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028524 return 2;
28525 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028526}
28527_ACEOF
28528rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028529if { (ac_try="$ac_link"
28530case "(($ac_try" in
28531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532 *) ac_try_echo=$ac_try;;
28533esac
28534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28535 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028539 { (case "(($ac_try" in
28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28542esac
28543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28548 :
28549else
28550 echo "$as_me: program exited with status $ac_status" >&5
28551echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028552sed 's/^/| /' conftest.$ac_ext >&5
28553
John Criswell7a73b802003-06-30 21:59:07 +000028554( exit $ac_status )
28555ac_cv_header_stdc=no
28556fi
Reid Spencera773bd52006-08-04 18:18:08 +000028557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28558fi
28559
28560
John Criswell7a73b802003-06-30 21:59:07 +000028561fi
28562fi
Reid Spencera773bd52006-08-04 18:18:08 +000028563{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28564echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028565if test $ac_cv_header_stdc = yes; then
28566
28567cat >>confdefs.h <<\_ACEOF
28568#define STDC_HEADERS 1
28569_ACEOF
28570
28571fi
28572
Reid Spencera773bd52006-08-04 18:18:08 +000028573{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28574echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028575if test "${ac_cv_header_sys_wait_h+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028579/* confdefs.h. */
28580_ACEOF
28581cat confdefs.h >>conftest.$ac_ext
28582cat >>conftest.$ac_ext <<_ACEOF
28583/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028584#include <sys/types.h>
28585#include <sys/wait.h>
28586#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028587# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028588#endif
28589#ifndef WIFEXITED
28590# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28591#endif
28592
John Criswell7a73b802003-06-30 21:59:07 +000028593int
28594main ()
28595{
28596 int s;
28597 wait (&s);
28598 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28599 ;
28600 return 0;
28601}
28602_ACEOF
28603rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028604if { (ac_try="$ac_compile"
28605case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028616 (exit $ac_status); } &&
28617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621esac
28622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623 (eval "$ac_try") 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest.$ac_objext'
28628 { (case "(($ac_try" in
28629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28630 *) ac_try_echo=$ac_try;;
28631esac
28632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28633 (eval "$ac_try") 2>&5
28634 ac_status=$?
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028637 ac_cv_header_sys_wait_h=yes
28638else
28639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028640sed 's/^/| /' conftest.$ac_ext >&5
28641
Reid Spencera773bd52006-08-04 18:18:08 +000028642 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028643fi
Reid Spencera773bd52006-08-04 18:18:08 +000028644
28645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028646fi
Reid Spencera773bd52006-08-04 18:18:08 +000028647{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28648echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028649if test $ac_cv_header_sys_wait_h = yes; then
28650
28651cat >>confdefs.h <<\_ACEOF
28652#define HAVE_SYS_WAIT_H 1
28653_ACEOF
28654
28655fi
28656
Reid Spencera773bd52006-08-04 18:18:08 +000028657{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28658echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028659if test "${ac_cv_header_time+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661else
28662 cat >conftest.$ac_ext <<_ACEOF
28663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028668#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028669#include <sys/time.h>
28670#include <time.h>
28671
28672int
28673main ()
28674{
28675if ((struct tm *) 0)
28676return 0;
28677 ;
28678 return 0;
28679}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028680_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028681rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028682if { (ac_try="$ac_compile"
28683case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28686esac
28687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028689 ac_status=$?
28690 grep -v '^ *+' conftest.er1 >conftest.err
28691 rm -f conftest.er1
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028694 (exit $ac_status); } &&
28695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28696 { (case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28699esac
28700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_try") 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try='test -s conftest.$ac_objext'
28706 { (case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709esac
28710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_try") 2>&5
28712 ac_status=$?
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028715 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028716else
28717 echo "$as_me: failed program was:" >&5
28718sed 's/^/| /' conftest.$ac_ext >&5
28719
Reid Spencera773bd52006-08-04 18:18:08 +000028720 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028721fi
Reid Spencera773bd52006-08-04 18:18:08 +000028722
28723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028724fi
Reid Spencera773bd52006-08-04 18:18:08 +000028725{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28726echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028727if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028728
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028729cat >>confdefs.h <<\_ACEOF
28730#define TIME_WITH_SYS_TIME 1
28731_ACEOF
28732
28733fi
28734
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028735
Reid Spencer59473af2004-12-25 07:31:29 +000028736
28737
28738
28739
28740
28741
28742for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28743do
28744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028749 echo $ECHO_N "(cached) $ECHO_C" >&6
28750fi
Reid Spencera773bd52006-08-04 18:18:08 +000028751ac_res=`eval echo '${'$as_ac_Header'}'`
28752 { echo "$as_me:$LINENO: result: $ac_res" >&5
28753echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028754else
28755 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028756{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028758cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028764$ac_includes_default
28765#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028766_ACEOF
28767rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028768if { (ac_try="$ac_compile"
28769case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28772esac
28773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028775 ac_status=$?
28776 grep -v '^ *+' conftest.er1 >conftest.err
28777 rm -f conftest.er1
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028780 (exit $ac_status); } &&
28781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28782 { (case "(($ac_try" in
28783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784 *) ac_try_echo=$ac_try;;
28785esac
28786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787 (eval "$ac_try") 2>&5
28788 ac_status=$?
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; } &&
28791 { ac_try='test -s conftest.$ac_objext'
28792 { (case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795esac
28796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_try") 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028801 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028802else
28803 echo "$as_me: failed program was:" >&5
28804sed 's/^/| /' conftest.$ac_ext >&5
28805
Reid Spencera773bd52006-08-04 18:18:08 +000028806 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028807fi
Reid Spencera773bd52006-08-04 18:18:08 +000028808
28809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28811echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028812
Reid Spencer59473af2004-12-25 07:31:29 +000028813# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028816cat >conftest.$ac_ext <<_ACEOF
28817/* confdefs.h. */
28818_ACEOF
28819cat confdefs.h >>conftest.$ac_ext
28820cat >>conftest.$ac_ext <<_ACEOF
28821/* end confdefs.h. */
28822#include <$ac_header>
28823_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028824if { (ac_try="$ac_cpp conftest.$ac_ext"
28825case "(($ac_try" in
28826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827 *) ac_try_echo=$ac_try;;
28828esac
28829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028831 ac_status=$?
28832 grep -v '^ *+' conftest.er1 >conftest.err
28833 rm -f conftest.er1
28834 cat conftest.err >&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028836 (exit $ac_status); } >/dev/null; then
28837 if test -s conftest.err; then
28838 ac_cpp_err=$ac_c_preproc_warn_flag
28839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28840 else
28841 ac_cpp_err=
28842 fi
28843else
28844 ac_cpp_err=yes
28845fi
28846if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028847 ac_header_preproc=yes
28848else
28849 echo "$as_me: failed program was:" >&5
28850sed 's/^/| /' conftest.$ac_ext >&5
28851
28852 ac_header_preproc=no
28853fi
Reid Spencera773bd52006-08-04 18:18:08 +000028854
Reid Spencer59473af2004-12-25 07:31:29 +000028855rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028858
28859# So? What about this header?
28860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28861 yes:no: )
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28866 ac_header_preproc=yes
28867 ;;
28868 no:yes:* )
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028881 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028882## ----------------------------------- ##
28883## Report this to llvmbugs@cs.uiuc.edu ##
28884## ----------------------------------- ##
28885_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028886 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028887 ;;
28888esac
Reid Spencera773bd52006-08-04 18:18:08 +000028889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028892 echo $ECHO_N "(cached) $ECHO_C" >&6
28893else
28894 eval "$as_ac_Header=\$ac_header_preproc"
28895fi
Reid Spencera773bd52006-08-04 18:18:08 +000028896ac_res=`eval echo '${'$as_ac_Header'}'`
28897 { echo "$as_me:$LINENO: result: $ac_res" >&5
28898echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028899
28900fi
Reid Spencer59473af2004-12-25 07:31:29 +000028901if test `eval echo '${'$as_ac_Header'}'` = yes; then
28902 cat >>confdefs.h <<_ACEOF
28903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028904_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028905
28906fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028907
Reid Spencer59473af2004-12-25 07:31:29 +000028908done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028909
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028910
28911
Reid Spencer59473af2004-12-25 07:31:29 +000028912
28913
28914
28915
Reid Spencercdb08a32006-06-05 16:11:07 +000028916for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028917do
28918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028923 echo $ECHO_N "(cached) $ECHO_C" >&6
28924fi
Reid Spencera773bd52006-08-04 18:18:08 +000028925ac_res=`eval echo '${'$as_ac_Header'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028928else
28929 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028930{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028932cat >conftest.$ac_ext <<_ACEOF
28933/* confdefs.h. */
28934_ACEOF
28935cat confdefs.h >>conftest.$ac_ext
28936cat >>conftest.$ac_ext <<_ACEOF
28937/* end confdefs.h. */
28938$ac_includes_default
28939#include <$ac_header>
28940_ACEOF
28941rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028942if { (ac_try="$ac_compile"
28943case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28946esac
28947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028949 ac_status=$?
28950 grep -v '^ *+' conftest.er1 >conftest.err
28951 rm -f conftest.er1
28952 cat conftest.err >&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028954 (exit $ac_status); } &&
28955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28956 { (case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28959esac
28960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_try") 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
28966 { (case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28969esac
28970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_try") 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028975 ac_header_compiler=yes
28976else
28977 echo "$as_me: failed program was:" >&5
28978sed 's/^/| /' conftest.$ac_ext >&5
28979
Reid Spencera773bd52006-08-04 18:18:08 +000028980 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028981fi
Reid Spencera773bd52006-08-04 18:18:08 +000028982
28983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28985echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028986
28987# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028988{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028990cat >conftest.$ac_ext <<_ACEOF
28991/* confdefs.h. */
28992_ACEOF
28993cat confdefs.h >>conftest.$ac_ext
28994cat >>conftest.$ac_ext <<_ACEOF
28995/* end confdefs.h. */
28996#include <$ac_header>
28997_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028998if { (ac_try="$ac_cpp conftest.$ac_ext"
28999case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29002esac
29003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014 else
29015 ac_cpp_err=
29016 fi
29017else
29018 ac_cpp_err=yes
29019fi
29020if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029021 ac_header_preproc=yes
29022else
29023 echo "$as_me: failed program was:" >&5
29024sed 's/^/| /' conftest.$ac_ext >&5
29025
29026 ac_header_preproc=no
29027fi
Reid Spencera773bd52006-08-04 18:18:08 +000029028
Reid Spencer59473af2004-12-25 07:31:29 +000029029rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29031echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029032
29033# So? What about this header?
29034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29035 yes:no: )
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29040 ac_header_preproc=yes
29041 ;;
29042 no:yes:* )
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029055 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029056## ----------------------------------- ##
29057## Report this to llvmbugs@cs.uiuc.edu ##
29058## ----------------------------------- ##
29059_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029060 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029061 ;;
29062esac
Reid Spencera773bd52006-08-04 18:18:08 +000029063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068 eval "$as_ac_Header=\$ac_header_preproc"
29069fi
Reid Spencera773bd52006-08-04 18:18:08 +000029070ac_res=`eval echo '${'$as_ac_Header'}'`
29071 { echo "$as_me:$LINENO: result: $ac_res" >&5
29072echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029073
29074fi
29075if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29078_ACEOF
29079
29080fi
29081
29082done
29083
29084
Reid Spencerbe3e4192007-08-17 05:45:26 +000029085for ac_header in windows.h
29086do
29087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29093fi
29094ac_res=`eval echo '${'$as_ac_Header'}'`
29095 { echo "$as_me:$LINENO: result: $ac_res" >&5
29096echo "${ECHO_T}$ac_res" >&6; }
29097else
29098 # Is the header compilable?
29099{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29101cat >conftest.$ac_ext <<_ACEOF
29102/* confdefs.h. */
29103_ACEOF
29104cat confdefs.h >>conftest.$ac_ext
29105cat >>conftest.$ac_ext <<_ACEOF
29106/* end confdefs.h. */
29107$ac_includes_default
29108#include <$ac_header>
29109_ACEOF
29110rm -f conftest.$ac_objext
29111if { (ac_try="$ac_compile"
29112case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29115esac
29116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_compile") 2>conftest.er1
29118 ac_status=$?
29119 grep -v '^ *+' conftest.er1 >conftest.err
29120 rm -f conftest.er1
29121 cat conftest.err >&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029123 (exit $ac_status); } &&
29124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29125 { (case "(($ac_try" in
29126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29128esac
29129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_try") 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } &&
29134 { ac_try='test -s conftest.$ac_objext'
29135 { (case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29138esac
29139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_try") 2>&5
29141 ac_status=$?
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029144 ac_header_compiler=yes
29145else
29146 echo "$as_me: failed program was:" >&5
29147sed 's/^/| /' conftest.$ac_ext >&5
29148
29149 ac_header_compiler=no
29150fi
29151
29152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29153{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29154echo "${ECHO_T}$ac_header_compiler" >&6; }
29155
29156# Is the header present?
29157{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29159cat >conftest.$ac_ext <<_ACEOF
29160/* confdefs.h. */
29161_ACEOF
29162cat confdefs.h >>conftest.$ac_ext
29163cat >>conftest.$ac_ext <<_ACEOF
29164/* end confdefs.h. */
29165#include <$ac_header>
29166_ACEOF
29167if { (ac_try="$ac_cpp conftest.$ac_ext"
29168case "(($ac_try" in
29169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29171esac
29172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29174 ac_status=$?
29175 grep -v '^ *+' conftest.er1 >conftest.err
29176 rm -f conftest.er1
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029179 (exit $ac_status); } >/dev/null; then
29180 if test -s conftest.err; then
29181 ac_cpp_err=$ac_c_preproc_warn_flag
29182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29183 else
29184 ac_cpp_err=
29185 fi
29186else
29187 ac_cpp_err=yes
29188fi
29189if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029190 ac_header_preproc=yes
29191else
29192 echo "$as_me: failed program was:" >&5
29193sed 's/^/| /' conftest.$ac_ext >&5
29194
29195 ac_header_preproc=no
29196fi
29197
29198rm -f conftest.err conftest.$ac_ext
29199{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29200echo "${ECHO_T}$ac_header_preproc" >&6; }
29201
29202# So? What about this header?
29203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29204 yes:no: )
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29209 ac_header_preproc=yes
29210 ;;
29211 no:yes:* )
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29219echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29224 ( cat <<\_ASBOX
29225## ----------------------------------- ##
29226## Report this to llvmbugs@cs.uiuc.edu ##
29227## ----------------------------------- ##
29228_ASBOX
29229 ) | sed "s/^/$as_me: WARNING: /" >&2
29230 ;;
29231esac
29232{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29236else
29237 eval "$as_ac_Header=\$ac_header_preproc"
29238fi
29239ac_res=`eval echo '${'$as_ac_Header'}'`
29240 { echo "$as_me:$LINENO: result: $ac_res" >&5
29241echo "${ECHO_T}$ac_res" >&6; }
29242
29243fi
29244if test `eval echo '${'$as_ac_Header'}'` = yes; then
29245 cat >>confdefs.h <<_ACEOF
29246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29247_ACEOF
29248
29249fi
29250
29251done
Reid Spencer59473af2004-12-25 07:31:29 +000029252
29253
29254
29255
Reid Spencerbe3e4192007-08-17 05:45:26 +000029256
29257for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029258do
29259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029264 echo $ECHO_N "(cached) $ECHO_C" >&6
29265fi
Reid Spencera773bd52006-08-04 18:18:08 +000029266ac_res=`eval echo '${'$as_ac_Header'}'`
29267 { echo "$as_me:$LINENO: result: $ac_res" >&5
29268echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029269else
29270 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029271{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029273cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029274/* confdefs.h. */
29275_ACEOF
29276cat confdefs.h >>conftest.$ac_ext
29277cat >>conftest.$ac_ext <<_ACEOF
29278/* end confdefs.h. */
29279$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029280#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029281_ACEOF
29282rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029283if { (ac_try="$ac_compile"
29284case "(($ac_try" in
29285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29286 *) ac_try_echo=$ac_try;;
29287esac
29288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029291 grep -v '^ *+' conftest.er1 >conftest.err
29292 rm -f conftest.er1
29293 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029295 (exit $ac_status); } &&
29296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29297 { (case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300esac
29301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_try") 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; } &&
29306 { ac_try='test -s conftest.$ac_objext'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29310esac
29311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029316 ac_header_compiler=yes
29317else
29318 echo "$as_me: failed program was:" >&5
29319sed 's/^/| /' conftest.$ac_ext >&5
29320
Reid Spencera773bd52006-08-04 18:18:08 +000029321 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029322fi
Reid Spencera773bd52006-08-04 18:18:08 +000029323
29324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29326echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029327
29328# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029329{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029331cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029337#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029338_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029339if { (ac_try="$ac_cpp conftest.$ac_ext"
29340case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29343esac
29344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029346 ac_status=$?
29347 grep -v '^ *+' conftest.er1 >conftest.err
29348 rm -f conftest.er1
29349 cat conftest.err >&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029351 (exit $ac_status); } >/dev/null; then
29352 if test -s conftest.err; then
29353 ac_cpp_err=$ac_c_preproc_warn_flag
29354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29355 else
29356 ac_cpp_err=
29357 fi
29358else
29359 ac_cpp_err=yes
29360fi
29361if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029362 ac_header_preproc=yes
29363else
29364 echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
29367 ac_header_preproc=no
29368fi
Reid Spencera773bd52006-08-04 18:18:08 +000029369
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029370rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029371{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29372echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029373
29374# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29376 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029381 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029382 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029383 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029396 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029397## ----------------------------------- ##
29398## Report this to llvmbugs@cs.uiuc.edu ##
29399## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029400_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029401 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029402 ;;
29403esac
Reid Spencera773bd52006-08-04 18:18:08 +000029404{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029407 echo $ECHO_N "(cached) $ECHO_C" >&6
29408else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029409 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029410fi
Reid Spencera773bd52006-08-04 18:18:08 +000029411ac_res=`eval echo '${'$as_ac_Header'}'`
29412 { echo "$as_me:$LINENO: result: $ac_res" >&5
29413echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029414
29415fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029416if test `eval echo '${'$as_ac_Header'}'` = yes; then
29417 cat >>confdefs.h <<_ACEOF
29418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029419_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029420
29421fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029422
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029423done
29424
John Criswell7ed43ad2004-07-19 16:12:29 +000029425
Reid Spencercdb08a32006-06-05 16:11:07 +000029426
Reid Spencera6d990a2006-09-14 06:17:21 +000029427
29428for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029429do
29430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029435 echo $ECHO_N "(cached) $ECHO_C" >&6
29436fi
Reid Spencera773bd52006-08-04 18:18:08 +000029437ac_res=`eval echo '${'$as_ac_Header'}'`
29438 { echo "$as_me:$LINENO: result: $ac_res" >&5
29439echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029440else
29441 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029444cat >conftest.$ac_ext <<_ACEOF
29445/* confdefs.h. */
29446_ACEOF
29447cat confdefs.h >>conftest.$ac_ext
29448cat >>conftest.$ac_ext <<_ACEOF
29449/* end confdefs.h. */
29450$ac_includes_default
29451#include <$ac_header>
29452_ACEOF
29453rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029454if { (ac_try="$ac_compile"
29455case "(($ac_try" in
29456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29457 *) ac_try_echo=$ac_try;;
29458esac
29459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29460 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029461 ac_status=$?
29462 grep -v '^ *+' conftest.er1 >conftest.err
29463 rm -f conftest.er1
29464 cat conftest.err >&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029466 (exit $ac_status); } &&
29467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29468 { (case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29471esac
29472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_try") 2>&5
29474 ac_status=$?
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; } &&
29477 { ac_try='test -s conftest.$ac_objext'
29478 { (case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29481esac
29482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029487 ac_header_compiler=yes
29488else
29489 echo "$as_me: failed program was:" >&5
29490sed 's/^/| /' conftest.$ac_ext >&5
29491
Reid Spencera773bd52006-08-04 18:18:08 +000029492 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029493fi
Reid Spencera773bd52006-08-04 18:18:08 +000029494
29495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29496{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29497echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029498
29499# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029500{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029502cat >conftest.$ac_ext <<_ACEOF
29503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
29508#include <$ac_header>
29509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029510if { (ac_try="$ac_cpp conftest.$ac_ext"
29511case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29514esac
29515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029517 ac_status=$?
29518 grep -v '^ *+' conftest.er1 >conftest.err
29519 rm -f conftest.er1
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029522 (exit $ac_status); } >/dev/null; then
29523 if test -s conftest.err; then
29524 ac_cpp_err=$ac_c_preproc_warn_flag
29525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29526 else
29527 ac_cpp_err=
29528 fi
29529else
29530 ac_cpp_err=yes
29531fi
29532if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029533 ac_header_preproc=yes
29534else
29535 echo "$as_me: failed program was:" >&5
29536sed 's/^/| /' conftest.$ac_ext >&5
29537
29538 ac_header_preproc=no
29539fi
Reid Spencera773bd52006-08-04 18:18:08 +000029540
Chris Lattner0b142592005-11-14 06:57:34 +000029541rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29543echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029544
29545# So? What about this header?
29546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29547 yes:no: )
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29552 ac_header_preproc=yes
29553 ;;
29554 no:yes:* )
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029567 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029568## ----------------------------------- ##
29569## Report this to llvmbugs@cs.uiuc.edu ##
29570## ----------------------------------- ##
29571_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029572 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029573 ;;
29574esac
Reid Spencera773bd52006-08-04 18:18:08 +000029575{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029578 echo $ECHO_N "(cached) $ECHO_C" >&6
29579else
29580 eval "$as_ac_Header=\$ac_header_preproc"
29581fi
Reid Spencera773bd52006-08-04 18:18:08 +000029582ac_res=`eval echo '${'$as_ac_Header'}'`
29583 { echo "$as_me:$LINENO: result: $ac_res" >&5
29584echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029585
29586fi
29587if test `eval echo '${'$as_ac_Header'}'` = yes; then
29588 cat >>confdefs.h <<_ACEOF
29589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29590_ACEOF
29591
29592fi
29593
29594done
29595
Reid Spencer0a262ba2005-08-24 10:07:20 +000029596if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029597
29598for ac_header in pthread.h
29599do
29600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029605 echo $ECHO_N "(cached) $ECHO_C" >&6
29606fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029607ac_res=`eval echo '${'$as_ac_Header'}'`
29608 { echo "$as_me:$LINENO: result: $ac_res" >&5
29609echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029610else
29611 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029614cat >conftest.$ac_ext <<_ACEOF
29615/* confdefs.h. */
29616_ACEOF
29617cat confdefs.h >>conftest.$ac_ext
29618cat >>conftest.$ac_ext <<_ACEOF
29619/* end confdefs.h. */
29620$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029621#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029622_ACEOF
29623rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029624if { (ac_try="$ac_compile"
29625case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29628esac
29629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029631 ac_status=$?
29632 grep -v '^ *+' conftest.er1 >conftest.err
29633 rm -f conftest.er1
29634 cat conftest.err >&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029636 (exit $ac_status); } &&
29637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29638 { (case "(($ac_try" in
29639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640 *) ac_try_echo=$ac_try;;
29641esac
29642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643 (eval "$ac_try") 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; } &&
29647 { ac_try='test -s conftest.$ac_objext'
29648 { (case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29651esac
29652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_try") 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029657 ac_header_compiler=yes
29658else
29659 echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
Reid Spencera773bd52006-08-04 18:18:08 +000029662 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029663fi
Reid Spencera773bd52006-08-04 18:18:08 +000029664
29665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29667echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029668
29669# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029672cat >conftest.$ac_ext <<_ACEOF
29673/* confdefs.h. */
29674_ACEOF
29675cat confdefs.h >>conftest.$ac_ext
29676cat >>conftest.$ac_ext <<_ACEOF
29677/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029678#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029680if { (ac_try="$ac_cpp conftest.$ac_ext"
29681case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29684esac
29685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029692 (exit $ac_status); } >/dev/null; then
29693 if test -s conftest.err; then
29694 ac_cpp_err=$ac_c_preproc_warn_flag
29695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29696 else
29697 ac_cpp_err=
29698 fi
29699else
29700 ac_cpp_err=yes
29701fi
29702if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029703 ac_header_preproc=yes
29704else
29705 echo "$as_me: failed program was:" >&5
29706sed 's/^/| /' conftest.$ac_ext >&5
29707
29708 ac_header_preproc=no
29709fi
Reid Spencera773bd52006-08-04 18:18:08 +000029710
Reid Spencer0a262ba2005-08-24 10:07:20 +000029711rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29713echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029714
29715# So? What about this header?
29716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29717 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029722 ac_header_preproc=yes
29723 ;;
29724 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029737 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029738## ----------------------------------- ##
29739## Report this to llvmbugs@cs.uiuc.edu ##
29740## ----------------------------------- ##
29741_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029742 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029743 ;;
29744esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029745{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029748 echo $ECHO_N "(cached) $ECHO_C" >&6
29749else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029750 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029751fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029752ac_res=`eval echo '${'$as_ac_Header'}'`
29753 { echo "$as_me:$LINENO: result: $ac_res" >&5
29754echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029755
29756fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029757if test `eval echo '${'$as_ac_Header'}'` = yes; then
29758 cat >>confdefs.h <<_ACEOF
29759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29760_ACEOF
29761 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029762
29763else
29764 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029765
29766fi
29767
Reid Spencerbe3e4192007-08-17 05:45:26 +000029768done
Reid Spencer1000b732006-12-01 00:37:14 +000029769
29770else
29771 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029772
29773fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029774
29775
Reid Spencerb2ed05262006-11-03 18:04:08 +000029776
29777 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29778echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29779if test "${ac_cv_huge_val_sanity+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29781else
29782
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029783 ac_ext=cpp
29784ac_cpp='$CXXCPP $CPPFLAGS'
29785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029788
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029789 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029790 if test "$cross_compiling" = yes; then
29791 ac_cv_huge_val_sanity=yes
29792else
29793 cat >conftest.$ac_ext <<_ACEOF
29794/* confdefs.h. */
29795_ACEOF
29796cat confdefs.h >>conftest.$ac_ext
29797cat >>conftest.$ac_ext <<_ACEOF
29798/* end confdefs.h. */
29799#include <math.h>
29800int
29801main ()
29802{
29803double x = HUGE_VAL; return x != x;
29804 ;
29805 return 0;
29806}
29807_ACEOF
29808rm -f conftest$ac_exeext
29809if { (ac_try="$ac_link"
29810case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_link") 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29819 { (case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29822esac
29823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_try") 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_huge_val_sanity=yes
29829else
29830 echo "$as_me: program exited with status $ac_status" >&5
29831echo "$as_me: failed program was:" >&5
29832sed 's/^/| /' conftest.$ac_ext >&5
29833
29834( exit $ac_status )
29835ac_cv_huge_val_sanity=no
29836fi
29837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29838fi
29839
29840
29841 ac_ext=c
29842ac_cpp='$CPP $CPPFLAGS'
29843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29845ac_compiler_gnu=$ac_cv_c_compiler_gnu
29846
29847
29848fi
29849{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29850echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29851 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29852
29853
Reid Spencera773bd52006-08-04 18:18:08 +000029854{ echo "$as_me:$LINENO: checking for pid_t" >&5
29855echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029856if test "${ac_cv_type_pid_t+set}" = set; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29858else
29859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029860/* confdefs.h. */
29861_ACEOF
29862cat confdefs.h >>conftest.$ac_ext
29863cat >>conftest.$ac_ext <<_ACEOF
29864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029865$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029866typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029867int
29868main ()
29869{
Reid Spencera773bd52006-08-04 18:18:08 +000029870if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029871 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029872if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029873 return 0;
29874 ;
29875 return 0;
29876}
29877_ACEOF
29878rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029879if { (ac_try="$ac_compile"
29880case "(($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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029891 (exit $ac_status); } &&
29892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29893 { (case "(($ac_try" in
29894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29895 *) ac_try_echo=$ac_try;;
29896esac
29897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29898 (eval "$ac_try") 2>&5
29899 ac_status=$?
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; } &&
29902 { ac_try='test -s conftest.$ac_objext'
29903 { (case "(($ac_try" in
29904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29905 *) ac_try_echo=$ac_try;;
29906esac
29907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29908 (eval "$ac_try") 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029912 ac_cv_type_pid_t=yes
29913else
29914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029915sed 's/^/| /' conftest.$ac_ext >&5
29916
Reid Spencera773bd52006-08-04 18:18:08 +000029917 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029918fi
Reid Spencera773bd52006-08-04 18:18:08 +000029919
29920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029921fi
Reid Spencera773bd52006-08-04 18:18:08 +000029922{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29923echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029924if test $ac_cv_type_pid_t = yes; then
29925 :
29926else
29927
29928cat >>confdefs.h <<_ACEOF
29929#define pid_t int
29930_ACEOF
29931
29932fi
29933
Reid Spencera773bd52006-08-04 18:18:08 +000029934{ echo "$as_me:$LINENO: checking for size_t" >&5
29935echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029936if test "${ac_cv_type_size_t+set}" = set; then
29937 echo $ECHO_N "(cached) $ECHO_C" >&6
29938else
29939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029945$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029946typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029947int
29948main ()
29949{
Reid Spencera773bd52006-08-04 18:18:08 +000029950if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029951 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029952if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029953 return 0;
29954 ;
29955 return 0;
29956}
29957_ACEOF
29958rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029959if { (ac_try="$ac_compile"
29960case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29963esac
29964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029966 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029967 grep -v '^ *+' conftest.er1 >conftest.err
29968 rm -f conftest.er1
29969 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029971 (exit $ac_status); } &&
29972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29973 { (case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976esac
29977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_try") 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; } &&
29982 { ac_try='test -s conftest.$ac_objext'
29983 { (case "(($ac_try" in
29984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29985 *) ac_try_echo=$ac_try;;
29986esac
29987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29988 (eval "$ac_try") 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029992 ac_cv_type_size_t=yes
29993else
29994 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029995sed 's/^/| /' conftest.$ac_ext >&5
29996
Reid Spencera773bd52006-08-04 18:18:08 +000029997 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029998fi
Reid Spencera773bd52006-08-04 18:18:08 +000029999
30000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030001fi
Reid Spencera773bd52006-08-04 18:18:08 +000030002{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30003echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030004if test $ac_cv_type_size_t = yes; then
30005 :
30006else
30007
30008cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030009#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030010_ACEOF
30011
30012fi
30013
Reid Spencera773bd52006-08-04 18:18:08 +000030014{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30015echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016if test "${ac_cv_type_signal+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019 cat >conftest.$ac_ext <<_ACEOF
30020/* confdefs.h. */
30021_ACEOF
30022cat confdefs.h >>conftest.$ac_ext
30023cat >>conftest.$ac_ext <<_ACEOF
30024/* end confdefs.h. */
30025#include <sys/types.h>
30026#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027
30028int
30029main ()
30030{
Reid Spencera773bd52006-08-04 18:18:08 +000030031return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030032 ;
30033 return 0;
30034}
30035_ACEOF
30036rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030037if { (ac_try="$ac_compile"
30038case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041esac
30042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030044 ac_status=$?
30045 grep -v '^ *+' conftest.er1 >conftest.err
30046 rm -f conftest.er1
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030049 (exit $ac_status); } &&
30050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30051 { (case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30054esac
30055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056 (eval "$ac_try") 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; } &&
30060 { ac_try='test -s conftest.$ac_objext'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063 *) ac_try_echo=$ac_try;;
30064esac
30065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30066 (eval "$ac_try") 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030070 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030071else
30072 echo "$as_me: failed program was:" >&5
30073sed 's/^/| /' conftest.$ac_ext >&5
30074
Reid Spencera773bd52006-08-04 18:18:08 +000030075 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030076fi
Reid Spencera773bd52006-08-04 18:18:08 +000030077
30078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030079fi
Reid Spencera773bd52006-08-04 18:18:08 +000030080{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30081echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030082
30083cat >>confdefs.h <<_ACEOF
30084#define RETSIGTYPE $ac_cv_type_signal
30085_ACEOF
30086
30087
Reid Spencera773bd52006-08-04 18:18:08 +000030088{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30089echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030090if test "${ac_cv_struct_tm+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30092else
30093 cat >conftest.$ac_ext <<_ACEOF
30094/* confdefs.h. */
30095_ACEOF
30096cat confdefs.h >>conftest.$ac_ext
30097cat >>conftest.$ac_ext <<_ACEOF
30098/* end confdefs.h. */
30099#include <sys/types.h>
30100#include <time.h>
30101
30102int
30103main ()
30104{
Tanya Lattnercf067672008-01-17 05:57:22 +000030105struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030106 ;
30107 return 0;
30108}
30109_ACEOF
30110rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030111if { (ac_try="$ac_compile"
30112case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115esac
30116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030118 ac_status=$?
30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030123 (exit $ac_status); } &&
30124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30125 { (case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128esac
30129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_try") 2>&5
30131 ac_status=$?
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); }; } &&
30134 { ac_try='test -s conftest.$ac_objext'
30135 { (case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30138esac
30139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_try") 2>&5
30141 ac_status=$?
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030144 ac_cv_struct_tm=time.h
30145else
30146 echo "$as_me: failed program was:" >&5
30147sed 's/^/| /' conftest.$ac_ext >&5
30148
Reid Spencera773bd52006-08-04 18:18:08 +000030149 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030150fi
Reid Spencera773bd52006-08-04 18:18:08 +000030151
30152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030153fi
Reid Spencera773bd52006-08-04 18:18:08 +000030154{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30155echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030156if test $ac_cv_struct_tm = sys/time.h; then
30157
30158cat >>confdefs.h <<\_ACEOF
30159#define TM_IN_SYS_TIME 1
30160_ACEOF
30161
30162fi
30163
Reid Spencera773bd52006-08-04 18:18:08 +000030164{ echo "$as_me:$LINENO: checking for int64_t" >&5
30165echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030166if test "${ac_cv_type_int64_t+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168else
30169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030170/* confdefs.h. */
30171_ACEOF
30172cat confdefs.h >>conftest.$ac_ext
30173cat >>conftest.$ac_ext <<_ACEOF
30174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030175$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030176typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030177int
30178main ()
30179{
Reid Spencera773bd52006-08-04 18:18:08 +000030180if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030181 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030182if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030183 return 0;
30184 ;
30185 return 0;
30186}
30187_ACEOF
30188rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030189if { (ac_try="$ac_compile"
30190case "(($ac_try" in
30191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30192 *) ac_try_echo=$ac_try;;
30193esac
30194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030196 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030197 grep -v '^ *+' conftest.er1 >conftest.err
30198 rm -f conftest.er1
30199 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030201 (exit $ac_status); } &&
30202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30203 { (case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206esac
30207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; } &&
30212 { ac_try='test -s conftest.$ac_objext'
30213 { (case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30216esac
30217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218 (eval "$ac_try") 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030222 ac_cv_type_int64_t=yes
30223else
30224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030225sed 's/^/| /' conftest.$ac_ext >&5
30226
Reid Spencera773bd52006-08-04 18:18:08 +000030227 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030228fi
Reid Spencera773bd52006-08-04 18:18:08 +000030229
30230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030231fi
Reid Spencera773bd52006-08-04 18:18:08 +000030232{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30233echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030234if test $ac_cv_type_int64_t = yes; then
30235
30236cat >>confdefs.h <<_ACEOF
30237#define HAVE_INT64_T 1
30238_ACEOF
30239
30240
30241else
30242 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30243echo "$as_me: error: Type int64_t required but not found" >&2;}
30244 { (exit 1); exit 1; }; }
30245fi
30246
Reid Spencera773bd52006-08-04 18:18:08 +000030247{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30248echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030249if test "${ac_cv_type_uint64_t+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30251else
30252 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030253/* confdefs.h. */
30254_ACEOF
30255cat confdefs.h >>conftest.$ac_ext
30256cat >>conftest.$ac_ext <<_ACEOF
30257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030258$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030259typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030260int
30261main ()
30262{
Reid Spencera773bd52006-08-04 18:18:08 +000030263if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030264 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030265if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030266 return 0;
30267 ;
30268 return 0;
30269}
30270_ACEOF
30271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030272if { (ac_try="$ac_compile"
30273case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276esac
30277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289esac
30290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try='test -s conftest.$ac_objext'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030305 ac_cv_type_uint64_t=yes
30306else
30307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030308sed 's/^/| /' conftest.$ac_ext >&5
30309
Reid Spencera773bd52006-08-04 18:18:08 +000030310 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030311fi
Reid Spencera773bd52006-08-04 18:18:08 +000030312
30313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030314fi
Reid Spencera773bd52006-08-04 18:18:08 +000030315{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30316echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030317if test $ac_cv_type_uint64_t = yes; then
30318
30319cat >>confdefs.h <<_ACEOF
30320#define HAVE_UINT64_T 1
30321_ACEOF
30322
30323
30324else
Reid Spencera773bd52006-08-04 18:18:08 +000030325 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30326echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030327if test "${ac_cv_type_u_int64_t+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30329else
30330 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030331/* confdefs.h. */
30332_ACEOF
30333cat confdefs.h >>conftest.$ac_ext
30334cat >>conftest.$ac_ext <<_ACEOF
30335/* end confdefs.h. */
30336$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030337typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030338int
30339main ()
30340{
Reid Spencera773bd52006-08-04 18:18:08 +000030341if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030342 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030343if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030344 return 0;
30345 ;
30346 return 0;
30347}
30348_ACEOF
30349rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030350if { (ac_try="$ac_compile"
30351case "(($ac_try" in
30352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353 *) ac_try_echo=$ac_try;;
30354esac
30355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030358 grep -v '^ *+' conftest.er1 >conftest.err
30359 rm -f conftest.er1
30360 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030362 (exit $ac_status); } &&
30363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30364 { (case "(($ac_try" in
30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30367esac
30368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_try") 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; } &&
30373 { ac_try='test -s conftest.$ac_objext'
30374 { (case "(($ac_try" in
30375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30376 *) ac_try_echo=$ac_try;;
30377esac
30378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30379 (eval "$ac_try") 2>&5
30380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030383 ac_cv_type_u_int64_t=yes
30384else
30385 echo "$as_me: failed program was:" >&5
30386sed 's/^/| /' conftest.$ac_ext >&5
30387
Reid Spencera773bd52006-08-04 18:18:08 +000030388 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030389fi
Reid Spencera773bd52006-08-04 18:18:08 +000030390
30391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030392fi
Reid Spencera773bd52006-08-04 18:18:08 +000030393{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30394echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030395if test $ac_cv_type_u_int64_t = yes; then
30396
30397cat >>confdefs.h <<_ACEOF
30398#define HAVE_U_INT64_T 1
30399_ACEOF
30400
30401
Misha Brukmanceca9042004-09-02 23:02:30 +000030402else
30403 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30404echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30405 { (exit 1); exit 1; }; }
30406fi
30407
John Criswell679ff312004-09-02 18:44:44 +000030408fi
30409
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030410
30411
30412
30413
30414
30415
30416
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030417
30418
Reid Spencerdf3be822006-01-23 08:15:53 +000030419for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030420do
30421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030422{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30424if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030425 echo $ECHO_N "(cached) $ECHO_C" >&6
30426else
30427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030428/* confdefs.h. */
30429_ACEOF
30430cat confdefs.h >>conftest.$ac_ext
30431cat >>conftest.$ac_ext <<_ACEOF
30432/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30435#define $ac_func innocuous_$ac_func
30436
30437/* System header to define __stub macros and hopefully few prototypes,
30438 which can conflict with char $ac_func (); below.
30439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30440 <limits.h> exists even on freestanding compilers. */
30441
30442#ifdef __STDC__
30443# include <limits.h>
30444#else
30445# include <assert.h>
30446#endif
30447
30448#undef $ac_func
30449
Reid Spencera773bd52006-08-04 18:18:08 +000030450/* Override any GCC internal prototype to avoid an error.
30451 Use char because int might match the return type of a GCC
30452 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030453#ifdef __cplusplus
30454extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030456char $ac_func ();
30457/* The GNU C library defines this for functions which it implements
30458 to always fail with ENOSYS. Some functions are actually named
30459 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030460#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030461choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030462#endif
John Criswell7a73b802003-06-30 21:59:07 +000030463
John Criswell7a73b802003-06-30 21:59:07 +000030464int
30465main ()
30466{
Reid Spencera773bd52006-08-04 18:18:08 +000030467return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030468 ;
30469 return 0;
30470}
30471_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030472rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030473if { (ac_try="$ac_link"
30474case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30477esac
30478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030481 grep -v '^ *+' conftest.er1 >conftest.err
30482 rm -f conftest.er1
30483 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030485 (exit $ac_status); } &&
30486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30487 { (case "(($ac_try" in
30488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30490esac
30491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_try") 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try='test -s conftest$ac_exeext'
30497 { (case "(($ac_try" in
30498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499 *) ac_try_echo=$ac_try;;
30500esac
30501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502 (eval "$ac_try") 2>&5
30503 ac_status=$?
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030506 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030507else
30508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030509sed 's/^/| /' conftest.$ac_ext >&5
30510
Reid Spencera773bd52006-08-04 18:18:08 +000030511 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030512fi
Reid Spencera773bd52006-08-04 18:18:08 +000030513
Tanya Lattnercf067672008-01-17 05:57:22 +000030514rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030515 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030516fi
Reid Spencera773bd52006-08-04 18:18:08 +000030517ac_res=`eval echo '${'$as_ac_var'}'`
30518 { echo "$as_me:$LINENO: result: $ac_res" >&5
30519echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030520if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030523_ACEOF
30524
30525fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030526done
John Criswell7a73b802003-06-30 21:59:07 +000030527
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030528
30529
30530
Reid Spencer6af3d262004-12-15 04:01:48 +000030531
Reid Spencer96cf5872007-07-13 10:05:30 +000030532for ac_func in powf fmodf strtof round
30533do
30534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30535{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30537if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30538 echo $ECHO_N "(cached) $ECHO_C" >&6
30539else
30540 cat >conftest.$ac_ext <<_ACEOF
30541/* confdefs.h. */
30542_ACEOF
30543cat confdefs.h >>conftest.$ac_ext
30544cat >>conftest.$ac_ext <<_ACEOF
30545/* end confdefs.h. */
30546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30548#define $ac_func innocuous_$ac_func
30549
30550/* System header to define __stub macros and hopefully few prototypes,
30551 which can conflict with char $ac_func (); below.
30552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30553 <limits.h> exists even on freestanding compilers. */
30554
30555#ifdef __STDC__
30556# include <limits.h>
30557#else
30558# include <assert.h>
30559#endif
30560
30561#undef $ac_func
30562
30563/* Override any GCC internal prototype to avoid an error.
30564 Use char because int might match the return type of a GCC
30565 builtin and then its argument prototype would still apply. */
30566#ifdef __cplusplus
30567extern "C"
30568#endif
30569char $ac_func ();
30570/* The GNU C library defines this for functions which it implements
30571 to always fail with ENOSYS. Some functions are actually named
30572 something starting with __ and the normal name is an alias. */
30573#if defined __stub_$ac_func || defined __stub___$ac_func
30574choke me
30575#endif
30576
30577int
30578main ()
30579{
30580return $ac_func ();
30581 ;
30582 return 0;
30583}
30584_ACEOF
30585rm -f conftest.$ac_objext conftest$ac_exeext
30586if { (ac_try="$ac_link"
30587case "(($ac_try" in
30588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589 *) ac_try_echo=$ac_try;;
30590esac
30591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_link") 2>conftest.er1
30593 ac_status=$?
30594 grep -v '^ *+' conftest.er1 >conftest.err
30595 rm -f conftest.er1
30596 cat conftest.err >&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030598 (exit $ac_status); } &&
30599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30600 { (case "(($ac_try" in
30601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602 *) ac_try_echo=$ac_try;;
30603esac
30604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605 (eval "$ac_try") 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; } &&
30609 { ac_try='test -s conftest$ac_exeext'
30610 { (case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613esac
30614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_try") 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030619 eval "$as_ac_var=yes"
30620else
30621 echo "$as_me: failed program was:" >&5
30622sed 's/^/| /' conftest.$ac_ext >&5
30623
30624 eval "$as_ac_var=no"
30625fi
30626
Tanya Lattnercf067672008-01-17 05:57:22 +000030627rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030628 conftest$ac_exeext conftest.$ac_ext
30629fi
30630ac_res=`eval echo '${'$as_ac_var'}'`
30631 { echo "$as_me:$LINENO: result: $ac_res" >&5
30632echo "${ECHO_T}$ac_res" >&6; }
30633if test `eval echo '${'$as_ac_var'}'` = yes; then
30634 cat >>confdefs.h <<_ACEOF
30635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30636_ACEOF
30637
30638fi
30639done
30640
30641
30642
30643
30644
Reid Spencer6af3d262004-12-15 04:01:48 +000030645
Reid Spencerb90645c2007-02-16 19:17:20 +000030646for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30647do
30648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30649{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30653else
30654 cat >conftest.$ac_ext <<_ACEOF
30655/* confdefs.h. */
30656_ACEOF
30657cat confdefs.h >>conftest.$ac_ext
30658cat >>conftest.$ac_ext <<_ACEOF
30659/* end confdefs.h. */
30660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30662#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030663
Reid Spencerb90645c2007-02-16 19:17:20 +000030664/* System header to define __stub macros and hopefully few prototypes,
30665 which can conflict with char $ac_func (); below.
30666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667 <limits.h> exists even on freestanding compilers. */
30668
30669#ifdef __STDC__
30670# include <limits.h>
30671#else
30672# include <assert.h>
30673#endif
30674
30675#undef $ac_func
30676
30677/* Override any GCC internal prototype to avoid an error.
30678 Use char because int might match the return type of a GCC
30679 builtin and then its argument prototype would still apply. */
30680#ifdef __cplusplus
30681extern "C"
30682#endif
30683char $ac_func ();
30684/* The GNU C library defines this for functions which it implements
30685 to always fail with ENOSYS. Some functions are actually named
30686 something starting with __ and the normal name is an alias. */
30687#if defined __stub_$ac_func || defined __stub___$ac_func
30688choke me
30689#endif
30690
30691int
30692main ()
30693{
30694return $ac_func ();
30695 ;
30696 return 0;
30697}
30698_ACEOF
30699rm -f conftest.$ac_objext conftest$ac_exeext
30700if { (ac_try="$ac_link"
30701case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_link") 2>conftest.er1
30707 ac_status=$?
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030712 (exit $ac_status); } &&
30713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30714 { (case "(($ac_try" in
30715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716 *) ac_try_echo=$ac_try;;
30717esac
30718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_try") 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try='test -s conftest$ac_exeext'
30724 { (case "(($ac_try" in
30725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30726 *) ac_try_echo=$ac_try;;
30727esac
30728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30729 (eval "$ac_try") 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030733 eval "$as_ac_var=yes"
30734else
30735 echo "$as_me: failed program was:" >&5
30736sed 's/^/| /' conftest.$ac_ext >&5
30737
30738 eval "$as_ac_var=no"
30739fi
30740
Tanya Lattnercf067672008-01-17 05:57:22 +000030741rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030742 conftest$ac_exeext conftest.$ac_ext
30743fi
30744ac_res=`eval echo '${'$as_ac_var'}'`
30745 { echo "$as_me:$LINENO: result: $ac_res" >&5
30746echo "${ECHO_T}$ac_res" >&6; }
30747if test `eval echo '${'$as_ac_var'}'` = yes; then
30748 cat >>confdefs.h <<_ACEOF
30749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30750_ACEOF
30751
30752fi
30753done
30754
30755
30756
30757
30758for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030759do
30760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030761{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30763if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030764 echo $ECHO_N "(cached) $ECHO_C" >&6
30765else
30766 cat >conftest.$ac_ext <<_ACEOF
30767/* confdefs.h. */
30768_ACEOF
30769cat confdefs.h >>conftest.$ac_ext
30770cat >>conftest.$ac_ext <<_ACEOF
30771/* end confdefs.h. */
30772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30774#define $ac_func innocuous_$ac_func
30775
30776/* System header to define __stub macros and hopefully few prototypes,
30777 which can conflict with char $ac_func (); below.
30778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30779 <limits.h> exists even on freestanding compilers. */
30780
30781#ifdef __STDC__
30782# include <limits.h>
30783#else
30784# include <assert.h>
30785#endif
30786
30787#undef $ac_func
30788
Reid Spencera773bd52006-08-04 18:18:08 +000030789/* Override any GCC internal prototype to avoid an error.
30790 Use char because int might match the return type of a GCC
30791 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030792#ifdef __cplusplus
30793extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030794#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030795char $ac_func ();
30796/* The GNU C library defines this for functions which it implements
30797 to always fail with ENOSYS. Some functions are actually named
30798 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030799#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030800choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030801#endif
30802
30803int
30804main ()
30805{
Reid Spencera773bd52006-08-04 18:18:08 +000030806return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030807 ;
30808 return 0;
30809}
30810_ACEOF
30811rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030812if { (ac_try="$ac_link"
30813case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816esac
30817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030819 ac_status=$?
30820 grep -v '^ *+' conftest.er1 >conftest.err
30821 rm -f conftest.er1
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030824 (exit $ac_status); } &&
30825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30826 { (case "(($ac_try" in
30827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30829esac
30830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_try") 2>&5
30832 ac_status=$?
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } &&
30835 { ac_try='test -s conftest$ac_exeext'
30836 { (case "(($ac_try" in
30837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838 *) ac_try_echo=$ac_try;;
30839esac
30840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_try") 2>&5
30842 ac_status=$?
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030845 eval "$as_ac_var=yes"
30846else
30847 echo "$as_me: failed program was:" >&5
30848sed 's/^/| /' conftest.$ac_ext >&5
30849
Reid Spencera773bd52006-08-04 18:18:08 +000030850 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030851fi
Reid Spencera773bd52006-08-04 18:18:08 +000030852
Tanya Lattnercf067672008-01-17 05:57:22 +000030853rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030854 conftest$ac_exeext conftest.$ac_ext
30855fi
Reid Spencera773bd52006-08-04 18:18:08 +000030856ac_res=`eval echo '${'$as_ac_var'}'`
30857 { echo "$as_me:$LINENO: result: $ac_res" >&5
30858echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030859if test `eval echo '${'$as_ac_var'}'` = yes; then
30860 cat >>confdefs.h <<_ACEOF
30861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30862_ACEOF
30863
30864fi
30865done
30866
30867
30868
30869
30870
30871
30872
30873
30874for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030875do
30876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030880 echo $ECHO_N "(cached) $ECHO_C" >&6
30881else
30882 cat >conftest.$ac_ext <<_ACEOF
30883/* confdefs.h. */
30884_ACEOF
30885cat confdefs.h >>conftest.$ac_ext
30886cat >>conftest.$ac_ext <<_ACEOF
30887/* end confdefs.h. */
30888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30890#define $ac_func innocuous_$ac_func
30891
30892/* System header to define __stub macros and hopefully few prototypes,
30893 which can conflict with char $ac_func (); below.
30894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30895 <limits.h> exists even on freestanding compilers. */
30896
30897#ifdef __STDC__
30898# include <limits.h>
30899#else
30900# include <assert.h>
30901#endif
30902
30903#undef $ac_func
30904
Reid Spencera773bd52006-08-04 18:18:08 +000030905/* Override any GCC internal prototype to avoid an error.
30906 Use char because int might match the return type of a GCC
30907 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030908#ifdef __cplusplus
30909extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030910#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030911char $ac_func ();
30912/* The GNU C library defines this for functions which it implements
30913 to always fail with ENOSYS. Some functions are actually named
30914 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030915#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030916choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030917#endif
30918
30919int
30920main ()
30921{
Reid Spencera773bd52006-08-04 18:18:08 +000030922return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030923 ;
30924 return 0;
30925}
30926_ACEOF
30927rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030928if { (ac_try="$ac_link"
30929case "(($ac_try" in
30930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30932esac
30933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030935 ac_status=$?
30936 grep -v '^ *+' conftest.er1 >conftest.err
30937 rm -f conftest.er1
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030940 (exit $ac_status); } &&
30941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30942 { (case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30945esac
30946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_try") 2>&5
30948 ac_status=$?
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; } &&
30951 { ac_try='test -s conftest$ac_exeext'
30952 { (case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30955esac
30956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_try") 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030961 eval "$as_ac_var=yes"
30962else
30963 echo "$as_me: failed program was:" >&5
30964sed 's/^/| /' conftest.$ac_ext >&5
30965
Reid Spencera773bd52006-08-04 18:18:08 +000030966 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030967fi
Reid Spencera773bd52006-08-04 18:18:08 +000030968
Tanya Lattnercf067672008-01-17 05:57:22 +000030969rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030970 conftest$ac_exeext conftest.$ac_ext
30971fi
Reid Spencera773bd52006-08-04 18:18:08 +000030972ac_res=`eval echo '${'$as_ac_var'}'`
30973 { echo "$as_me:$LINENO: result: $ac_res" >&5
30974echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030975if test `eval echo '${'$as_ac_var'}'` = yes; then
30976 cat >>confdefs.h <<_ACEOF
30977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30978_ACEOF
30979
30980fi
30981done
30982
30983
Reid Spencerba46ca32004-12-31 05:49:15 +000030984
30985
Chris Lattner0b142592005-11-14 06:57:34 +000030986
Chris Lattner511f11d2005-11-14 07:25:50 +000030987for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030988do
30989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030993 echo $ECHO_N "(cached) $ECHO_C" >&6
30994else
30995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030996/* confdefs.h. */
30997_ACEOF
30998cat confdefs.h >>conftest.$ac_ext
30999cat >>conftest.$ac_ext <<_ACEOF
31000/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31003#define $ac_func innocuous_$ac_func
31004
31005/* System header to define __stub macros and hopefully few prototypes,
31006 which can conflict with char $ac_func (); below.
31007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31008 <limits.h> exists even on freestanding compilers. */
31009
31010#ifdef __STDC__
31011# include <limits.h>
31012#else
31013# include <assert.h>
31014#endif
31015
31016#undef $ac_func
31017
Reid Spencera773bd52006-08-04 18:18:08 +000031018/* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031021#ifdef __cplusplus
31022extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031024char $ac_func ();
31025/* The GNU C library defines this for functions which it implements
31026 to always fail with ENOSYS. Some functions are actually named
31027 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031028#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031029choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031030#endif
John Criswell7a73b802003-06-30 21:59:07 +000031031
John Criswell7a73b802003-06-30 21:59:07 +000031032int
31033main ()
31034{
Reid Spencera773bd52006-08-04 18:18:08 +000031035return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031036 ;
31037 return 0;
31038}
31039_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031040rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031041if { (ac_try="$ac_link"
31042case "(($ac_try" in
31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044 *) ac_try_echo=$ac_try;;
31045esac
31046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031049 grep -v '^ *+' conftest.er1 >conftest.err
31050 rm -f conftest.er1
31051 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031053 (exit $ac_status); } &&
31054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31055 { (case "(($ac_try" in
31056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31057 *) ac_try_echo=$ac_try;;
31058esac
31059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31060 (eval "$ac_try") 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; } &&
31064 { ac_try='test -s conftest$ac_exeext'
31065 { (case "(($ac_try" in
31066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067 *) ac_try_echo=$ac_try;;
31068esac
31069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070 (eval "$ac_try") 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031074 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031075else
31076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031077sed 's/^/| /' conftest.$ac_ext >&5
31078
Reid Spencera773bd52006-08-04 18:18:08 +000031079 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031080fi
Reid Spencera773bd52006-08-04 18:18:08 +000031081
Tanya Lattnercf067672008-01-17 05:57:22 +000031082rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031084fi
Reid Spencera773bd52006-08-04 18:18:08 +000031085ac_res=`eval echo '${'$as_ac_var'}'`
31086 { echo "$as_me:$LINENO: result: $ac_res" >&5
31087echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031088if test `eval echo '${'$as_ac_var'}'` = yes; then
31089 cat >>confdefs.h <<_ACEOF
31090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031091_ACEOF
31092
31093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031094done
John Criswell7a73b802003-06-30 21:59:07 +000031095
Reid Spencercdb08a32006-06-05 16:11:07 +000031096
31097
31098
31099
Reid Spencerafa22e22006-12-10 23:29:19 +000031100for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031101do
31102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031103{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31105if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031106 echo $ECHO_N "(cached) $ECHO_C" >&6
31107else
31108 cat >conftest.$ac_ext <<_ACEOF
31109/* confdefs.h. */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h. */
31114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31116#define $ac_func innocuous_$ac_func
31117
31118/* System header to define __stub macros and hopefully few prototypes,
31119 which can conflict with char $ac_func (); below.
31120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31121 <limits.h> exists even on freestanding compilers. */
31122
31123#ifdef __STDC__
31124# include <limits.h>
31125#else
31126# include <assert.h>
31127#endif
31128
31129#undef $ac_func
31130
Reid Spencera773bd52006-08-04 18:18:08 +000031131/* Override any GCC internal prototype to avoid an error.
31132 Use char because int might match the return type of a GCC
31133 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031134#ifdef __cplusplus
31135extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031136#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031137char $ac_func ();
31138/* The GNU C library defines this for functions which it implements
31139 to always fail with ENOSYS. Some functions are actually named
31140 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031141#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031142choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031143#endif
31144
31145int
31146main ()
31147{
Reid Spencera773bd52006-08-04 18:18:08 +000031148return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031149 ;
31150 return 0;
31151}
31152_ACEOF
31153rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031154if { (ac_try="$ac_link"
31155case "(($ac_try" in
31156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31157 *) ac_try_echo=$ac_try;;
31158esac
31159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031161 ac_status=$?
31162 grep -v '^ *+' conftest.er1 >conftest.err
31163 rm -f conftest.er1
31164 cat conftest.err >&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031166 (exit $ac_status); } &&
31167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31168 { (case "(($ac_try" in
31169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170 *) ac_try_echo=$ac_try;;
31171esac
31172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_try") 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; } &&
31177 { ac_try='test -s conftest$ac_exeext'
31178 { (case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181esac
31182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_try") 2>&5
31184 ac_status=$?
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031187 eval "$as_ac_var=yes"
31188else
31189 echo "$as_me: failed program was:" >&5
31190sed 's/^/| /' conftest.$ac_ext >&5
31191
Reid Spencera773bd52006-08-04 18:18:08 +000031192 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031193fi
Reid Spencera773bd52006-08-04 18:18:08 +000031194
Tanya Lattnercf067672008-01-17 05:57:22 +000031195rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031196 conftest$ac_exeext conftest.$ac_ext
31197fi
Reid Spencera773bd52006-08-04 18:18:08 +000031198ac_res=`eval echo '${'$as_ac_var'}'`
31199 { echo "$as_me:$LINENO: result: $ac_res" >&5
31200echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031201if test `eval echo '${'$as_ac_var'}'` = yes; then
31202 cat >>confdefs.h <<_ACEOF
31203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31204_ACEOF
31205
31206fi
31207done
31208
Reid Spencera773bd52006-08-04 18:18:08 +000031209{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31210echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031211if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031214 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031215ac_cpp='$CPP $CPPFLAGS'
31216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31218ac_compiler_gnu=$ac_cv_c_compiler_gnu
31219
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031221 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031222else
31223 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031224
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031225 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031226_ACEOF
31227cat confdefs.h >>conftest.$ac_ext
31228cat >>conftest.$ac_ext <<_ACEOF
31229/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031230
John Criswella0137d32003-10-13 16:22:01 +000031231#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031232#include <stdlib.h>
31233
John Criswella0137d32003-10-13 16:22:01 +000031234int
31235main ()
31236{
31237
Reid Spencer2706f8c2004-09-19 23:53:36 +000031238volatile double A, B;
31239char Buffer[100];
31240A = 1;
31241A /= 10.0;
31242sprintf(Buffer, "%a", A);
31243B = atof(Buffer);
31244if (A != B)
31245 return (1);
31246if (A != 0x1.999999999999ap-4)
31247 return (1);
31248return (0);
John Criswella0137d32003-10-13 16:22:01 +000031249 ;
31250 return 0;
31251}
31252_ACEOF
31253rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031254if { (ac_try="$ac_link"
31255case "(($ac_try" in
31256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31257 *) ac_try_echo=$ac_try;;
31258esac
31259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31260 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031261 ac_status=$?
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267esac
31268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031273 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031274else
31275 echo "$as_me: program exited with status $ac_status" >&5
31276echo "$as_me: failed program was:" >&5
31277sed 's/^/| /' conftest.$ac_ext >&5
31278
31279( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031280llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031281fi
Reid Spencera773bd52006-08-04 18:18:08 +000031282rm -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 +000031283fi
Reid Spencera773bd52006-08-04 18:18:08 +000031284
31285
Reid Spencer2706f8c2004-09-19 23:53:36 +000031286 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031287ac_cpp='$CPP $CPPFLAGS'
31288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31290ac_compiler_gnu=$ac_cv_c_compiler_gnu
31291
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292fi
Reid Spencera773bd52006-08-04 18:18:08 +000031293{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31294echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031295 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031296
31297cat >>confdefs.h <<\_ACEOF
31298#define HAVE_PRINTF_A 1
31299_ACEOF
31300
Reid Spencer2706f8c2004-09-19 23:53:36 +000031301 fi
John Criswella0137d32003-10-13 16:22:01 +000031302
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031303# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31304# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031305{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31306echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031307if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031308 echo $ECHO_N "(cached) $ECHO_C" >&6
31309else
John Criswell0021c312004-02-13 21:57:29 +000031310 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031311/* confdefs.h. */
31312_ACEOF
31313cat confdefs.h >>conftest.$ac_ext
31314cat >>conftest.$ac_ext <<_ACEOF
31315/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031316#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031317int
31318main ()
31319{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031320char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031321 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031322 ;
31323 return 0;
31324}
31325_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031326rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031327if { (ac_try="$ac_link"
31328case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31331esac
31332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031334 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31341 { (case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31344esac
31345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_try") 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
31351 { (case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31354esac
31355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_try") 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031360 ac_cv_working_alloca_h=yes
31361else
31362 echo "$as_me: failed program was:" >&5
31363sed 's/^/| /' conftest.$ac_ext >&5
31364
Reid Spencera773bd52006-08-04 18:18:08 +000031365 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031366fi
Reid Spencera773bd52006-08-04 18:18:08 +000031367
Tanya Lattnercf067672008-01-17 05:57:22 +000031368rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031369 conftest$ac_exeext conftest.$ac_ext
31370fi
Reid Spencera773bd52006-08-04 18:18:08 +000031371{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31372echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031373if test $ac_cv_working_alloca_h = yes; then
31374
31375cat >>confdefs.h <<\_ACEOF
31376#define HAVE_ALLOCA_H 1
31377_ACEOF
31378
31379fi
31380
Reid Spencera773bd52006-08-04 18:18:08 +000031381{ echo "$as_me:$LINENO: checking for alloca" >&5
31382echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031383if test "${ac_cv_func_alloca_works+set}" = set; then
31384 echo $ECHO_N "(cached) $ECHO_C" >&6
31385else
31386 cat >conftest.$ac_ext <<_ACEOF
31387/* confdefs.h. */
31388_ACEOF
31389cat confdefs.h >>conftest.$ac_ext
31390cat >>conftest.$ac_ext <<_ACEOF
31391/* end confdefs.h. */
31392#ifdef __GNUC__
31393# define alloca __builtin_alloca
31394#else
31395# ifdef _MSC_VER
31396# include <malloc.h>
31397# define alloca _alloca
31398# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031399# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031400# include <alloca.h>
31401# else
31402# ifdef _AIX
31403 #pragma alloca
31404# else
31405# ifndef alloca /* predefined by HP cc +Olibcalls */
31406char *alloca ();
31407# endif
31408# endif
31409# endif
31410# endif
31411#endif
31412
31413int
31414main ()
31415{
31416char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031417 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031418 ;
31419 return 0;
31420}
31421_ACEOF
31422rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031423if { (ac_try="$ac_link"
31424case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31427esac
31428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031430 ac_status=$?
31431 grep -v '^ *+' conftest.er1 >conftest.err
31432 rm -f conftest.er1
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031435 (exit $ac_status); } &&
31436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440esac
31441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; } &&
31446 { ac_try='test -s conftest$ac_exeext'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31450esac
31451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031456 ac_cv_func_alloca_works=yes
31457else
31458 echo "$as_me: failed program was:" >&5
31459sed 's/^/| /' conftest.$ac_ext >&5
31460
Reid Spencera773bd52006-08-04 18:18:08 +000031461 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031462fi
Reid Spencera773bd52006-08-04 18:18:08 +000031463
Tanya Lattnercf067672008-01-17 05:57:22 +000031464rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031465 conftest$ac_exeext conftest.$ac_ext
31466fi
Reid Spencera773bd52006-08-04 18:18:08 +000031467{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31468echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031469
31470if test $ac_cv_func_alloca_works = yes; then
31471
31472cat >>confdefs.h <<\_ACEOF
31473#define HAVE_ALLOCA 1
31474_ACEOF
31475
31476else
31477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31478# that cause trouble. Some versions do not even contain alloca or
31479# contain a buggy version. If you still want to use their alloca,
31480# use ar to extract alloca.o from them instead of compiling alloca.c.
31481
Reid Spencera773bd52006-08-04 18:18:08 +000031482ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483
31484cat >>confdefs.h <<\_ACEOF
31485#define C_ALLOCA 1
31486_ACEOF
31487
31488
Reid Spencera773bd52006-08-04 18:18:08 +000031489{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31490echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031491if test "${ac_cv_os_cray+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31493else
31494 cat >conftest.$ac_ext <<_ACEOF
31495/* confdefs.h. */
31496_ACEOF
31497cat confdefs.h >>conftest.$ac_ext
31498cat >>conftest.$ac_ext <<_ACEOF
31499/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031500#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031501webecray
31502#else
31503wenotbecray
31504#endif
31505
31506_ACEOF
31507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31508 $EGREP "webecray" >/dev/null 2>&1; then
31509 ac_cv_os_cray=yes
31510else
31511 ac_cv_os_cray=no
31512fi
31513rm -f conftest*
31514
31515fi
Reid Spencera773bd52006-08-04 18:18:08 +000031516{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31517echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031518if test $ac_cv_os_cray = yes; then
31519 for ac_func in _getb67 GETB67 getb67; do
31520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031521{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31523if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031524 echo $ECHO_N "(cached) $ECHO_C" >&6
31525else
31526 cat >conftest.$ac_ext <<_ACEOF
31527/* confdefs.h. */
31528_ACEOF
31529cat confdefs.h >>conftest.$ac_ext
31530cat >>conftest.$ac_ext <<_ACEOF
31531/* end confdefs.h. */
31532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31534#define $ac_func innocuous_$ac_func
31535
31536/* System header to define __stub macros and hopefully few prototypes,
31537 which can conflict with char $ac_func (); below.
31538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31539 <limits.h> exists even on freestanding compilers. */
31540
31541#ifdef __STDC__
31542# include <limits.h>
31543#else
31544# include <assert.h>
31545#endif
31546
31547#undef $ac_func
31548
Reid Spencera773bd52006-08-04 18:18:08 +000031549/* Override any GCC internal prototype to avoid an error.
31550 Use char because int might match the return type of a GCC
31551 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031552#ifdef __cplusplus
31553extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031554#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031555char $ac_func ();
31556/* The GNU C library defines this for functions which it implements
31557 to always fail with ENOSYS. Some functions are actually named
31558 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031559#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031560choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031561#endif
31562
31563int
31564main ()
31565{
Reid Spencera773bd52006-08-04 18:18:08 +000031566return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031567 ;
31568 return 0;
31569}
31570_ACEOF
31571rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031572if { (ac_try="$ac_link"
31573case "(($ac_try" in
31574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575 *) ac_try_echo=$ac_try;;
31576esac
31577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031579 ac_status=$?
31580 grep -v '^ *+' conftest.er1 >conftest.err
31581 rm -f conftest.er1
31582 cat conftest.err >&5
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586 { (case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31589esac
31590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_try") 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31599esac
31600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031605 eval "$as_ac_var=yes"
31606else
31607 echo "$as_me: failed program was:" >&5
31608sed 's/^/| /' conftest.$ac_ext >&5
31609
Reid Spencera773bd52006-08-04 18:18:08 +000031610 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031611fi
Reid Spencera773bd52006-08-04 18:18:08 +000031612
Tanya Lattnercf067672008-01-17 05:57:22 +000031613rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031614 conftest$ac_exeext conftest.$ac_ext
31615fi
Reid Spencera773bd52006-08-04 18:18:08 +000031616ac_res=`eval echo '${'$as_ac_var'}'`
31617 { echo "$as_me:$LINENO: result: $ac_res" >&5
31618echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031619if test `eval echo '${'$as_ac_var'}'` = yes; then
31620
31621cat >>confdefs.h <<_ACEOF
31622#define CRAY_STACKSEG_END $ac_func
31623_ACEOF
31624
31625 break
31626fi
31627
31628 done
31629fi
31630
Reid Spencera773bd52006-08-04 18:18:08 +000031631{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31632echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031633if test "${ac_cv_c_stack_direction+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635else
31636 if test "$cross_compiling" = yes; then
31637 ac_cv_c_stack_direction=0
31638else
31639 cat >conftest.$ac_ext <<_ACEOF
31640/* confdefs.h. */
31641_ACEOF
31642cat confdefs.h >>conftest.$ac_ext
31643cat >>conftest.$ac_ext <<_ACEOF
31644/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031645$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031646int
31647find_stack_direction ()
31648{
31649 static char *addr = 0;
31650 auto char dummy;
31651 if (addr == 0)
31652 {
31653 addr = &dummy;
31654 return find_stack_direction ();
31655 }
John Criswell0021c312004-02-13 21:57:29 +000031656 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031657 return (&dummy > addr) ? 1 : -1;
31658}
John Criswell0021c312004-02-13 21:57:29 +000031659
John Criswell0021c312004-02-13 21:57:29 +000031660int
31661main ()
31662{
Reid Spencera773bd52006-08-04 18:18:08 +000031663 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031664}
31665_ACEOF
31666rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031667if { (ac_try="$ac_link"
31668case "(($ac_try" in
31669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31670 *) ac_try_echo=$ac_try;;
31671esac
31672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31673 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031674 ac_status=$?
31675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031677 { (case "(($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_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031683 ac_status=$?
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031687else
31688 echo "$as_me: program exited with status $ac_status" >&5
31689echo "$as_me: failed program was:" >&5
31690sed 's/^/| /' conftest.$ac_ext >&5
31691
31692( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031693ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031694fi
Reid Spencera773bd52006-08-04 18:18:08 +000031695rm -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 +000031696fi
Reid Spencera773bd52006-08-04 18:18:08 +000031697
31698
John Criswell0021c312004-02-13 21:57:29 +000031699fi
Reid Spencera773bd52006-08-04 18:18:08 +000031700{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31701echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031702
31703cat >>confdefs.h <<_ACEOF
31704#define STACK_DIRECTION $ac_cv_c_stack_direction
31705_ACEOF
31706
31707
John Criswell0021c312004-02-13 21:57:29 +000031708fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709
31710
Reid Spencera773bd52006-08-04 18:18:08 +000031711{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31712echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031713if test "${ac_cv_func_rand48+set}" = set; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31715else
Reid Spencera773bd52006-08-04 18:18:08 +000031716 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031717ac_cpp='$CXXCPP $CPPFLAGS'
31718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31721
31722 cat >conftest.$ac_ext <<_ACEOF
31723/* confdefs.h. */
31724_ACEOF
31725cat confdefs.h >>conftest.$ac_ext
31726cat >>conftest.$ac_ext <<_ACEOF
31727/* end confdefs.h. */
31728#include <stdlib.h>
31729int
31730main ()
31731{
31732srand48(0);lrand48();drand48();
31733 ;
31734 return 0;
31735}
31736_ACEOF
31737rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031738if { (ac_try="$ac_compile"
31739case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742esac
31743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745 ac_status=$?
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031750 (exit $ac_status); } &&
31751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31752 { (case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755esac
31756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_try") 2>&5
31758 ac_status=$?
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; } &&
31761 { ac_try='test -s conftest.$ac_objext'
31762 { (case "(($ac_try" in
31763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764 *) ac_try_echo=$ac_try;;
31765esac
31766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31767 (eval "$ac_try") 2>&5
31768 ac_status=$?
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031771 ac_cv_func_rand48=yes
31772else
31773 echo "$as_me: failed program was:" >&5
31774sed 's/^/| /' conftest.$ac_ext >&5
31775
Reid Spencera773bd52006-08-04 18:18:08 +000031776 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031777fi
Reid Spencera773bd52006-08-04 18:18:08 +000031778
31779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031780 ac_ext=c
31781ac_cpp='$CPP $CPPFLAGS'
31782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31784ac_compiler_gnu=$ac_cv_c_compiler_gnu
31785
31786fi
Reid Spencera773bd52006-08-04 18:18:08 +000031787{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31788echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031789
31790if test "$ac_cv_func_rand48" = "yes" ; then
31791
31792cat >>confdefs.h <<\_ACEOF
31793#define HAVE_RAND48 1
31794_ACEOF
31795
31796fi
John Criswell0021c312004-02-13 21:57:29 +000031797
31798
Reid Spencera773bd52006-08-04 18:18:08 +000031799{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31800echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031801if test "${ac_cv_cxx_namespaces+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31803else
Reid Spencera773bd52006-08-04 18:18:08 +000031804 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031805ac_cpp='$CXXCPP $CPPFLAGS'
31806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31809
31810 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031811/* confdefs.h. */
31812_ACEOF
31813cat confdefs.h >>conftest.$ac_ext
31814cat >>conftest.$ac_ext <<_ACEOF
31815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031816namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031817int
31818main ()
31819{
31820using namespace Outer::Inner; return i;
31821 ;
31822 return 0;
31823}
31824_ACEOF
31825rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031826if { (ac_try="$ac_compile"
31827case "(($ac_try" in
31828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31829 *) ac_try_echo=$ac_try;;
31830esac
31831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31832 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031833 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031834 grep -v '^ *+' conftest.er1 >conftest.err
31835 rm -f conftest.er1
31836 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031838 (exit $ac_status); } &&
31839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31840 { (case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843esac
31844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_try") 2>&5
31846 ac_status=$?
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; } &&
31849 { ac_try='test -s conftest.$ac_objext'
31850 { (case "(($ac_try" in
31851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852 *) ac_try_echo=$ac_try;;
31853esac
31854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855 (eval "$ac_try") 2>&5
31856 ac_status=$?
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031859 ac_cv_cxx_namespaces=yes
31860else
31861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031862sed 's/^/| /' conftest.$ac_ext >&5
31863
Reid Spencera773bd52006-08-04 18:18:08 +000031864 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031865fi
Reid Spencera773bd52006-08-04 18:18:08 +000031866
31867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031868 ac_ext=c
31869ac_cpp='$CPP $CPPFLAGS'
31870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31872ac_compiler_gnu=$ac_cv_c_compiler_gnu
31873
31874
31875fi
Reid Spencera773bd52006-08-04 18:18:08 +000031876{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31877echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031878if test "$ac_cv_cxx_namespaces" = yes; then
31879
31880cat >>confdefs.h <<\_ACEOF
31881#define HAVE_NAMESPACES
31882_ACEOF
31883
31884fi
31885
Reid Spencera773bd52006-08-04 18:18:08 +000031886{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31887echo $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 +000031888if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031889 echo $ECHO_N "(cached) $ECHO_C" >&6
31890else
31891
Reid Spencera773bd52006-08-04 18:18:08 +000031892 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031893ac_cpp='$CXXCPP $CPPFLAGS'
31894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31897
31898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031899/* confdefs.h. */
31900_ACEOF
31901cat confdefs.h >>conftest.$ac_ext
31902cat >>conftest.$ac_ext <<_ACEOF
31903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031904#include <ext/hash_map>
31905#ifdef HAVE_NAMESPACES
31906using namespace std;
31907#endif
John Criswell7a73b802003-06-30 21:59:07 +000031908int
31909main ()
31910{
Brian Gaeke90583492003-11-10 03:06:28 +000031911hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031912 ;
31913 return 0;
31914}
31915_ACEOF
31916rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031917if { (ac_try="$ac_compile"
31918case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31921esac
31922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031925 grep -v '^ *+' conftest.er1 >conftest.err
31926 rm -f conftest.er1
31927 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031929 (exit $ac_status); } &&
31930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31931 { (case "(($ac_try" in
31932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933 *) ac_try_echo=$ac_try;;
31934esac
31935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31936 (eval "$ac_try") 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest.$ac_objext'
31941 { (case "(($ac_try" in
31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943 *) ac_try_echo=$ac_try;;
31944esac
31945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946 (eval "$ac_try") 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031950 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031951else
31952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031953sed 's/^/| /' conftest.$ac_ext >&5
31954
Reid Spencera773bd52006-08-04 18:18:08 +000031955 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031956fi
Reid Spencera773bd52006-08-04 18:18:08 +000031957
31958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031959 ac_ext=c
31960ac_cpp='$CPP $CPPFLAGS'
31961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31963ac_compiler_gnu=$ac_cv_c_compiler_gnu
31964
John Criswell7a73b802003-06-30 21:59:07 +000031965fi
Reid Spencera773bd52006-08-04 18:18:08 +000031966{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31967echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031968 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31969 then
John Criswell9f011862004-09-24 18:28:00 +000031970
31971cat >>confdefs.h <<\_ACEOF
31972#define HAVE_STD_EXT_HASH_MAP 1
31973_ACEOF
31974
31975 else
31976
31977cat >>confdefs.h <<\_ACEOF
31978#define HAVE_STD_EXT_HASH_MAP 0
31979_ACEOF
31980
Brian Gaeke90583492003-11-10 03:06:28 +000031981 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031982
Reid Spencera773bd52006-08-04 18:18:08 +000031983 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31984echo $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 +000031985if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31987else
31988
Reid Spencera773bd52006-08-04 18:18:08 +000031989 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031990ac_cpp='$CXXCPP $CPPFLAGS'
31991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31994
31995 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031996/* confdefs.h. */
31997_ACEOF
31998cat confdefs.h >>conftest.$ac_ext
31999cat >>conftest.$ac_ext <<_ACEOF
32000/* end confdefs.h. */
32001#include <ext/hash_map>
32002#ifdef HAVE_NAMESPACES
32003using namespace __gnu_cxx;
32004#endif
32005int
32006main ()
32007{
32008hash_map<int,int> t;
32009 ;
32010 return 0;
32011}
32012_ACEOF
32013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032014if { (ac_try="$ac_compile"
32015case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32018esac
32019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032022 grep -v '^ *+' conftest.er1 >conftest.err
32023 rm -f conftest.er1
32024 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032026 (exit $ac_status); } &&
32027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32028 { (case "(($ac_try" in
32029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32030 *) ac_try_echo=$ac_try;;
32031esac
32032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32033 (eval "$ac_try") 2>&5
32034 ac_status=$?
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); }; } &&
32037 { ac_try='test -s conftest.$ac_objext'
32038 { (case "(($ac_try" in
32039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32040 *) ac_try_echo=$ac_try;;
32041esac
32042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32043 (eval "$ac_try") 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032047 ac_cv_cxx_have_gnu_ext_hash_map=yes
32048else
32049 echo "$as_me: failed program was:" >&5
32050sed 's/^/| /' conftest.$ac_ext >&5
32051
Reid Spencera773bd52006-08-04 18:18:08 +000032052 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032053fi
Reid Spencera773bd52006-08-04 18:18:08 +000032054
32055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032056 ac_ext=c
32057ac_cpp='$CPP $CPPFLAGS'
32058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32060ac_compiler_gnu=$ac_cv_c_compiler_gnu
32061
32062fi
Reid Spencera773bd52006-08-04 18:18:08 +000032063{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32064echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032065 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32066 then
John Criswell9f011862004-09-24 18:28:00 +000032067
32068cat >>confdefs.h <<\_ACEOF
32069#define HAVE_GNU_EXT_HASH_MAP 1
32070_ACEOF
32071
32072 else
32073
32074cat >>confdefs.h <<\_ACEOF
32075#define HAVE_GNU_EXT_HASH_MAP 0
32076_ACEOF
32077
Brian Gaeke90583492003-11-10 03:06:28 +000032078 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032079
Reid Spencera773bd52006-08-04 18:18:08 +000032080 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32081echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032082if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32083 echo $ECHO_N "(cached) $ECHO_C" >&6
32084else
John Criswell7a73b802003-06-30 21:59:07 +000032085
Reid Spencera773bd52006-08-04 18:18:08 +000032086 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032087ac_cpp='$CXXCPP $CPPFLAGS'
32088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32091
32092 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032093/* confdefs.h. */
32094_ACEOF
32095cat confdefs.h >>conftest.$ac_ext
32096cat >>conftest.$ac_ext <<_ACEOF
32097/* end confdefs.h. */
32098#include <hash_map>
32099int
32100main ()
32101{
32102hash_map<int,int> t;
32103 ;
32104 return 0;
32105}
32106_ACEOF
32107rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032108if { (ac_try="$ac_compile"
32109case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32112esac
32113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032115 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032116 grep -v '^ *+' conftest.er1 >conftest.err
32117 rm -f conftest.er1
32118 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032120 (exit $ac_status); } &&
32121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32125esac
32126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest.$ac_objext'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32135esac
32136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032141 ac_cv_cxx_have_global_hash_map=yes
32142else
32143 echo "$as_me: failed program was:" >&5
32144sed 's/^/| /' conftest.$ac_ext >&5
32145
Reid Spencera773bd52006-08-04 18:18:08 +000032146 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032147fi
Reid Spencera773bd52006-08-04 18:18:08 +000032148
32149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032150 ac_ext=c
32151ac_cpp='$CPP $CPPFLAGS'
32152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154ac_compiler_gnu=$ac_cv_c_compiler_gnu
32155
32156fi
Reid Spencera773bd52006-08-04 18:18:08 +000032157{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32158echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032159 if test "$ac_cv_cxx_have_global_hash_map" = yes
32160 then
John Criswell9f011862004-09-24 18:28:00 +000032161
32162cat >>confdefs.h <<\_ACEOF
32163#define HAVE_GLOBAL_HASH_MAP 1
32164_ACEOF
32165
32166 else
32167
32168cat >>confdefs.h <<\_ACEOF
32169#define HAVE_GLOBAL_HASH_MAP 0
32170_ACEOF
32171
Brian Gaeke90583492003-11-10 03:06:28 +000032172 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032173
Reid Spencera773bd52006-08-04 18:18:08 +000032174{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32175echo $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 +000032176if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032177 echo $ECHO_N "(cached) $ECHO_C" >&6
32178else
32179
Reid Spencera773bd52006-08-04 18:18:08 +000032180 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032181ac_cpp='$CXXCPP $CPPFLAGS'
32182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32185
32186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032187/* confdefs.h. */
32188_ACEOF
32189cat confdefs.h >>conftest.$ac_ext
32190cat >>conftest.$ac_ext <<_ACEOF
32191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032192#include <ext/hash_set>
32193#ifdef HAVE_NAMESPACES
32194using namespace std;
32195#endif
John Criswell7a73b802003-06-30 21:59:07 +000032196int
32197main ()
32198{
Brian Gaeke90583492003-11-10 03:06:28 +000032199hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032200 ;
32201 return 0;
32202}
32203_ACEOF
32204rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032205if { (ac_try="$ac_compile"
32206case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32209esac
32210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032213 grep -v '^ *+' conftest.er1 >conftest.err
32214 rm -f conftest.er1
32215 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032217 (exit $ac_status); } &&
32218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32219 { (case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32222esac
32223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_try") 2>&5
32225 ac_status=$?
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); }; } &&
32228 { ac_try='test -s conftest.$ac_objext'
32229 { (case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32232esac
32233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_try") 2>&5
32235 ac_status=$?
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032238 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032239else
32240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032241sed 's/^/| /' conftest.$ac_ext >&5
32242
Reid Spencera773bd52006-08-04 18:18:08 +000032243 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032244fi
Reid Spencera773bd52006-08-04 18:18:08 +000032245
32246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032247 ac_ext=c
32248ac_cpp='$CPP $CPPFLAGS'
32249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32251ac_compiler_gnu=$ac_cv_c_compiler_gnu
32252
32253fi
Reid Spencera773bd52006-08-04 18:18:08 +000032254{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32255echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032256 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32257 then
John Criswell9f011862004-09-24 18:28:00 +000032258
32259cat >>confdefs.h <<\_ACEOF
32260#define HAVE_STD_EXT_HASH_SET 1
32261_ACEOF
32262
32263 else
32264
32265cat >>confdefs.h <<\_ACEOF
32266#define HAVE_STD_EXT_HASH_SET 0
32267_ACEOF
32268
Brian Gaeke90583492003-11-10 03:06:28 +000032269 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032270
Reid Spencera773bd52006-08-04 18:18:08 +000032271 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32272echo $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 +000032273if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32274 echo $ECHO_N "(cached) $ECHO_C" >&6
32275else
32276
Reid Spencera773bd52006-08-04 18:18:08 +000032277 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032278ac_cpp='$CXXCPP $CPPFLAGS'
32279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32282
John Criswell7a73b802003-06-30 21:59:07 +000032283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032284/* confdefs.h. */
32285_ACEOF
32286cat confdefs.h >>conftest.$ac_ext
32287cat >>conftest.$ac_ext <<_ACEOF
32288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032289#include <ext/hash_set>
32290#ifdef HAVE_NAMESPACES
32291using namespace __gnu_cxx;
32292#endif
John Criswell7a73b802003-06-30 21:59:07 +000032293int
32294main ()
32295{
Brian Gaeke90583492003-11-10 03:06:28 +000032296hash_set<int> t;
32297 ;
32298 return 0;
32299}
32300_ACEOF
32301rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032302if { (ac_try="$ac_compile"
32303case "(($ac_try" in
32304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32305 *) ac_try_echo=$ac_try;;
32306esac
32307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32308 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032309 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32316 { (case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319esac
32320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_try") 2>&5
32322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; } &&
32325 { ac_try='test -s conftest.$ac_objext'
32326 { (case "(($ac_try" in
32327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32328 *) ac_try_echo=$ac_try;;
32329esac
32330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32331 (eval "$ac_try") 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032335 ac_cv_cxx_have_gnu_ext_hash_set=yes
32336else
32337 echo "$as_me: failed program was:" >&5
32338sed 's/^/| /' conftest.$ac_ext >&5
32339
Reid Spencera773bd52006-08-04 18:18:08 +000032340 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032341fi
Reid Spencera773bd52006-08-04 18:18:08 +000032342
32343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032344 ac_ext=c
32345ac_cpp='$CPP $CPPFLAGS'
32346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348ac_compiler_gnu=$ac_cv_c_compiler_gnu
32349
32350fi
Reid Spencera773bd52006-08-04 18:18:08 +000032351{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32352echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032353 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32354 then
John Criswell9f011862004-09-24 18:28:00 +000032355
32356cat >>confdefs.h <<\_ACEOF
32357#define HAVE_GNU_EXT_HASH_SET 1
32358_ACEOF
32359
32360 else
32361
32362cat >>confdefs.h <<\_ACEOF
32363#define HAVE_GNU_EXT_HASH_SET 0
32364_ACEOF
32365
Brian Gaeke90583492003-11-10 03:06:28 +000032366 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032367
Reid Spencera773bd52006-08-04 18:18:08 +000032368 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32369echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032370if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32371 echo $ECHO_N "(cached) $ECHO_C" >&6
32372else
32373
Reid Spencera773bd52006-08-04 18:18:08 +000032374 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032375ac_cpp='$CXXCPP $CPPFLAGS'
32376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32379
32380 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032381/* confdefs.h. */
32382_ACEOF
32383cat confdefs.h >>conftest.$ac_ext
32384cat >>conftest.$ac_ext <<_ACEOF
32385/* end confdefs.h. */
32386#include <hash_set>
32387int
32388main ()
32389{
John Criswell7a73b802003-06-30 21:59:07 +000032390hash_set<int> t; return 0;
32391 ;
32392 return 0;
32393}
32394_ACEOF
32395rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032396if { (ac_try="$ac_compile"
32397case "(($ac_try" in
32398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399 *) ac_try_echo=$ac_try;;
32400esac
32401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032404 grep -v '^ *+' conftest.er1 >conftest.err
32405 rm -f conftest.er1
32406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032408 (exit $ac_status); } &&
32409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32410 { (case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32413esac
32414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_try") 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest.$ac_objext'
32420 { (case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32423esac
32424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_try") 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032429 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032430else
32431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032432sed 's/^/| /' conftest.$ac_ext >&5
32433
Reid Spencera773bd52006-08-04 18:18:08 +000032434 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032435fi
Reid Spencera773bd52006-08-04 18:18:08 +000032436
32437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032438 ac_ext=c
32439ac_cpp='$CPP $CPPFLAGS'
32440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32442ac_compiler_gnu=$ac_cv_c_compiler_gnu
32443
John Criswell7a73b802003-06-30 21:59:07 +000032444fi
Reid Spencera773bd52006-08-04 18:18:08 +000032445{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32446echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032447 if test "$ac_cv_cxx_have_global_hash_set" = yes
32448 then
John Criswell9f011862004-09-24 18:28:00 +000032449
32450cat >>confdefs.h <<\_ACEOF
32451#define HAVE_GLOBAL_HASH_SET 1
32452_ACEOF
32453
32454 else
32455
32456cat >>confdefs.h <<\_ACEOF
32457#define HAVE_GLOBAL_HASH_SET 0
32458_ACEOF
32459
Brian Gaeke90583492003-11-10 03:06:28 +000032460 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032461
Reid Spencera773bd52006-08-04 18:18:08 +000032462{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32463echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032464if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466else
32467
Reid Spencera773bd52006-08-04 18:18:08 +000032468 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032469ac_cpp='$CXXCPP $CPPFLAGS'
32470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32473
32474 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032475/* confdefs.h. */
32476_ACEOF
32477cat confdefs.h >>conftest.$ac_ext
32478cat >>conftest.$ac_ext <<_ACEOF
32479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032480#include <iterator>
32481#ifdef HAVE_NAMESPACES
32482using namespace std;
32483#endif
John Criswell7a73b802003-06-30 21:59:07 +000032484int
32485main ()
32486{
32487iterator<int,int,int> t; return 0;
32488 ;
32489 return 0;
32490}
32491_ACEOF
32492rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032493if { (ac_try="$ac_compile"
32494case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32497esac
32498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032501 grep -v '^ *+' conftest.er1 >conftest.err
32502 rm -f conftest.er1
32503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032505 (exit $ac_status); } &&
32506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32507 { (case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32510esac
32511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_try") 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest.$ac_objext'
32517 { (case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32520esac
32521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_try") 2>&5
32523 ac_status=$?
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032526 ac_cv_cxx_have_std_iterator=yes
32527else
32528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032529sed 's/^/| /' conftest.$ac_ext >&5
32530
Reid Spencera773bd52006-08-04 18:18:08 +000032531 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032532fi
Reid Spencera773bd52006-08-04 18:18:08 +000032533
32534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032535 ac_ext=c
32536ac_cpp='$CPP $CPPFLAGS'
32537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539ac_compiler_gnu=$ac_cv_c_compiler_gnu
32540
32541
32542fi
Reid Spencera773bd52006-08-04 18:18:08 +000032543{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32544echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032545if test "$ac_cv_cxx_have_std_iterator" = yes
32546then
John Criswell40468462004-09-24 21:19:06 +000032547
32548cat >>confdefs.h <<\_ACEOF
32549#define HAVE_STD_ITERATOR 1
32550_ACEOF
32551
32552else
32553
32554cat >>confdefs.h <<\_ACEOF
32555#define HAVE_STD_ITERATOR 0
32556_ACEOF
32557
John Criswell7a73b802003-06-30 21:59:07 +000032558fi
32559
Reid Spencera773bd52006-08-04 18:18:08 +000032560{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32561echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032562if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32563 echo $ECHO_N "(cached) $ECHO_C" >&6
32564else
32565
Reid Spencera773bd52006-08-04 18:18:08 +000032566 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032567ac_cpp='$CXXCPP $CPPFLAGS'
32568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32571
32572 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032573/* confdefs.h. */
32574_ACEOF
32575cat confdefs.h >>conftest.$ac_ext
32576cat >>conftest.$ac_ext <<_ACEOF
32577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032578#include <iterator>
32579#ifdef HAVE_NAMESPACES
32580using namespace std;
32581#endif
John Criswell7a73b802003-06-30 21:59:07 +000032582int
32583main ()
32584{
John Criswellc78022e2003-07-29 19:11:58 +000032585bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032586 ;
32587 return 0;
32588}
32589_ACEOF
32590rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032591if { (ac_try="$ac_compile"
32592case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32595esac
32596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032599 grep -v '^ *+' conftest.er1 >conftest.err
32600 rm -f conftest.er1
32601 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608esac
32609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618esac
32619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032624 ac_cv_cxx_have_bi_iterator=yes
32625else
32626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032627sed 's/^/| /' conftest.$ac_ext >&5
32628
Reid Spencera773bd52006-08-04 18:18:08 +000032629 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032630fi
Reid Spencera773bd52006-08-04 18:18:08 +000032631
32632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032633 ac_ext=c
32634ac_cpp='$CPP $CPPFLAGS'
32635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32637ac_compiler_gnu=$ac_cv_c_compiler_gnu
32638
32639
32640fi
Reid Spencera773bd52006-08-04 18:18:08 +000032641{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32642echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032643if test "$ac_cv_cxx_have_bi_iterator" = yes
32644then
John Criswell40468462004-09-24 21:19:06 +000032645
32646cat >>confdefs.h <<\_ACEOF
32647#define HAVE_BI_ITERATOR 1
32648_ACEOF
32649
32650else
32651
32652cat >>confdefs.h <<\_ACEOF
32653#define HAVE_BI_ITERATOR 0
32654_ACEOF
32655
John Criswell7a73b802003-06-30 21:59:07 +000032656fi
32657
Reid Spencera773bd52006-08-04 18:18:08 +000032658{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32659echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032660if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32662else
32663
Reid Spencera773bd52006-08-04 18:18:08 +000032664 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032665ac_cpp='$CXXCPP $CPPFLAGS'
32666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32669
32670 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032671/* confdefs.h. */
32672_ACEOF
32673cat confdefs.h >>conftest.$ac_ext
32674cat >>conftest.$ac_ext <<_ACEOF
32675/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032676#include <iterator>
32677#ifdef HAVE_NAMESPACES
32678using namespace std;
32679#endif
John Criswell7a73b802003-06-30 21:59:07 +000032680int
32681main ()
32682{
John Criswellc78022e2003-07-29 19:11:58 +000032683forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032684 ;
32685 return 0;
32686}
32687_ACEOF
32688rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032689if { (ac_try="$ac_compile"
32690case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32693esac
32694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032696 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032701 (exit $ac_status); } &&
32702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716esac
32717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_try") 2>&5
32719 ac_status=$?
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032722 ac_cv_cxx_have_fwd_iterator=yes
32723else
32724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032725sed 's/^/| /' conftest.$ac_ext >&5
32726
Reid Spencera773bd52006-08-04 18:18:08 +000032727 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032728fi
Reid Spencera773bd52006-08-04 18:18:08 +000032729
32730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032731 ac_ext=c
32732ac_cpp='$CPP $CPPFLAGS'
32733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735ac_compiler_gnu=$ac_cv_c_compiler_gnu
32736
32737
32738fi
Reid Spencera773bd52006-08-04 18:18:08 +000032739{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32740echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032741if test "$ac_cv_cxx_have_fwd_iterator" = yes
32742then
John Criswell40468462004-09-24 21:19:06 +000032743
32744cat >>confdefs.h <<\_ACEOF
32745#define HAVE_FWD_ITERATOR 1
32746_ACEOF
32747
32748else
32749
32750cat >>confdefs.h <<\_ACEOF
32751#define HAVE_FWD_ITERATOR 0
32752_ACEOF
32753
John Criswell7a73b802003-06-30 21:59:07 +000032754fi
32755
32756
Reid Spencera773bd52006-08-04 18:18:08 +000032757{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32758echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032759if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32760 echo $ECHO_N "(cached) $ECHO_C" >&6
32761else
Reid Spencera773bd52006-08-04 18:18:08 +000032762 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032763ac_cpp='$CXXCPP $CPPFLAGS'
32764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32767
Reid Spencerabec8f92004-10-27 23:03:44 +000032768 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032769/* confdefs.h. */
32770_ACEOF
32771cat confdefs.h >>conftest.$ac_ext
32772cat >>conftest.$ac_ext <<_ACEOF
32773/* end confdefs.h. */
32774#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032775int
32776main ()
32777{
32778float f; isnan(f);
32779 ;
32780 return 0;
32781}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032782_ACEOF
32783rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032784if { (ac_try="$ac_compile"
32785case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32788esac
32789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032792 grep -v '^ *+' conftest.er1 >conftest.err
32793 rm -f conftest.er1
32794 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032796 (exit $ac_status); } &&
32797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32798 { (case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32801esac
32802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_try") 2>&5
32804 ac_status=$?
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
32808 { (case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32811esac
32812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_try") 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032817 ac_cv_func_isnan_in_math_h=yes
32818else
32819 echo "$as_me: failed program was:" >&5
32820sed 's/^/| /' conftest.$ac_ext >&5
32821
Reid Spencera773bd52006-08-04 18:18:08 +000032822 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032823fi
Reid Spencera773bd52006-08-04 18:18:08 +000032824
32825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032826 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032827ac_cpp='$CPP $CPPFLAGS'
32828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830ac_compiler_gnu=$ac_cv_c_compiler_gnu
32831
32832fi
Reid Spencera773bd52006-08-04 18:18:08 +000032833{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32834echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032835
32836
32837if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032838
32839cat >>confdefs.h <<\_ACEOF
32840#define HAVE_ISNAN_IN_MATH_H 1
32841_ACEOF
32842
Reid Spencerabec8f92004-10-27 23:03:44 +000032843fi
32844
Reid Spencera773bd52006-08-04 18:18:08 +000032845{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32846echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032847if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32848 echo $ECHO_N "(cached) $ECHO_C" >&6
32849else
Reid Spencera773bd52006-08-04 18:18:08 +000032850 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032851ac_cpp='$CXXCPP $CPPFLAGS'
32852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32855
Reid Spencerabec8f92004-10-27 23:03:44 +000032856 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032857/* confdefs.h. */
32858_ACEOF
32859cat confdefs.h >>conftest.$ac_ext
32860cat >>conftest.$ac_ext <<_ACEOF
32861/* end confdefs.h. */
32862#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032863int
32864main ()
32865{
32866float f; isnan(f);
32867 ;
32868 return 0;
32869}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032870_ACEOF
32871rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032872if { (ac_try="$ac_compile"
32873case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32876esac
32877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32889esac
32890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest.$ac_objext'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899esac
32900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032905 ac_cv_func_isnan_in_cmath=yes
32906else
32907 echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
Reid Spencera773bd52006-08-04 18:18:08 +000032910 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032911fi
Reid Spencera773bd52006-08-04 18:18:08 +000032912
32913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032914 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032915ac_cpp='$CPP $CPPFLAGS'
32916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918ac_compiler_gnu=$ac_cv_c_compiler_gnu
32919
32920fi
Reid Spencera773bd52006-08-04 18:18:08 +000032921{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32922echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032923
32924if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032925
32926cat >>confdefs.h <<\_ACEOF
32927#define HAVE_ISNAN_IN_CMATH 1
32928_ACEOF
32929
Reid Spencerabec8f92004-10-27 23:03:44 +000032930fi
32931
Reid Spencera773bd52006-08-04 18:18:08 +000032932{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32933echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032934if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32935 echo $ECHO_N "(cached) $ECHO_C" >&6
32936else
Reid Spencera773bd52006-08-04 18:18:08 +000032937 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032938ac_cpp='$CXXCPP $CPPFLAGS'
32939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32942
Reid Spencerabec8f92004-10-27 23:03:44 +000032943 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032944/* confdefs.h. */
32945_ACEOF
32946cat confdefs.h >>conftest.$ac_ext
32947cat >>conftest.$ac_ext <<_ACEOF
32948/* end confdefs.h. */
32949#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032950int
32951main ()
32952{
32953float f; std::isnan(f);
32954 ;
32955 return 0;
32956}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032957_ACEOF
32958rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032959if { (ac_try="$ac_compile"
32960case "(($ac_try" in
32961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962 *) ac_try_echo=$ac_try;;
32963esac
32964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32965 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032966 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032967 grep -v '^ *+' conftest.er1 >conftest.err
32968 rm -f conftest.er1
32969 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032971 (exit $ac_status); } &&
32972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32973 { (case "(($ac_try" in
32974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32975 *) ac_try_echo=$ac_try;;
32976esac
32977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32978 (eval "$ac_try") 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; } &&
32982 { ac_try='test -s conftest.$ac_objext'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32986esac
32987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032992 ac_cv_func_std_isnan_in_cmath=yes
32993else
32994 echo "$as_me: failed program was:" >&5
32995sed 's/^/| /' conftest.$ac_ext >&5
32996
Reid Spencera773bd52006-08-04 18:18:08 +000032997 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032998fi
Reid Spencera773bd52006-08-04 18:18:08 +000032999
33000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033001 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033002ac_cpp='$CPP $CPPFLAGS'
33003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33005ac_compiler_gnu=$ac_cv_c_compiler_gnu
33006
33007fi
Reid Spencera773bd52006-08-04 18:18:08 +000033008{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33009echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033010
33011if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033012
33013cat >>confdefs.h <<\_ACEOF
33014#define HAVE_STD_ISNAN_IN_CMATH 1
33015_ACEOF
33016
Reid Spencerabec8f92004-10-27 23:03:44 +000033017fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033018
33019
Reid Spencera773bd52006-08-04 18:18:08 +000033020{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33021echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033022if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
Reid Spencera773bd52006-08-04 18:18:08 +000033025 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033026ac_cpp='$CXXCPP $CPPFLAGS'
33027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33030
Reid Spencerabec8f92004-10-27 23:03:44 +000033031 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033032/* confdefs.h. */
33033_ACEOF
33034cat confdefs.h >>conftest.$ac_ext
33035cat >>conftest.$ac_ext <<_ACEOF
33036/* end confdefs.h. */
33037#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033038int
33039main ()
33040{
33041float f; isinf(f);
33042 ;
33043 return 0;
33044}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033045_ACEOF
33046rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033047if { (ac_try="$ac_compile"
33048case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33051esac
33052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033055 grep -v '^ *+' conftest.er1 >conftest.err
33056 rm -f conftest.er1
33057 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033059 (exit $ac_status); } &&
33060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33064esac
33065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest.$ac_objext'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074esac
33075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033080 ac_cv_func_isinf_in_math_h=yes
33081else
33082 echo "$as_me: failed program was:" >&5
33083sed 's/^/| /' conftest.$ac_ext >&5
33084
Reid Spencera773bd52006-08-04 18:18:08 +000033085 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033086fi
Reid Spencera773bd52006-08-04 18:18:08 +000033087
33088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033089 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033090ac_cpp='$CPP $CPPFLAGS'
33091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093ac_compiler_gnu=$ac_cv_c_compiler_gnu
33094
33095fi
Reid Spencera773bd52006-08-04 18:18:08 +000033096{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33097echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033098
33099if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033100
33101cat >>confdefs.h <<\_ACEOF
33102#define HAVE_ISINF_IN_MATH_H 1
33103_ACEOF
33104
Reid Spencerabec8f92004-10-27 23:03:44 +000033105fi
33106
Reid Spencera773bd52006-08-04 18:18:08 +000033107{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33108echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033109if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33111else
Reid Spencera773bd52006-08-04 18:18:08 +000033112 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033113ac_cpp='$CXXCPP $CPPFLAGS'
33114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33117
Reid Spencerabec8f92004-10-27 23:03:44 +000033118 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033119/* confdefs.h. */
33120_ACEOF
33121cat confdefs.h >>conftest.$ac_ext
33122cat >>conftest.$ac_ext <<_ACEOF
33123/* end confdefs.h. */
33124#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033125int
33126main ()
33127{
33128float f; isinf(f);
33129 ;
33130 return 0;
33131}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033132_ACEOF
33133rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033134if { (ac_try="$ac_compile"
33135case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33138esac
33139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033141 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033146 (exit $ac_status); } &&
33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33148 { (case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33151esac
33152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_try") 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest.$ac_objext'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033167 ac_cv_func_isinf_in_cmath=yes
33168else
33169 echo "$as_me: failed program was:" >&5
33170sed 's/^/| /' conftest.$ac_ext >&5
33171
Reid Spencera773bd52006-08-04 18:18:08 +000033172 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033173fi
Reid Spencera773bd52006-08-04 18:18:08 +000033174
33175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033176 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033177ac_cpp='$CPP $CPPFLAGS'
33178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180ac_compiler_gnu=$ac_cv_c_compiler_gnu
33181
33182fi
Reid Spencera773bd52006-08-04 18:18:08 +000033183{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33184echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033185
33186if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033187
33188cat >>confdefs.h <<\_ACEOF
33189#define HAVE_ISINF_IN_CMATH 1
33190_ACEOF
33191
Reid Spencerabec8f92004-10-27 23:03:44 +000033192fi
33193
Reid Spencera773bd52006-08-04 18:18:08 +000033194{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33195echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033196if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33198else
Reid Spencera773bd52006-08-04 18:18:08 +000033199 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033200ac_cpp='$CXXCPP $CPPFLAGS'
33201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33204
Reid Spencerabec8f92004-10-27 23:03:44 +000033205 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033206/* confdefs.h. */
33207_ACEOF
33208cat confdefs.h >>conftest.$ac_ext
33209cat >>conftest.$ac_ext <<_ACEOF
33210/* end confdefs.h. */
33211#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033212int
33213main ()
33214{
33215float f; std::isinf(f)}
33216 ;
33217 return 0;
33218}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033219_ACEOF
33220rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033221if { (ac_try="$ac_compile"
33222case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33225esac
33226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033229 grep -v '^ *+' conftest.er1 >conftest.err
33230 rm -f conftest.er1
33231 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33238esac
33239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33248esac
33249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033254 ac_cv_func_std_isinf_in_cmath=yes
33255else
33256 echo "$as_me: failed program was:" >&5
33257sed 's/^/| /' conftest.$ac_ext >&5
33258
Reid Spencera773bd52006-08-04 18:18:08 +000033259 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033260fi
Reid Spencera773bd52006-08-04 18:18:08 +000033261
33262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033263 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033264ac_cpp='$CPP $CPPFLAGS'
33265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267ac_compiler_gnu=$ac_cv_c_compiler_gnu
33268
33269fi
Reid Spencera773bd52006-08-04 18:18:08 +000033270{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33271echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033272
33273if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033274
33275cat >>confdefs.h <<\_ACEOF
33276#define HAVE_STD_ISINF_IN_CMATH 1
33277_ACEOF
33278
Reid Spencerabec8f92004-10-27 23:03:44 +000033279fi
33280
Reid Spencera773bd52006-08-04 18:18:08 +000033281{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33282echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033283if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33285else
Reid Spencera773bd52006-08-04 18:18:08 +000033286 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033287ac_cpp='$CXXCPP $CPPFLAGS'
33288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33291
Reid Spencerabec8f92004-10-27 23:03:44 +000033292 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033293/* confdefs.h. */
33294_ACEOF
33295cat confdefs.h >>conftest.$ac_ext
33296cat >>conftest.$ac_ext <<_ACEOF
33297/* end confdefs.h. */
33298#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033299int
33300main ()
33301{
33302float f; finite(f);
33303 ;
33304 return 0;
33305}
Brian Gaeked59a6472004-07-21 03:33:58 +000033306_ACEOF
33307rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033308if { (ac_try="$ac_compile"
33309case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33312esac
33313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33314 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033316 grep -v '^ *+' conftest.er1 >conftest.err
33317 rm -f conftest.er1
33318 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033320 (exit $ac_status); } &&
33321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33322 { (case "(($ac_try" in
33323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324 *) ac_try_echo=$ac_try;;
33325esac
33326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327 (eval "$ac_try") 2>&5
33328 ac_status=$?
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); }; } &&
33331 { ac_try='test -s conftest.$ac_objext'
33332 { (case "(($ac_try" in
33333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334 *) ac_try_echo=$ac_try;;
33335esac
33336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337 (eval "$ac_try") 2>&5
33338 ac_status=$?
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033341 ac_cv_func_finite_in_ieeefp_h=yes
33342else
33343 echo "$as_me: failed program was:" >&5
33344sed 's/^/| /' conftest.$ac_ext >&5
33345
Reid Spencera773bd52006-08-04 18:18:08 +000033346 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033347fi
Reid Spencera773bd52006-08-04 18:18:08 +000033348
33349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033350 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033351ac_cpp='$CPP $CPPFLAGS'
33352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33354ac_compiler_gnu=$ac_cv_c_compiler_gnu
33355
33356fi
Reid Spencera773bd52006-08-04 18:18:08 +000033357{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33358echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033359
Brian Gaeke6802b552004-10-28 05:06:45 +000033360if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033361
33362cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033363#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033364_ACEOF
33365
Reid Spencerabec8f92004-10-27 23:03:44 +000033366fi
33367
33368
33369
Reid Spencer30fe5262007-01-20 07:48:49 +000033370if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033371
33372
33373for ac_header in stdlib.h unistd.h
33374do
33375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033380 echo $ECHO_N "(cached) $ECHO_C" >&6
33381fi
Reid Spencera773bd52006-08-04 18:18:08 +000033382ac_res=`eval echo '${'$as_ac_Header'}'`
33383 { echo "$as_me:$LINENO: result: $ac_res" >&5
33384echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033385else
33386 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033387{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033389cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033390/* confdefs.h. */
33391_ACEOF
33392cat confdefs.h >>conftest.$ac_ext
33393cat >>conftest.$ac_ext <<_ACEOF
33394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033395$ac_includes_default
33396#include <$ac_header>
33397_ACEOF
33398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033399if { (ac_try="$ac_compile"
33400case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33403esac
33404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033407 grep -v '^ *+' conftest.er1 >conftest.err
33408 rm -f conftest.er1
33409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033411 (exit $ac_status); } &&
33412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33413 { (case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33416esac
33417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_try") 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; } &&
33422 { ac_try='test -s conftest.$ac_objext'
33423 { (case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33426esac
33427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_try") 2>&5
33429 ac_status=$?
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033432 ac_header_compiler=yes
33433else
33434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033435sed 's/^/| /' conftest.$ac_ext >&5
33436
Reid Spencera773bd52006-08-04 18:18:08 +000033437 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033438fi
Reid Spencera773bd52006-08-04 18:18:08 +000033439
33440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33441{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33442echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033443
33444# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033445{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033447cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033448/* confdefs.h. */
33449_ACEOF
33450cat confdefs.h >>conftest.$ac_ext
33451cat >>conftest.$ac_ext <<_ACEOF
33452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033453#include <$ac_header>
33454_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033455if { (ac_try="$ac_cpp conftest.$ac_ext"
33456case "(($ac_try" in
33457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458 *) ac_try_echo=$ac_try;;
33459esac
33460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033462 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033463 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033464 rm -f conftest.er1
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033467 (exit $ac_status); } >/dev/null; then
33468 if test -s conftest.err; then
33469 ac_cpp_err=$ac_c_preproc_warn_flag
33470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33471 else
33472 ac_cpp_err=
33473 fi
33474else
33475 ac_cpp_err=yes
33476fi
33477if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033478 ac_header_preproc=yes
33479else
33480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033481sed 's/^/| /' conftest.$ac_ext >&5
33482
John Criswell7a73b802003-06-30 21:59:07 +000033483 ac_header_preproc=no
33484fi
Reid Spencera773bd52006-08-04 18:18:08 +000033485
John Criswell7a73b802003-06-30 21:59:07 +000033486rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33488echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033489
33490# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33492 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33497 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033498 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033499 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33507echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033512 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033513## ----------------------------------- ##
33514## Report this to llvmbugs@cs.uiuc.edu ##
33515## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033516_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033517 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033518 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033519esac
Reid Spencera773bd52006-08-04 18:18:08 +000033520{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033523 echo $ECHO_N "(cached) $ECHO_C" >&6
33524else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033525 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033526fi
Reid Spencera773bd52006-08-04 18:18:08 +000033527ac_res=`eval echo '${'$as_ac_Header'}'`
33528 { echo "$as_me:$LINENO: result: $ac_res" >&5
33529echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033530
33531fi
33532if test `eval echo '${'$as_ac_Header'}'` = yes; then
33533 cat >>confdefs.h <<_ACEOF
33534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33535_ACEOF
33536
33537fi
33538
33539done
33540
33541
33542for ac_func in getpagesize
33543do
33544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033545{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033548 echo $ECHO_N "(cached) $ECHO_C" >&6
33549else
33550 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033551/* confdefs.h. */
33552_ACEOF
33553cat confdefs.h >>conftest.$ac_ext
33554cat >>conftest.$ac_ext <<_ACEOF
33555/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33558#define $ac_func innocuous_$ac_func
33559
John Criswell7a73b802003-06-30 21:59:07 +000033560/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033561 which can conflict with char $ac_func (); below.
33562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33563 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033564
John Criswell0c38eaf2003-09-10 15:17:25 +000033565#ifdef __STDC__
33566# include <limits.h>
33567#else
33568# include <assert.h>
33569#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033570
33571#undef $ac_func
33572
Reid Spencera773bd52006-08-04 18:18:08 +000033573/* Override any GCC internal prototype to avoid an error.
33574 Use char because int might match the return type of a GCC
33575 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033576#ifdef __cplusplus
33577extern "C"
33578#endif
John Criswell7a73b802003-06-30 21:59:07 +000033579char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033580/* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033583#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033584choke me
John Criswell7a73b802003-06-30 21:59:07 +000033585#endif
33586
John Criswell0c38eaf2003-09-10 15:17:25 +000033587int
33588main ()
33589{
Reid Spencera773bd52006-08-04 18:18:08 +000033590return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033591 ;
33592 return 0;
33593}
33594_ACEOF
33595rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033596if { (ac_try="$ac_link"
33597case "(($ac_try" in
33598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33599 *) ac_try_echo=$ac_try;;
33600esac
33601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33602 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33610 { (case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33613esac
33614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_try") 2>&5
33616 ac_status=$?
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; } &&
33619 { ac_try='test -s conftest$ac_exeext'
33620 { (case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33623esac
33624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_try") 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033629 eval "$as_ac_var=yes"
33630else
33631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033632sed 's/^/| /' conftest.$ac_ext >&5
33633
Reid Spencera773bd52006-08-04 18:18:08 +000033634 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033635fi
Reid Spencera773bd52006-08-04 18:18:08 +000033636
Tanya Lattnercf067672008-01-17 05:57:22 +000033637rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033638 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033639fi
Reid Spencera773bd52006-08-04 18:18:08 +000033640ac_res=`eval echo '${'$as_ac_var'}'`
33641 { echo "$as_me:$LINENO: result: $ac_res" >&5
33642echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033643if test `eval echo '${'$as_ac_var'}'` = yes; then
33644 cat >>confdefs.h <<_ACEOF
33645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33646_ACEOF
33647
33648fi
33649done
33650
Reid Spencera773bd52006-08-04 18:18:08 +000033651{ echo "$as_me:$LINENO: checking for working mmap" >&5
33652echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033653if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33654 echo $ECHO_N "(cached) $ECHO_C" >&6
33655else
33656 if test "$cross_compiling" = yes; then
33657 ac_cv_func_mmap_fixed_mapped=no
33658else
33659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033660/* confdefs.h. */
33661_ACEOF
33662cat confdefs.h >>conftest.$ac_ext
33663cat >>conftest.$ac_ext <<_ACEOF
33664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033665$ac_includes_default
33666/* malloc might have been renamed as rpl_malloc. */
33667#undef malloc
33668
33669/* Thanks to Mike Haertel and Jim Avera for this test.
33670 Here is a matrix of mmap possibilities:
33671 mmap private not fixed
33672 mmap private fixed at somewhere currently unmapped
33673 mmap private fixed at somewhere already mapped
33674 mmap shared not fixed
33675 mmap shared fixed at somewhere currently unmapped
33676 mmap shared fixed at somewhere already mapped
33677 For private mappings, we should verify that changes cannot be read()
33678 back from the file, nor mmap's back from the file at a different
33679 address. (There have been systems where private was not correctly
33680 implemented like the infamous i386 svr4.0, and systems where the
33681 VM page cache was not coherent with the file system buffer cache
33682 like early versions of FreeBSD and possibly contemporary NetBSD.)
33683 For shared mappings, we should conversely verify that changes get
33684 propagated back to all the places they're supposed to be.
33685
33686 Grep wants private fixed already mapped.
33687 The main things grep needs to know about mmap are:
33688 * does it exist and is it safe to write into the mmap'd area
33689 * how to use it (BSD variants) */
33690
33691#include <fcntl.h>
33692#include <sys/mman.h>
33693
Tanya Lattnercf067672008-01-17 05:57:22 +000033694#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033695char *malloc ();
33696#endif
33697
33698/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033699#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033700/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033701# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033702# define HAVE_SYS_PARAM_H 1
33703# endif
33704
33705# ifdef _SC_PAGESIZE
33706# define getpagesize() sysconf(_SC_PAGESIZE)
33707# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033708# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033709# include <sys/param.h>
33710# ifdef EXEC_PAGESIZE
33711# define getpagesize() EXEC_PAGESIZE
33712# else /* no EXEC_PAGESIZE */
33713# ifdef NBPG
33714# define getpagesize() NBPG * CLSIZE
33715# ifndef CLSIZE
33716# define CLSIZE 1
33717# endif /* no CLSIZE */
33718# else /* no NBPG */
33719# ifdef NBPC
33720# define getpagesize() NBPC
33721# else /* no NBPC */
33722# ifdef PAGESIZE
33723# define getpagesize() PAGESIZE
33724# endif /* PAGESIZE */
33725# endif /* no NBPC */
33726# endif /* no NBPG */
33727# endif /* no EXEC_PAGESIZE */
33728# else /* no HAVE_SYS_PARAM_H */
33729# define getpagesize() 8192 /* punt totally */
33730# endif /* no HAVE_SYS_PARAM_H */
33731# endif /* no _SC_PAGESIZE */
33732
33733#endif /* no HAVE_GETPAGESIZE */
33734
33735int
33736main ()
33737{
33738 char *data, *data2, *data3;
33739 int i, pagesize;
33740 int fd;
33741
33742 pagesize = getpagesize ();
33743
33744 /* First, make a file with some known garbage in it. */
33745 data = (char *) malloc (pagesize);
33746 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033747 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033748 for (i = 0; i < pagesize; ++i)
33749 *(data + i) = rand ();
33750 umask (0);
33751 fd = creat ("conftest.mmap", 0600);
33752 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033753 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033754 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033755 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033756 close (fd);
33757
33758 /* Next, try to mmap the file at a fixed address which already has
33759 something else allocated at it. If we can, also make sure that
33760 we see the same garbage. */
33761 fd = open ("conftest.mmap", O_RDWR);
33762 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033763 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033764 data2 = (char *) malloc (2 * pagesize);
33765 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033766 return 1;
33767 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033768 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033769 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033770 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033771 for (i = 0; i < pagesize; ++i)
33772 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033773 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033774
33775 /* Finally, make sure that changes to the mapped area do not
33776 percolate back to the file as seen by read(). (This is a bug on
33777 some variants of i386 svr4.0.) */
33778 for (i = 0; i < pagesize; ++i)
33779 *(data2 + i) = *(data2 + i) + 1;
33780 data3 = (char *) malloc (pagesize);
33781 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033782 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033783 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033784 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033785 for (i = 0; i < pagesize; ++i)
33786 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033787 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033788 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033789 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033790}
33791_ACEOF
33792rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033793if { (ac_try="$ac_link"
33794case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33797esac
33798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033803 { (case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33806esac
33807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 ac_cv_func_mmap_fixed_mapped=yes
33813else
33814 echo "$as_me: program exited with status $ac_status" >&5
33815echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033816sed 's/^/| /' conftest.$ac_ext >&5
33817
John Criswell7a73b802003-06-30 21:59:07 +000033818( exit $ac_status )
33819ac_cv_func_mmap_fixed_mapped=no
33820fi
Reid Spencera773bd52006-08-04 18:18:08 +000033821rm -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 +000033822fi
Reid Spencera773bd52006-08-04 18:18:08 +000033823
33824
John Criswell7a73b802003-06-30 21:59:07 +000033825fi
Reid Spencera773bd52006-08-04 18:18:08 +000033826{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33827echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033828if test $ac_cv_func_mmap_fixed_mapped = yes; then
33829
33830cat >>confdefs.h <<\_ACEOF
33831#define HAVE_MMAP 1
33832_ACEOF
33833
33834fi
33835rm -f conftest.mmap
33836
Reid Spencer30fe5262007-01-20 07:48:49 +000033837 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033838echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033839if test "${ac_cv_func_mmap_file+set}" = set; then
33840 echo $ECHO_N "(cached) $ECHO_C" >&6
33841else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033842 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033843ac_cpp='$CPP $CPPFLAGS'
33844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33846ac_compiler_gnu=$ac_cv_c_compiler_gnu
33847
33848 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033849 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033850else
33851 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033852
Reid Spencer777ce172004-09-20 04:09:56 +000033853 /* confdefs.h. */
33854_ACEOF
33855cat confdefs.h >>conftest.$ac_ext
33856cat >>conftest.$ac_ext <<_ACEOF
33857/* end confdefs.h. */
33858
John Criswell7a73b802003-06-30 21:59:07 +000033859#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033860#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033861#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033862
33863int
33864main ()
33865{
John Criswell7a73b802003-06-30 21:59:07 +000033866
33867 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033868 fd = creat ("foo",0777);
33869 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33870 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033871 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033872 ;
33873 return 0;
33874}
John Criswell7a73b802003-06-30 21:59:07 +000033875_ACEOF
33876rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033877if { (ac_try="$ac_link"
33878case "(($ac_try" in
33879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880 *) ac_try_echo=$ac_try;;
33881esac
33882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033887 { (case "(($ac_try" in
33888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889 *) ac_try_echo=$ac_try;;
33890esac
33891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033893 ac_status=$?
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); }; }; then
33896 ac_cv_func_mmap_file=yes
33897else
33898 echo "$as_me: program exited with status $ac_status" >&5
33899echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033900sed 's/^/| /' conftest.$ac_ext >&5
33901
John Criswell7a73b802003-06-30 21:59:07 +000033902( exit $ac_status )
33903ac_cv_func_mmap_file=no
33904fi
Reid Spencera773bd52006-08-04 18:18:08 +000033905rm -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 +000033906fi
Reid Spencera773bd52006-08-04 18:18:08 +000033907
33908
John Criswell7a73b802003-06-30 21:59:07 +000033909 ac_ext=c
33910ac_cpp='$CPP $CPPFLAGS'
33911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33913ac_compiler_gnu=$ac_cv_c_compiler_gnu
33914
33915
33916fi
Reid Spencera773bd52006-08-04 18:18:08 +000033917{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33918echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033919if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033920
33921cat >>confdefs.h <<\_ACEOF
33922#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033923_ACEOF
33924
33925 MMAP_FILE=yes
33926
33927fi
33928
Reid Spencer30fe5262007-01-20 07:48:49 +000033929 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033930echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033931if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33932 echo $ECHO_N "(cached) $ECHO_C" >&6
33933else
Reid Spencer582a23c2004-12-29 07:07:57 +000033934 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033935 ac_cv_need_dev_zero_for_mmap=yes
33936 else
33937 ac_cv_need_dev_zero_for_mmap=no
33938 fi
33939
33940fi
Reid Spencera773bd52006-08-04 18:18:08 +000033941{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33942echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033943if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33944
33945cat >>confdefs.h <<\_ACEOF
33946#define NEED_DEV_ZERO_FOR_MMAP 1
33947_ACEOF
33948
33949fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033950
Reid Spencer30fe5262007-01-20 07:48:49 +000033951 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33952 then
33953 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033954echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033955 fi
33956 if test "$ac_cv_func_mmap_file" = "no"
33957 then
33958 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033959echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033960 fi
John Criswellb13092b2003-07-22 21:00:24 +000033961fi
John Criswell7a73b802003-06-30 21:59:07 +000033962
33963
Reid Spencer9372f152007-07-30 20:13:24 +000033964
33965for ac_func in __dso_handle
33966do
33967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33968{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33970if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33971 echo $ECHO_N "(cached) $ECHO_C" >&6
33972else
33973 cat >conftest.$ac_ext <<_ACEOF
33974/* confdefs.h. */
33975_ACEOF
33976cat confdefs.h >>conftest.$ac_ext
33977cat >>conftest.$ac_ext <<_ACEOF
33978/* end confdefs.h. */
33979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33981#define $ac_func innocuous_$ac_func
33982
33983/* System header to define __stub macros and hopefully few prototypes,
33984 which can conflict with char $ac_func (); below.
33985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33986 <limits.h> exists even on freestanding compilers. */
33987
33988#ifdef __STDC__
33989# include <limits.h>
33990#else
33991# include <assert.h>
33992#endif
33993
33994#undef $ac_func
33995
33996/* Override any GCC internal prototype to avoid an error.
33997 Use char because int might match the return type of a GCC
33998 builtin and then its argument prototype would still apply. */
33999#ifdef __cplusplus
34000extern "C"
34001#endif
34002char $ac_func ();
34003/* The GNU C library defines this for functions which it implements
34004 to always fail with ENOSYS. Some functions are actually named
34005 something starting with __ and the normal name is an alias. */
34006#if defined __stub_$ac_func || defined __stub___$ac_func
34007choke me
34008#endif
34009
34010int
34011main ()
34012{
34013return $ac_func ();
34014 ;
34015 return 0;
34016}
34017_ACEOF
34018rm -f conftest.$ac_objext conftest$ac_exeext
34019if { (ac_try="$ac_link"
34020case "(($ac_try" in
34021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022 *) ac_try_echo=$ac_try;;
34023esac
34024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025 (eval "$ac_link") 2>conftest.er1
34026 ac_status=$?
34027 grep -v '^ *+' conftest.er1 >conftest.err
34028 rm -f conftest.er1
34029 cat conftest.err >&5
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034031 (exit $ac_status); } &&
34032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34033 { (case "(($ac_try" in
34034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34035 *) ac_try_echo=$ac_try;;
34036esac
34037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34038 (eval "$ac_try") 2>&5
34039 ac_status=$?
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); }; } &&
34042 { ac_try='test -s conftest$ac_exeext'
34043 { (case "(($ac_try" in
34044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045 *) ac_try_echo=$ac_try;;
34046esac
34047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048 (eval "$ac_try") 2>&5
34049 ac_status=$?
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034052 eval "$as_ac_var=yes"
34053else
34054 echo "$as_me: failed program was:" >&5
34055sed 's/^/| /' conftest.$ac_ext >&5
34056
34057 eval "$as_ac_var=no"
34058fi
34059
Tanya Lattnercf067672008-01-17 05:57:22 +000034060rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034061 conftest$ac_exeext conftest.$ac_ext
34062fi
34063ac_res=`eval echo '${'$as_ac_var'}'`
34064 { echo "$as_me:$LINENO: result: $ac_res" >&5
34065echo "${ECHO_T}$ac_res" >&6; }
34066if test `eval echo '${'$as_ac_var'}'` = yes; then
34067 cat >>confdefs.h <<_ACEOF
34068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34069_ACEOF
34070
34071fi
34072done
34073
34074
Reid Spencera773bd52006-08-04 18:18:08 +000034075{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34076echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034077if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34078 echo $ECHO_N "(cached) $ECHO_C" >&6
34079else
34080 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034081if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034082 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034083 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34084 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034085 if test $? -eq 0 ; then
34086 llvm_cv_llvmgcc_sanity="yes"
34087 fi
34088 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034090fi
Reid Spencera773bd52006-08-04 18:18:08 +000034091{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34092echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034093
34094if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034095 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34096echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034097 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034098 LLVMCC1=$llvmcc1path
34099
Reid Spencer502935f2004-12-22 05:56:56 +000034100 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034101 LLVMCC1PLUS=$llvmcc1pluspath
34102
Reid Spencer502935f2004-12-22 05:56:56 +000034103 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34104 LLVMGCCDIR=$llvmgccdir
34105
Reid Spencer282d8c12006-12-21 22:55:41 +000034106 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34107 LLVMGCCLIBEXEC=$llvmgcclibexec
34108
Reid Spencerb5d75b82006-05-09 00:31:01 +000034109 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034110 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34111 LLVMGCC_VERSION=$llvmgccversion
34112
34113 LLVMGCC_MAJVERS=$llvmgccmajvers
34114
Reid Spencer0d238182007-04-21 21:28:52 +000034115 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34116 LLVMGCC_LANGS=$llvmgcclangs
34117
34118 { echo "$as_me:$LINENO: result: ok" >&5
34119echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034120fi
34121
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034122SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034123
34124
Reid Spencere9de0912004-08-20 09:03:57 +000034125# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034126# information into substitutions that will end up in Makefile.config.in
34127# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034128if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034129 prefix="/usr/local"
34130fi
Reid Spencere9de0912004-08-20 09:03:57 +000034131eval LLVM_PREFIX="${prefix}";
34132eval LLVM_BINDIR="${prefix}/bin";
34133eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034134eval LLVM_DATADIR="${prefix}/share/llvm";
34135eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34136eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034137eval LLVM_INCLUDEDIR="${prefix}/include";
34138eval LLVM_INFODIR="${prefix}/info";
34139eval LLVM_MANDIR="${prefix}/man";
34140LLVM_CONFIGTIME=`date`
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034152# Place the various directores into the config.h file as #defines so that we
34153# can know about the installation paths within LLVM.
34154
Reid Spencere9de0912004-08-20 09:03:57 +000034155cat >>confdefs.h <<_ACEOF
34156#define LLVM_PREFIX "$LLVM_PREFIX"
34157_ACEOF
34158
34159
34160cat >>confdefs.h <<_ACEOF
34161#define LLVM_BINDIR "$LLVM_BINDIR"
34162_ACEOF
34163
34164
34165cat >>confdefs.h <<_ACEOF
34166#define LLVM_LIBDIR "$LLVM_LIBDIR"
34167_ACEOF
34168
34169
34170cat >>confdefs.h <<_ACEOF
34171#define LLVM_DATADIR "$LLVM_DATADIR"
34172_ACEOF
34173
34174
34175cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034176#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034177_ACEOF
34178
34179
34180cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034181#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034182_ACEOF
34183
34184
34185cat >>confdefs.h <<_ACEOF
34186#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34187_ACEOF
34188
34189
34190cat >>confdefs.h <<_ACEOF
34191#define LLVM_INFODIR "$LLVM_INFODIR"
34192_ACEOF
34193
34194
34195cat >>confdefs.h <<_ACEOF
34196#define LLVM_MANDIR "$LLVM_MANDIR"
34197_ACEOF
34198
34199
34200cat >>confdefs.h <<_ACEOF
34201#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34202_ACEOF
34203
34204
Eric Christopher790e11c2007-12-01 00:34:39 +000034205cat >>confdefs.h <<_ACEOF
34206#define LLVM_HOSTTRIPLE "$host"
34207_ACEOF
34208
34209
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034210# Determine which bindings to build.
34211if test "$BINDINGS_TO_BUILD" = auto ; then
34212 BINDINGS_TO_BUILD=""
34213 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34214 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34215 fi
34216fi
34217BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34218
34219
34220# This isn't really configurey, but it avoids having to repeat the list in
34221# other files.
34222ALL_BINDINGS=ocaml
34223
34224
Gordon Henriksenf0915682007-10-02 16:42:22 +000034225# Do any work necessary to ensure that bindings have what they need.
34226binding_prereqs_failed=0
34227for a_binding in $BINDINGS_TO_BUILD ; do
34228 case "$a_binding" in
34229 ocaml)
34230 if test "x$OCAMLC" = x ; then
34231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34232echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34233 binding_prereqs_failed=1
34234 fi
34235 if test "x$OCAMLDEP" = x ; then
34236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34237echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34238 binding_prereqs_failed=1
34239 fi
34240 if test "x$OCAMLOPT" = x ; then
34241 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34242echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34243 fi
34244 if test "x$with_ocaml_libdir" != xauto ; then
34245 OCAML_LIBDIR=$with_ocaml_libdir
34246
34247 else
34248 ocaml_stdlib="`"$OCAMLC" -where`"
34249 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34250 then
34251 # ocaml stdlib is beneath our prefix; use stdlib
34252 OCAML_LIBDIR=$ocaml_stdlib
34253
34254 else
34255 # ocaml stdlib is outside our prefix; use libdir/ocaml
34256 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34257
34258 fi
34259 fi
34260 ;;
34261 esac
34262done
34263if test "$binding_prereqs_failed" = 1 ; then
34264 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34265echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34266 { (exit 1); exit 1; }; }
34267fi
34268
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034269{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34270echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34271if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34272 echo $ECHO_N "(cached) $ECHO_C" >&6
34273else
34274 ac_ext=cpp
34275ac_cpp='$CXXCPP $CPPFLAGS'
34276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34279
34280 oldcxxflags="$CXXFLAGS"
34281 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34282 cat >conftest.$ac_ext <<_ACEOF
34283/* confdefs.h. */
34284_ACEOF
34285cat confdefs.h >>conftest.$ac_ext
34286cat >>conftest.$ac_ext <<_ACEOF
34287/* end confdefs.h. */
34288
34289int
34290main ()
34291{
34292
34293 ;
34294 return 0;
34295}
34296_ACEOF
34297rm -f conftest.$ac_objext
34298if { (ac_try="$ac_compile"
34299case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34302esac
34303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_compile") 2>conftest.er1
34305 ac_status=$?
34306 grep -v '^ *+' conftest.er1 >conftest.err
34307 rm -f conftest.er1
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } &&
34311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34312 { (case "(($ac_try" in
34313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314 *) ac_try_echo=$ac_try;;
34315esac
34316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317 (eval "$ac_try") 2>&5
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; } &&
34321 { ac_try='test -s conftest.$ac_objext'
34322 { (case "(($ac_try" in
34323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34324 *) ac_try_echo=$ac_try;;
34325esac
34326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34327 (eval "$ac_try") 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 llvm_cv_cxx_visibility_inlines_hidden=yes
34332else
34333 echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336 llvm_cv_cxx_visibility_inlines_hidden=no
34337fi
34338
34339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34340 CXXFLAGS="$oldcxxflags"
34341 ac_ext=c
34342ac_cpp='$CPP $CPPFLAGS'
34343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34345ac_compiler_gnu=$ac_cv_c_compiler_gnu
34346
34347
34348fi
34349{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34350echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34351if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34352 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34353
34354else
34355 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34356
34357fi
34358
Gordon Henriksenf0915682007-10-02 16:42:22 +000034359
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034360
Reid Spencera773bd52006-08-04 18:18:08 +000034361ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034362
Reid Spencera773bd52006-08-04 18:18:08 +000034363ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034364
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034365ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034366
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034367ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034368
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034369ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034370
34371
Reid Spencera773bd52006-08-04 18:18:08 +000034372ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034373
34374
Reid Spencerea949cf2006-08-16 00:45:38 +000034375ac_config_files="$ac_config_files llvm.spec"
34376
34377
Reid Spencera773bd52006-08-04 18:18:08 +000034378ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034379
34380
Reid Spencera773bd52006-08-04 18:18:08 +000034381ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034382
34383
Reid Spencera773bd52006-08-04 18:18:08 +000034384ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034385
Reid Spencera773bd52006-08-04 18:18:08 +000034386ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034387
34388
Reid Spencera773bd52006-08-04 18:18:08 +000034389ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034390
34391
Reid Spencera773bd52006-08-04 18:18:08 +000034392ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034393
34394
Reid Spencera773bd52006-08-04 18:18:08 +000034395ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034396
34397
Reid Spencer8b2e1412006-11-17 03:32:33 +000034398ac_config_commands="$ac_config_commands runtime/Makefile"
34399
34400
Reid Spencera773bd52006-08-04 18:18:08 +000034401ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034402
34403
Reid Spencera773bd52006-08-04 18:18:08 +000034404ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034405
34406
Reid Spencera773bd52006-08-04 18:18:08 +000034407ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034408
34409
Reid Spencera773bd52006-08-04 18:18:08 +000034410ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034411
34412
Reid Spencera773bd52006-08-04 18:18:08 +000034413ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034414
34415
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034416ac_config_commands="$ac_config_commands bindings/Makefile"
34417
34418
34419ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34420
34421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034422
John Criswell7a73b802003-06-30 21:59:07 +000034423cat >confcache <<\_ACEOF
34424# This file is a shell script that caches the results of configure
34425# tests run on this system so they can be shared between configure
34426# scripts and configure runs, see configure's option --config-cache.
34427# It is not useful on other systems. If it contains results you don't
34428# want to keep, you may remove or edit it.
34429#
34430# config.status only pays attention to the cache file if you give it
34431# the --recheck option to rerun configure.
34432#
John Criswell0c38eaf2003-09-10 15:17:25 +000034433# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034434# loading this file, other *unset* `ac_cv_foo' will be assigned the
34435# following values.
34436
34437_ACEOF
34438
34439# The following way of writing the cache mishandles newlines in values,
34440# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034441# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034442# Ultrix sh set writes to stderr and can't be redirected directly,
34443# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034444(
34445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34446 eval ac_val=\$$ac_var
34447 case $ac_val in #(
34448 *${as_nl}*)
34449 case $ac_var in #(
34450 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34451echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34452 esac
34453 case $ac_var in #(
34454 _ | IFS | as_nl) ;; #(
34455 *) $as_unset $ac_var ;;
34456 esac ;;
34457 esac
34458 done
34459
John Criswell7a73b802003-06-30 21:59:07 +000034460 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34462 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034463 # `set' does not quote correctly, so add quotes (double-quote
34464 # substitution turns \\\\ into \\, and sed turns \\ into \).
34465 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034466 "s/'/'\\\\''/g;
34467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034468 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034469 *)
34470 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034473 esac |
34474 sort
34475) |
John Criswell7a73b802003-06-30 21:59:07 +000034476 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034477 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034478 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034479 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34481 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34483 :end' >>confcache
34484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34485 if test -w "$cache_file"; then
34486 test "x$cache_file" != "x/dev/null" &&
34487 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34488echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034489 cat confcache >$cache_file
34490 else
Reid Spencera773bd52006-08-04 18:18:08 +000034491 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34492echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034493 fi
34494fi
34495rm -f confcache
34496
34497test "x$prefix" = xNONE && prefix=$ac_default_prefix
34498# Let make expand exec_prefix.
34499test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34500
John Criswell7a73b802003-06-30 21:59:07 +000034501DEFS=-DHAVE_CONFIG_H
34502
John Criswell0c38eaf2003-09-10 15:17:25 +000034503ac_libobjs=
34504ac_ltlibobjs=
34505for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34506 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34508 ac_i=`echo "$ac_i" | sed "$ac_script"`
34509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34510 # will be set to the directory where LIBOBJS objects are built.
34511 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34512 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034513done
34514LIBOBJS=$ac_libobjs
34515
34516LTLIBOBJS=$ac_ltlibobjs
34517
34518
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034519if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34520 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34521Usually this means the macro was only invoked conditionally." >&5
34522echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34523Usually this means the macro was only invoked conditionally." >&2;}
34524 { (exit 1); exit 1; }; }
34525fi
34526if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34527 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34528Usually this means the macro was only invoked conditionally." >&5
34529echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34530Usually this means the macro was only invoked conditionally." >&2;}
34531 { (exit 1); exit 1; }; }
34532fi
John Criswell7a73b802003-06-30 21:59:07 +000034533
34534: ${CONFIG_STATUS=./config.status}
34535ac_clean_files_save=$ac_clean_files
34536ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34537{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34538echo "$as_me: creating $CONFIG_STATUS" >&6;}
34539cat >$CONFIG_STATUS <<_ACEOF
34540#! $SHELL
34541# Generated by $as_me.
34542# Run this file to recreate the current configuration.
34543# Compiler output produced by configure, useful for debugging
34544# configure, is in config.log if it exists.
34545
34546debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034547ac_cs_recheck=false
34548ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034549SHELL=\${CONFIG_SHELL-$SHELL}
34550_ACEOF
34551
34552cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034553## --------------------- ##
34554## M4sh Initialization. ##
34555## --------------------- ##
34556
Tanya Lattnercf067672008-01-17 05:57:22 +000034557# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034558if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34559 emulate sh
34560 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34562 # is contrary to our usage. Disable this feature.
34563 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034564 setopt NO_GLOB_SUBST
34565else
Tanya Lattnercf067672008-01-17 05:57:22 +000034566 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034567fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034568BIN_SH=xpg4; export BIN_SH # for Tru64
34569DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034570
John Criswell7a73b802003-06-30 21:59:07 +000034571
Reid Spencera773bd52006-08-04 18:18:08 +000034572# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034573# Avoid depending upon Character Ranges.
34574as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34575as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34576as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34577as_cr_digits='0123456789'
34578as_cr_alnum=$as_cr_Letters$as_cr_digits
34579
34580# The user is always right.
34581if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034582 echo "#! /bin/sh" >conf$$.sh
34583 echo "exit 0" >>conf$$.sh
34584 chmod +x conf$$.sh
34585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034586 PATH_SEPARATOR=';'
34587 else
34588 PATH_SEPARATOR=:
34589 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034590 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034591fi
34592
Reid Spencera773bd52006-08-04 18:18:08 +000034593# Support unset when possible.
34594if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34595 as_unset=unset
34596else
34597 as_unset=false
34598fi
John Criswell7a73b802003-06-30 21:59:07 +000034599
Reid Spencera773bd52006-08-04 18:18:08 +000034600
34601# IFS
34602# We need space, tab and new line, in precisely that order. Quoting is
34603# there to prevent editors from complaining about space-tab.
34604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34605# splitting by setting IFS to empty value.)
34606as_nl='
34607'
34608IFS=" "" $as_nl"
34609
34610# Find who we are. Look in the path if we contain no directory separator.
34611case $0 in
34612 *[\\/]* ) as_myself=$0 ;;
34613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034614for as_dir in $PATH
34615do
34616 IFS=$as_save_IFS
34617 test -z "$as_dir" && as_dir=.
34618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34619done
Reid Spencera773bd52006-08-04 18:18:08 +000034620IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034621
Reid Spencera773bd52006-08-04 18:18:08 +000034622 ;;
34623esac
34624# We did not find ourselves, most probably we were run as `sh COMMAND'
34625# in which case we are not to be found in the path.
34626if test "x$as_myself" = x; then
34627 as_myself=$0
34628fi
34629if test ! -f "$as_myself"; then
34630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34631 { (exit 1); exit 1; }
34632fi
34633
34634# Work around bugs in pre-3.0 UWIN ksh.
34635for as_var in ENV MAIL MAILPATH
34636do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34637done
34638PS1='$ '
34639PS2='> '
34640PS4='+ '
34641
34642# NLS nuisances.
34643for as_var in \
34644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34646 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034647do
Reid Spencera773bd52006-08-04 18:18:08 +000034648 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34649 eval $as_var=C; export $as_var
34650 else
34651 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34652 fi
34653done
34654
34655# Required to use basename.
34656if expr a : '\(a\)' >/dev/null 2>&1 &&
34657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34658 as_expr=expr
34659else
34660 as_expr=false
34661fi
34662
34663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34664 as_basename=basename
34665else
34666 as_basename=false
34667fi
34668
34669
34670# Name of the executable.
34671as_me=`$as_basename -- "$0" ||
34672$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34673 X"$0" : 'X\(//\)$' \| \
34674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34675echo X/"$0" |
34676 sed '/^.*\/\([^/][^/]*\)\/*$/{
34677 s//\1/
34678 q
34679 }
34680 /^X\/\(\/\/\)$/{
34681 s//\1/
34682 q
34683 }
34684 /^X\/\(\/\).*/{
34685 s//\1/
34686 q
34687 }
34688 s/.*/./; q'`
34689
34690# CDPATH.
34691$as_unset CDPATH
34692
34693
34694
John Criswell7a73b802003-06-30 21:59:07 +000034695 as_lineno_1=$LINENO
34696 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034697 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034699
34700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34701 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034702 # line-number line after each line using $LINENO; the second 'sed'
34703 # does the real work. The second script uses 'N' to pair each
34704 # line-number line with the line containing $LINENO, and appends
34705 # trailing '-' during substitution so that $LINENO is not a special
34706 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034708 # scripts with optimization help from Paolo Bonzini. Blame Lee
34709 # E. McMahon (1931-1989) for sed's syntax. :-)
34710 sed -n '
34711 p
34712 /[$]LINENO/=
34713 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034714 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034715 s/[$]LINENO.*/&-/
34716 t lineno
34717 b
34718 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034719 N
Reid Spencera773bd52006-08-04 18:18:08 +000034720 :loop
34721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034722 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034723 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034724 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034725 chmod +x "$as_me.lineno" ||
34726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034727 { (exit 1); exit 1; }; }
34728
34729 # Don't try to exec as it changes $[0], causing all sort of problems
34730 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034731 # original and so on. Autoconf is especially sensitive to this).
34732 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034733 # Exit status is that of the last command.
34734 exit
34735}
34736
34737
Reid Spencera773bd52006-08-04 18:18:08 +000034738if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34739 as_dirname=dirname
34740else
34741 as_dirname=false
34742fi
34743
34744ECHO_C= ECHO_N= ECHO_T=
34745case `echo -n x` in
34746-n*)
34747 case `echo 'x\c'` in
34748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34749 *) ECHO_C='\c';;
34750 esac;;
34751*)
34752 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034753esac
34754
Reid Spencera773bd52006-08-04 18:18:08 +000034755if expr a : '\(a\)' >/dev/null 2>&1 &&
34756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034757 as_expr=expr
34758else
34759 as_expr=false
34760fi
34761
34762rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034763if test -d conf$$.dir; then
34764 rm -f conf$$.dir/conf$$.file
34765else
34766 rm -f conf$$.dir
34767 mkdir conf$$.dir
34768fi
John Criswell7a73b802003-06-30 21:59:07 +000034769echo >conf$$.file
34770if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034771 as_ln_s='ln -s'
34772 # ... but there are two gotchas:
34773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34775 # In both cases, we have to default to `cp -p'.
34776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034777 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034778elif ln conf$$.file conf$$ 2>/dev/null; then
34779 as_ln_s=ln
34780else
34781 as_ln_s='cp -p'
34782fi
Reid Spencera773bd52006-08-04 18:18:08 +000034783rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34784rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034785
John Criswell0c38eaf2003-09-10 15:17:25 +000034786if mkdir -p . 2>/dev/null; then
34787 as_mkdir_p=:
34788else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034789 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034790 as_mkdir_p=false
34791fi
34792
Tanya Lattnercf067672008-01-17 05:57:22 +000034793# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34794# systems may use methods other than mode bits to determine executability.
34795cat >conf$$.file <<_ASEOF
34796#! /bin/sh
34797exit 0
34798_ASEOF
34799chmod +x conf$$.file
34800if test -x conf$$.file >/dev/null 2>&1; then
34801 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034802else
Tanya Lattnercf067672008-01-17 05:57:22 +000034803 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034804fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034805rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034806
34807# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034808as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034809
34810# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034811as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034812
34813
John Criswell7a73b802003-06-30 21:59:07 +000034814exec 6>&1
34815
Reid Spencera773bd52006-08-04 18:18:08 +000034816# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034817# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034818# values after options handling.
34819ac_log="
Tanya Lattner49ff6612008-05-10 04:20:38 +000034820This file was extended by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +000034821generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034822
34823 CONFIG_FILES = $CONFIG_FILES
34824 CONFIG_HEADERS = $CONFIG_HEADERS
34825 CONFIG_LINKS = $CONFIG_LINKS
34826 CONFIG_COMMANDS = $CONFIG_COMMANDS
34827 $ $0 $@
34828
Reid Spencera773bd52006-08-04 18:18:08 +000034829on `(hostname || uname -n) 2>/dev/null | sed 1q`
34830"
34831
John Criswell7a73b802003-06-30 21:59:07 +000034832_ACEOF
34833
Reid Spencera773bd52006-08-04 18:18:08 +000034834cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034835# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034836config_files="$ac_config_files"
34837config_headers="$ac_config_headers"
34838config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034839
Reid Spencera773bd52006-08-04 18:18:08 +000034840_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034841
34842cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034843ac_cs_usage="\
34844\`$as_me' instantiates files from templates according to the
34845current configuration.
34846
34847Usage: $0 [OPTIONS] [FILE]...
34848
34849 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034850 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034851 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034852 -d, --debug don't remove temporary files
34853 --recheck update $as_me by reconfiguring in the same conditions
34854 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034855 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034856 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034857 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034858
34859Configuration files:
34860$config_files
34861
34862Configuration headers:
34863$config_headers
34864
John Criswellc764fbc2003-09-06 15:17:13 +000034865Configuration commands:
34866$config_commands
34867
John Criswell7a73b802003-06-30 21:59:07 +000034868Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034869
Reid Spencera773bd52006-08-04 18:18:08 +000034870_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034871cat >>$CONFIG_STATUS <<_ACEOF
34872ac_cs_version="\\
Tanya Lattner49ff6612008-05-10 04:20:38 +000034873llvm config.status 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +000034874configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034875 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034876
Reid Spencera773bd52006-08-04 18:18:08 +000034877Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034878This config.status script is free software; the Free Software Foundation
34879gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034880
34881ac_pwd='$ac_pwd'
34882srcdir='$srcdir'
34883INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034884_ACEOF
34885
34886cat >>$CONFIG_STATUS <<\_ACEOF
34887# If no file are specified by the user, then we need to provide default
34888# value. By we need to know if files were specified by the user.
34889ac_need_defaults=:
34890while test $# != 0
34891do
34892 case $1 in
34893 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034896 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034898 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034899 ac_option=$1
34900 ac_optarg=$2
34901 ac_shift=shift
34902 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034903 esac
34904
John Criswell0c38eaf2003-09-10 15:17:25 +000034905 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034906 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34908 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34910 echo "$ac_cs_version"; exit ;;
34911 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034912 debug=: ;;
34913 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034914 $ac_shift
34915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034916 ac_need_defaults=false;;
34917 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034918 $ac_shift
34919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034920 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034921 --he | --h)
34922 # Conflict between --help and --header
34923 { echo "$as_me: error: ambiguous option: $1
34924Try \`$0 --help' for more information." >&2
34925 { (exit 1); exit 1; }; };;
34926 --help | --hel | -h )
34927 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34929 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34930 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034931
34932 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034933 -*) { echo "$as_me: error: unrecognized option: $1
34934Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034935 { (exit 1); exit 1; }; } ;;
34936
Reid Spencera773bd52006-08-04 18:18:08 +000034937 *) ac_config_targets="$ac_config_targets $1"
34938 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034939
34940 esac
34941 shift
34942done
34943
John Criswell0c38eaf2003-09-10 15:17:25 +000034944ac_configure_extra_args=
34945
34946if $ac_cs_silent; then
34947 exec 6>/dev/null
34948 ac_configure_extra_args="$ac_configure_extra_args --silent"
34949fi
34950
34951_ACEOF
34952cat >>$CONFIG_STATUS <<_ACEOF
34953if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034954 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34955 CONFIG_SHELL=$SHELL
34956 export CONFIG_SHELL
34957 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034958fi
34959
John Criswell7a73b802003-06-30 21:59:07 +000034960_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034961cat >>$CONFIG_STATUS <<\_ACEOF
34962exec 5>>config.log
34963{
34964 echo
34965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34966## Running $as_me. ##
34967_ASBOX
34968 echo "$ac_log"
34969} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034970
Reid Spencera773bd52006-08-04 18:18:08 +000034971_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034972cat >>$CONFIG_STATUS <<_ACEOF
34973#
Reid Spencera773bd52006-08-04 18:18:08 +000034974# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034975#
Reid Spencerc0682832005-02-24 19:05:19 +000034976llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034977
34978_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034979
John Criswell7a73b802003-06-30 21:59:07 +000034980cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034981
34982# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034983for ac_config_target in $ac_config_targets
34984do
Reid Spencera773bd52006-08-04 18:18:08 +000034985 case $ac_config_target in
34986 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34987 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034988 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34989 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34990 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034991 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034992 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034993 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34994 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34995 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34996 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34997 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34998 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34999 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035000 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035001 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35002 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35003 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35004 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35005 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035006 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35007 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035008
John Criswell7a73b802003-06-30 21:59:07 +000035009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35010echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35011 { (exit 1); exit 1; }; };;
35012 esac
35013done
35014
Reid Spencera773bd52006-08-04 18:18:08 +000035015
John Criswell7a73b802003-06-30 21:59:07 +000035016# If the user did not use the arguments to specify the items to instantiate,
35017# then the envvar interface is used. Set only those that are not.
35018# We use the long form for the default assignment because of an extremely
35019# bizarre bug on SunOS 4.1.3.
35020if $ac_need_defaults; then
35021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035024fi
35025
John Criswell0c38eaf2003-09-10 15:17:25 +000035026# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035027# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035028# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035029# Hook for its removal unless debugging.
35030# Note that there is a small window in which the directory will not be cleaned:
35031# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035032$debug ||
35033{
Reid Spencera773bd52006-08-04 18:18:08 +000035034 tmp=
35035 trap 'exit_status=$?
35036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35037' 0
John Criswell7a73b802003-06-30 21:59:07 +000035038 trap '{ (exit 1); exit 1; }' 1 2 13 15
35039}
John Criswell7a73b802003-06-30 21:59:07 +000035040# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035041
John Criswell7a73b802003-06-30 21:59:07 +000035042{
Reid Spencera773bd52006-08-04 18:18:08 +000035043 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035044 test -n "$tmp" && test -d "$tmp"
35045} ||
35046{
Reid Spencera773bd52006-08-04 18:18:08 +000035047 tmp=./conf$$-$RANDOM
35048 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035049} ||
35050{
John Criswell0c38eaf2003-09-10 15:17:25 +000035051 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035052 { (exit 1); exit 1; }
35053}
35054
John Criswell7a73b802003-06-30 21:59:07 +000035055#
Reid Spencera773bd52006-08-04 18:18:08 +000035056# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035057#
35058
35059# No need to generate the scripts if there are no CONFIG_FILES.
35060# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035061if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035062
35063_ACEOF
35064
Reid Spencera773bd52006-08-04 18:18:08 +000035065
35066
35067ac_delim='%!_!# '
35068for ac_last_try in false false false false false :; do
35069 cat >conf$$subs.sed <<_ACEOF
35070SHELL!$SHELL$ac_delim
35071PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35072PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35073PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35074PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35075PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35076PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35077exec_prefix!$exec_prefix$ac_delim
35078prefix!$prefix$ac_delim
35079program_transform_name!$program_transform_name$ac_delim
35080bindir!$bindir$ac_delim
35081sbindir!$sbindir$ac_delim
35082libexecdir!$libexecdir$ac_delim
35083datarootdir!$datarootdir$ac_delim
35084datadir!$datadir$ac_delim
35085sysconfdir!$sysconfdir$ac_delim
35086sharedstatedir!$sharedstatedir$ac_delim
35087localstatedir!$localstatedir$ac_delim
35088includedir!$includedir$ac_delim
35089oldincludedir!$oldincludedir$ac_delim
35090docdir!$docdir$ac_delim
35091infodir!$infodir$ac_delim
35092htmldir!$htmldir$ac_delim
35093dvidir!$dvidir$ac_delim
35094pdfdir!$pdfdir$ac_delim
35095psdir!$psdir$ac_delim
35096libdir!$libdir$ac_delim
35097localedir!$localedir$ac_delim
35098mandir!$mandir$ac_delim
35099DEFS!$DEFS$ac_delim
35100ECHO_C!$ECHO_C$ac_delim
35101ECHO_N!$ECHO_N$ac_delim
35102ECHO_T!$ECHO_T$ac_delim
35103LIBS!$LIBS$ac_delim
35104build_alias!$build_alias$ac_delim
35105host_alias!$host_alias$ac_delim
35106target_alias!$target_alias$ac_delim
35107LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35108subdirs!$subdirs$ac_delim
35109build!$build$ac_delim
35110build_cpu!$build_cpu$ac_delim
35111build_vendor!$build_vendor$ac_delim
35112build_os!$build_os$ac_delim
35113host!$host$ac_delim
35114host_cpu!$host_cpu$ac_delim
35115host_vendor!$host_vendor$ac_delim
35116host_os!$host_os$ac_delim
35117target!$target$ac_delim
35118target_cpu!$target_cpu$ac_delim
35119target_vendor!$target_vendor$ac_delim
35120target_os!$target_os$ac_delim
35121OS!$OS$ac_delim
35122LINKALL!$LINKALL$ac_delim
35123NOLINKALL!$NOLINKALL$ac_delim
35124LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35125LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35126ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035127ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035128CC!$CC$ac_delim
35129CFLAGS!$CFLAGS$ac_delim
35130LDFLAGS!$LDFLAGS$ac_delim
35131CPPFLAGS!$CPPFLAGS$ac_delim
35132ac_ct_CC!$ac_ct_CC$ac_delim
35133EXEEXT!$EXEEXT$ac_delim
35134OBJEXT!$OBJEXT$ac_delim
35135CPP!$CPP$ac_delim
35136GREP!$GREP$ac_delim
35137EGREP!$EGREP$ac_delim
35138LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35139BUILD_CC!$BUILD_CC$ac_delim
35140BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35141CVSBUILD!$CVSBUILD$ac_delim
35142ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35143DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035144ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35145EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035146DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035147JIT!$JIT$ac_delim
35148TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35149ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35150ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035151ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035152TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035153ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035154EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35155CXX!$CXX$ac_delim
35156CXXFLAGS!$CXXFLAGS$ac_delim
35157ac_ct_CXX!$ac_ct_CXX$ac_delim
35158LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035159LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035160LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035161FLEX!$FLEX$ac_delim
35162YACC!$YACC$ac_delim
35163YFLAGS!$YFLAGS$ac_delim
35164BISON!$BISON$ac_delim
35165NM!$NM$ac_delim
35166ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035167_ACEOF
35168
35169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35170 break
35171 elif $ac_last_try; then
35172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35173echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35174 { (exit 1); exit 1; }; }
35175 else
35176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035177 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035178done
35179
35180ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35181if test -n "$ac_eof"; then
35182 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35183 ac_eof=`expr $ac_eof + 1`
35184fi
35185
35186cat >>$CONFIG_STATUS <<_ACEOF
35187cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35189_ACEOF
35190sed '
35191s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35192s/^/s,@/; s/!/@,|#_!!_#|/
35193:n
35194t n
35195s/'"$ac_delim"'$/,g/; t
35196s/$/\\/; p
35197N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35198' >>$CONFIG_STATUS <conf$$subs.sed
35199rm -f conf$$subs.sed
35200cat >>$CONFIG_STATUS <<_ACEOF
35201CEOF$ac_eof
35202_ACEOF
35203
35204
35205ac_delim='%!_!# '
35206for ac_last_try in false false false false false :; do
35207 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035208LN_S!$LN_S$ac_delim
35209CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035210CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035211DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035212FIND!$FIND$ac_delim
35213MKDIR!$MKDIR$ac_delim
35214MV!$MV$ac_delim
35215RANLIB!$RANLIB$ac_delim
35216RM!$RM$ac_delim
35217SED!$SED$ac_delim
35218TAR!$TAR$ac_delim
35219BINPWD!$BINPWD$ac_delim
35220GRAPHVIZ!$GRAPHVIZ$ac_delim
35221DOT!$DOT$ac_delim
35222GV!$GV$ac_delim
35223DOTTY!$DOTTY$ac_delim
35224PERL!$PERL$ac_delim
35225HAVE_PERL!$HAVE_PERL$ac_delim
35226INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35227INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35228INSTALL_DATA!$INSTALL_DATA$ac_delim
35229BZIP2!$BZIP2$ac_delim
35230DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035231GROFF!$GROFF$ac_delim
35232GZIP!$GZIP$ac_delim
35233POD2HTML!$POD2HTML$ac_delim
35234POD2MAN!$POD2MAN$ac_delim
35235RUNTEST!$RUNTEST$ac_delim
35236TCLSH!$TCLSH$ac_delim
35237ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035238OCAMLC!$OCAMLC$ac_delim
35239OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035240OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035241OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035242INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35243INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35244CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35245CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35246LIBADD_DL!$LIBADD_DL$ac_delim
35247ECHO!$ECHO$ac_delim
35248AR!$AR$ac_delim
35249STRIP!$STRIP$ac_delim
35250CXXCPP!$CXXCPP$ac_delim
35251F77!$F77$ac_delim
35252FFLAGS!$FFLAGS$ac_delim
35253ac_ct_F77!$ac_ct_F77$ac_delim
35254LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035255LLVMGCC!$LLVMGCC$ac_delim
35256LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035257USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035258HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035259HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035260ALLOCA!$ALLOCA$ac_delim
35261MMAP_FILE!$MMAP_FILE$ac_delim
35262LLVMCC1!$LLVMCC1$ac_delim
35263LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35264LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035265LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035266LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35267LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035268LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035269SHLIBEXT!$SHLIBEXT$ac_delim
35270LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35271LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35272LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35273LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35274LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35275LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35276LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35277LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35278LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35279LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035280BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35281ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035282OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035283ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035284LIBOBJS!$LIBOBJS$ac_delim
35285LTLIBOBJS!$LTLIBOBJS$ac_delim
35286_ACEOF
35287
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035288 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
Reid Spencera773bd52006-08-04 18:18:08 +000035289 break
35290 elif $ac_last_try; then
35291 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35292echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35293 { (exit 1); exit 1; }; }
35294 else
35295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35296 fi
35297done
35298
35299ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35300if test -n "$ac_eof"; then
35301 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35302 ac_eof=`expr $ac_eof + 1`
35303fi
35304
35305cat >>$CONFIG_STATUS <<_ACEOF
35306cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35307/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35308_ACEOF
35309sed '
35310s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35311s/^/s,@/; s/!/@,|#_!!_#|/
35312:n
35313t n
35314s/'"$ac_delim"'$/,g/; t
35315s/$/\\/; p
35316N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35317' >>$CONFIG_STATUS <conf$$subs.sed
35318rm -f conf$$subs.sed
35319cat >>$CONFIG_STATUS <<_ACEOF
35320:end
35321s/|#_!!_#|//g
35322CEOF$ac_eof
35323_ACEOF
35324
35325
35326# VPATH may cause trouble with some makes, so we remove $(srcdir),
35327# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35328# trailing colons and then remove the whole line if VPATH becomes empty
35329# (actually we leave an empty line to preserve line numbers).
35330if test "x$srcdir" = x.; then
35331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35332s/:*\$(srcdir):*/:/
35333s/:*\${srcdir}:*/:/
35334s/:*@srcdir@:*/:/
35335s/^\([^=]*=[ ]*\):*/\1/
35336s/:*$//
35337s/^[^=]*=[ ]*$//
35338}'
35339fi
35340
35341cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035342fi # test -n "$CONFIG_FILES"
35343
Reid Spencera773bd52006-08-04 18:18:08 +000035344
35345for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35346do
35347 case $ac_tag in
35348 :[FHLC]) ac_mode=$ac_tag; continue;;
35349 esac
35350 case $ac_mode$ac_tag in
35351 :[FHL]*:*);;
35352 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35353echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35354 { (exit 1); exit 1; }; };;
35355 :[FH]-) ac_tag=-:-;;
35356 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35357 esac
35358 ac_save_IFS=$IFS
35359 IFS=:
35360 set x $ac_tag
35361 IFS=$ac_save_IFS
35362 shift
35363 ac_file=$1
35364 shift
35365
35366 case $ac_mode in
35367 :L) ac_source=$1;;
35368 :[FH])
35369 ac_file_inputs=
35370 for ac_f
35371 do
35372 case $ac_f in
35373 -) ac_f="$tmp/stdin";;
35374 *) # Look for the file first in the build tree, then in the source tree
35375 # (if the path is not absolute). The absolute path cannot be DOS-style,
35376 # because $ac_f cannot contain `:'.
35377 test -f "$ac_f" ||
35378 case $ac_f in
35379 [\\/$]*) false;;
35380 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35381 esac ||
35382 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35383echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35384 { (exit 1); exit 1; }; };;
35385 esac
35386 ac_file_inputs="$ac_file_inputs $ac_f"
35387 done
35388
35389 # Let's still pretend it is `configure' which instantiates (i.e., don't
35390 # use $as_me), people would be surprised to read:
35391 # /* config.h. Generated by config.status. */
35392 configure_input="Generated from "`IFS=:
35393 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35394 if test x"$ac_file" != x-; then
35395 configure_input="$ac_file. $configure_input"
35396 { echo "$as_me:$LINENO: creating $ac_file" >&5
35397echo "$as_me: creating $ac_file" >&6;}
35398 fi
35399
35400 case $ac_tag in
35401 *:-:* | *:-) cat >"$tmp/stdin";;
35402 esac
35403 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035404 esac
35405
Reid Spencera773bd52006-08-04 18:18:08 +000035406 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035407$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035408 X"$ac_file" : 'X\(//\)[^/]' \| \
35409 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035411echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35413 s//\1/
35414 q
35415 }
35416 /^X\(\/\/\)[^/].*/{
35417 s//\1/
35418 q
35419 }
35420 /^X\(\/\/\)$/{
35421 s//\1/
35422 q
35423 }
35424 /^X\(\/\).*/{
35425 s//\1/
35426 q
35427 }
35428 s/.*/./; q'`
35429 { as_dir="$ac_dir"
35430 case $as_dir in #(
35431 -*) as_dir=./$as_dir;;
35432 esac
35433 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035434 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035435 while :; do
35436 case $as_dir in #(
35437 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35438 *) as_qdir=$as_dir;;
35439 esac
35440 as_dirs="'$as_qdir' $as_dirs"
35441 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035442$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035443 X"$as_dir" : 'X\(//\)[^/]' \| \
35444 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035446echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35448 s//\1/
35449 q
35450 }
35451 /^X\(\/\/\)[^/].*/{
35452 s//\1/
35453 q
35454 }
35455 /^X\(\/\/\)$/{
35456 s//\1/
35457 q
35458 }
35459 /^X\(\/\).*/{
35460 s//\1/
35461 q
35462 }
35463 s/.*/./; q'`
35464 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035465 done
Reid Spencera773bd52006-08-04 18:18:08 +000035466 test -z "$as_dirs" || eval "mkdir $as_dirs"
35467 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35468echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035469 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035470 ac_builddir=.
35471
Reid Spencera773bd52006-08-04 18:18:08 +000035472case "$ac_dir" in
35473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35474*)
John Criswell7a73b802003-06-30 21:59:07 +000035475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035476 # A ".." for each directory in $ac_dir_suffix.
35477 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35478 case $ac_top_builddir_sub in
35479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35481 esac ;;
35482esac
35483ac_abs_top_builddir=$ac_pwd
35484ac_abs_builddir=$ac_pwd$ac_dir_suffix
35485# for backward compatibility:
35486ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035487
35488case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035489 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035490 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035491 ac_top_srcdir=$ac_top_builddir_sub
35492 ac_abs_top_srcdir=$ac_pwd ;;
35493 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035494 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035495 ac_top_srcdir=$srcdir
35496 ac_abs_top_srcdir=$srcdir ;;
35497 *) # Relative name.
35498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35499 ac_top_srcdir=$ac_top_build_prefix$srcdir
35500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035501esac
Reid Spencera773bd52006-08-04 18:18:08 +000035502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035503
John Criswell7a73b802003-06-30 21:59:07 +000035504
Reid Spencera773bd52006-08-04 18:18:08 +000035505 case $ac_mode in
35506 :F)
35507 #
35508 # CONFIG_FILE
35509 #
John Criswell7a73b802003-06-30 21:59:07 +000035510
35511 case $INSTALL in
35512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035514 esac
John Criswell7a73b802003-06-30 21:59:07 +000035515_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035516
35517cat >>$CONFIG_STATUS <<\_ACEOF
35518# If the template does not know about datarootdir, expand it.
35519# FIXME: This hack should be removed a few years after 2.60.
35520ac_datarootdir_hack=; ac_datarootdir_seen=
35521
35522case `sed -n '/datarootdir/ {
35523 p
35524 q
35525}
35526/@datadir@/p
35527/@docdir@/p
35528/@infodir@/p
35529/@localedir@/p
35530/@mandir@/p
35531' $ac_file_inputs` in
35532*datarootdir*) ac_datarootdir_seen=yes;;
35533*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35534 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35535echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35536_ACEOF
35537cat >>$CONFIG_STATUS <<_ACEOF
35538 ac_datarootdir_hack='
35539 s&@datadir@&$datadir&g
35540 s&@docdir@&$docdir&g
35541 s&@infodir@&$infodir&g
35542 s&@localedir@&$localedir&g
35543 s&@mandir@&$mandir&g
35544 s&\\\${datarootdir}&$datarootdir&g' ;;
35545esac
35546_ACEOF
35547
35548# Neutralize VPATH when `$srcdir' = `.'.
35549# Shell code in configure.ac might set extrasub.
35550# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035551cat >>$CONFIG_STATUS <<_ACEOF
35552 sed "$ac_vpsub
35553$extrasub
35554_ACEOF
35555cat >>$CONFIG_STATUS <<\_ACEOF
35556:t
35557/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035558s&@configure_input@&$configure_input&;t t
35559s&@top_builddir@&$ac_top_builddir_sub&;t t
35560s&@srcdir@&$ac_srcdir&;t t
35561s&@abs_srcdir@&$ac_abs_srcdir&;t t
35562s&@top_srcdir@&$ac_top_srcdir&;t t
35563s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35564s&@builddir@&$ac_builddir&;t t
35565s&@abs_builddir@&$ac_abs_builddir&;t t
35566s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35567s&@INSTALL@&$ac_INSTALL&;t t
35568$ac_datarootdir_hack
35569" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035570
Reid Spencera773bd52006-08-04 18:18:08 +000035571test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35572 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35573 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35574 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35575which seems to be undefined. Please make sure it is defined." >&5
35576echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35577which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035578
Reid Spencera773bd52006-08-04 18:18:08 +000035579 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035580 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035581 -) cat "$tmp/out"; rm -f "$tmp/out";;
35582 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035583 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035584 ;;
35585 :H)
35586 #
35587 # CONFIG_HEADER
35588 #
John Criswell7a73b802003-06-30 21:59:07 +000035589_ACEOF
35590
Reid Spencera773bd52006-08-04 18:18:08 +000035591# Transform confdefs.h into a sed script `conftest.defines', that
35592# substitutes the proper values into config.h.in to produce config.h.
35593rm -f conftest.defines conftest.tail
35594# First, append a space to every undef/define line, to ease matching.
35595echo 's/$/ /' >conftest.defines
35596# Then, protect against being on the right side of a sed subst, or in
35597# an unquoted here document, in config.status. If some macros were
35598# called several times there might be several #defines for the same
35599# symbol, which is useless. But do not sort them, since the last
35600# AC_DEFINE must be honored.
35601ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35602# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35603# NAME is the cpp macro being defined, VALUE is the value it is being given.
35604# PARAMS is the parameter list in the macro definition--in most cases, it's
35605# just an empty string.
35606ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35607ac_dB='\\)[ (].*,\\1define\\2'
35608ac_dC=' '
35609ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035610
Reid Spencera773bd52006-08-04 18:18:08 +000035611uniq confdefs.h |
35612 sed -n '
35613 t rset
35614 :rset
35615 s/^[ ]*#[ ]*define[ ][ ]*//
35616 t ok
35617 d
35618 :ok
35619 s/[\\&,]/\\&/g
35620 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35621 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35622 ' >>conftest.defines
35623
35624# Remove the space that was appended to ease matching.
35625# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035626# example, in the case of _POSIX_SOURCE, which is predefined and required
35627# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035628# (The regexp can be short, since the line contains either #define or #undef.)
35629echo 's/ $//
35630s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035631
Reid Spencera773bd52006-08-04 18:18:08 +000035632# Break up conftest.defines:
35633ac_max_sed_lines=50
35634
35635# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35636# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35637# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35638# et cetera.
35639ac_in='$ac_file_inputs'
35640ac_out='"$tmp/out1"'
35641ac_nxt='"$tmp/out2"'
35642
35643while :
John Criswell7a73b802003-06-30 21:59:07 +000035644do
Reid Spencera773bd52006-08-04 18:18:08 +000035645 # Write a here document:
35646 cat >>$CONFIG_STATUS <<_ACEOF
35647 # First, check the format of the line:
35648 cat >"\$tmp/defines.sed" <<\\CEOF
35649/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35650/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35651b
35652:def
35653_ACEOF
35654 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035655 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035656 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35657 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35658 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35659 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035660 rm -f conftest.defines
35661 mv conftest.tail conftest.defines
35662done
Reid Spencera773bd52006-08-04 18:18:08 +000035663rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035664
Reid Spencera773bd52006-08-04 18:18:08 +000035665echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035666cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035667 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035668 echo "/* $configure_input */" >"$tmp/config.h"
35669 cat "$ac_result" >>"$tmp/config.h"
35670 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035671 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35672echo "$as_me: $ac_file is unchanged" >&6;}
35673 else
John Criswell7a73b802003-06-30 21:59:07 +000035674 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035675 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035676 fi
35677 else
Reid Spencera773bd52006-08-04 18:18:08 +000035678 echo "/* $configure_input */"
35679 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035680 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035681 rm -f "$tmp/out12"
35682 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035683
Reid Spencera773bd52006-08-04 18:18:08 +000035684 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35685echo "$as_me: executing $ac_file commands" >&6;}
35686 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035687 esac
John Criswell7a73b802003-06-30 21:59:07 +000035688
Reid Spencera773bd52006-08-04 18:18:08 +000035689
35690 case $ac_file$ac_mode in
35691 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35693 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35695 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35696 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35697 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35698 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035699 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35700 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035701 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35702 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35703 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35704 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35705 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35707 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35709 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035711 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35713 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035715
35716 esac
35717done # for ac_tag
35718
John Criswell7a73b802003-06-30 21:59:07 +000035719
35720{ (exit 0); exit 0; }
35721_ACEOF
35722chmod +x $CONFIG_STATUS
35723ac_clean_files=$ac_clean_files_save
35724
35725
35726# configure is writing to config.log, and then calls config.status.
35727# config.status does its own redirection, appending to config.log.
35728# Unfortunately, on DOS this fails, as config.log is still kept open
35729# by configure, so config.status won't be able to write to it; its
35730# output is simply discarded. So we exec the FD to /dev/null,
35731# effectively closing config.log, so it can be properly (re)opened and
35732# appended to by config.status. When coming back to configure, we
35733# need to make the FD available again.
35734if test "$no_create" != yes; then
35735 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035736 ac_config_status_args=
35737 test "$silent" = yes &&
35738 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035739 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035741 exec 5>>config.log
35742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35743 # would make configure fail if this is the last instruction.
35744 $ac_cs_success || { (exit 1); exit 1; }
35745fi
35746
John Criswell12399a12003-09-30 15:55:44 +000035747#
35748# CONFIG_SUBDIRS section.
35749#
35750if test "$no_recursion" != yes; then
35751
35752 # Remove --cache-file and --srcdir arguments so they do not pile up.
35753 ac_sub_configure_args=
35754 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035755 eval "set x $ac_configure_args"
35756 shift
35757 for ac_arg
35758 do
John Criswell12399a12003-09-30 15:55:44 +000035759 if test -n "$ac_prev"; then
35760 ac_prev=
35761 continue
35762 fi
35763 case $ac_arg in
35764 -cache-file | --cache-file | --cache-fil | --cache-fi \
35765 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35766 ac_prev=cache_file ;;
35767 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35768 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35769 | --c=*)
35770 ;;
35771 --config-cache | -C)
35772 ;;
35773 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35774 ac_prev=srcdir ;;
35775 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35776 ;;
35777 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35778 ac_prev=prefix ;;
35779 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35780 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035781 *)
35782 case $ac_arg in
35783 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35784 esac
35785 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035786 esac
35787 done
35788
35789 # Always prepend --prefix to ensure using the same prefix
35790 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035791 ac_arg="--prefix=$prefix"
35792 case $ac_arg in
35793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35794 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035795 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035796
35797 ac_popdir=`pwd`
35798 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35799
35800 # Do not complain, so a configure script can configure whichever
35801 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035802 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035803
Reid Spencera773bd52006-08-04 18:18:08 +000035804 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35805 echo "$as_me:$LINENO: $ac_msg" >&5
35806 echo "$ac_msg" >&6
35807 { as_dir="$ac_dir"
35808 case $as_dir in #(
35809 -*) as_dir=./$as_dir;;
35810 esac
35811 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035812 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035813 while :; do
35814 case $as_dir in #(
35815 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35816 *) as_qdir=$as_dir;;
35817 esac
35818 as_dirs="'$as_qdir' $as_dirs"
35819 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035820$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035821 X"$as_dir" : 'X\(//\)[^/]' \| \
35822 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035824echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35826 s//\1/
35827 q
35828 }
35829 /^X\(\/\/\)[^/].*/{
35830 s//\1/
35831 q
35832 }
35833 /^X\(\/\/\)$/{
35834 s//\1/
35835 q
35836 }
35837 /^X\(\/\).*/{
35838 s//\1/
35839 q
35840 }
35841 s/.*/./; q'`
35842 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035843 done
Reid Spencera773bd52006-08-04 18:18:08 +000035844 test -z "$as_dirs" || eval "mkdir $as_dirs"
35845 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35846echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035847 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035848 ac_builddir=.
35849
Reid Spencera773bd52006-08-04 18:18:08 +000035850case "$ac_dir" in
35851.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35852*)
John Criswell12399a12003-09-30 15:55:44 +000035853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035854 # A ".." for each directory in $ac_dir_suffix.
35855 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35856 case $ac_top_builddir_sub in
35857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35859 esac ;;
35860esac
35861ac_abs_top_builddir=$ac_pwd
35862ac_abs_builddir=$ac_pwd$ac_dir_suffix
35863# for backward compatibility:
35864ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035865
35866case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035867 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035868 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035869 ac_top_srcdir=$ac_top_builddir_sub
35870 ac_abs_top_srcdir=$ac_pwd ;;
35871 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035872 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035873 ac_top_srcdir=$srcdir
35874 ac_abs_top_srcdir=$srcdir ;;
35875 *) # Relative name.
35876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35877 ac_top_srcdir=$ac_top_build_prefix$srcdir
35878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035879esac
Reid Spencera773bd52006-08-04 18:18:08 +000035880ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035881
35882
Reid Spencera773bd52006-08-04 18:18:08 +000035883 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035884
35885 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035886 if test -f "$ac_srcdir/configure.gnu"; then
35887 ac_sub_configure=$ac_srcdir/configure.gnu
35888 elif test -f "$ac_srcdir/configure"; then
35889 ac_sub_configure=$ac_srcdir/configure
35890 elif test -f "$ac_srcdir/configure.in"; then
35891 # This should be Cygnus configure.
35892 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035893 else
35894 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35895echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35896 ac_sub_configure=
35897 fi
35898
35899 # The recursion is here.
35900 if test -n "$ac_sub_configure"; then
35901 # Make the cache file name correct relative to the subdirectory.
35902 case $cache_file in
35903 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035904 *) # Relative name.
35905 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035906 esac
35907
Reid Spencera773bd52006-08-04 18:18:08 +000035908 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35909echo "$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 +000035910 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035911 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35912 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035913 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035914echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35915 { (exit 1); exit 1; }; }
35916 fi
35917
Reid Spencera773bd52006-08-04 18:18:08 +000035918 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035919 done
35920fi
35921