blob: 8520c8990891bb54e7703307830ca8541aa1f309 [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
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
845CXX
846CXXFLAGS
847ac_ct_CXX
848LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000849LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000850LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000851FLEX
852YACC
853YFLAGS
854BISON
855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
871GV
872DOTTY
873PERL
874HAVE_PERL
875INSTALL_PROGRAM
876INSTALL_SCRIPT
877INSTALL_DATA
878BZIP2
879DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000880GROFF
881GZIP
882POD2HTML
883POD2MAN
884RUNTEST
885TCLSH
886ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000887OCAMLC
888OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000889OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000890OCAMLDOC
Reid Spencera773bd52006-08-04 18:18:08 +0000891INSTALL_LTDL_TRUE
892INSTALL_LTDL_FALSE
893CONVENIENCE_LTDL_TRUE
894CONVENIENCE_LTDL_FALSE
895LIBADD_DL
896ECHO
897AR
898STRIP
899CXXCPP
900F77
901FFLAGS
902ac_ct_F77
903LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000904LLVMGCC
905LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000906USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000907HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000908HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000909ALLOCA
910MMAP_FILE
911LLVMCC1
912LLVMCC1PLUS
913LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000914LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000915LLVMGCC_VERSION
916LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000917LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000918SHLIBEXT
919LLVM_PREFIX
920LLVM_BINDIR
921LLVM_LIBDIR
922LLVM_DATADIR
923LLVM_DOCSDIR
924LLVM_ETCDIR
925LLVM_INCLUDEDIR
926LLVM_INFODIR
927LLVM_MANDIR
928LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000929BINDINGS_TO_BUILD
930ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000931OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000932ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000933LIBOBJS
934LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000935ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000936 ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942CPPFLAGS
943CPP
944CXX
945CXXFLAGS
946CCC
947YACC
948YFLAGS
949CXXCPP
950F77
951FFLAGS'
952ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000954projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000955projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000956projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-reopt
958projects/llvm-gcc
959projects/llvm-java
960projects/llvm-tv
961projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000962projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000990# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001010
1011ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001012ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001013for ac_option
1014do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001017 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001018 ac_prev=
1019 continue
1020 fi
1021
Reid Spencera773bd52006-08-04 18:18:08 +00001022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_dashdash$ac_option in
1030 --)
1031 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001032
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1037
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1042
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1049
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001054 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001056 datadir=$ac_optarg ;;
1057
Reid Spencera773bd52006-08-04 18:18:08 +00001058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1064
John Criswell7a73b802003-06-30 21:59:07 +00001065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001072 eval enable_$ac_feature=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001091 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
Reid Spencera773bd52006-08-04 18:18:08 +00001118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
John Criswell7a73b802003-06-30 21:59:07 +00001124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
Reid Spencera773bd52006-08-04 18:18:08 +00001148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
John Criswell7a73b802003-06-30 21:59:07 +00001153 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
Reid Spencera773bd52006-08-04 18:18:08 +00001222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
John Criswell7a73b802003-06-30 21:59:07 +00001232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001287 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001296 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001297 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001298
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1302
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1309
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1316
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001328 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001329 export $ac_envvar ;;
1330
1331 *)
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 ;;
1338
1339 esac
1340done
1341
1342if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1346fi
1347
Reid Spencera773bd52006-08-04 18:18:08 +00001348# Be sure to have absolute directory names.
1349for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001353do
Reid Spencera773bd52006-08-04 18:18:08 +00001354 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001355 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001358 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
Reid Spencera773bd52006-08-04 18:18:08 +00001387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1395
1396
John Criswell7a73b802003-06-30 21:59:07 +00001397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001402$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001406echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001425 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=..
1427 fi
1428else
1429 ac_srcdir_defaulted=no
1430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001434 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001435fi
Reid Spencera773bd52006-08-04 18:18:08 +00001436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001439 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001440 pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001465\`configure' configures llvm 2.4svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
John Criswell7a73b802003-06-30 21:59:07 +00001485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001518_ACEOF
1519
1520 cat <<\_ACEOF
1521
1522System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530 case $ac_init_help in
Tanya Lattner49ff6612008-05-10 04:20:38 +00001531 short | recursive ) echo "Configuration of llvm 2.4svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001532 esac
1533 cat <<\_ACEOF
1534
1535Optional Features:
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001539 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001540 --enable-expensive-checks
1541
Reid Spencer8b2e1412006-11-17 03:32:33 +00001542 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001544 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001545 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001546 --enable-pic Build LLVM with Position Independent Code (default
1547 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001548 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001549 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001550 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1551 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001552 --enable-bindings Build specific language bindings:
1553 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001554 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001555 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001558 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001559 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001560 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001562 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001563
1564Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001567 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1568 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001569 --with-llvmgcc Specify location of llvm-gcc driver (default
1570 searches PATH)
1571 --with-llvmgxx Specify location of llvm-g++ driver (default
1572 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001573 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001574 --with-ocaml-libdir Specify install location for ocaml bindings (default
1575 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001576 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001580 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001581 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001582
1583Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001584 CC C compiler command
1585 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001590 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001591 CXX C++ compiler command
1592 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001593 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1594 the first program found out of: `bison -y', `byacc', `yacc'.
1595 YFLAGS The list of arguments that will be passed by default to $YACC.
1596 This script will default YFLAGS to the empty string to avoid a
1597 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to <llvmbugs@cs.uiuc.edu>.
1606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001607ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001613 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001614 ac_builddir=.
1615
Reid Spencera773bd52006-08-04 18:18:08 +00001616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
John Criswell7a73b802003-06-30 21:59:07 +00001619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001631
1632case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001633 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001645esac
Reid Spencera773bd52006-08-04 18:18:08 +00001646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001647
Reid Spencera773bd52006-08-04 18:18:08 +00001648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001656 else
1657 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001660 done
1661fi
1662
Reid Spencera773bd52006-08-04 18:18:08 +00001663test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001664if $ac_init_version; then
1665 cat <<\_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001666llvm configure 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +00001667generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001668
Reid Spencera773bd52006-08-04 18:18:08 +00001669Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16702002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001673
Tanya Lattnercf067672008-01-17 05:57:22 +00001674Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001675_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001676 exit
John Criswell7a73b802003-06-30 21:59:07 +00001677fi
Reid Spencera773bd52006-08-04 18:18:08 +00001678cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001679This file contains any messages produced by compilers while
1680running configure, to aid debugging if configure makes a mistake.
1681
Tanya Lattner49ff6612008-05-10 04:20:38 +00001682It was created by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +00001683generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001684
1685 $ $0 $@
1686
1687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001688exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001689{
1690cat <<_ASUNAME
1691## --------- ##
1692## Platform. ##
1693## --------- ##
1694
1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703
1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711
1712_ASUNAME
1713
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 echo "PATH: $as_dir"
1720done
Reid Spencera773bd52006-08-04 18:18:08 +00001721IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001722
1723} >&5
1724
1725cat >&5 <<_ACEOF
1726
1727
1728## ----------- ##
1729## Core tests. ##
1730## ----------- ##
1731
1732_ACEOF
1733
1734
1735# Keep a trace of the command line.
1736# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001737# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001738# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001740ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001741ac_configure_args0=
1742ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001743ac_must_keep_next=false
1744for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001745do
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 for ac_arg
1747 do
1748 case $ac_arg in
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1752 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001753 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 esac
1756 case $ac_pass in
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 2)
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001761 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001763 case $ac_arg in
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 esac
1771 ;;
1772 -* ) ac_must_keep_next=true ;;
1773 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001774 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001775 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ;;
1777 esac
1778 done
John Criswell7a73b802003-06-30 21:59:07 +00001779done
John Criswell0c38eaf2003-09-10 15:17:25 +00001780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781$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 +00001782
1783# When interrupted or exit'd, cleanup temporary files, and complete
1784# config.log. We remove comments because anyway the quotes in there
1785# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001786# WARNING: Use '\'' to represent an apostrophe within the trap.
1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001788trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1790 {
1791 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001792
John Criswell7a73b802003-06-30 21:59:07 +00001793 cat <<\_ASBOX
1794## ---------------- ##
1795## Cache variables. ##
1796## ---------------- ##
1797_ASBOX
1798 echo
1799 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001800(
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in #(
1804 *${as_nl}*)
1805 case $ac_var in #(
1806 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 esac
1809 case $ac_var in #(
1810 _ | IFS | as_nl) ;; #(
1811 *) $as_unset $ac_var ;;
1812 esac ;;
1813 esac
1814 done
John Criswell7a73b802003-06-30 21:59:07 +00001815 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001818 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001822 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001825 esac |
1826 sort
1827)
John Criswell7a73b802003-06-30 21:59:07 +00001828 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001829
1830 cat <<\_ASBOX
1831## ----------------- ##
1832## Output variables. ##
1833## ----------------- ##
1834_ASBOX
1835 echo
1836 for ac_var in $ac_subst_vars
1837 do
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001843 done | sort
1844 echo
1845
1846 if test -n "$ac_subst_files"; then
1847 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001848## ------------------- ##
1849## File substitutions. ##
1850## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001851_ASBOX
1852 echo
1853 for ac_var in $ac_subst_files
1854 do
Reid Spencera773bd52006-08-04 18:18:08 +00001855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001860 done | sort
1861 echo
1862 fi
1863
John Criswell7a73b802003-06-30 21:59:07 +00001864 if test -s confdefs.h; then
1865 cat <<\_ASBOX
1866## ----------- ##
1867## confdefs.h. ##
1868## ----------- ##
1869_ASBOX
1870 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001871 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001872 echo
1873 fi
1874 test "$ac_signal" != 0 &&
1875 echo "$as_me: caught signal $ac_signal"
1876 echo "$as_me: exit $exit_status"
1877 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001880 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001881' 0
John Criswell7a73b802003-06-30 21:59:07 +00001882for ac_signal in 1 2 13 15; do
1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884done
1885ac_signal=0
1886
1887# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001888rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001889
1890# Predefined preprocessor variables.
1891
1892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_NAME "$PACKAGE_NAME"
1894_ACEOF
1895
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899_ACEOF
1900
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_VERSION "$PACKAGE_VERSION"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_STRING "$PACKAGE_STRING"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914_ACEOF
1915
1916
1917# Let the site file select an alternate cache file if it wants to.
1918# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001919if test -n "$CONFIG_SITE"; then
1920 set x "$CONFIG_SITE"
1921elif test "x$prefix" != xNONE; then
1922 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1923else
1924 set x "$ac_default_prefix/share/config.site" \
1925 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001926fi
Reid Spencera773bd52006-08-04 18:18:08 +00001927shift
1928for ac_site_file
1929do
John Criswell7a73b802003-06-30 21:59:07 +00001930 if test -r "$ac_site_file"; then
1931 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1934 . "$ac_site_file"
1935 fi
1936done
1937
1938if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943echo "$as_me: loading cache $cache_file" >&6;}
1944 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001947 esac
1948 fi
1949else
1950 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951echo "$as_me: creating cache $cache_file" >&6;}
1952 >$cache_file
1953fi
1954
1955# Check that the precious variables saved in the cache have kept the same
1956# value.
1957ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001958for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001987 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1994 fi
1995done
1996if $ac_cache_corrupted; then
1997 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001 { (exit 1); exit 1; }; }
2002fi
2003
Reid Spencera773bd52006-08-04 18:18:08 +00002004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
John Criswell7a73b802003-06-30 21:59:07 +00002028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033
2034
2035
Tanya Lattnercf067672008-01-17 05:57:22 +00002036LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037
2038
2039
2040
2041
2042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002045for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
Reid Spencera773bd52006-08-04 18:18:08 +00002054 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059done
2060if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002061 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002063 { (exit 1); exit 1; }; }
2064fi
Reid Spencera773bd52006-08-04 18:18:08 +00002065
2066# These three variables are undocumented and unsupported,
2067# and are intended to be withdrawn in a future Autoconf release.
2068# They can cause serious problems if a builder's source tree is in a directory
2069# whose full name contains unusual characters.
2070ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
John Criswell7a73b802003-06-30 21:59:07 +00002074
John Criswell392aaa32003-07-22 19:18:09 +00002075
Reid Spencer2706f8c2004-09-19 23:53:36 +00002076if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002079echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 fi
John Criswell93e1c722003-09-15 17:04:06 +00002082fi
2083
John Criswell33a911a2003-11-25 20:36:46 +00002084for i in `ls ${srcdir}/projects`
2085do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 if test -d ${srcdir}/projects/${i} ; then
2087 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 CVS) ;;
2089 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002095 # llvm-test is the old name of the test-suite, kept here for backwards
2096 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002097 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002099 test-suite) subdirs="$subdirs projects/test-suite"
2100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002110 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002111 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002112 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002114 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002116 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002118 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 esac
John Criswell33a911a2003-11-25 20:36:46 +00002120 fi
2121done
John Criswell559a6c12003-09-30 16:31:48 +00002122
John Criswell7a73b802003-06-30 21:59:07 +00002123
2124# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002128 { (exit 1); exit 1; }; }
2129
Reid Spencera773bd52006-08-04 18:18:08 +00002130{ echo "$as_me:$LINENO: checking build system type" >&5
2131echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002132if test "${ac_cv_build+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
Reid Spencera773bd52006-08-04 18:18:08 +00002135 ac_build_alias=$build_alias
2136test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002139 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002142ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002145 { (exit 1); exit 1; }; }
2146
2147fi
Reid Spencera773bd52006-08-04 18:18:08 +00002148{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149echo "${ECHO_T}$ac_cv_build" >&6; }
2150case $ac_cv_build in
2151*-*-*) ;;
2152*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2155esac
John Criswell7a73b802003-06-30 21:59:07 +00002156build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002157ac_save_IFS=$IFS; IFS='-'
2158set x $ac_cv_build
2159shift
2160build_cpu=$1
2161build_vendor=$2
2162shift; shift
2163# Remember, the first character of IFS is used to create $*,
2164# except with old shells:
2165build_os=$*
2166IFS=$ac_save_IFS
2167case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002168
2169
Reid Spencera773bd52006-08-04 18:18:08 +00002170{ echo "$as_me:$LINENO: checking host system type" >&5
2171echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002172if test "${ac_cv_host+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
Reid Spencera773bd52006-08-04 18:18:08 +00002175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2177else
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002182fi
John Criswell7a73b802003-06-30 21:59:07 +00002183
2184fi
Reid Spencera773bd52006-08-04 18:18:08 +00002185{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186echo "${ECHO_T}$ac_cv_host" >&6; }
2187case $ac_cv_host in
2188*-*-*) ;;
2189*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2192esac
John Criswell7a73b802003-06-30 21:59:07 +00002193host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_host
2196shift
2197host_cpu=$1
2198host_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202host_os=$*
2203IFS=$ac_save_IFS
2204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002205
2206
Reid Spencera773bd52006-08-04 18:18:08 +00002207{ echo "$as_me:$LINENO: checking target system type" >&5
2208echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002209if test "${ac_cv_target+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
Reid Spencera773bd52006-08-04 18:18:08 +00002212 if test "x$target_alias" = x; then
2213 ac_cv_target=$ac_cv_host
2214else
2215 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002219fi
John Criswell7a73b802003-06-30 21:59:07 +00002220
2221fi
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223echo "${ECHO_T}$ac_cv_target" >&6; }
2224case $ac_cv_target in
2225*-*-*) ;;
2226*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227echo "$as_me: error: invalid value of canonical target" >&2;}
2228 { (exit 1); exit 1; }; };;
2229esac
John Criswell7a73b802003-06-30 21:59:07 +00002230target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_target
2233shift
2234target_cpu=$1
2235target_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239target_os=$*
2240IFS=$ac_save_IFS
2241case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002242
2243
2244# The aliases save the names the user supplied, while $host etc.
2245# will get canonicalized.
2246test -n "$target_alias" &&
2247 test "$program_prefix$program_suffix$program_transform_name" = \
2248 NONENONEs,x,x, &&
2249 program_prefix=${target_alias}-
2250
Reid Spencera773bd52006-08-04 18:18:08 +00002251{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002256 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="AIX"
2261 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002262 *-*-irix*)
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="IRIX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Cygwin"
2271 llvm_cv_platform_type="Unix" ;;
2272 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002274 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="Darwin"
2276 llvm_cv_platform_type="Unix" ;;
2277 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280 llvm_cv_os_type="FreeBSD"
2281 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002282 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002285 llvm_cv_os_type="OpenBSD"
2286 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002287 *-*-netbsd*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="NetBSD"
2291 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002292 *-*-dragonfly*)
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="DragonFly"
2296 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002297 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002300 llvm_cv_os_type="HP-UX"
2301 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 llvm_cv_os_type="Interix"
2306 llvm_cv_platform_type="Unix" ;;
2307 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310 llvm_cv_os_type="Linux"
2311 llvm_cv_platform_type="Unix" ;;
2312 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002313 llvm_cv_link_all_option="-Wl,-z,allextract"
2314 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002315 llvm_cv_os_type="SunOS"
2316 llvm_cv_platform_type="Unix" ;;
2317 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 llvm_cv_os_type="Win32"
2321 llvm_cv_platform_type="Win32" ;;
2322 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 llvm_cv_os_type="MingW"
2326 llvm_cv_platform_type="Win32" ;;
2327 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002328 llvm_cv_link_all_option=""
2329 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330 llvm_cv_os_type="Unknown"
2331 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002332esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002333fi
Reid Spencera773bd52006-08-04 18:18:08 +00002334{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002336
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337if test "$llvm_cv_os_type" = "Unknown" ; then
2338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002340 { (exit 1); exit 1; }; }
2341fi
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344
2345
Reid Spencera773bd52006-08-04 18:18:08 +00002346LINKALL=$llvm_cv_link_all_option
2347
2348NOLINKALL=$llvm_cv_no_link_all_option
2349
2350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351case $llvm_cv_platform_type in
2352 Unix)
2353
2354cat >>confdefs.h <<\_ACEOF
2355#define LLVM_ON_UNIX 1
2356_ACEOF
2357
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002358 LLVM_ON_UNIX=1
2359
2360 LLVM_ON_WIN32=0
2361
Reid Spencer7b3e8512004-12-24 06:29:05 +00002362 ;;
2363 Win32)
2364
2365cat >>confdefs.h <<\_ACEOF
2366#define LLVM_ON_WIN32 1
2367_ACEOF
2368
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002369 LLVM_ON_UNIX=0
2370
2371 LLVM_ON_WIN32=1
2372
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373 ;;
2374esac
2375
Reid Spencera773bd52006-08-04 18:18:08 +00002376{ echo "$as_me:$LINENO: checking target architecture" >&5
2377echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378if test "${llvm_cv_target_arch+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002382 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002383 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002384 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2385 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002386 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002387 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002388 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002389 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002390 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002391 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002392esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393fi
Reid Spencera773bd52006-08-04 18:18:08 +00002394{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2395echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397if test "$llvm_cv_target_arch" = "Unknown" ; then
2398 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2399echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400fi
John Criswell76595452003-07-01 22:07:39 +00002401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002403
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ac_ext=c
2406ac_cpp='$CPP $CPPFLAGS'
2407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415if test "${ac_cv_prog_CC+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002427 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 +00002428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432done
2433done
Reid Spencera773bd52006-08-04 18:18:08 +00002434IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435
2436fi
2437fi
2438CC=$ac_cv_prog_CC
2439if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002440 { echo "$as_me:$LINENO: result: $CC" >&5
2441echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442else
Reid Spencera773bd52006-08-04 18:18:08 +00002443 { echo "$as_me:$LINENO: result: no" >&5
2444echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445fi
2446
Reid Spencera773bd52006-08-04 18:18:08 +00002447
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448fi
2449if test -z "$ac_cv_prog_CC"; then
2450 ac_ct_CC=$CC
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002467 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 +00002468 ac_cv_prog_ac_ct_CC="gcc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472done
2473done
Reid Spencera773bd52006-08-04 18:18:08 +00002474IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475
2476fi
2477fi
2478ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002480 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
Reid Spencera773bd52006-08-04 18:18:08 +00002483 { echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485fi
2486
Reid Spencera773bd52006-08-04 18:18:08 +00002487 if test "x$ac_ct_CC" = x; then
2488 CC=""
2489 else
2490 case $cross_compiling:$ac_tool_warned in
2491yes:)
2492{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493whose name does not start with the host triplet. If you think this
2494configuration is useful to you, please write to autoconf@gnu.org." >&5
2495echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496whose name does not start with the host triplet. If you think this
2497configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498ac_tool_warned=yes ;;
2499esac
2500 CC=$ac_ct_CC
2501 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502else
2503 CC="$ac_cv_prog_CC"
2504fi
2505
2506if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002507 if test -n "$ac_tool_prefix"; then
2508 # 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 +00002509set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512if test "${ac_cv_prog_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002524 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 +00002525 ac_cv_prog_CC="${ac_tool_prefix}cc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529done
2530done
Reid Spencera773bd52006-08-04 18:18:08 +00002531IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532
2533fi
2534fi
2535CC=$ac_cv_prog_CC
2536if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002537 { echo "$as_me:$LINENO: result: $CC" >&5
2538echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539else
Reid Spencera773bd52006-08-04 18:18:08 +00002540 { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542fi
2543
Reid Spencera773bd52006-08-04 18:18:08 +00002544
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546fi
2547if test -z "$CC"; then
2548 # Extract the first word of "cc", so it can be a program name with args.
2549set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2557else
2558 ac_prog_rejected=no
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002565 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 +00002566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567 ac_prog_rejected=yes
2568 continue
2569 fi
2570 ac_cv_prog_CC="cc"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574done
2575done
Reid Spencera773bd52006-08-04 18:18:08 +00002576IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577
2578if test $ac_prog_rejected = yes; then
2579 # We found a bogon in the path, so make sure we never use it.
2580 set dummy $ac_cv_prog_CC
2581 shift
2582 if test $# != 0; then
2583 # We chose a different compiler from the bogus one.
2584 # However, it has the same basename, so the bogon will be chosen
2585 # first if we set CC to just the basename; use the full file name.
2586 shift
2587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588 fi
2589fi
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002594 { echo "$as_me:$LINENO: result: $CC" >&5
2595echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596else
Reid Spencera773bd52006-08-04 18:18:08 +00002597 { echo "$as_me:$LINENO: result: no" >&5
2598echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599fi
2600
Reid Spencera773bd52006-08-04 18:18:08 +00002601
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602fi
2603if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002606 do
2607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002623 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 +00002624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628done
2629done
Reid Spencera773bd52006-08-04 18:18:08 +00002630IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002631
2632fi
2633fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634CC=$ac_cv_prog_CC
2635if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002636 { echo "$as_me:$LINENO: result: $CC" >&5
2637echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencera773bd52006-08-04 18:18:08 +00002639 { echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002641fi
2642
Reid Spencera773bd52006-08-04 18:18:08 +00002643
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002645 done
2646fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647if test -z "$CC"; then
2648 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002649 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002650do
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002667 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 +00002668 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673done
Reid Spencera773bd52006-08-04 18:18:08 +00002674IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002675
2676fi
2677fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002682else
Reid Spencera773bd52006-08-04 18:18:08 +00002683 { echo "$as_me:$LINENO: result: no" >&5
2684echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002685fi
2686
Reid Spencera773bd52006-08-04 18:18:08 +00002687
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002689done
John Criswell7a73b802003-06-30 21:59:07 +00002690
Reid Spencera773bd52006-08-04 18:18:08 +00002691 if test "x$ac_ct_CC" = x; then
2692 CC=""
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695yes:)
2696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697whose name does not start with the host triplet. If you think this
2698configuration is useful to you, please write to autoconf@gnu.org." >&5
2699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700whose name does not start with the host triplet. If you think this
2701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702ac_tool_warned=yes ;;
2703esac
2704 CC=$ac_ct_CC
2705 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706fi
2707
John Criswell7a73b802003-06-30 21:59:07 +00002708fi
2709
2710
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&5
2713echo "$as_me: error: no acceptable C compiler found in \$PATH
2714See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2716
John Criswell7a73b802003-06-30 21:59:07 +00002717# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002718echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002719ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002720{ (ac_try="$ac_compiler --version >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002730{ (ac_try="$ac_compiler -v >&5"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002740{ (ac_try="$ac_compiler -V >&5"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750
2751cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002757
John Criswell7a73b802003-06-30 21:59:07 +00002758int
2759main ()
2760{
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002767ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002768# Try to create an executable without -o first, disregard a.out.
2769# It will help us diagnose broken compilers, and finding out an intuition
2770# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002771{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002773ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002774#
2775# List of possible output files, starting from the most likely.
2776# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2777# only as a last resort. b.out is created by i960 compilers.
2778ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2779#
2780# The IRIX 6 linker writes into existing files which may not be
2781# executable, retaining their permissions. Remove them first so a
2782# subsequent execution test works.
2783ac_rmfiles=
2784for ac_file in $ac_files
2785do
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789 esac
2790done
2791rm -f $ac_rmfiles
2792
2793if { (ac_try="$ac_link_default"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2804# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2805# in a Makefile. We should not override ac_cv_exeext if it was cached,
2806# so that the user can short-circuit this test for compilers unknown to
2807# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002808for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002809do
2810 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002811 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002813 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002814 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002815 # We found the default executable, but exeext='' is most
2816 # certainly right.
2817 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002818 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2820 then :; else
2821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 fi
2823 # We set ac_cv_exeext here because the later test for it is not
2824 # safe: cross compilers may not add the suffix if given an `-o'
2825 # argument, so we may need to know it at that point already.
2826 # Even if this section looks crufty: it has the advantage of
2827 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002828 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002829 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002830 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002831 esac
2832done
Reid Spencera773bd52006-08-04 18:18:08 +00002833test "$ac_cv_exeext" = no && ac_cv_exeext=
2834
John Criswell7a73b802003-06-30 21:59:07 +00002835else
2836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002837sed 's/^/| /' conftest.$ac_ext >&5
2838
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002839{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002840See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002841echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002842See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002843 { (exit 77); exit 77; }; }
2844fi
2845
2846ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002847{ echo "$as_me:$LINENO: result: $ac_file" >&5
2848echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002849
Reid Spencera773bd52006-08-04 18:18:08 +00002850# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002851# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002852{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2853echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002854# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2855# If not cross compiling, check that we can run a simple program.
2856if test "$cross_compiling" != yes; then
2857 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002858 { (case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 cross_compiling=no
2868 else
2869 if test "$cross_compiling" = maybe; then
2870 cross_compiling=yes
2871 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002872 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002873If you meant to cross compile, use \`--host'.
2874See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002875echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002876If you meant to cross compile, use \`--host'.
2877See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002878 { (exit 1); exit 1; }; }
2879 fi
2880 fi
2881fi
Reid Spencera773bd52006-08-04 18:18:08 +00002882{ echo "$as_me:$LINENO: result: yes" >&5
2883echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002884
John Criswell0c38eaf2003-09-10 15:17:25 +00002885rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002886ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002887# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002888# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2890echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2891{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2892echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002893
Reid Spencera773bd52006-08-04 18:18:08 +00002894{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2895echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2896if { (ac_try="$ac_link"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908# work properly (i.e., refer to `conftest.exe'), while it won't with
2909# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002910for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002912 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002915 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 * ) break;;
2917 esac
2918done
2919else
John Criswell0c38eaf2003-09-10 15:17:25 +00002920 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&5
2922echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002924 { (exit 1); exit 1; }; }
2925fi
2926
2927rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002928{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002930
2931rm -f conftest.$ac_ext
2932EXEEXT=$ac_cv_exeext
2933ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002934{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002936if test "${ac_cv_objext+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002940/* confdefs.h. */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002945
John Criswell7a73b802003-06-30 21:59:07 +00002946int
2947main ()
2948{
2949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002955if { (ac_try="$ac_compile"
2956case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002965 for ac_file in conftest.o conftest.obj conftest.*; do
2966 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002967 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2970 break;;
2971 esac
2972done
2973else
2974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&5
2979echo "$as_me: error: cannot compute suffix of object files: cannot compile
2980See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002981 { (exit 1); exit 1; }; }
2982fi
2983
2984rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985fi
Reid Spencera773bd52006-08-04 18:18:08 +00002986{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2987echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002988OBJEXT=$ac_cv_objext
2989ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002990{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2991echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002992if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003001
John Criswell7a73b802003-06-30 21:59:07 +00003002int
3003main ()
3004{
3005#ifndef __GNUC__
3006 choke me
3007#endif
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003047 ac_compiler_gnu=yes
3048else
3049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003050sed 's/^/| /' conftest.$ac_ext >&5
3051
Reid Spencera773bd52006-08-04 18:18:08 +00003052 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003053fi
Reid Spencera773bd52006-08-04 18:18:08 +00003054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003056ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003057
3058fi
Reid Spencera773bd52006-08-04 18:18:08 +00003059{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061GCC=`test $ac_compiler_gnu = yes && echo yes`
3062ac_test_CFLAGS=${CFLAGS+set}
3063ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003064{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003066if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
Reid Spencera773bd52006-08-04 18:18:08 +00003069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3071 ac_cv_prog_cc_g=no
3072 CFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003079
John Criswell7a73b802003-06-30 21:59:07 +00003080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003101 (exit $ac_status); } &&
3102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3103 { (case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_try") 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003122 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003123else
3124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003125sed 's/^/| /' conftest.$ac_ext >&5
3126
Reid Spencera773bd52006-08-04 18:18:08 +00003127 CFLAGS=""
3128 cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
3134
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
3144if { (ac_try="$ac_compile"
3145case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003177 :
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (ac_try="$ac_compile"
3201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003212 (exit $ac_status); } &&
3213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3214 { (case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_try") 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
3228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_try") 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003233 ac_cv_prog_cc_g=yes
3234else
3235 echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
John Criswell7a73b802003-06-30 21:59:07 +00003239fi
Reid Spencera773bd52006-08-04 18:18:08 +00003240
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003242fi
Reid Spencera773bd52006-08-04 18:18:08 +00003243
3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245fi
3246
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3249fi
3250{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252if test "$ac_test_CFLAGS" = set; then
3253 CFLAGS=$ac_save_CFLAGS
3254elif test $ac_cv_prog_cc_g = yes; then
3255 if test "$GCC" = yes; then
3256 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003257 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003259 fi
3260else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 if test "$GCC" = yes; then
3262 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003263 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003265 fi
3266fi
Reid Spencera773bd52006-08-04 18:18:08 +00003267{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
Reid Spencera773bd52006-08-04 18:18:08 +00003272 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273ac_save_CC=$CC
3274cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280#include <stdarg.h>
3281#include <stdio.h>
3282#include <sys/types.h>
3283#include <sys/stat.h>
3284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285struct buf { int x; };
3286FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287static char *e (p, i)
3288 char **p;
3289 int i;
3290{
3291 return p[i];
3292}
3293static char *f (char * (*g) (char **, int), char **p, ...)
3294{
3295 char *s;
3296 va_list v;
3297 va_start (v,p);
3298 s = g (p, va_arg (v,int));
3299 va_end (v);
3300 return s;
3301}
3302
3303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304 function prototypes and stuff, but not '\xHH' hex character constants.
3305 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003306 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003309 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311
Reid Spencera773bd52006-08-04 18:18:08 +00003312/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313 inside strings and character constants. */
3314#define FOO(x) 'x'
3315int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317int test (int i, double x);
3318struct s1 {int (*f) (int a);};
3319struct s2 {int (*f) (double a);};
3320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321int argc;
3322char **argv;
3323int
3324main ()
3325{
3326return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3327 ;
3328 return 0;
3329}
3330_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333do
3334 CC="$ac_save_CC $ac_arg"
3335 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003336if { (ac_try="$ac_compile"
3337case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_try") 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003369 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370else
3371 echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
Reid Spencera773bd52006-08-04 18:18:08 +00003374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375fi
Reid Spencera773bd52006-08-04 18:18:08 +00003376
3377rm -f core conftest.err conftest.$ac_objext
3378 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379done
Reid Spencera773bd52006-08-04 18:18:08 +00003380rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381CC=$ac_save_CC
3382
3383fi
Reid Spencera773bd52006-08-04 18:18:08 +00003384# AC_CACHE_VAL
3385case "x$ac_cv_prog_cc_c89" in
3386 x)
3387 { echo "$as_me:$LINENO: result: none needed" >&5
3388echo "${ECHO_T}none needed" >&6; } ;;
3389 xno)
3390 { echo "$as_me:$LINENO: result: unsupported" >&5
3391echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003393 CC="$CC $ac_cv_prog_cc_c89"
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3395echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396esac
3397
John Criswell0c38eaf2003-09-10 15:17:25 +00003398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404
3405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003411{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3412echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413# On Suns, sometimes $CPP names a directory.
3414if test -n "$CPP" && test -d "$CPP"; then
3415 CPP=
3416fi
3417if test -z "$CPP"; then
3418 if test "${ac_cv_prog_CPP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421 # Double quotes because CPP needs to be expanded
3422 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423 do
3424 ac_preproc_ok=false
3425for ac_c_preproc_warn_flag in '' yes
3426do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#ifdef __STDC__
3440# include <limits.h>
3441#else
3442# include <assert.h>
3443#endif
3444 Syntax error
3445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003446if { (ac_try="$ac_cpp conftest.$ac_ext"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 else
3463 ac_cpp_err=
3464 fi
3465else
3466 ac_cpp_err=yes
3467fi
3468if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469 :
3470else
3471 echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 # Broken: fails on valid input.
3475continue
3476fi
Reid Spencera773bd52006-08-04 18:18:08 +00003477
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003478rm -f conftest.err conftest.$ac_ext
3479
Reid Spencera773bd52006-08-04 18:18:08 +00003480 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003481 # can be detected and how.
3482 cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
3488#include <ac_nonexistent.h>
3489_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003490if { (ac_try="$ac_cpp conftest.$ac_ext"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003502 (exit $ac_status); } >/dev/null; then
3503 if test -s conftest.err; then
3504 ac_cpp_err=$ac_c_preproc_warn_flag
3505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3506 else
3507 ac_cpp_err=
3508 fi
3509else
3510 ac_cpp_err=yes
3511fi
3512if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003513 # Broken: success on invalid input.
3514continue
3515else
3516 echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 # Passes both tests.
3520ac_preproc_ok=:
3521break
3522fi
Reid Spencera773bd52006-08-04 18:18:08 +00003523
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524rm -f conftest.err conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then
3530 break
3531fi
3532
3533 done
3534 ac_cv_prog_CPP=$CPP
3535
3536fi
3537 CPP=$ac_cv_prog_CPP
3538else
3539 ac_cv_prog_CPP=$CPP
3540fi
Reid Spencera773bd52006-08-04 18:18:08 +00003541{ echo "$as_me:$LINENO: result: $CPP" >&5
3542echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563 Syntax error
3564_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003565if { (ac_try="$ac_cpp conftest.$ac_ext"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581 else
3582 ac_cpp_err=
3583 fi
3584else
3585 ac_cpp_err=yes
3586fi
3587if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 :
3589else
3590 echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 # Broken: fails on valid input.
3594continue
3595fi
Reid Spencera773bd52006-08-04 18:18:08 +00003596
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003597rm -f conftest.err conftest.$ac_ext
3598
Reid Spencera773bd52006-08-04 18:18:08 +00003599 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607#include <ac_nonexistent.h>
3608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003609if { (ac_try="$ac_cpp conftest.$ac_ext"
3610case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625 else
3626 ac_cpp_err=
3627 fi
3628else
3629 ac_cpp_err=yes
3630fi
3631if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003632 # Broken: success on invalid input.
3633continue
3634else
3635 echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 # Passes both tests.
3639ac_preproc_ok=:
3640break
3641fi
Reid Spencera773bd52006-08-04 18:18:08 +00003642
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643rm -f conftest.err conftest.$ac_ext
3644
3645done
3646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647rm -f conftest.err conftest.$ac_ext
3648if $ac_preproc_ok; then
3649 :
3650else
3651 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&5
3653echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3654See \`config.log' for more details." >&2;}
3655 { (exit 1); exit 1; }; }
3656fi
3657
John Criswell7a73b802003-06-30 21:59:07 +00003658ac_ext=c
3659ac_cpp='$CPP $CPPFLAGS'
3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
John Criswell7a73b802003-06-30 21:59:07 +00003664
Reid Spencera773bd52006-08-04 18:18:08 +00003665{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3666echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667if test "${ac_cv_path_GREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
Reid Spencera773bd52006-08-04 18:18:08 +00003670 # Extract the first word of "grep ggrep" to use in msg output
3671if test -z "$GREP"; then
3672set dummy grep ggrep; ac_prog_name=$2
3673if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
Reid Spencera773bd52006-08-04 18:18:08 +00003676 ac_path_GREP_found=false
3677# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003683 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003686 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003687 # Check for GNU ac_path_GREP and select it if it is found.
3688 # Check for GNU $ac_path_GREP
3689case `"$ac_path_GREP" --version 2>&1` in
3690*GNU*)
3691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692*)
3693 ac_count=0
3694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695 while :
3696 do
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 echo 'GREP' >> "conftest.nl"
3701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 ac_count=`expr $ac_count + 1`
3704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_GREP="$ac_path_GREP"
3707 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003708 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3711 done
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
3714
3715
3716 $ac_path_GREP_found && break 3
3717 done
3718done
3719
3720done
3721IFS=$as_save_IFS
3722
3723
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003724fi
Reid Spencera773bd52006-08-04 18:18:08 +00003725
3726GREP="$ac_cv_path_GREP"
3727if test -z "$GREP"; then
3728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730 { (exit 1); exit 1; }; }
3731fi
3732
3733else
3734 ac_cv_path_GREP=$GREP
3735fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003736
John Criswell7a73b802003-06-30 21:59:07 +00003737
Reid Spencera773bd52006-08-04 18:18:08 +00003738fi
3739{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3740echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3741 GREP="$ac_cv_path_GREP"
3742
3743
3744{ echo "$as_me:$LINENO: checking for egrep" >&5
3745echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3746if test "${ac_cv_path_EGREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3750 then ac_cv_path_EGREP="$GREP -E"
3751 else
3752 # Extract the first word of "egrep" to use in msg output
3753if test -z "$EGREP"; then
3754set dummy egrep; ac_prog_name=$2
3755if test "${ac_cv_path_EGREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 ac_path_EGREP_found=false
3759# Loop through the user's path and test for each of PROGNAME-LIST
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_prog in egrep; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003768 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003769 # Check for GNU ac_path_EGREP and select it if it is found.
3770 # Check for GNU $ac_path_EGREP
3771case `"$ac_path_EGREP" --version 2>&1` in
3772*GNU*)
3773 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774*)
3775 ac_count=0
3776 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777 while :
3778 do
3779 cat "conftest.in" "conftest.in" >"conftest.tmp"
3780 mv "conftest.tmp" "conftest.in"
3781 cp "conftest.in" "conftest.nl"
3782 echo 'EGREP' >> "conftest.nl"
3783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785 ac_count=`expr $ac_count + 1`
3786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3787 # Best one so far, save it but keep looking for a better one
3788 ac_cv_path_EGREP="$ac_path_EGREP"
3789 ac_path_EGREP_max=$ac_count
3790 fi
3791 # 10*(2^10) chars as input seems more than enough
3792 test $ac_count -gt 10 && break
3793 done
3794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3795esac
3796
3797
3798 $ac_path_EGREP_found && break 3
3799 done
3800done
3801
3802done
3803IFS=$as_save_IFS
3804
3805
3806fi
3807
3808EGREP="$ac_cv_path_EGREP"
3809if test -z "$EGREP"; then
3810 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3811echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3812 { (exit 1); exit 1; }; }
3813fi
3814
3815else
3816 ac_cv_path_EGREP=$EGREP
3817fi
3818
3819
3820 fi
3821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3823echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3824 EGREP="$ac_cv_path_EGREP"
3825
3826
3827{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3828echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003829if test "${ac_cv_header_stdc+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003838#include <stdlib.h>
3839#include <stdarg.h>
3840#include <string.h>
3841#include <float.h>
3842
John Criswell0c38eaf2003-09-10 15:17:25 +00003843int
3844main ()
3845{
3846
3847 ;
3848 return 0;
3849}
John Criswell7a73b802003-06-30 21:59:07 +00003850_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003851rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003852if { (ac_try="$ac_compile"
3853case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856esac
3857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869esac
3870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_try") 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003885 ac_cv_header_stdc=yes
3886else
3887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003888sed 's/^/| /' conftest.$ac_ext >&5
3889
Reid Spencera773bd52006-08-04 18:18:08 +00003890 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003891fi
Reid Spencera773bd52006-08-04 18:18:08 +00003892
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003894
3895if test $ac_cv_header_stdc = yes; then
3896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003903#include <string.h>
3904
3905_ACEOF
3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003907 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003908 :
3909else
3910 ac_cv_header_stdc=no
3911fi
3912rm -f conftest*
3913
3914fi
3915
3916if test $ac_cv_header_stdc = yes; then
3917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003919/* confdefs.h. */
3920_ACEOF
3921cat confdefs.h >>conftest.$ac_ext
3922cat >>conftest.$ac_ext <<_ACEOF
3923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003924#include <stdlib.h>
3925
3926_ACEOF
3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003928 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003929 :
3930else
3931 ac_cv_header_stdc=no
3932fi
3933rm -f conftest*
3934
3935fi
3936
3937if test $ac_cv_header_stdc = yes; then
3938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3939 if test "$cross_compiling" = yes; then
3940 :
3941else
3942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003948#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003949#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003950#if ((' ' & 0x0FF) == 0x020)
3951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003954# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003955 (('a' <= (c) && (c) <= 'i') \
3956 || ('j' <= (c) && (c) <= 'r') \
3957 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3959#endif
3960
3961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962int
3963main ()
3964{
3965 int i;
3966 for (i = 0; i < 256; i++)
3967 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003968 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003969 return 2;
3970 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003971}
3972_ACEOF
3973rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003974if { (ac_try="$ac_link"
3975case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978esac
3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003984 { (case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987esac
3988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 :
3994else
3995 echo "$as_me: program exited with status $ac_status" >&5
3996echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003997sed 's/^/| /' conftest.$ac_ext >&5
3998
John Criswell7a73b802003-06-30 21:59:07 +00003999( exit $ac_status )
4000ac_cv_header_stdc=no
4001fi
Reid Spencera773bd52006-08-04 18:18:08 +00004002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003fi
4004
4005
John Criswell7a73b802003-06-30 21:59:07 +00004006fi
4007fi
Reid Spencera773bd52006-08-04 18:18:08 +00004008{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4009echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004010if test $ac_cv_header_stdc = yes; then
4011
4012cat >>confdefs.h <<\_ACEOF
4013#define STDC_HEADERS 1
4014_ACEOF
4015
4016fi
4017
Reid Spencera773bd52006-08-04 18:18:08 +00004018# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4029 inttypes.h stdint.h unistd.h
4030do
4031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037 cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043$ac_includes_default
4044
4045#include <$ac_header>
4046_ACEOF
4047rm -f conftest.$ac_objext
4048if { (ac_try="$ac_compile"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_compile") 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062 { (case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_try") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_try") 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004081 eval "$as_ac_Header=yes"
4082else
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 eval "$as_ac_Header=no"
4087fi
4088
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090fi
4091ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093echo "${ECHO_T}$ac_res" >&6; }
4094if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097_ACEOF
4098
4099fi
4100
4101done
4102
4103
4104{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4105echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4106if test "${ac_cv_c_bigendian+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 # See if sys/param.h defines the BYTE_ORDER macro.
4110cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h. */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h. */
4116#include <sys/types.h>
4117#include <sys/param.h>
4118
4119int
4120main ()
4121{
Tanya Lattnercf067672008-01-17 05:57:22 +00004122#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004123 bogus endian macros
4124#endif
4125
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (ac_try="$ac_compile"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004164 # It does; now see whether it defined to BIG_ENDIAN or not.
4165cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
4171#include <sys/types.h>
4172#include <sys/param.h>
4173
4174int
4175main ()
4176{
4177#if BYTE_ORDER != BIG_ENDIAN
4178 not big endian
4179#endif
4180
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185rm -f conftest.$ac_objext
4186if { (ac_try="$ac_compile"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_compile") 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200 { (case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_try") 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_try") 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004219 ac_cv_c_bigendian=yes
4220else
4221 echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224 ac_cv_c_bigendian=no
4225fi
4226
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228else
4229 echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 # It does not; compile a test program.
4233if test "$cross_compiling" = yes; then
4234 # try to guess the endianness by grepping values into an object file
4235 ac_cv_c_bigendian=unknown
4236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h. */
4242short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4243short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4244void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4245short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4246short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4247void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4248int
4249main ()
4250{
4251 _ascii (); _ebcdic ();
4252 ;
4253 return 0;
4254}
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (ac_try="$ac_compile"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004290 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4291 ac_cv_c_bigendian=yes
4292fi
4293if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4294 if test "$ac_cv_c_bigendian" = unknown; then
4295 ac_cv_c_bigendian=no
4296 else
4297 # finding both strings is unlikely to happen, but who knows?
4298 ac_cv_c_bigendian=unknown
4299 fi
4300fi
4301else
4302 echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305
4306fi
4307
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309else
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316$ac_includes_default
4317int
4318main ()
4319{
4320
4321 /* Are we little or big endian? From Harbison&Steele. */
4322 union
4323 {
4324 long int l;
4325 char c[sizeof (long int)];
4326 } u;
4327 u.l = 1;
4328 return u.c[sizeof (long int) - 1] == 1;
4329
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334rm -f conftest$ac_exeext
4335if { (ac_try="$ac_link"
4336case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_link") 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_c_bigendian=no
4355else
4356 echo "$as_me: program exited with status $ac_status" >&5
4357echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360( exit $ac_status )
4361ac_cv_c_bigendian=yes
4362fi
4363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4364fi
4365
4366
4367fi
4368
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4373case $ac_cv_c_bigendian in
4374 yes)
4375 ENDIAN=big
4376 ;;
4377 no)
4378 ENDIAN=little
4379 ;;
4380 *)
4381 { { echo "$as_me:$LINENO: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4383echo "$as_me: error: unknown endianness
4384presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4385 { (exit 1); exit 1; }; } ;;
4386esac
4387
4388
4389if test "$cross_compiling" = yes; then
4390 LLVM_CROSS_COMPILING=1
4391
4392
4393{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4394echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4395if test "${ac_cv_build_exeext+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4399 ac_cv_build_exeext=.exe
4400else
4401 ac_build_prefix=${build_alias}-
4402
4403 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4404set dummy ${ac_build_prefix}gcc; ac_word=$2
4405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410 if test -n "$BUILD_CC"; then
4411 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004419 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 +00004420 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430BUILD_CC=$ac_cv_prog_BUILD_CC
4431if test -n "$BUILD_CC"; then
4432 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4433echo "${ECHO_T}$BUILD_CC" >&6; }
4434else
4435 { echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6; }
4437fi
4438
4439
4440 if test -z "$BUILD_CC"; then
4441 # Extract the first word of "gcc", so it can be a program name with args.
4442set dummy gcc; ac_word=$2
4443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448 if test -n "$BUILD_CC"; then
4449 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004457 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 +00004458 ac_cv_prog_BUILD_CC="gcc"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462done
4463done
4464IFS=$as_save_IFS
4465
4466fi
4467fi
4468BUILD_CC=$ac_cv_prog_BUILD_CC
4469if test -n "$BUILD_CC"; then
4470 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4471echo "${ECHO_T}$BUILD_CC" >&6; }
4472else
4473 { echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6; }
4475fi
4476
4477
4478 if test -z "$BUILD_CC"; then
4479 # Extract the first word of "cc", so it can be a program name with args.
4480set dummy cc; ac_word=$2
4481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 if test -n "$BUILD_CC"; then
4487 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4488else
4489 ac_prog_rejected=no
4490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004496 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 +00004497 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4498 ac_prog_rejected=yes
4499 continue
4500 fi
4501 ac_cv_prog_BUILD_CC="cc"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506done
4507IFS=$as_save_IFS
4508
4509if test $ac_prog_rejected = yes; then
4510 # We found a bogon in the path, so make sure we never use it.
4511 set dummy $ac_cv_prog_BUILD_CC
4512 shift
4513 if test $# != 0; then
4514 # We chose a different compiler from the bogus one.
4515 # However, it has the same basename, so the bogon will be chosen
4516 # first if we set BUILD_CC to just the basename; use the full file name.
4517 shift
4518 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4519 fi
4520fi
4521fi
4522fi
4523BUILD_CC=$ac_cv_prog_BUILD_CC
4524if test -n "$BUILD_CC"; then
4525 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526echo "${ECHO_T}$BUILD_CC" >&6; }
4527else
4528 { echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6; }
4530fi
4531
4532
4533 fi
4534 fi
4535 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4536echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4537 { (exit 1); exit 1; }; }
4538 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4539 rm -f conftest*
4540 echo 'int main () { return 0; }' > conftest.$ac_ext
4541 ac_cv_build_exeext=
4542 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4543 (eval $ac_build_link) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; then
4547 for file in conftest.*; do
4548 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004549 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004550 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4551 esac
4552 done
4553 else
4554 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4555echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4556 { (exit 1); exit 1; }; }
4557 fi
4558 rm -f conftest*
4559 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4560fi
4561fi
4562
4563BUILD_EXEEXT=""
4564test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4565{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4566echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4567ac_build_exeext=$BUILD_EXEEXT
4568
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 ac_build_prefix=${build_alias}-
4570 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4571set dummy ${ac_build_prefix}g++; ac_word=$2
4572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 if test -n "$BUILD_CXX"; then
4578 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595fi
4596fi
4597BUILD_CXX=$ac_cv_prog_BUILD_CXX
4598if test -n "$BUILD_CXX"; then
4599 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4600echo "${ECHO_T}$BUILD_CXX" >&6; }
4601else
4602 { echo "$as_me:$LINENO: result: no" >&5
4603echo "${ECHO_T}no" >&6; }
4604fi
4605
4606
4607 if test -z "$BUILD_CXX"; then
4608 # Extract the first word of "g++", so it can be a program name with args.
4609set dummy g++; ac_word=$2
4610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 if test -n "$BUILD_CXX"; then
4616 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_BUILD_CXX="g++"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629done
4630done
4631IFS=$as_save_IFS
4632
4633fi
4634fi
4635BUILD_CXX=$ac_cv_prog_BUILD_CXX
4636if test -n "$BUILD_CXX"; then
4637 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4638echo "${ECHO_T}$BUILD_CXX" >&6; }
4639else
4640 { echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6; }
4642fi
4643
4644
4645 if test -z "$BUILD_CXX"; then
4646 # Extract the first word of "c++", so it can be a program name with args.
4647set dummy c++; ac_word=$2
4648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -n "$BUILD_CXX"; then
4654 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4655else
4656 ac_prog_rejected=no
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4665 ac_prog_rejected=yes
4666 continue
4667 fi
4668 ac_cv_prog_BUILD_CXX="c++"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673done
4674IFS=$as_save_IFS
4675
4676if test $ac_prog_rejected = yes; then
4677 # We found a bogon in the path, so make sure we never use it.
4678 set dummy $ac_cv_prog_BUILD_CXX
4679 shift
4680 if test $# != 0; then
4681 # We chose a different compiler from the bogus one.
4682 # However, it has the same basename, so the bogon will be chosen
4683 # first if we set BUILD_CXX to just the basename; use the full file name.
4684 shift
4685 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4686 fi
4687fi
4688fi
4689fi
4690BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691if test -n "$BUILD_CXX"; then
4692 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693echo "${ECHO_T}$BUILD_CXX" >&6; }
4694else
4695 { echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6; }
4697fi
4698
4699
4700 fi
4701 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004702else
4703 LLVM_CROSS_COMPILING=0
4704
4705fi
4706
Reid Spencer0b1e4662007-04-02 15:41:39 +00004707if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004708 cvsbuild="yes"
4709 optimize="no"
4710 CVSBUILD=CVSBUILD=1
4711
4712else
4713 cvsbuild="no"
4714 optimize="yes"
4715fi
4716
4717
4718# Check whether --enable-optimized was given.
4719if test "${enable_optimized+set}" = set; then
4720 enableval=$enable_optimized;
4721else
4722 enableval=$optimize
4723fi
4724
4725if test ${enableval} = "no" ; then
4726 ENABLE_OPTIMIZED=
4727
4728else
4729 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4730
4731fi
4732
4733# Check whether --enable-assertions was given.
4734if test "${enable_assertions+set}" = set; then
4735 enableval=$enable_assertions;
4736else
4737 enableval="yes"
4738fi
4739
4740if test ${enableval} = "yes" ; then
4741 DISABLE_ASSERTIONS=
4742
4743else
4744 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745
4746fi
4747
David Greenea696d242007-06-28 19:36:08 +00004748# Check whether --enable-expensive-checks was given.
4749if test "${enable_expensive_checks+set}" = set; then
4750 enableval=$enable_expensive_checks;
4751else
4752 enableval="no"
4753fi
4754
4755if test ${enableval} = "yes" ; then
4756 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4757
4758 EXPENSIVE_CHECKS=yes
4759
4760else
4761 ENABLE_EXPENSIVE_CHECKS=
4762
4763 EXPENSIVE_CHECKS=no
4764
4765fi
4766
Reid Spencer8b2e1412006-11-17 03:32:33 +00004767# Check whether --enable-debug-runtime was given.
4768if test "${enable_debug_runtime+set}" = set; then
4769 enableval=$enable_debug_runtime;
4770else
4771 enableval=no
4772fi
4773
4774if test ${enableval} = "no" ; then
4775 DEBUG_RUNTIME=
4776
4777else
4778 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779
4780fi
4781
Reid Spencera773bd52006-08-04 18:18:08 +00004782# Check whether --enable-jit was given.
4783if test "${enable_jit+set}" = set; then
4784 enableval=$enable_jit;
4785else
4786 enableval=default
4787fi
4788
4789if test ${enableval} = "no"
4790then
4791 JIT=
4792
4793else
4794 case "$llvm_cv_target_arch" in
4795 x86) TARGET_HAS_JIT=1
4796 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004797 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004798 ;;
4799 PowerPC) TARGET_HAS_JIT=1
4800 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004801 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004802 ;;
4803 Alpha) TARGET_HAS_JIT=1
4804 ;;
4805 IA64) TARGET_HAS_JIT=0
4806 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004807 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004808 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004809 Mips) TARGET_HAS_JIT=0
4810 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004811 PIC16) TARGET_HAS_JIT=0
4812 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004813 *) TARGET_HAS_JIT=0
4814 ;;
4815 esac
4816fi
4817
4818# Check whether --enable-doxygen was given.
4819if test "${enable_doxygen+set}" = set; then
4820 enableval=$enable_doxygen;
4821else
4822 enableval=default
4823fi
4824
4825case "$enableval" in
4826 yes) ENABLE_DOXYGEN=1
4827 ;;
4828 no) ENABLE_DOXYGEN=0
4829 ;;
4830 default) ENABLE_DOXYGEN=0
4831 ;;
4832 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4833echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4834 { (exit 1); exit 1; }; } ;;
4835esac
4836
4837# Check whether --enable-threads was given.
4838if test "${enable_threads+set}" = set; then
4839 enableval=$enable_threads;
4840else
Reid Spencer65c5d752006-11-05 17:08:18 +00004841 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004842fi
4843
4844case "$enableval" in
4845 yes) ENABLE_THREADS=1
4846 ;;
4847 no) ENABLE_THREADS=0
4848 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004849 default) ENABLE_THREADS=1
4850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4852echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
4854esac
4855
4856cat >>confdefs.h <<_ACEOF
4857#define ENABLE_THREADS $ENABLE_THREADS
4858_ACEOF
4859
4860
Reid Spencer89b0d992006-12-16 22:07:52 +00004861# Check whether --enable-pic was given.
4862if test "${enable_pic+set}" = set; then
4863 enableval=$enable_pic;
4864else
4865 enableval=default
4866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_PIC=1
4870 ;;
4871 no) ENABLE_PIC=0
4872 ;;
4873 default) ENABLE_PIC=0
4874 ;;
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878esac
4879
4880cat >>confdefs.h <<_ACEOF
4881#define ENABLE_PIC $ENABLE_PIC
4882_ACEOF
4883
4884
Reid Spencera773bd52006-08-04 18:18:08 +00004885TARGETS_TO_BUILD=""
4886# Check whether --enable-targets was given.
4887if test "${enable_targets+set}" = set; then
4888 enableval=$enable_targets;
4889else
4890 enableval=all
4891fi
4892
4893case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004894 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004895 host-only)
4896 case "$llvm_cv_target_arch" in
4897 x86) TARGETS_TO_BUILD="X86" ;;
4898 x86_64) TARGETS_TO_BUILD="X86" ;;
4899 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4900 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4901 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4902 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004903 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004904 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004905 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004906 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004907 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4908echo "$as_me: error: Can not set target to build" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4910 esac
4911 ;;
4912 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4913 case "$a_target" in
4914 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004920 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004921 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004922 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004923 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004924 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004926 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004927 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4928echo "$as_me: error: Unrecognized target $a_target" >&2;}
4929 { (exit 1); exit 1; }; } ;;
4930 esac
4931 done
4932 ;;
4933esac
Reid Spencera773bd52006-08-04 18:18:08 +00004934TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4935
4936
Reid Spencer65c5d752006-11-05 17:08:18 +00004937# Check whether --enable-cbe-printf-a was given.
4938if test "${enable_cbe_printf_a+set}" = set; then
4939 enableval=$enable_cbe_printf_a;
4940else
4941 enableval=default
4942fi
4943
4944case "$enableval" in
4945 yes) ENABLE_CBE_PRINTF_A=1
4946 ;;
4947 no) ENABLE_CBE_PRINTF_A=0
4948 ;;
4949 default) ENABLE_CBE_PRINTF_A=1
4950 ;;
4951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4952echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4953 { (exit 1); exit 1; }; } ;;
4954esac
4955
4956cat >>confdefs.h <<_ACEOF
4957#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4958_ACEOF
4959
4960
Reid Spencera773bd52006-08-04 18:18:08 +00004961
4962# Check whether --with-llvmgccdir was given.
4963if test "${with_llvmgccdir+set}" = set; then
4964 withval=$with_llvmgccdir;
4965else
4966 withval=default
4967fi
4968
4969case "$withval" in
4970 default) WITH_LLVMGCCDIR=default ;;
4971 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4972 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4973echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4974 { (exit 1); exit 1; }; } ;;
4975esac
4976
4977
Devang Patel5d28b882007-12-04 22:54:47 +00004978# Check whether --with-llvmgcc was given.
4979if test "${with_llvmgcc+set}" = set; then
4980 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4981 WITH_LLVMGCCDIR=""
4982fi
4983
4984
4985
4986# Check whether --with-llvmgxx was given.
4987if test "${with_llvmgxx+set}" = set; then
4988 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4989 WITH_LLVMGCCDIR=""
4990fi
4991
4992
4993if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4994 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4995echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4996 { (exit 1); exit 1; }; };
4997fi
4998
4999if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5000 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5001echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5002 { (exit 1); exit 1; }; };
5003fi
5004
5005
Reid Spencera773bd52006-08-04 18:18:08 +00005006# Check whether --with-extra-options was given.
5007if test "${with_extra_options+set}" = set; then
5008 withval=$with_extra_options;
5009else
5010 withval=default
5011fi
5012
5013case "$withval" in
5014 default) EXTRA_OPTIONS= ;;
5015 *) EXTRA_OPTIONS=$withval ;;
5016esac
5017EXTRA_OPTIONS=$EXTRA_OPTIONS
5018
5019
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005020# Check whether --enable-bindings was given.
5021if test "${enable_bindings+set}" = set; then
5022 enableval=$enable_bindings;
5023else
5024 enableval=default
5025fi
5026
5027BINDINGS_TO_BUILD=""
5028case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005029 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005030 all ) BINDINGS_TO_BUILD="ocaml" ;;
5031 none | no) BINDINGS_TO_BUILD="" ;;
5032 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033 case "$a_binding" in
5034 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5035 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5036echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5038 esac
5039 done
5040 ;;
5041esac
5042
Reid Spencera773bd52006-08-04 18:18:08 +00005043
Gordon Henriksenf0915682007-10-02 16:42:22 +00005044# Check whether --with-ocaml-libdir was given.
5045if test "${with_ocaml_libdir+set}" = set; then
5046 withval=$with_ocaml_libdir;
5047else
5048 withval=auto
5049fi
5050
5051case "$withval" in
5052 auto) with_ocaml_libdir="$withval" ;;
5053 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5054 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5055echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5056 { (exit 1); exit 1; }; } ;;
5057esac
5058
5059
Reid Spencera773bd52006-08-04 18:18:08 +00005060ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067# On Suns, sometimes $CPP names a directory.
5068if test -n "$CPP" && test -d "$CPP"; then
5069 CPP=
5070fi
5071if test -z "$CPP"; then
5072 if test "${ac_cv_prog_CPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077 do
5078 ac_preproc_ok=false
5079for ac_c_preproc_warn_flag in '' yes
5080do
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#ifdef __STDC__
5094# include <limits.h>
5095#else
5096# include <assert.h>
5097#endif
5098 Syntax error
5099_ACEOF
5100if { (ac_try="$ac_cpp conftest.$ac_ext"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_c_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119else
5120 ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005123 :
5124else
5125 echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 # Broken: fails on valid input.
5129continue
5130fi
5131
5132rm -f conftest.err conftest.$ac_ext
5133
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142#include <ac_nonexistent.h>
5143_ACEOF
5144if { (ac_try="$ac_cpp conftest.$ac_ext"
5145case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148esac
5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005156 (exit $ac_status); } >/dev/null; then
5157 if test -s conftest.err; then
5158 ac_cpp_err=$ac_c_preproc_warn_flag
5159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160 else
5161 ac_cpp_err=
5162 fi
5163else
5164 ac_cpp_err=yes
5165fi
5166if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005167 # Broken: success on invalid input.
5168continue
5169else
5170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 # Passes both tests.
5174ac_preproc_ok=:
5175break
5176fi
5177
5178rm -f conftest.err conftest.$ac_ext
5179
5180done
5181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182rm -f conftest.err conftest.$ac_ext
5183if $ac_preproc_ok; then
5184 break
5185fi
5186
5187 done
5188 ac_cv_prog_CPP=$CPP
5189
5190fi
5191 CPP=$ac_cv_prog_CPP
5192else
5193 ac_cv_prog_CPP=$CPP
5194fi
5195{ echo "$as_me:$LINENO: result: $CPP" >&5
5196echo "${ECHO_T}$CPP" >&6; }
5197ac_preproc_ok=false
5198for ac_c_preproc_warn_flag in '' yes
5199do
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203 # <limits.h> exists even on freestanding compilers.
5204 # On the NeXT, cc -E runs the code through the compiler's parser,
5205 # not just through cpp. "Syntax error" is here to catch this case.
5206 cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h. */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h. */
5212#ifdef __STDC__
5213# include <limits.h>
5214#else
5215# include <assert.h>
5216#endif
5217 Syntax error
5218_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005231 (exit $ac_status); } >/dev/null; then
5232 if test -s conftest.err; then
5233 ac_cpp_err=$ac_c_preproc_warn_flag
5234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235 else
5236 ac_cpp_err=
5237 fi
5238else
5239 ac_cpp_err=yes
5240fi
5241if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005242 :
5243else
5244 echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 # Broken: fails on valid input.
5248continue
5249fi
5250
5251rm -f conftest.err conftest.$ac_ext
5252
5253 # OK, works on sane cases. Now check whether nonexistent headers
5254 # can be detected and how.
5255 cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261#include <ac_nonexistent.h>
5262_ACEOF
5263if { (ac_try="$ac_cpp conftest.$ac_ext"
5264case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267esac
5268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5281 fi
5282else
5283 ac_cpp_err=yes
5284fi
5285if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005286 # Broken: success on invalid input.
5287continue
5288else
5289 echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 # Passes both tests.
5293ac_preproc_ok=:
5294break
5295fi
5296
5297rm -f conftest.err conftest.$ac_ext
5298
5299done
5300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301rm -f conftest.err conftest.$ac_ext
5302if $ac_preproc_ok; then
5303 :
5304else
5305 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5306See \`config.log' for more details." >&5
5307echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5308See \`config.log' for more details." >&2;}
5309 { (exit 1); exit 1; }; }
5310fi
5311
5312ac_ext=c
5313ac_cpp='$CPP $CPPFLAGS'
5314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318ac_ext=c
5319ac_cpp='$CPP $CPPFLAGS'
5320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323if test -n "$ac_tool_prefix"; then
5324 for ac_prog in gcc
5325 do
5326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5330if test "${ac_cv_prog_CC+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 if test -n "$CC"; then
5334 ac_cv_prog_CC="$CC" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005342 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 +00005343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347done
5348done
5349IFS=$as_save_IFS
5350
5351fi
5352fi
5353CC=$ac_cv_prog_CC
5354if test -n "$CC"; then
5355 { echo "$as_me:$LINENO: result: $CC" >&5
5356echo "${ECHO_T}$CC" >&6; }
5357else
5358 { echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6; }
5360fi
5361
5362
5363 test -n "$CC" && break
5364 done
5365fi
5366if test -z "$CC"; then
5367 ac_ct_CC=$CC
5368 for ac_prog in gcc
5369do
5370 # Extract the first word of "$ac_prog", so it can be a program name with args.
5371set dummy $ac_prog; ac_word=$2
5372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377 if test -n "$ac_ct_CC"; then
5378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005386 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 +00005387 ac_cv_prog_ac_ct_CC="$ac_prog"
5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5390 fi
5391done
5392done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397ac_ct_CC=$ac_cv_prog_ac_ct_CC
5398if test -n "$ac_ct_CC"; then
5399 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5400echo "${ECHO_T}$ac_ct_CC" >&6; }
5401else
5402 { echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6; }
5404fi
5405
5406
5407 test -n "$ac_ct_CC" && break
5408done
5409
5410 if test "x$ac_ct_CC" = x; then
5411 CC=""
5412 else
5413 case $cross_compiling:$ac_tool_warned in
5414yes:)
5415{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5416whose name does not start with the host triplet. If you think this
5417configuration is useful to you, please write to autoconf@gnu.org." >&5
5418echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5419whose name does not start with the host triplet. If you think this
5420configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5421ac_tool_warned=yes ;;
5422esac
5423 CC=$ac_ct_CC
5424 fi
5425fi
5426
5427
5428test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5429See \`config.log' for more details." >&5
5430echo "$as_me: error: no acceptable C compiler found in \$PATH
5431See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5433
5434# Provide some information about the compiler.
5435echo "$as_me:$LINENO: checking for C compiler version" >&5
5436ac_compiler=`set X $ac_compile; echo $2`
5437{ (ac_try="$ac_compiler --version >&5"
5438case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_compiler --version >&5") 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447{ (ac_try="$ac_compiler -v >&5"
5448case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451esac
5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compiler -v >&5") 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }
5457{ (ac_try="$ac_compiler -V >&5"
5458case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461esac
5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compiler -V >&5") 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }
5467
5468{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5469echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5470if test "${ac_cv_c_compiler_gnu+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479
5480int
5481main ()
5482{
5483#ifndef __GNUC__
5484 choke me
5485#endif
5486
5487 ;
5488 return 0;
5489}
5490_ACEOF
5491rm -f conftest.$ac_objext
5492if { (ac_try="$ac_compile"
5493case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005504 (exit $ac_status); } &&
5505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005525 ac_compiler_gnu=yes
5526else
5527 echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530 ac_compiler_gnu=no
5531fi
5532
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534ac_cv_c_compiler_gnu=$ac_compiler_gnu
5535
5536fi
5537{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5538echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5539GCC=`test $ac_compiler_gnu = yes && echo yes`
5540ac_test_CFLAGS=${CFLAGS+set}
5541ac_save_CFLAGS=$CFLAGS
5542{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5543echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5544if test "${ac_cv_prog_cc_g+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 ac_save_c_werror_flag=$ac_c_werror_flag
5548 ac_c_werror_flag=yes
5549 ac_cv_prog_cc_g=no
5550 CFLAGS="-g"
5551 cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h. */
5557
5558int
5559main ()
5560{
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566rm -f conftest.$ac_objext
5567if { (ac_try="$ac_compile"
5568case "(($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_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5581 { (case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005600 ac_cv_prog_cc_g=yes
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 CFLAGS=""
5606 cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612
5613int
5614main ()
5615{
5616
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005655 :
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_c_werror_flag=$ac_save_c_werror_flag
5661 CFLAGS="-g"
5662 cat >conftest.$ac_ext <<_ACEOF
5663/* confdefs.h. */
5664_ACEOF
5665cat confdefs.h >>conftest.$ac_ext
5666cat >>conftest.$ac_ext <<_ACEOF
5667/* end confdefs.h. */
5668
5669int
5670main ()
5671{
5672
5673 ;
5674 return 0;
5675}
5676_ACEOF
5677rm -f conftest.$ac_objext
5678if { (ac_try="$ac_compile"
5679case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682esac
5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005690 (exit $ac_status); } &&
5691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005711 ac_cv_prog_cc_g=yes
5712else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716
5717fi
5718
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720fi
5721
5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723fi
5724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 ac_c_werror_flag=$ac_save_c_werror_flag
5727fi
5728{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5729echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5730if test "$ac_test_CFLAGS" = set; then
5731 CFLAGS=$ac_save_CFLAGS
5732elif test $ac_cv_prog_cc_g = yes; then
5733 if test "$GCC" = yes; then
5734 CFLAGS="-g -O2"
5735 else
5736 CFLAGS="-g"
5737 fi
5738else
5739 if test "$GCC" = yes; then
5740 CFLAGS="-O2"
5741 else
5742 CFLAGS=
5743 fi
5744fi
5745{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5746echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5747if test "${ac_cv_prog_cc_c89+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749else
5750 ac_cv_prog_cc_c89=no
5751ac_save_CC=$CC
5752cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758#include <stdarg.h>
5759#include <stdio.h>
5760#include <sys/types.h>
5761#include <sys/stat.h>
5762/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5763struct buf { int x; };
5764FILE * (*rcsopen) (struct buf *, struct stat *, int);
5765static char *e (p, i)
5766 char **p;
5767 int i;
5768{
5769 return p[i];
5770}
5771static char *f (char * (*g) (char **, int), char **p, ...)
5772{
5773 char *s;
5774 va_list v;
5775 va_start (v,p);
5776 s = g (p, va_arg (v,int));
5777 va_end (v);
5778 return s;
5779}
5780
5781/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5782 function prototypes and stuff, but not '\xHH' hex character constants.
5783 These don't provoke an error unfortunately, instead are silently treated
5784 as 'x'. The following induces an error, until -std is added to get
5785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5786 array size at least. It's necessary to write '\x00'==0 to get something
5787 that's true only with -std. */
5788int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5789
5790/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5791 inside strings and character constants. */
5792#define FOO(x) 'x'
5793int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5794
5795int test (int i, double x);
5796struct s1 {int (*f) (int a);};
5797struct s2 {int (*f) (double a);};
5798int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5799int argc;
5800char **argv;
5801int
5802main ()
5803{
5804return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5805 ;
5806 return 0;
5807}
5808_ACEOF
5809for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5811do
5812 CC="$ac_save_CC $ac_arg"
5813 rm -f conftest.$ac_objext
5814if { (ac_try="$ac_compile"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005847 ac_cv_prog_cc_c89=$ac_arg
5848else
5849 echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852
5853fi
5854
5855rm -f core conftest.err conftest.$ac_objext
5856 test "x$ac_cv_prog_cc_c89" != "xno" && break
5857done
5858rm -f conftest.$ac_ext
5859CC=$ac_save_CC
5860
5861fi
5862# AC_CACHE_VAL
5863case "x$ac_cv_prog_cc_c89" in
5864 x)
5865 { echo "$as_me:$LINENO: result: none needed" >&5
5866echo "${ECHO_T}none needed" >&6; } ;;
5867 xno)
5868 { echo "$as_me:$LINENO: result: unsupported" >&5
5869echo "${ECHO_T}unsupported" >&6; } ;;
5870 *)
5871 CC="$CC $ac_cv_prog_cc_c89"
5872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5873echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5874esac
5875
5876
5877ac_ext=c
5878ac_cpp='$CPP $CPPFLAGS'
5879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882
5883ac_ext=cpp
5884ac_cpp='$CXXCPP $CPPFLAGS'
5885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888if test -z "$CXX"; then
5889 if test -n "$CCC"; then
5890 CXX=$CCC
5891 else
5892 if test -n "$ac_tool_prefix"; then
5893 for ac_prog in g++
5894 do
5895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899if test "${ac_cv_prog_CXX+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 if test -n "$CXX"; then
5903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005911 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 +00005912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922CXX=$ac_cv_prog_CXX
5923if test -n "$CXX"; then
5924 { echo "$as_me:$LINENO: result: $CXX" >&5
5925echo "${ECHO_T}$CXX" >&6; }
5926else
5927 { echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6; }
5929fi
5930
5931
5932 test -n "$CXX" && break
5933 done
5934fi
5935if test -z "$CXX"; then
5936 ac_ct_CXX=$CXX
5937 for ac_prog in g++
5938do
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940set dummy $ac_prog; ac_word=$2
5941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946 if test -n "$ac_ct_CXX"; then
5947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005955 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 +00005956 ac_cv_prog_ac_ct_CXX="$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960done
5961done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5967if test -n "$ac_ct_CXX"; then
5968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5969echo "${ECHO_T}$ac_ct_CXX" >&6; }
5970else
5971 { echo "$as_me:$LINENO: result: no" >&5
5972echo "${ECHO_T}no" >&6; }
5973fi
5974
5975
5976 test -n "$ac_ct_CXX" && break
5977done
5978
5979 if test "x$ac_ct_CXX" = x; then
5980 CXX="g++"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983yes:)
5984{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985whose name does not start with the host triplet. If you think this
5986configuration is useful to you, please write to autoconf@gnu.org." >&5
5987echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988whose name does not start with the host triplet. If you think this
5989configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990ac_tool_warned=yes ;;
5991esac
5992 CXX=$ac_ct_CXX
5993 fi
5994fi
5995
5996 fi
5997fi
5998# Provide some information about the compiler.
5999echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6000ac_compiler=`set X $ac_compile; echo $2`
6001{ (ac_try="$ac_compiler --version >&5"
6002case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler --version >&5") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011{ (ac_try="$ac_compiler -v >&5"
6012case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compiler -v >&5") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }
6021{ (ac_try="$ac_compiler -V >&5"
6022case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025esac
6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compiler -V >&5") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6031
6032{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6033echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6034if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037 cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h. */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h. */
6043
6044int
6045main ()
6046{
6047#ifndef __GNUC__
6048 choke me
6049#endif
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (ac_try="$ac_compile"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_try") 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006089 ac_compiler_gnu=yes
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ac_compiler_gnu=no
6095fi
6096
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6099
6100fi
6101{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6102echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6103GXX=`test $ac_compiler_gnu = yes && echo yes`
6104ac_test_CXXFLAGS=${CXXFLAGS+set}
6105ac_save_CXXFLAGS=$CXXFLAGS
6106{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6108if test "${ac_cv_prog_cxx_g+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6112 ac_cxx_werror_flag=yes
6113 ac_cv_prog_cxx_g=no
6114 CXXFLAGS="-g"
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121
6122int
6123main ()
6124{
6125
6126 ;
6127 return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($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_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006164 ac_cv_prog_cxx_g=yes
6165else
6166 echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 CXXFLAGS=""
6170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176
6177int
6178main ()
6179{
6180
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext
6186if { (ac_try="$ac_compile"
6187case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200 { (case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203esac
6204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_try") 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006219 :
6220else
6221 echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6225 CXXFLAGS="-g"
6226 cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h. */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h. */
6232
6233int
6234main ()
6235{
6236
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext
6242if { (ac_try="$ac_compile"
6243case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006275 ac_cv_prog_cxx_g=yes
6276else
6277 echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280
6281fi
6282
6283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284fi
6285
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6291fi
6292{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6293echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6294if test "$ac_test_CXXFLAGS" = set; then
6295 CXXFLAGS=$ac_save_CXXFLAGS
6296elif test $ac_cv_prog_cxx_g = yes; then
6297 if test "$GXX" = yes; then
6298 CXXFLAGS="-g -O2"
6299 else
6300 CXXFLAGS="-g"
6301 fi
6302else
6303 if test "$GXX" = yes; then
6304 CXXFLAGS="-O2"
6305 else
6306 CXXFLAGS=
6307 fi
6308fi
6309ac_ext=c
6310ac_cpp='$CPP $CPPFLAGS'
6311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315{ echo "$as_me:$LINENO: checking " >&5
6316echo $ECHO_N "checking ... $ECHO_C" >&6; }
6317if test "${ac_cv_has_flex+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
6320 for ac_prog in flex lex
6321do
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323set dummy $ac_prog; ac_word=$2
6324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_LEX+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 if test -n "$LEX"; then
6330 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006338 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 +00006339 ac_cv_prog_LEX="$ac_prog"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349LEX=$ac_cv_prog_LEX
6350if test -n "$LEX"; then
6351 { echo "$as_me:$LINENO: result: $LEX" >&5
6352echo "${ECHO_T}$LEX" >&6; }
6353else
6354 { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
6356fi
6357
6358
6359 test -n "$LEX" && break
6360done
6361test -n "$LEX" || LEX=":"
6362
Tanya Lattnercf067672008-01-17 05:57:22 +00006363if test -z "$LEXLIB"
6364then
6365 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6366echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6367if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 ac_check_lib_save_LIBS=$LIBS
6371LIBS="-lfl $LIBS"
6372cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378
6379/* Override any GCC internal prototype to avoid an error.
6380 Use char because int might match the return type of a GCC
6381 builtin and then its argument prototype would still apply. */
6382#ifdef __cplusplus
6383extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006384#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006385char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006386int
Tanya Lattnercf067672008-01-17 05:57:22 +00006387main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006388{
Tanya Lattnercf067672008-01-17 05:57:22 +00006389return yywrap ();
6390 ;
6391 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006392}
Reid Spencera773bd52006-08-04 18:18:08 +00006393_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006394rm -f conftest.$ac_objext conftest$ac_exeext
6395if { (ac_try="$ac_link"
6396case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409 { (case "(($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 "$ac_try") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest$ac_exeext'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_lib_fl_yywrap=yes
6429else
6430 echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_cv_lib_fl_yywrap=no
6434fi
6435
6436rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438LIBS=$ac_check_lib_save_LIBS
6439fi
6440{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6441echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6442if test $ac_cv_lib_fl_yywrap = yes; then
6443 LEXLIB="-lfl"
6444else
6445 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6446echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6447if test "${ac_cv_lib_l_yywrap+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 ac_check_lib_save_LIBS=$LIBS
6451LIBS="-ll $LIBS"
6452cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h. */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h. */
6458
6459/* Override any GCC internal prototype to avoid an error.
6460 Use char because int might match the return type of a GCC
6461 builtin and then its argument prototype would still apply. */
6462#ifdef __cplusplus
6463extern "C"
6464#endif
6465char yywrap ();
6466int
6467main ()
6468{
6469return yywrap ();
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474rm -f conftest.$ac_objext conftest$ac_exeext
6475if { (ac_try="$ac_link"
6476case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479esac
6480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_link") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6492esac
6493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494 (eval "$ac_try") 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502esac
6503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_lib_l_yywrap=yes
6509else
6510 echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_cv_lib_l_yywrap=no
6514fi
6515
6516rm -f core conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6518LIBS=$ac_check_lib_save_LIBS
6519fi
6520{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6521echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6522if test $ac_cv_lib_l_yywrap = yes; then
6523 LEXLIB="-ll"
6524fi
6525
6526fi
6527
6528fi
6529
6530if test "x$LEX" != "x:"; then
6531 { echo "$as_me:$LINENO: checking lex output file root" >&5
6532echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6533if test "${ac_cv_prog_lex_root+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536 # The minimal lex program is just a single line: %%. But some broken lexes
6537# (Solaris, I think it was) want two %% lines, so accommodate them.
6538cat >conftest.l <<_ACEOF
6539%%
6540%%
6541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006542{ (ac_try="$LEX conftest.l"
6543case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546esac
6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$LEX conftest.l") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }
6552if test -f lex.yy.c; then
6553 ac_cv_prog_lex_root=lex.yy
6554elif test -f lexyy.c; then
6555 ac_cv_prog_lex_root=lexyy
6556else
6557 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6558echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6559 { (exit 1); exit 1; }; }
6560fi
6561fi
6562{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6563echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006564rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006565LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6566
Scott Michel96dcd2b2007-12-05 21:24:02 +00006567{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6568echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6569if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006573# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006574# not all implementations provide the %pointer and %array declarations.
6575ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006576echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006577ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006578LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006579cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006580`cat $LEX_OUTPUT_ROOT.c`
6581_ACEOF
6582rm -f conftest.$ac_objext conftest$ac_exeext
6583if { (ac_try="$ac_link"
6584case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587esac
6588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006589 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006590 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597 { (case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600esac
6601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_try") 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610esac
6611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_try") 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006616 ac_cv_prog_lex_yytext_pointer=yes
6617else
6618 echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621
6622fi
6623
Tanya Lattnercf067672008-01-17 05:57:22 +00006624rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006625 conftest$ac_exeext conftest.$ac_ext
6626LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006627rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006628
6629fi
6630{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6631echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6632if test $ac_cv_prog_lex_yytext_pointer = yes; then
6633
6634cat >>confdefs.h <<\_ACEOF
6635#define YYTEXT_POINTER 1
6636_ACEOF
6637
6638fi
6639
6640fi
6641
6642fi
6643{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6644echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6645if test "$LEX" != "flex"; then
6646 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6647echo "$as_me: error: flex not found but required" >&2;}
6648 { (exit 1); exit 1; }; }
6649else
6650 FLEX=flex
6651
6652fi
6653
6654{ echo "$as_me:$LINENO: checking " >&5
6655echo $ECHO_N "checking ... $ECHO_C" >&6; }
6656if test "${llvm_cv_has_bison+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659 for ac_prog in 'bison -y' byacc
6660do
6661 # Extract the first word of "$ac_prog", so it can be a program name with args.
6662set dummy $ac_prog; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_prog_YACC+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 if test -n "$YACC"; then
6669 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006678 ac_cv_prog_YACC="$ac_prog"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682done
6683done
6684IFS=$as_save_IFS
6685
6686fi
6687fi
6688YACC=$ac_cv_prog_YACC
6689if test -n "$YACC"; then
6690 { echo "$as_me:$LINENO: result: $YACC" >&5
6691echo "${ECHO_T}$YACC" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
6695fi
6696
6697
6698 test -n "$YACC" && break
6699done
6700test -n "$YACC" || YACC="yacc"
6701
6702fi
6703{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6704echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6705if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006706
6707 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6708echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006709else
6710 BISON=bison
6711
6712fi
6713
6714{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6715echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6716if test "${lt_cv_path_NM+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 if test -n "$NM"; then
6720 # Let the user override the test.
6721 lt_cv_path_NM="$NM"
6722else
6723 lt_nm_to_check="${ac_tool_prefix}nm"
6724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6725 lt_nm_to_check="$lt_nm_to_check nm"
6726 fi
6727 for lt_tmp_nm in $lt_nm_to_check; do
6728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6730 IFS="$lt_save_ifs"
6731 test -z "$ac_dir" && ac_dir=.
6732 tmp_nm="$ac_dir/$lt_tmp_nm"
6733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6734 # Check to see if the nm accepts a BSD-compat flag.
6735 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6736 # nm: unknown option "B" ignored
6737 # Tru64's nm complains that /dev/null is an invalid object file
6738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6739 */dev/null* | *'Invalid file or object type'*)
6740 lt_cv_path_NM="$tmp_nm -B"
6741 break
6742 ;;
6743 *)
6744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6745 */dev/null*)
6746 lt_cv_path_NM="$tmp_nm -p"
6747 break
6748 ;;
6749 *)
6750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6751 continue # so that we can try to find one that supports BSD flags
6752 ;;
6753 esac
6754 ;;
6755 esac
6756 fi
6757 done
6758 IFS="$lt_save_ifs"
6759 done
6760 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6761fi
6762fi
6763{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6764echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6765NM="$lt_cv_path_NM"
6766
6767
6768
6769{ echo "$as_me:$LINENO: checking for GNU make" >&5
6770echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6771if test "${llvm_cv_gnu_make_command+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 llvm_cv_gnu_make_command=''
6775 for a in "$MAKE" make gmake gnumake ; do
6776 if test -z "$a" ; then continue ; fi ;
6777 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6778 then
6779 llvm_cv_gnu_make_command=$a ;
6780 break;
6781 fi
6782 done
6783fi
6784{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6785echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6786 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6787 ifGNUmake='' ;
6788 else
6789 ifGNUmake='#' ;
6790 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6791echo "${ECHO_T}\"Not found\"" >&6; };
6792 fi
6793
6794
6795{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6796echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6797LN_S=$as_ln_s
6798if test "$LN_S" = "ln -s"; then
6799 { echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6; }
6801else
6802 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6803echo "${ECHO_T}no, using $LN_S" >&6; }
6804fi
6805
6806# Extract the first word of "cmp", so it can be a program name with args.
6807set dummy cmp; ac_word=$2
6808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_CMP+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 case $CMP in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006824 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 +00006825 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829done
6830done
6831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6834 ;;
6835esac
6836fi
6837CMP=$ac_cv_path_CMP
6838if test -n "$CMP"; then
6839 { echo "$as_me:$LINENO: result: $CMP" >&5
6840echo "${ECHO_T}$CMP" >&6; }
6841else
6842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
6844fi
6845
6846
6847# Extract the first word of "cp", so it can be a program name with args.
6848set dummy cp; ac_word=$2
6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_CP+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 case $CP in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006865 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 +00006866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6875 ;;
6876esac
6877fi
6878CP=$ac_cv_path_CP
6879if test -n "$CP"; then
6880 { echo "$as_me:$LINENO: result: $CP" >&5
6881echo "${ECHO_T}$CP" >&6; }
6882else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888# Extract the first word of "date", so it can be a program name with args.
6889set dummy date; ac_word=$2
6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_DATE+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 case $DATE in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006906 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 +00006907 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912done
6913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6916 ;;
6917esac
6918fi
6919DATE=$ac_cv_path_DATE
6920if test -n "$DATE"; then
6921 { echo "$as_me:$LINENO: result: $DATE" >&5
6922echo "${ECHO_T}$DATE" >&6; }
6923else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
6926fi
6927
6928
6929# Extract the first word of "find", so it can be a program name with args.
6930set dummy find; ac_word=$2
6931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_FIND+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936 case $FIND in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006947 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 +00006948 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953done
6954IFS=$as_save_IFS
6955
6956 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6957 ;;
6958esac
6959fi
6960FIND=$ac_cv_path_FIND
6961if test -n "$FIND"; then
6962 { echo "$as_me:$LINENO: result: $FIND" >&5
6963echo "${ECHO_T}$FIND" >&6; }
6964else
6965 { echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6; }
6967fi
6968
6969
6970# Extract the first word of "grep", so it can be a program name with args.
6971set dummy grep; ac_word=$2
6972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_GREP+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977 case $GREP in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006988 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 +00006989 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994done
6995IFS=$as_save_IFS
6996
6997 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6998 ;;
6999esac
7000fi
7001GREP=$ac_cv_path_GREP
7002if test -n "$GREP"; then
7003 { echo "$as_me:$LINENO: result: $GREP" >&5
7004echo "${ECHO_T}$GREP" >&6; }
7005else
7006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
7008fi
7009
7010
7011# Extract the first word of "mkdir", so it can be a program name with args.
7012set dummy mkdir; ac_word=$2
7013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015if test "${ac_cv_path_MKDIR+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 case $MKDIR in
7019 [\\/]* | ?:[\\/]*)
7020 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7021 ;;
7022 *)
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007029 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 +00007030 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036IFS=$as_save_IFS
7037
7038 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7039 ;;
7040esac
7041fi
7042MKDIR=$ac_cv_path_MKDIR
7043if test -n "$MKDIR"; then
7044 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7045echo "${ECHO_T}$MKDIR" >&6; }
7046else
7047 { echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6; }
7049fi
7050
7051
7052# Extract the first word of "mv", so it can be a program name with args.
7053set dummy mv; ac_word=$2
7054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056if test "${ac_cv_path_MV+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 case $MV in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007070 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 +00007071 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076done
7077IFS=$as_save_IFS
7078
7079 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7080 ;;
7081esac
7082fi
7083MV=$ac_cv_path_MV
7084if test -n "$MV"; then
7085 { echo "$as_me:$LINENO: result: $MV" >&5
7086echo "${ECHO_T}$MV" >&6; }
7087else
7088 { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
7090fi
7091
7092
7093if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098if test "${ac_cv_prog_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007110 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 +00007111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115done
7116done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121RANLIB=$ac_cv_prog_RANLIB
7122if test -n "$RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124echo "${ECHO_T}$RANLIB" >&6; }
7125else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
7128fi
7129
7130
7131fi
7132if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135set dummy ranlib; ac_word=$2
7136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007150 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 +00007151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155done
7156done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162if test -n "$ac_ct_RANLIB"; then
7163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170 if test "x$ac_ct_RANLIB" = x; then
7171 RANLIB=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176whose name does not start with the host triplet. If you think this
7177configuration is useful to you, please write to autoconf@gnu.org." >&5
7178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179whose name does not start with the host triplet. If you think this
7180configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181ac_tool_warned=yes ;;
7182esac
7183 RANLIB=$ac_ct_RANLIB
7184 fi
7185else
7186 RANLIB="$ac_cv_prog_RANLIB"
7187fi
7188
7189# Extract the first word of "rm", so it can be a program name with args.
7190set dummy rm; ac_word=$2
7191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_path_RM+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 case $RM in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7199 ;;
7200 *)
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007207 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 +00007208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7217 ;;
7218esac
7219fi
7220RM=$ac_cv_path_RM
7221if test -n "$RM"; then
7222 { echo "$as_me:$LINENO: result: $RM" >&5
7223echo "${ECHO_T}$RM" >&6; }
7224else
7225 { echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6; }
7227fi
7228
7229
7230# Extract the first word of "sed", so it can be a program name with args.
7231set dummy sed; ac_word=$2
7232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234if test "${ac_cv_path_SED+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237 case $SED in
7238 [\\/]* | ?:[\\/]*)
7239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7240 ;;
7241 *)
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007248 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 +00007249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253done
7254done
7255IFS=$as_save_IFS
7256
7257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7258 ;;
7259esac
7260fi
7261SED=$ac_cv_path_SED
7262if test -n "$SED"; then
7263 { echo "$as_me:$LINENO: result: $SED" >&5
7264echo "${ECHO_T}$SED" >&6; }
7265else
7266 { echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6; }
7268fi
7269
7270
7271# Extract the first word of "tar", so it can be a program name with args.
7272set dummy tar; ac_word=$2
7273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275if test "${ac_cv_path_TAR+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278 case $TAR in
7279 [\\/]* | ?:[\\/]*)
7280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7281 ;;
7282 *)
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007289 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 +00007290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294done
7295done
7296IFS=$as_save_IFS
7297
7298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7299 ;;
7300esac
7301fi
7302TAR=$ac_cv_path_TAR
7303if test -n "$TAR"; then
7304 { echo "$as_me:$LINENO: result: $TAR" >&5
7305echo "${ECHO_T}$TAR" >&6; }
7306else
7307 { echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6; }
7309fi
7310
7311
7312# Extract the first word of "pwd", so it can be a program name with args.
7313set dummy pwd; ac_word=$2
7314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316if test "${ac_cv_path_BINPWD+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 case $BINPWD in
7320 [\\/]* | ?:[\\/]*)
7321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007330 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 +00007331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335done
7336done
7337IFS=$as_save_IFS
7338
7339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7340 ;;
7341esac
7342fi
7343BINPWD=$ac_cv_path_BINPWD
7344if test -n "$BINPWD"; then
7345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7346echo "${ECHO_T}$BINPWD" >&6; }
7347else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
7350fi
7351
7352
7353
7354# Extract the first word of "Graphviz", so it can be a program name with args.
7355set dummy Graphviz; ac_word=$2
7356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361 case $GRAPHVIZ in
7362 [\\/]* | ?:[\\/]*)
7363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7364 ;;
7365 *)
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007372 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 +00007373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377done
7378done
7379IFS=$as_save_IFS
7380
7381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7382 ;;
7383esac
7384fi
7385GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7386if test -n "$GRAPHVIZ"; then
7387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7388echo "${ECHO_T}$GRAPHVIZ" >&6; }
7389else
7390 { echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6; }
7392fi
7393
7394
7395if test "$GRAPHVIZ" != "echo Graphviz" ; then
7396
7397cat >>confdefs.h <<\_ACEOF
7398#define HAVE_GRAPHVIZ 1
7399_ACEOF
7400
Jeff Cohen28783c32007-01-12 18:22:38 +00007401 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7403 fi
7404
7405cat >>confdefs.h <<_ACEOF
7406#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7407_ACEOF
7408
7409fi
7410# Extract the first word of "dot", so it can be a program name with args.
7411set dummy dot; ac_word=$2
7412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_path_DOT+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417 case $DOT in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007428 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 +00007429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433done
7434done
7435IFS=$as_save_IFS
7436
7437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7438 ;;
7439esac
7440fi
7441DOT=$ac_cv_path_DOT
7442if test -n "$DOT"; then
7443 { echo "$as_me:$LINENO: result: $DOT" >&5
7444echo "${ECHO_T}$DOT" >&6; }
7445else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
7448fi
7449
7450
7451if test "$DOT" != "echo dot" ; then
7452
7453cat >>confdefs.h <<\_ACEOF
7454#define HAVE_DOT 1
7455_ACEOF
7456
Jeff Cohen28783c32007-01-12 18:22:38 +00007457 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459 fi
7460
7461cat >>confdefs.h <<_ACEOF
7462#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7463_ACEOF
7464
7465fi
7466for ac_prog in gv gsview32
7467do
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469set dummy $ac_prog; ac_word=$2
7470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472if test "${ac_cv_path_GV+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 case $GV in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7478 ;;
7479 *)
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007486 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 +00007487 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493IFS=$as_save_IFS
7494
7495 ;;
7496esac
7497fi
7498GV=$ac_cv_path_GV
7499if test -n "$GV"; then
7500 { echo "$as_me:$LINENO: result: $GV" >&5
7501echo "${ECHO_T}$GV" >&6; }
7502else
7503 { echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6; }
7505fi
7506
7507
7508 test -n "$GV" && break
7509done
7510test -n "$GV" || GV="echo gv"
7511
7512if test "$GV" != "echo gv" ; then
7513
7514cat >>confdefs.h <<\_ACEOF
7515#define HAVE_GV 1
7516_ACEOF
7517
Jeff Cohen28783c32007-01-12 18:22:38 +00007518 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007519 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7520 fi
7521
7522cat >>confdefs.h <<_ACEOF
7523#define LLVM_PATH_GV "$GV${EXEEXT}"
7524_ACEOF
7525
7526fi
7527# Extract the first word of "dotty", so it can be a program name with args.
7528set dummy dotty; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_DOTTY+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 case $DOTTY in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007545 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 +00007546 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551done
7552IFS=$as_save_IFS
7553
7554 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7555 ;;
7556esac
7557fi
7558DOTTY=$ac_cv_path_DOTTY
7559if test -n "$DOTTY"; then
7560 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7561echo "${ECHO_T}$DOTTY" >&6; }
7562else
7563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
7565fi
7566
7567
7568if test "$DOTTY" != "echo dotty" ; then
7569
7570cat >>confdefs.h <<\_ACEOF
7571#define HAVE_DOTTY 1
7572_ACEOF
7573
Jeff Cohen28783c32007-01-12 18:22:38 +00007574 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007575 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576 fi
7577
7578cat >>confdefs.h <<_ACEOF
7579#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7580_ACEOF
7581
7582fi
7583
7584
7585# Extract the first word of "perl", so it can be a program name with args.
7586set dummy perl; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_PERL+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 case $PERL in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007603 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 +00007604 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7613 ;;
7614esac
7615fi
7616PERL=$ac_cv_path_PERL
7617if test -n "$PERL"; then
7618 { echo "$as_me:$LINENO: result: $PERL" >&5
7619echo "${ECHO_T}$PERL" >&6; }
7620else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625
7626if test "$PERL" != "none"; then
7627 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7628echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7629 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7630 { echo "$as_me:$LINENO: result: yes" >&5
7631echo "${ECHO_T}yes" >&6; }
7632 else
7633 PERL=none
7634 { echo "$as_me:$LINENO: result: not found" >&5
7635echo "${ECHO_T}not found" >&6; }
7636 fi
7637fi
7638
7639
7640if test x"$PERL" = xnone; then
7641 HAVE_PERL=0
7642
Reid Spencer59807fa2007-05-17 18:11:03 +00007643 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7644echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7645 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007646else
7647 HAVE_PERL=1
7648
7649fi
7650
7651# Find a good install program. We prefer a C program (faster),
7652# so one script is as good as another. But avoid the broken or
7653# incompatible versions:
7654# SysV /etc/install, /usr/sbin/install
7655# SunOS /usr/etc/install
7656# IRIX /sbin/install
7657# AIX /bin/install
7658# AmigaOS /C/install, which installs bootblocks on floppy discs
7659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662# OS/2's system install, which has a completely different semantic
7663# ./install, which can be erroneously created by make from ./install.sh.
7664{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7666if test -z "$INSTALL"; then
7667if test "${ac_cv_path_install+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 # Account for people who put trailing slashes in PATH elements.
7676case $as_dir/ in
7677 ./ | .// | /cC/* | \
7678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7680 /usr/ucb/* ) ;;
7681 *)
7682 # OSF1 and SCO ODT 3.0 have their own names for install.
7683 # Don't use installbsd from OSF since it installs stuff as root
7684 # by default.
7685 for ac_prog in ginstall scoinst install; do
7686 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007687 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 +00007688 if test $ac_prog = install &&
7689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7690 # AIX install. It has an incompatible calling convention.
7691 :
7692 elif test $ac_prog = install &&
7693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7694 # program-specific install script used by HP pwplus--don't use.
7695 :
7696 else
7697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7698 break 3
7699 fi
7700 fi
7701 done
7702 done
7703 ;;
7704esac
7705done
7706IFS=$as_save_IFS
7707
7708
7709fi
7710 if test "${ac_cv_path_install+set}" = set; then
7711 INSTALL=$ac_cv_path_install
7712 else
7713 # As a last resort, use the slow shell script. Don't cache a
7714 # value for INSTALL within a source directory, because that will
7715 # break other packages using the cache if that directory is
7716 # removed, or if the value is a relative name.
7717 INSTALL=$ac_install_sh
7718 fi
7719fi
7720{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7721echo "${ECHO_T}$INSTALL" >&6; }
7722
7723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7724# It thinks the first close brace ends the variable substitution.
7725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7726
7727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7728
7729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7730
7731
7732# Extract the first word of "bzip2", so it can be a program name with args.
7733set dummy bzip2; ac_word=$2
7734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736if test "${ac_cv_path_BZIP2+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739 case $BZIP2 in
7740 [\\/]* | ?:[\\/]*)
7741 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007750 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 +00007751 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757IFS=$as_save_IFS
7758
Reid Spencera773bd52006-08-04 18:18:08 +00007759 ;;
7760esac
7761fi
7762BZIP2=$ac_cv_path_BZIP2
7763if test -n "$BZIP2"; then
7764 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7765echo "${ECHO_T}$BZIP2" >&6; }
7766else
7767 { echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6; }
7769fi
7770
7771
7772# Extract the first word of "doxygen", so it can be a program name with args.
7773set dummy doxygen; ac_word=$2
7774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_DOXYGEN+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779 case $DOXYGEN in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007790 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 +00007791 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796done
7797IFS=$as_save_IFS
7798
Reid Spencera773bd52006-08-04 18:18:08 +00007799 ;;
7800esac
7801fi
7802DOXYGEN=$ac_cv_path_DOXYGEN
7803if test -n "$DOXYGEN"; then
7804 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7805echo "${ECHO_T}$DOXYGEN" >&6; }
7806else
7807 { echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6; }
7809fi
7810
7811
Reid Spencera773bd52006-08-04 18:18:08 +00007812# Extract the first word of "groff", so it can be a program name with args.
7813set dummy groff; ac_word=$2
7814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816if test "${ac_cv_path_GROFF+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 case $GROFF in
7820 [\\/]* | ?:[\\/]*)
7821 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7822 ;;
7823 *)
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007830 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 +00007831 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836done
7837IFS=$as_save_IFS
7838
Reid Spencera773bd52006-08-04 18:18:08 +00007839 ;;
7840esac
7841fi
7842GROFF=$ac_cv_path_GROFF
7843if test -n "$GROFF"; then
7844 { echo "$as_me:$LINENO: result: $GROFF" >&5
7845echo "${ECHO_T}$GROFF" >&6; }
7846else
7847 { echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6; }
7849fi
7850
7851
7852# Extract the first word of "gzip", so it can be a program name with args.
7853set dummy gzip; ac_word=$2
7854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7856if test "${ac_cv_path_GZIP+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 case $GZIP in
7860 [\\/]* | ?:[\\/]*)
7861 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7862 ;;
7863 *)
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007870 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 +00007871 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7874 fi
7875done
7876done
7877IFS=$as_save_IFS
7878
Reid Spencera773bd52006-08-04 18:18:08 +00007879 ;;
7880esac
7881fi
7882GZIP=$ac_cv_path_GZIP
7883if test -n "$GZIP"; then
7884 { echo "$as_me:$LINENO: result: $GZIP" >&5
7885echo "${ECHO_T}$GZIP" >&6; }
7886else
7887 { echo "$as_me:$LINENO: result: no" >&5
7888echo "${ECHO_T}no" >&6; }
7889fi
7890
7891
7892# Extract the first word of "pod2html", so it can be a program name with args.
7893set dummy pod2html; ac_word=$2
7894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896if test "${ac_cv_path_POD2HTML+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898else
7899 case $POD2HTML in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7902 ;;
7903 *)
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007910 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 +00007911 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7914 fi
7915done
7916done
7917IFS=$as_save_IFS
7918
Reid Spencera773bd52006-08-04 18:18:08 +00007919 ;;
7920esac
7921fi
7922POD2HTML=$ac_cv_path_POD2HTML
7923if test -n "$POD2HTML"; then
7924 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7925echo "${ECHO_T}$POD2HTML" >&6; }
7926else
7927 { echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6; }
7929fi
7930
7931
7932# Extract the first word of "pod2man", so it can be a program name with args.
7933set dummy pod2man; ac_word=$2
7934{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936if test "${ac_cv_path_POD2MAN+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939 case $POD2MAN in
7940 [\\/]* | ?:[\\/]*)
7941 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7942 ;;
7943 *)
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in $PATH
7946do
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007950 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 +00007951 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7954 fi
7955done
7956done
7957IFS=$as_save_IFS
7958
Reid Spencera773bd52006-08-04 18:18:08 +00007959 ;;
7960esac
7961fi
7962POD2MAN=$ac_cv_path_POD2MAN
7963if test -n "$POD2MAN"; then
7964 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7965echo "${ECHO_T}$POD2MAN" >&6; }
7966else
7967 { echo "$as_me:$LINENO: result: no" >&5
7968echo "${ECHO_T}no" >&6; }
7969fi
7970
7971
7972# Extract the first word of "runtest", so it can be a program name with args.
7973set dummy runtest; ac_word=$2
7974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7976if test "${ac_cv_path_RUNTEST+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979 case $RUNTEST in
7980 [\\/]* | ?:[\\/]*)
7981 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7982 ;;
7983 *)
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007990 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 +00007991 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995done
7996done
7997IFS=$as_save_IFS
7998
Reid Spencera773bd52006-08-04 18:18:08 +00007999 ;;
8000esac
8001fi
8002RUNTEST=$ac_cv_path_RUNTEST
8003if test -n "$RUNTEST"; then
8004 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8005echo "${ECHO_T}$RUNTEST" >&6; }
8006else
8007 { echo "$as_me:$LINENO: result: no" >&5
8008echo "${ECHO_T}no" >&6; }
8009fi
8010
8011
8012
8013no_itcl=true
8014{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8015echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8016
8017# Check whether --with-tclinclude was given.
8018if test "${with_tclinclude+set}" = set; then
8019 withval=$with_tclinclude; with_tclinclude=${withval}
8020else
8021 with_tclinclude=''
8022fi
8023
8024if test "${ac_cv_path_tclsh+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027
8028if test x"${with_tclinclude}" != x ; then
8029 if test -f ${with_tclinclude}/tclsh ; then
8030 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8031 elif test -f ${with_tclinclude}/src/tclsh ; then
8032 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8033 else
8034 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8035echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8036 { (exit 1); exit 1; }; }
8037 fi
8038fi
8039
8040if test x"${ac_cv_path_tclsh}" = x ; then
8041 { echo "$as_me:$LINENO: result: none" >&5
8042echo "${ECHO_T}none" >&6; }
8043 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
8044do
8045 # Extract the first word of "$ac_prog", so it can be a program name with args.
8046set dummy $ac_prog; ac_word=$2
8047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049if test "${ac_cv_path_TCLSH+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 case $TCLSH in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8055 ;;
8056 *)
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008063 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 +00008064 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070IFS=$as_save_IFS
8071
8072 ;;
8073esac
8074fi
8075TCLSH=$ac_cv_path_TCLSH
8076if test -n "$TCLSH"; then
8077 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8078echo "${ECHO_T}$TCLSH" >&6; }
8079else
8080 { echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6; }
8082fi
8083
8084
8085 test -n "$TCLSH" && break
8086done
8087
8088 if test x"${TCLSH}" = x ; then
8089 ac_cv_path_tclsh='';
8090 else
8091 ac_cv_path_tclsh="${TCLSH}";
8092 fi
8093else
8094 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8095echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8096 TCLSH="${ac_cv_path_tclsh}"
8097
8098fi
8099
8100fi
8101
8102# Extract the first word of "zip", so it can be a program name with args.
8103set dummy zip; ac_word=$2
8104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106if test "${ac_cv_path_ZIP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 case $ZIP in
8110 [\\/]* | ?:[\\/]*)
8111 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8112 ;;
8113 *)
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008120 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 +00008121 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125done
8126done
8127IFS=$as_save_IFS
8128
Reid Spencera773bd52006-08-04 18:18:08 +00008129 ;;
8130esac
8131fi
8132ZIP=$ac_cv_path_ZIP
8133if test -n "$ZIP"; then
8134 { echo "$as_me:$LINENO: result: $ZIP" >&5
8135echo "${ECHO_T}$ZIP" >&6; }
8136else
8137 { echo "$as_me:$LINENO: result: no" >&5
8138echo "${ECHO_T}no" >&6; }
8139fi
8140
8141
Gordon Henriksene7072162008-03-07 18:20:01 +00008142for ac_prog in ocamlc.opt ocamlc
8143do
8144 # Extract the first word of "$ac_prog", so it can be a program name with args.
8145set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148if test "${ac_cv_path_OCAMLC+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 case $OCAMLC in
8152 [\\/]* | ?:[\\/]*)
8153 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8154 ;;
8155 *)
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157for as_dir in $PATH
8158do
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008162 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 +00008163 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167done
8168done
8169IFS=$as_save_IFS
8170
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008171 ;;
8172esac
8173fi
8174OCAMLC=$ac_cv_path_OCAMLC
8175if test -n "$OCAMLC"; then
8176 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8177echo "${ECHO_T}$OCAMLC" >&6; }
8178else
8179 { echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6; }
8181fi
8182
8183
Gordon Henriksene7072162008-03-07 18:20:01 +00008184 test -n "$OCAMLC" && break
8185done
8186
8187for ac_prog in ocamlopt.opt ocamlopt
8188do
8189 # Extract the first word of "$ac_prog", so it can be a program name with args.
8190set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 case $OCAMLOPT in
8197 [\\/]* | ?:[\\/]*)
8198 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8199 ;;
8200 *)
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008207 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 +00008208 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212done
8213done
8214IFS=$as_save_IFS
8215
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008216 ;;
8217esac
8218fi
8219OCAMLOPT=$ac_cv_path_OCAMLOPT
8220if test -n "$OCAMLOPT"; then
8221 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8222echo "${ECHO_T}$OCAMLOPT" >&6; }
8223else
8224 { echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6; }
8226fi
8227
8228
Gordon Henriksene7072162008-03-07 18:20:01 +00008229 test -n "$OCAMLOPT" && break
8230done
8231
8232for ac_prog in ocamldep.opt ocamldep
8233do
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241 case $OCAMLDEP in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008252 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 +00008253 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257done
8258done
8259IFS=$as_save_IFS
8260
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008261 ;;
8262esac
8263fi
8264OCAMLDEP=$ac_cv_path_OCAMLDEP
8265if test -n "$OCAMLDEP"; then
8266 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8267echo "${ECHO_T}$OCAMLDEP" >&6; }
8268else
8269 { echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6; }
8271fi
8272
8273
Gordon Henriksene7072162008-03-07 18:20:01 +00008274 test -n "$OCAMLDEP" && break
8275done
8276
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008277for ac_prog in ocamldoc.opt ocamldoc
8278do
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280set dummy $ac_prog; ac_word=$2
8281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 case $OCAMLDOC in
8287 [\\/]* | ?:[\\/]*)
8288 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8289 ;;
8290 *)
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302done
8303done
8304IFS=$as_save_IFS
8305
8306 ;;
8307esac
8308fi
8309OCAMLDOC=$ac_cv_path_OCAMLDOC
8310if test -n "$OCAMLDOC"; then
8311 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8312echo "${ECHO_T}$OCAMLDOC" >&6; }
8313else
8314 { echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6; }
8316fi
8317
8318
8319 test -n "$OCAMLDOC" && break
8320done
8321
Reid Spencera773bd52006-08-04 18:18:08 +00008322
8323{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8324echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8325if test "${llvm_cv_link_use_r+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328 ac_ext=c
8329ac_cpp='$CPP $CPPFLAGS'
8330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332ac_compiler_gnu=$ac_cv_c_compiler_gnu
8333
8334 oldcflags="$CFLAGS"
8335 CFLAGS="$CFLAGS -Wl,-R."
8336 cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h. */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h. */
8342
8343int
8344main ()
8345{
8346int main() { return 0; }
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext conftest$ac_exeext
8352if { (ac_try="$ac_link"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_link") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest$ac_exeext'
8376 { (case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_try") 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008385 llvm_cv_link_use_r=yes
8386else
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 llvm_cv_link_use_r=no
8391fi
8392
Tanya Lattnercf067672008-01-17 05:57:22 +00008393rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008394 conftest$ac_exeext conftest.$ac_ext
8395 CFLAGS="$oldcflags"
8396 ac_ext=c
8397ac_cpp='$CPP $CPPFLAGS'
8398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402
8403fi
8404{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8405echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8406if test "$llvm_cv_link_use_r" = yes ; then
8407
8408cat >>confdefs.h <<\_ACEOF
8409#define HAVE_LINK_R 1
8410_ACEOF
8411
8412 fi
8413
8414
8415
8416
8417{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8418echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8419if test "${ac_cv_c_const+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
8428
8429int
8430main ()
8431{
8432/* FIXME: Include the comments suggested by Paul. */
8433#ifndef __cplusplus
8434 /* Ultrix mips cc rejects this. */
8435 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008436 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008437 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008438 char const *const *ccp;
8439 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008440 /* NEC SVR4.0.2 mips cc rejects this. */
8441 struct point {int x, y;};
8442 static struct point const zero = {0,0};
8443 /* AIX XL C 1.02.0.0 rejects this.
8444 It does not let you subtract one const X* pointer from another in
8445 an arm of an if-expression whose if-part is not a constant
8446 expression */
8447 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008448 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008449 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008450 ++ccp;
8451 p = (char**) ccp;
8452 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008453 { /* SCO 3.2v4 cc rejects this. */
8454 char *t;
8455 char const *s = 0 ? (char *) 0 : (char const *) 0;
8456
8457 *t++ = 0;
8458 if (s) return 0;
8459 }
8460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8461 int x[] = {25, 17};
8462 const int *foo = &x[0];
8463 ++foo;
8464 }
8465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8466 typedef const int *iptr;
8467 iptr p = 0;
8468 ++p;
8469 }
8470 { /* AIX XL C 1.02.0.0 rejects this saying
8471 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8472 struct s { int j; const int *ap[3]; };
8473 struct s *b; b->j = 5;
8474 }
8475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8476 const int foo = 10;
8477 if (!foo) return 0;
8478 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008479 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008480#endif
8481
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (ac_try="$ac_compile"
8488case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008520 ac_cv_c_const=yes
8521else
8522 echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 ac_cv_c_const=no
8526fi
8527
8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529fi
8530{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8531echo "${ECHO_T}$ac_cv_c_const" >&6; }
8532if test $ac_cv_c_const = no; then
8533
8534cat >>confdefs.h <<\_ACEOF
8535#define const
8536_ACEOF
8537
8538fi
8539
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008540
8541
8542
8543
8544
8545ac_header_dirent=no
8546for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8547 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008548{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8549echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553 cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
8559#include <sys/types.h>
8560#include <$ac_hdr>
8561
8562int
8563main ()
8564{
8565if ((DIR *) 0)
8566return 0;
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008572if { (ac_try="$ac_compile"
8573case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599esac
8600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008605 eval "$as_ac_Header=yes"
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
Reid Spencera773bd52006-08-04 18:18:08 +00008610 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008611fi
Reid Spencera773bd52006-08-04 18:18:08 +00008612
8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008614fi
Reid Spencera773bd52006-08-04 18:18:08 +00008615ac_res=`eval echo '${'$as_ac_Header'}'`
8616 { echo "$as_me:$LINENO: result: $ac_res" >&5
8617echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008618if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8621_ACEOF
8622
8623ac_header_dirent=$ac_hdr; break
8624fi
8625
8626done
8627# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008629 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8630echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008631if test "${ac_cv_search_opendir+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008635cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641
Reid Spencera773bd52006-08-04 18:18:08 +00008642/* Override any GCC internal prototype to avoid an error.
8643 Use char because int might match the return type of a GCC
8644 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008645#ifdef __cplusplus
8646extern "C"
8647#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008648char opendir ();
8649int
8650main ()
8651{
Reid Spencera773bd52006-08-04 18:18:08 +00008652return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008653 ;
8654 return 0;
8655}
8656_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008657for ac_lib in '' dir; do
8658 if test -z "$ac_lib"; then
8659 ac_res="none required"
8660 else
8661 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008663 fi
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665if { (ac_try="$ac_link"
8666case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682esac
8683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_try") 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692esac
8693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_try") 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008698 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699else
8700 echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703
8704fi
8705
Tanya Lattnercf067672008-01-17 05:57:22 +00008706rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008707 conftest$ac_exeext
8708 if test "${ac_cv_search_opendir+set}" = set; then
8709 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008710fi
John Criswell7a73b802003-06-30 21:59:07 +00008711done
Reid Spencera773bd52006-08-04 18:18:08 +00008712if test "${ac_cv_search_opendir+set}" = set; then
8713 :
8714else
8715 ac_cv_search_opendir=no
8716fi
8717rm conftest.$ac_ext
8718LIBS=$ac_func_search_save_LIBS
8719fi
8720{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8721echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8722ac_res=$ac_cv_search_opendir
8723if test "$ac_res" != no; then
8724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008725
Reid Spencera773bd52006-08-04 18:18:08 +00008726fi
8727
8728else
8729 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8730echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8731if test "${ac_cv_search_opendir+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734 ac_func_search_save_LIBS=$LIBS
8735cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h. */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h. */
8741
8742/* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8745#ifdef __cplusplus
8746extern "C"
8747#endif
8748char opendir ();
8749int
8750main ()
8751{
8752return opendir ();
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757for ac_lib in '' x; do
8758 if test -z "$ac_lib"; then
8759 ac_res="none required"
8760 else
8761 ac_res=-l$ac_lib
8762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765if { (ac_try="$ac_link"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_link") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779 { (case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792esac
8793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_try") 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008798 ac_cv_search_opendir=$ac_res
8799else
8800 echo "$as_me: failed program was:" >&5
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
8803
8804fi
8805
Tanya Lattnercf067672008-01-17 05:57:22 +00008806rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008807 conftest$ac_exeext
8808 if test "${ac_cv_search_opendir+set}" = set; then
8809 break
8810fi
8811done
8812if test "${ac_cv_search_opendir+set}" = set; then
8813 :
8814else
8815 ac_cv_search_opendir=no
8816fi
8817rm conftest.$ac_ext
8818LIBS=$ac_func_search_save_LIBS
8819fi
8820{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8821echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8822ac_res=$ac_cv_search_opendir
8823if test "$ac_res" != no; then
8824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8825
8826fi
8827
8828fi
John Criswell7a73b802003-06-30 21:59:07 +00008829
8830
8831for ac_header in dlfcn.h
8832do
8833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008838 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008839fi
Reid Spencera773bd52006-08-04 18:18:08 +00008840ac_res=`eval echo '${'$as_ac_Header'}'`
8841 { echo "$as_me:$LINENO: result: $ac_res" >&5
8842echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008843else
Brian Gaeke0a621332004-09-08 20:38:05 +00008844 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008845{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008847cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008853$ac_includes_default
8854#include <$ac_header>
8855_ACEOF
8856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008857if { (ac_try="$ac_compile"
8858case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861esac
8862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874esac
8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008890 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008891else
8892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008893sed 's/^/| /' conftest.$ac_ext >&5
8894
Reid Spencera773bd52006-08-04 18:18:08 +00008895 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008896fi
Reid Spencera773bd52006-08-04 18:18:08 +00008897
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8900echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008901
8902# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008903{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008905cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911#include <$ac_header>
8912_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008913if { (ac_try="$ac_cpp conftest.$ac_ext"
8914case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917esac
8918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008925 (exit $ac_status); } >/dev/null; then
8926 if test -s conftest.err; then
8927 ac_cpp_err=$ac_c_preproc_warn_flag
8928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8929 else
8930 ac_cpp_err=
8931 fi
8932else
8933 ac_cpp_err=yes
8934fi
8935if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008936 ac_header_preproc=yes
8937else
8938 echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_header_preproc=no
8942fi
Reid Spencera773bd52006-08-04 18:18:08 +00008943
Brian Gaeke0a621332004-09-08 20:38:05 +00008944rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008945{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8946echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008947
8948# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8950 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8955 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008956 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008957 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008970 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008971## ----------------------------------- ##
8972## Report this to llvmbugs@cs.uiuc.edu ##
8973## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008974_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008975 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008976 ;;
8977esac
Reid Spencera773bd52006-08-04 18:18:08 +00008978{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008983 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008984fi
Reid Spencera773bd52006-08-04 18:18:08 +00008985ac_res=`eval echo '${'$as_ac_Header'}'`
8986 { echo "$as_me:$LINENO: result: $ac_res" >&5
8987echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008988
8989fi
John Criswell7a73b802003-06-30 21:59:07 +00008990if test `eval echo '${'$as_ac_Header'}'` = yes; then
8991 cat >>confdefs.h <<_ACEOF
8992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993_ACEOF
8994
8995fi
8996
8997done
8998
Reid Spencera773bd52006-08-04 18:18:08 +00008999# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009001 enableval=$enable_ltdl_install;
9002fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009004
Jim Grosbach673612e2008-10-02 22:56:44 +00009005 if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009006 INSTALL_LTDL_TRUE=
9007 INSTALL_LTDL_FALSE='#'
9008else
9009 INSTALL_LTDL_TRUE='#'
9010 INSTALL_LTDL_FALSE=
9011fi
9012
Jim Grosbach673612e2008-10-02 22:56:44 +00009013 if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009014 CONVENIENCE_LTDL_TRUE=
9015 CONVENIENCE_LTDL_FALSE='#'
9016else
9017 CONVENIENCE_LTDL_TRUE='#'
9018 CONVENIENCE_LTDL_FALSE=
9019fi
9020
9021
Reid Spencera773bd52006-08-04 18:18:08 +00009022{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9023echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024library_names_spec=
9025libname_spec='lib$name'
9026soname_spec=
9027shrext_cmds=".so"
9028postinstall_cmds=
9029postuninstall_cmds=
9030finish_cmds=
9031finish_eval=
9032shlibpath_var=
9033shlibpath_overrides_runpath=unknown
9034version_type=none
9035dynamic_linker="$host_os ld.so"
9036sys_lib_dlsearch_path_spec="/lib /usr/lib"
9037if test "$GCC" = yes; then
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 ';' >/dev/null ; then
9040 # if the path contains ";" then we assume it to be the separator
9041 # otherwise default to the standard path separator (i.e. ":") - it is
9042 # assumed that no part of a normal pathname contains ";" but that should
9043 # okay in the real world where ";" in dirpaths is itself problematic.
9044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9045 else
9046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9047 fi
9048else
9049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9050fi
9051need_lib_prefix=unknown
9052hardcode_into_libs=no
9053
9054# when you set need_version to no, make sure it does not cause -set_version
9055# flags to be left without arguments
9056need_version=unknown
9057
9058case $host_os in
9059aix3*)
9060 version_type=linux
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9062 shlibpath_var=LIBPATH
9063
9064 # AIX 3 has no versioning support, so we append a major version to the name.
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 ;;
9067
9068aix4* | aix5*)
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 hardcode_into_libs=yes
9073 if test "$host_cpu" = ia64; then
9074 # AIX 5 supports IA64
9075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 else
9078 # With GCC up to 2.95.x, collect2 would create an import file
9079 # for dependence libraries. The import file would start with
9080 # the line `#! .'. This would cause the generated library to
9081 # depend on `.', always an invalid library. This was fixed in
9082 # development snapshots of GCC prior to 3.0.
9083 case $host_os in
9084 aix4 | aix4.[01] | aix4.[01].*)
9085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9086 echo ' yes '
9087 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9088 :
9089 else
9090 can_build_shared=no
9091 fi
9092 ;;
9093 esac
9094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9095 # soname into executable. Probably we can add versioning support to
9096 # collect2, so additional links can be useful in future.
9097 if test "$aix_use_runtimelinking" = yes; then
9098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9099 # instead of lib<name>.a to let people know that these are not
9100 # typical AIX shared libraries.
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 else
9103 # We preserve .a as extension for shared libraries through AIX4.2
9104 # and later when we are not doing run time linking.
9105 library_names_spec='${libname}${release}.a $libname.a'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 fi
9108 shlibpath_var=LIBPATH
9109 fi
9110 ;;
9111
9112amigaos*)
9113 library_names_spec='$libname.ixlibrary $libname.a'
9114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9115 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'
9116 ;;
9117
9118beos*)
9119 library_names_spec='${libname}${shared_ext}'
9120 dynamic_linker="$host_os ld.so"
9121 shlibpath_var=LIBRARY_PATH
9122 ;;
9123
9124bsdi[45]*)
9125 version_type=linux
9126 need_version=no
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9133 # the default ld.so.conf also contains /usr/contrib/lib and
9134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9135 # libtool to hard-code these into programs
9136 ;;
9137
9138cygwin* | mingw* | pw32*)
9139 version_type=windows
9140 shrext_cmds=".dll"
9141 need_version=no
9142 need_lib_prefix=no
9143
9144 case $GCC,$host_os in
9145 yes,cygwin* | yes,mingw* | yes,pw32*)
9146 library_names_spec='$libname.dll.a'
9147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9148 postinstall_cmds='base_file=`basename \${file}`~
9149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9150 dldir=$destdir/`dirname \$dlpath`~
9151 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009152 $install_prog $dir/$dlname \$dldir/$dlname~
9153 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9155 dlpath=$dir/\$dldll~
9156 $rm \$dlpath'
9157 shlibpath_overrides_runpath=yes
9158
9159 case $host_os in
9160 cygwin*)
9161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9164 ;;
9165 mingw*)
9166 # MinGW DLLs use traditional 'lib' prefix
9167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9169 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9170 # It is most probably a Windows format PATH printed by
9171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9172 # path with ; separators, and with drive letters. We can handle the
9173 # drive letters (cygwin fileutils understands them), so leave them,
9174 # especially as we might pass files found there to a mingw objdump,
9175 # which wouldn't understand a cygwinified path. Ahh.
9176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9177 else
9178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9179 fi
9180 ;;
9181 pw32*)
9182 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009183 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 +00009184 ;;
9185 esac
9186 ;;
9187
9188 *)
9189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9190 ;;
9191 esac
9192 dynamic_linker='Win32 ld.exe'
9193 # FIXME: first we should search . and the directory the executable is in
9194 shlibpath_var=PATH
9195 ;;
9196
9197darwin* | rhapsody*)
9198 dynamic_linker="$host_os dyld"
9199 version_type=darwin
9200 need_lib_prefix=no
9201 need_version=no
9202 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9203 soname_spec='${libname}${release}${major}$shared_ext'
9204 shlibpath_overrides_runpath=yes
9205 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009206 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9208 if test "$GCC" = yes; then
9209 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"`
9210 else
9211 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9212 fi
9213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9214 ;;
9215
9216dgux*)
9217 version_type=linux
9218 need_lib_prefix=no
9219 need_version=no
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 ;;
9224
9225freebsd1*)
9226 dynamic_linker=no
9227 ;;
9228
9229kfreebsd*-gnu)
9230 version_type=linux
9231 need_lib_prefix=no
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=no
9237 hardcode_into_libs=yes
9238 dynamic_linker='GNU ld.so'
9239 ;;
9240
Reid Spencera773bd52006-08-04 18:18:08 +00009241freebsd* | dragonfly*)
9242 # DragonFly does not have aout. When/if they implement a new
9243 # versioning mechanism, adjust this.
9244 if test -x /usr/bin/objformat; then
9245 objformat=`/usr/bin/objformat`
9246 else
9247 case $host_os in
9248 freebsd[123]*) objformat=aout ;;
9249 *) objformat=elf ;;
9250 esac
9251 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009252 version_type=freebsd-$objformat
9253 case $version_type in
9254 freebsd-elf*)
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9256 need_version=no
9257 need_lib_prefix=no
9258 ;;
9259 freebsd-*)
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9261 need_version=yes
9262 ;;
9263 esac
9264 shlibpath_var=LD_LIBRARY_PATH
9265 case $host_os in
9266 freebsd2*)
9267 shlibpath_overrides_runpath=yes
9268 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009269 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270 shlibpath_overrides_runpath=yes
9271 hardcode_into_libs=yes
9272 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275 shlibpath_overrides_runpath=no
9276 hardcode_into_libs=yes
9277 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009278 freebsd*) # from 4.6 on
9279 shlibpath_overrides_runpath=yes
9280 hardcode_into_libs=yes
9281 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282 esac
9283 ;;
9284
9285gnu*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 hardcode_into_libs=yes
9293 ;;
9294
9295hpux9* | hpux10* | hpux11*)
9296 # Give a soname corresponding to the major version so that dld.sl refuses to
9297 # link against other versions.
9298 version_type=sunos
9299 need_lib_prefix=no
9300 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009301 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302 ia64*)
9303 shrext_cmds='.so'
9304 hardcode_into_libs=yes
9305 dynamic_linker="$host_os dld.so"
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 if test "X$HPUX_IA64_MODE" = X32; then
9311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9312 else
9313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9314 fi
9315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9316 ;;
9317 hppa*64*)
9318 shrext_cmds='.sl'
9319 hardcode_into_libs=yes
9320 dynamic_linker="$host_os dld.sl"
9321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9327 ;;
9328 *)
9329 shrext_cmds='.sl'
9330 dynamic_linker="$host_os dld.sl"
9331 shlibpath_var=SHLIB_PATH
9332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 ;;
9336 esac
9337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9338 postinstall_cmds='chmod 555 $lib'
9339 ;;
9340
Reid Spencera773bd52006-08-04 18:18:08 +00009341interix3*)
9342 version_type=linux
9343 need_lib_prefix=no
9344 need_version=no
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 shlibpath_overrides_runpath=no
9350 hardcode_into_libs=yes
9351 ;;
9352
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353irix5* | irix6* | nonstopux*)
9354 case $host_os in
9355 nonstopux*) version_type=nonstopux ;;
9356 *)
9357 if test "$lt_cv_prog_gnu_ld" = yes; then
9358 version_type=linux
9359 else
9360 version_type=irix
9361 fi ;;
9362 esac
9363 need_lib_prefix=no
9364 need_version=no
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9367 case $host_os in
9368 irix5* | nonstopux*)
9369 libsuff= shlibsuff=
9370 ;;
9371 *)
9372 case $LD in # libtool.m4 will add one of these switches to LD
9373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374 libsuff= shlibsuff= libmagic=32-bit;;
9375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376 libsuff=32 shlibsuff=N32 libmagic=N32;;
9377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379 *) libsuff= shlibsuff= libmagic=never-match;;
9380 esac
9381 ;;
9382 esac
9383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384 shlibpath_overrides_runpath=no
9385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387 hardcode_into_libs=yes
9388 ;;
9389
9390# No shared lib support for Linux oldld, aout, or coff.
9391linux*oldld* | linux*aout* | linux*coff*)
9392 dynamic_linker=no
9393 ;;
9394
9395# This must be Linux ELF.
9396linux*)
9397 version_type=linux
9398 need_lib_prefix=no
9399 need_version=no
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 # This implies no fast_install, which is unacceptable.
9406 # Some rework will be needed to allow for fast_install
9407 # before this can be enabled.
9408 hardcode_into_libs=yes
9409
9410 # Append ld.so.conf contents to the search path
9411 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009412 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 +00009413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9414 fi
9415
9416 # We used to test for /lib/ld.so.1 and disable shared libraries on
9417 # powerpc, because MkLinux only supported shared libraries with the
9418 # GNU dynamic linker. Since this was broken with cross compilers,
9419 # most powerpc-linux boxes support dynamic linking these days and
9420 # people can always --disable-shared, the test was removed, and we
9421 # assume the GNU/Linux dynamic linker is in use.
9422 dynamic_linker='GNU/Linux ld.so'
9423 ;;
9424
9425knetbsd*-gnu)
9426 version_type=linux
9427 need_lib_prefix=no
9428 need_version=no
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=no
9433 hardcode_into_libs=yes
9434 dynamic_linker='GNU ld.so'
9435 ;;
9436
9437netbsd*)
9438 version_type=sunos
9439 need_lib_prefix=no
9440 need_version=no
9441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444 dynamic_linker='NetBSD (a.out) ld.so'
9445 else
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 dynamic_linker='NetBSD ld.elf_so'
9449 fi
9450 shlibpath_var=LD_LIBRARY_PATH
9451 shlibpath_overrides_runpath=yes
9452 hardcode_into_libs=yes
9453 ;;
9454
9455newsos6)
9456 version_type=linux
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes
9460 ;;
9461
9462nto-qnx*)
9463 version_type=linux
9464 need_lib_prefix=no
9465 need_version=no
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=yes
9470 ;;
9471
9472openbsd*)
9473 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009474 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009476 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9477 case $host_os in
9478 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9479 *) need_version=no ;;
9480 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9485 case $host_os in
9486 openbsd2.[89] | openbsd2.[89].*)
9487 shlibpath_overrides_runpath=no
9488 ;;
9489 *)
9490 shlibpath_overrides_runpath=yes
9491 ;;
9492 esac
9493 else
9494 shlibpath_overrides_runpath=yes
9495 fi
9496 ;;
9497
9498os2*)
9499 libname_spec='$name'
9500 shrext_cmds=".dll"
9501 need_lib_prefix=no
9502 library_names_spec='$libname${shared_ext} $libname.a'
9503 dynamic_linker='OS/2 ld.exe'
9504 shlibpath_var=LIBPATH
9505 ;;
9506
9507osf3* | osf4* | osf5*)
9508 version_type=osf
9509 need_lib_prefix=no
9510 need_version=no
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9516 ;;
9517
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518solaris*)
9519 version_type=linux
9520 need_lib_prefix=no
9521 need_version=no
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9526 hardcode_into_libs=yes
9527 # ldd complains unless libraries are executable
9528 postinstall_cmds='chmod +x $lib'
9529 ;;
9530
9531sunos4*)
9532 version_type=sunos
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9535 shlibpath_var=LD_LIBRARY_PATH
9536 shlibpath_overrides_runpath=yes
9537 if test "$with_gnu_ld" = yes; then
9538 need_lib_prefix=no
9539 fi
9540 need_version=yes
9541 ;;
9542
Reid Spencera773bd52006-08-04 18:18:08 +00009543sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544 version_type=linux
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 case $host_vendor in
9549 sni)
9550 shlibpath_overrides_runpath=no
9551 need_lib_prefix=no
9552 export_dynamic_flag_spec='${wl}-Blargedynsym'
9553 runpath_var=LD_RUN_PATH
9554 ;;
9555 siemens)
9556 need_lib_prefix=no
9557 ;;
9558 motorola)
9559 need_lib_prefix=no
9560 need_version=no
9561 shlibpath_overrides_runpath=no
9562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9563 ;;
9564 esac
9565 ;;
9566
9567sysv4*MP*)
9568 if test -d /usr/nec ;then
9569 version_type=linux
9570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9571 soname_spec='$libname${shared_ext}.$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 fi
9574 ;;
9575
Reid Spencera773bd52006-08-04 18:18:08 +00009576sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9577 version_type=freebsd-elf
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 hardcode_into_libs=yes
9584 if test "$with_gnu_ld" = yes; then
9585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9586 shlibpath_overrides_runpath=no
9587 else
9588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9589 shlibpath_overrides_runpath=yes
9590 case $host_os in
9591 sco3.2v5*)
9592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9593 ;;
9594 esac
9595 fi
9596 sys_lib_dlsearch_path_spec='/usr/lib'
9597 ;;
9598
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599uts4*)
9600 version_type=linux
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 ;;
9605
9606*)
9607 dynamic_linker=no
9608 ;;
9609esac
Reid Spencera773bd52006-08-04 18:18:08 +00009610{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9611echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612test "$dynamic_linker" = no && can_build_shared=no
9613
Reid Spencera773bd52006-08-04 18:18:08 +00009614variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9615if test "$GCC" = yes; then
9616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9617fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618
Reid Spencera773bd52006-08-04 18:18:08 +00009619
9620{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9621echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622if test "${libltdl_cv_shlibext+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625
9626module=yes
9627eval libltdl_cv_shlibext=$shrext_cmds
9628
9629fi
Reid Spencera773bd52006-08-04 18:18:08 +00009630{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9631echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632if test -n "$libltdl_cv_shlibext"; then
9633
9634cat >>confdefs.h <<_ACEOF
9635#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9636_ACEOF
9637
9638fi
9639
9640
Reid Spencera773bd52006-08-04 18:18:08 +00009641{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9642echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643if test "${libltdl_cv_shlibpath_var+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645else
9646 libltdl_cv_shlibpath_var="$shlibpath_var"
9647fi
Reid Spencera773bd52006-08-04 18:18:08 +00009648{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9649echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009650if test -n "$libltdl_cv_shlibpath_var"; then
9651
9652cat >>confdefs.h <<_ACEOF
9653#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9654_ACEOF
9655
9656fi
9657
9658
Reid Spencera773bd52006-08-04 18:18:08 +00009659{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9660echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661if test "${libltdl_cv_sys_search_path+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663else
9664 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9665fi
Reid Spencera773bd52006-08-04 18:18:08 +00009666{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9667echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668if test -n "$libltdl_cv_sys_search_path"; then
9669 sys_search_path=
9670 for dir in $libltdl_cv_sys_search_path; do
9671 if test -z "$sys_search_path"; then
9672 sys_search_path="$dir"
9673 else
9674 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9675 fi
9676 done
9677
9678cat >>confdefs.h <<_ACEOF
9679#define LTDL_SYSSEARCHPATH "$sys_search_path"
9680_ACEOF
9681
9682fi
9683
Reid Spencera773bd52006-08-04 18:18:08 +00009684{ echo "$as_me:$LINENO: checking for objdir" >&5
9685echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686if test "${libltdl_cv_objdir+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 libltdl_cv_objdir="$objdir"
9690 if test -n "$objdir"; then
9691 :
9692 else
9693 rm -f .libs 2>/dev/null
9694 mkdir .libs 2>/dev/null
9695 if test -d .libs; then
9696 libltdl_cv_objdir=.libs
9697 else
9698 # MS-DOS does not allow filenames that begin with a dot.
9699 libltdl_cv_objdir=_libs
9700 fi
9701 rmdir .libs 2>/dev/null
9702 fi
9703
9704fi
Reid Spencera773bd52006-08-04 18:18:08 +00009705{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9706echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707
9708cat >>confdefs.h <<_ACEOF
9709#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9710_ACEOF
9711
9712
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713
9714
9715
9716
9717# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009718{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9719echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723
9724# These are sane defaults that work on at least a few old systems.
9725# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9726
9727# Character class describing NM global symbol codes.
9728symcode='[BCDEGRST]'
9729
9730# Regexp to match symbols that can be accessed directly from C.
9731sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9732
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733# Transform an extracted symbol line into a proper C declaration
9734lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9735
9736# Transform an extracted symbol line into symbol name and symbol address
9737lt_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'"
9738
9739# Define system-specific variables.
9740case $host_os in
9741aix*)
9742 symcode='[BCDT]'
9743 ;;
9744cygwin* | mingw* | pw32*)
9745 symcode='[ABCDGISTW]'
9746 ;;
9747hpux*) # Its linker distinguishes data from code symbols
9748 if test "$host_cpu" = ia64; then
9749 symcode='[ABCDEGRST]'
9750 fi
9751 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9752 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'"
9753 ;;
9754linux*)
9755 if test "$host_cpu" = ia64; then
9756 symcode='[ABCDGIRSTW]'
9757 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9758 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'"
9759 fi
9760 ;;
9761irix* | nonstopux*)
9762 symcode='[BCDEGRST]'
9763 ;;
9764osf*)
9765 symcode='[BCDEGQRST]'
9766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009767solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768 symcode='[BDRT]'
9769 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009770sco3.2v5*)
9771 symcode='[DT]'
9772 ;;
9773sysv4.2uw2*)
9774 symcode='[DT]'
9775 ;;
9776sysv5* | sco5v6* | unixware* | OpenUNIX*)
9777 symcode='[ABDT]'
9778 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779sysv4)
9780 symcode='[DFNSTU]'
9781 ;;
9782esac
9783
9784# Handle CRLF in mingw tool chain
9785opt_cr=
9786case $build_os in
9787mingw*)
9788 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9789 ;;
9790esac
9791
9792# If we're using GNU nm, then use its standard symbol codes.
9793case `$NM -V 2>&1` in
9794*GNU* | *'with BFD'*)
9795 symcode='[ABCDGIRSTW]' ;;
9796esac
9797
9798# Try without a prefix undercore, then with it.
9799for ac_symprfx in "" "_"; do
9800
Reid Spencera773bd52006-08-04 18:18:08 +00009801 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9802 symxfrm="\\1 $ac_symprfx\\2 \\2"
9803
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009805 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 +00009806
9807 # Check to see that the pipe works correctly.
9808 pipe_works=no
9809
9810 rm -f conftest*
9811 cat > conftest.$ac_ext <<EOF
9812#ifdef __cplusplus
9813extern "C" {
9814#endif
9815char nm_test_var;
9816void nm_test_func(){}
9817#ifdef __cplusplus
9818}
9819#endif
9820int main(){nm_test_var='a';nm_test_func();return(0);}
9821EOF
9822
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; then
9828 # Now try to grab the symbols.
9829 nlist=conftest.nm
9830 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9831 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && test -s "$nlist"; then
9835 # Try sorting and uniquifying the output.
9836 if sort "$nlist" | uniq > "$nlist"T; then
9837 mv -f "$nlist"T "$nlist"
9838 else
9839 rm -f "$nlist"T
9840 fi
9841
9842 # Make sure that we snagged all the symbols we need.
9843 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9844 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9845 cat <<EOF > conftest.$ac_ext
9846#ifdef __cplusplus
9847extern "C" {
9848#endif
9849
9850EOF
9851 # Now generate the symbol file.
9852 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9853
9854 cat <<EOF >> conftest.$ac_ext
9855#if defined (__STDC__) && __STDC__
9856# define lt_ptr_t void *
9857#else
9858# define lt_ptr_t char *
9859# define const
9860#endif
9861
9862/* The mapping between symbol names and symbols. */
9863const struct {
9864 const char *name;
9865 lt_ptr_t address;
9866}
9867lt_preloaded_symbols[] =
9868{
9869EOF
9870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9871 cat <<\EOF >> conftest.$ac_ext
9872 {0, (lt_ptr_t) 0}
9873};
9874
9875#ifdef __cplusplus
9876}
9877#endif
9878EOF
9879 # Now try linking the two files.
9880 mv conftest.$ac_objext conftstm.$ac_objext
9881 lt_save_LIBS="$LIBS"
9882 lt_save_CFLAGS="$CFLAGS"
9883 LIBS="conftstm.$ac_objext"
9884 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9886 (eval $ac_link) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9890 pipe_works=yes
9891 fi
9892 LIBS="$lt_save_LIBS"
9893 CFLAGS="$lt_save_CFLAGS"
9894 else
9895 echo "cannot find nm_test_func in $nlist" >&5
9896 fi
9897 else
9898 echo "cannot find nm_test_var in $nlist" >&5
9899 fi
9900 else
9901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9902 fi
9903 else
9904 echo "$progname: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 fi
9907 rm -f conftest* conftst*
9908
9909 # Do not use the global_symbol_pipe unless it works.
9910 if test "$pipe_works" = yes; then
9911 break
9912 else
9913 lt_cv_sys_global_symbol_pipe=
9914 fi
9915done
9916
9917fi
9918
9919if test -z "$lt_cv_sys_global_symbol_pipe"; then
9920 lt_cv_sys_global_symbol_to_cdecl=
9921fi
9922if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009923 { echo "$as_me:$LINENO: result: failed" >&5
9924echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925else
Reid Spencera773bd52006-08-04 18:18:08 +00009926 { echo "$as_me:$LINENO: result: ok" >&5
9927echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928fi
9929
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9932echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935else
9936 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9937 libltdl_cv_preloaded_symbols=yes
9938 else
9939 libltdl_cv_preloaded_symbols=no
9940 fi
9941
9942fi
Reid Spencera773bd52006-08-04 18:18:08 +00009943{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9944echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9946
9947cat >>confdefs.h <<\_ACEOF
9948#define HAVE_PRELOADED_SYMBOLS 1
9949_ACEOF
9950
9951fi
9952
9953LIBADD_DL=
9954
9955ac_ext=c
9956ac_cpp='$CPP $CPPFLAGS'
9957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9959ac_compiler_gnu=$ac_cv_c_compiler_gnu
9960
9961
Reid Spencera773bd52006-08-04 18:18:08 +00009962{ echo "$as_me:$LINENO: checking for shl_load" >&5
9963echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964if test "${ac_cv_func_shl_load+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967 cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
9973/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975#define shl_load innocuous_shl_load
9976
9977/* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char shl_load (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9981
9982#ifdef __STDC__
9983# include <limits.h>
9984#else
9985# include <assert.h>
9986#endif
9987
9988#undef shl_load
9989
Reid Spencera773bd52006-08-04 18:18:08 +00009990/* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993#ifdef __cplusplus
9994extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996char shl_load ();
9997/* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010000#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002#endif
10003
10004int
10005main ()
10006{
Reid Spencera773bd52006-08-04 18:18:08 +000010007return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 ac_cv_func_shl_load=yes
10047else
10048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
Reid Spencera773bd52006-08-04 18:18:08 +000010051 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052fi
Reid Spencera773bd52006-08-04 18:18:08 +000010053
Tanya Lattnercf067672008-01-17 05:57:22 +000010054rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055 conftest$ac_exeext conftest.$ac_ext
10056fi
Reid Spencera773bd52006-08-04 18:18:08 +000010057{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10058echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059if test $ac_cv_func_shl_load = yes; then
10060
10061cat >>confdefs.h <<\_ACEOF
10062#define HAVE_SHL_LOAD 1
10063_ACEOF
10064
10065else
Reid Spencera773bd52006-08-04 18:18:08 +000010066 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10067echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071 ac_check_lib_save_LIBS=$LIBS
10072LIBS="-ldld $LIBS"
10073cat >conftest.$ac_ext <<_ACEOF
10074/* confdefs.h. */
10075_ACEOF
10076cat confdefs.h >>conftest.$ac_ext
10077cat >>conftest.$ac_ext <<_ACEOF
10078/* end confdefs.h. */
10079
Reid Spencera773bd52006-08-04 18:18:08 +000010080/* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083#ifdef __cplusplus
10084extern "C"
10085#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086char shl_load ();
10087int
10088main ()
10089{
Reid Spencera773bd52006-08-04 18:18:08 +000010090return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091 ;
10092 return 0;
10093}
10094_ACEOF
10095rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010096if { (ac_try="$ac_link"
10097case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100esac
10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129 ac_cv_lib_dld_shl_load=yes
10130else
10131 echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
Reid Spencera773bd52006-08-04 18:18:08 +000010134 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135fi
Reid Spencera773bd52006-08-04 18:18:08 +000010136
Tanya Lattnercf067672008-01-17 05:57:22 +000010137rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138 conftest$ac_exeext conftest.$ac_ext
10139LIBS=$ac_check_lib_save_LIBS
10140fi
Reid Spencera773bd52006-08-04 18:18:08 +000010141{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10142echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143if test $ac_cv_lib_dld_shl_load = yes; then
10144
10145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_SHL_LOAD 1
10147_ACEOF
10148
10149 LIBADD_DL="$LIBADD_DL -ldld"
10150else
Reid Spencera773bd52006-08-04 18:18:08 +000010151 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10152echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156 ac_check_lib_save_LIBS=$LIBS
10157LIBS="-ldl $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164
Reid Spencera773bd52006-08-04 18:18:08 +000010165/* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168#ifdef __cplusplus
10169extern "C"
10170#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171char dlopen ();
10172int
10173main ()
10174{
Reid Spencera773bd52006-08-04 18:18:08 +000010175return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176 ;
10177 return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010181if { (ac_try="$ac_link"
10182case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185esac
10186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214 ac_cv_lib_dl_dlopen=yes
10215else
10216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
Reid Spencera773bd52006-08-04 18:18:08 +000010219 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220fi
Reid Spencera773bd52006-08-04 18:18:08 +000010221
Tanya Lattnercf067672008-01-17 05:57:22 +000010222rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223 conftest$ac_exeext conftest.$ac_ext
10224LIBS=$ac_check_lib_save_LIBS
10225fi
Reid Spencera773bd52006-08-04 18:18:08 +000010226{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10227echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228if test $ac_cv_lib_dl_dlopen = yes; then
10229
10230cat >>confdefs.h <<\_ACEOF
10231#define HAVE_LIBDL 1
10232_ACEOF
10233
10234 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10235else
10236 cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242#if HAVE_DLFCN_H
10243# include <dlfcn.h>
10244#endif
10245
10246int
10247main ()
10248{
10249dlopen(0, 0);
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010255if { (ac_try="$ac_link"
10256case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259esac
10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10269 { (case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272esac
10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_try") 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try='test -s conftest$ac_exeext'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10282esac
10283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288
10289cat >>confdefs.h <<\_ACEOF
10290#define HAVE_LIBDL 1
10291_ACEOF
10292 libltdl_cv_func_dlopen="yes"
10293else
10294 echo "$as_me: failed program was:" >&5
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
Reid Spencera773bd52006-08-04 18:18:08 +000010297 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10298echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 ac_check_lib_save_LIBS=$LIBS
10303LIBS="-lsvld $LIBS"
10304cat >conftest.$ac_ext <<_ACEOF
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
10310
Reid Spencera773bd52006-08-04 18:18:08 +000010311/* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314#ifdef __cplusplus
10315extern "C"
10316#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317char dlopen ();
10318int
10319main ()
10320{
Reid Spencera773bd52006-08-04 18:18:08 +000010321return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322 ;
10323 return 0;
10324}
10325_ACEOF
10326rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010327if { (ac_try="$ac_link"
10328case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331esac
10332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344esac
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360 ac_cv_lib_svld_dlopen=yes
10361else
10362 echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
Reid Spencera773bd52006-08-04 18:18:08 +000010365 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366fi
Reid Spencera773bd52006-08-04 18:18:08 +000010367
Tanya Lattnercf067672008-01-17 05:57:22 +000010368rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 conftest$ac_exeext conftest.$ac_ext
10370LIBS=$ac_check_lib_save_LIBS
10371fi
Reid Spencera773bd52006-08-04 18:18:08 +000010372{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10373echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374if test $ac_cv_lib_svld_dlopen = yes; then
10375
10376cat >>confdefs.h <<\_ACEOF
10377#define HAVE_LIBDL 1
10378_ACEOF
10379
10380 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10381else
Reid Spencera773bd52006-08-04 18:18:08 +000010382 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10383echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387 ac_check_lib_save_LIBS=$LIBS
10388LIBS="-ldld $LIBS"
10389cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395
Reid Spencera773bd52006-08-04 18:18:08 +000010396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399#ifdef __cplusplus
10400extern "C"
10401#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402char dld_link ();
10403int
10404main ()
10405{
Reid Spencera773bd52006-08-04 18:18:08 +000010406return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407 ;
10408 return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 ac_cv_lib_dld_dld_link=yes
10446else
10447 echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
Reid Spencera773bd52006-08-04 18:18:08 +000010450 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451fi
Reid Spencera773bd52006-08-04 18:18:08 +000010452
Tanya Lattnercf067672008-01-17 05:57:22 +000010453rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454 conftest$ac_exeext conftest.$ac_ext
10455LIBS=$ac_check_lib_save_LIBS
10456fi
Reid Spencera773bd52006-08-04 18:18:08 +000010457{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10458echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459if test $ac_cv_lib_dld_dld_link = yes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define HAVE_DLD 1
10463_ACEOF
10464
10465 LIBADD_DL="$LIBADD_DL -ldld"
10466else
Reid Spencera773bd52006-08-04 18:18:08 +000010467 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10468echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471else
10472 cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h. */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h. */
10478/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10480#define _dyld_func_lookup innocuous__dyld_func_lookup
10481
10482/* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char _dyld_func_lookup (); below.
10484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485 <limits.h> exists even on freestanding compilers. */
10486
10487#ifdef __STDC__
10488# include <limits.h>
10489#else
10490# include <assert.h>
10491#endif
10492
10493#undef _dyld_func_lookup
10494
Reid Spencera773bd52006-08-04 18:18:08 +000010495/* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498#ifdef __cplusplus
10499extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501char _dyld_func_lookup ();
10502/* The GNU C library defines this for functions which it implements
10503 to always fail with ENOSYS. Some functions are actually named
10504 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010505#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507#endif
10508
10509int
10510main ()
10511{
Reid Spencera773bd52006-08-04 18:18:08 +000010512return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010518if { (ac_try="$ac_link"
10519case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 ac_cv_func__dyld_func_lookup=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
Reid Spencera773bd52006-08-04 18:18:08 +000010556 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557fi
Reid Spencera773bd52006-08-04 18:18:08 +000010558
Tanya Lattnercf067672008-01-17 05:57:22 +000010559rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010560 conftest$ac_exeext conftest.$ac_ext
10561fi
Reid Spencera773bd52006-08-04 18:18:08 +000010562{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10563echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564if test $ac_cv_func__dyld_func_lookup = yes; then
10565
10566cat >>confdefs.h <<\_ACEOF
10567#define HAVE_DYLD 1
10568_ACEOF
10569
10570fi
10571
10572
10573fi
10574
10575
10576fi
10577
10578
10579fi
Reid Spencera773bd52006-08-04 18:18:08 +000010580
Tanya Lattnercf067672008-01-17 05:57:22 +000010581rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582 conftest$ac_exeext conftest.$ac_ext
10583
10584fi
10585
10586
10587fi
10588
10589
10590fi
10591
10592
10593if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10594then
10595 lt_save_LIBS="$LIBS"
10596 LIBS="$LIBS $LIBADD_DL"
10597
10598for ac_func in dlerror
10599do
10600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605else
10606 cat >conftest.$ac_ext <<_ACEOF
10607/* confdefs.h. */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h. */
10612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10614#define $ac_func innocuous_$ac_func
10615
10616/* System header to define __stub macros and hopefully few prototypes,
10617 which can conflict with char $ac_func (); below.
10618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10619 <limits.h> exists even on freestanding compilers. */
10620
10621#ifdef __STDC__
10622# include <limits.h>
10623#else
10624# include <assert.h>
10625#endif
10626
10627#undef $ac_func
10628
Reid Spencera773bd52006-08-04 18:18:08 +000010629/* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632#ifdef __cplusplus
10633extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635char $ac_func ();
10636/* The GNU C library defines this for functions which it implements
10637 to always fail with ENOSYS. Some functions are actually named
10638 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010639#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641#endif
10642
10643int
10644main ()
10645{
Reid Spencera773bd52006-08-04 18:18:08 +000010646return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 ;
10648 return 0;
10649}
10650_ACEOF
10651rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010652if { (ac_try="$ac_link"
10653case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666 { (case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669esac
10670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_try") 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679esac
10680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_try") 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685 eval "$as_ac_var=yes"
10686else
10687 echo "$as_me: failed program was:" >&5
10688sed 's/^/| /' conftest.$ac_ext >&5
10689
Reid Spencera773bd52006-08-04 18:18:08 +000010690 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691fi
Reid Spencera773bd52006-08-04 18:18:08 +000010692
Tanya Lattnercf067672008-01-17 05:57:22 +000010693rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694 conftest$ac_exeext conftest.$ac_ext
10695fi
Reid Spencera773bd52006-08-04 18:18:08 +000010696ac_res=`eval echo '${'$as_ac_var'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699if test `eval echo '${'$as_ac_var'}'` = yes; then
10700 cat >>confdefs.h <<_ACEOF
10701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702_ACEOF
10703
10704fi
10705done
10706
10707 LIBS="$lt_save_LIBS"
10708fi
10709ac_ext=c
10710ac_cpp='$CPP $CPPFLAGS'
10711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713ac_compiler_gnu=$ac_cv_c_compiler_gnu
10714
10715
10716
Reid Spencera773bd52006-08-04 18:18:08 +000010717{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10718echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10721else
10722 ac_cv_sys_symbol_underscore=no
10723 cat > conftest.$ac_ext <<EOF
10724void nm_test_func(){}
10725int main(){nm_test_func;return 0;}
10726EOF
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; then
10732 # Now try to grab the symbols.
10733 ac_nlist=conftest.nm
10734 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10735 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && test -s "$ac_nlist"; then
10739 # See whether the symbols have a leading underscore.
10740 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10741 ac_cv_sys_symbol_underscore=yes
10742 else
10743 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10744 :
10745 else
10746 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10747 fi
10748 fi
10749 else
10750 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10751 fi
10752 else
10753 echo "configure: failed program was:" >&5
10754 cat conftest.c >&5
10755 fi
10756 rm -rf conftest*
10757
10758fi
Reid Spencera773bd52006-08-04 18:18:08 +000010759{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10760echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
10762
10763if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10764 if test x"$libltdl_cv_func_dlopen" = xyes ||
10765 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010766 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10767echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768if test "${libltdl_cv_need_uscore+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770else
10771 libltdl_cv_need_uscore=unknown
10772 save_LIBS="$LIBS"
10773 LIBS="$LIBS $LIBADD_DL"
10774 if test "$cross_compiling" = yes; then :
10775 libltdl_cv_need_uscore=cross
10776else
10777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10778 lt_status=$lt_dlunknown
10779 cat > conftest.$ac_ext <<EOF
Jim Grosbach673612e2008-10-02 22:56:44 +000010780#line 10780 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781#include "confdefs.h"
10782
10783#if HAVE_DLFCN_H
10784#include <dlfcn.h>
10785#endif
10786
10787#include <stdio.h>
10788
10789#ifdef RTLD_GLOBAL
10790# define LT_DLGLOBAL RTLD_GLOBAL
10791#else
10792# ifdef DL_GLOBAL
10793# define LT_DLGLOBAL DL_GLOBAL
10794# else
10795# define LT_DLGLOBAL 0
10796# endif
10797#endif
10798
10799/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10800 find out it does not work in some platform. */
10801#ifndef LT_DLLAZY_OR_NOW
10802# ifdef RTLD_LAZY
10803# define LT_DLLAZY_OR_NOW RTLD_LAZY
10804# else
10805# ifdef DL_LAZY
10806# define LT_DLLAZY_OR_NOW DL_LAZY
10807# else
10808# ifdef RTLD_NOW
10809# define LT_DLLAZY_OR_NOW RTLD_NOW
10810# else
10811# ifdef DL_NOW
10812# define LT_DLLAZY_OR_NOW DL_NOW
10813# else
10814# define LT_DLLAZY_OR_NOW 0
10815# endif
10816# endif
10817# endif
10818# endif
10819#endif
10820
10821#ifdef __cplusplus
10822extern "C" void exit (int);
10823#endif
10824
10825void fnord() { int i=42;}
10826int main ()
10827{
10828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10829 int status = $lt_dlunknown;
10830
10831 if (self)
10832 {
10833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10835 /* dlclose (self); */
10836 }
Reid Spencera773bd52006-08-04 18:18:08 +000010837 else
10838 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839
10840 exit (status);
10841}
10842EOF
10843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844 (eval $ac_link) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010848 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849 lt_status=$?
10850 case x$lt_status in
10851 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10852 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010853 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854 esac
10855 else :
10856 # compilation failed
10857
10858 fi
10859fi
10860rm -fr conftest*
10861
10862 LIBS="$save_LIBS"
10863
10864fi
Reid Spencera773bd52006-08-04 18:18:08 +000010865{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10866echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867 fi
10868fi
10869
10870if test x"$libltdl_cv_need_uscore" = xyes; then
10871
10872cat >>confdefs.h <<\_ACEOF
10873#define NEED_USCORE 1
10874_ACEOF
10875
10876fi
10877
10878
Reid Spencera773bd52006-08-04 18:18:08 +000010879{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10880echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 # PORTME does your system automatically load deplibs for dlopen?
10885 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10886 # For now, we just catch OSes we know something about -- in the
10887 # future, we'll try test this programmatically.
10888 libltdl_cv_sys_dlopen_deplibs=unknown
10889 case "$host_os" in
10890 aix3*|aix4.1.*|aix4.2.*)
10891 # Unknown whether this is true for these versions of AIX, but
10892 # we want this `case' here to explicitly catch those versions.
10893 libltdl_cv_sys_dlopen_deplibs=unknown
10894 ;;
10895 aix[45]*)
10896 libltdl_cv_sys_dlopen_deplibs=yes
10897 ;;
10898 darwin*)
10899 # Assuming the user has installed a libdl from somewhere, this is true
10900 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10901 libltdl_cv_sys_dlopen_deplibs=yes
10902 ;;
10903 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10904 # GNU and its variants, using gnu ld.so (Glibc)
10905 libltdl_cv_sys_dlopen_deplibs=yes
10906 ;;
10907 hpux10*|hpux11*)
10908 libltdl_cv_sys_dlopen_deplibs=yes
10909 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010910 interix*)
10911 libltdl_cv_sys_dlopen_deplibs=yes
10912 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913 irix[12345]*|irix6.[01]*)
10914 # Catch all versions of IRIX before 6.2, and indicate that we don't
10915 # know how it worked for any of those versions.
10916 libltdl_cv_sys_dlopen_deplibs=unknown
10917 ;;
10918 irix*)
10919 # The case above catches anything before 6.2, and it's known that
10920 # at 6.2 and later dlopen does load deplibs.
10921 libltdl_cv_sys_dlopen_deplibs=yes
10922 ;;
10923 netbsd*)
10924 libltdl_cv_sys_dlopen_deplibs=yes
10925 ;;
10926 openbsd*)
10927 libltdl_cv_sys_dlopen_deplibs=yes
10928 ;;
10929 osf[1234]*)
10930 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10931 # it did *not* use an RPATH in a shared library to find objects the
10932 # library depends on, so we explictly say `no'.
10933 libltdl_cv_sys_dlopen_deplibs=no
10934 ;;
10935 osf5.0|osf5.0a|osf5.1)
10936 # dlopen *does* load deplibs and with the right loader patch applied
10937 # it even uses RPATH in a shared library to search for shared objects
10938 # that the library depends on, but there's no easy way to know if that
10939 # patch is installed. Since this is the case, all we can really
10940 # say is unknown -- it depends on the patch being installed. If
10941 # it is, this changes to `yes'. Without it, it would be `no'.
10942 libltdl_cv_sys_dlopen_deplibs=unknown
10943 ;;
10944 osf*)
10945 # the two cases above should catch all versions of osf <= 5.1. Read
10946 # the comments above for what we know about them.
10947 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10948 # is used to find them so we can finally say `yes'.
10949 libltdl_cv_sys_dlopen_deplibs=yes
10950 ;;
10951 solaris*)
10952 libltdl_cv_sys_dlopen_deplibs=yes
10953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10955 libltdl_cv_sys_dlopen_deplibs=yes
10956 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957 esac
10958
10959fi
Reid Spencera773bd52006-08-04 18:18:08 +000010960{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10961echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10963
10964cat >>confdefs.h <<\_ACEOF
10965#define LTDL_DLOPEN_DEPLIBS 1
10966_ACEOF
10967
10968fi
10969
10970
10971for ac_header in argz.h
10972do
10973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979fi
Reid Spencera773bd52006-08-04 18:18:08 +000010980ac_res=`eval echo '${'$as_ac_Header'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983else
10984 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987cat >conftest.$ac_ext <<_ACEOF
10988/* confdefs.h. */
10989_ACEOF
10990cat confdefs.h >>conftest.$ac_ext
10991cat >>conftest.$ac_ext <<_ACEOF
10992/* end confdefs.h. */
10993$ac_includes_default
10994#include <$ac_header>
10995_ACEOF
10996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010997if { (ac_try="$ac_compile"
10998case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001esac
11002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014esac
11015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024esac
11025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030 ac_header_compiler=yes
11031else
11032 echo "$as_me: failed program was:" >&5
11033sed 's/^/| /' conftest.$ac_ext >&5
11034
Reid Spencera773bd52006-08-04 18:18:08 +000011035 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036fi
Reid Spencera773bd52006-08-04 18:18:08 +000011037
11038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11040echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041
11042# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
11051#include <$ac_header>
11052_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011053if { (ac_try="$ac_cpp conftest.$ac_ext"
11054case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011065 (exit $ac_status); } >/dev/null; then
11066 if test -s conftest.err; then
11067 ac_cpp_err=$ac_c_preproc_warn_flag
11068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11069 else
11070 ac_cpp_err=
11071 fi
11072else
11073 ac_cpp_err=yes
11074fi
11075if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076 ac_header_preproc=yes
11077else
11078 echo "$as_me: failed program was:" >&5
11079sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 ac_header_preproc=no
11082fi
Reid Spencera773bd52006-08-04 18:18:08 +000011083
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11086echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087
11088# So? What about this header?
11089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11090 yes:no: )
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11095 ac_header_preproc=yes
11096 ;;
11097 no:yes:* )
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011110 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111## ----------------------------------- ##
11112## Report this to llvmbugs@cs.uiuc.edu ##
11113## ----------------------------------- ##
11114_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011115 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116 ;;
11117esac
Reid Spencera773bd52006-08-04 18:18:08 +000011118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122else
11123 eval "$as_ac_Header=\$ac_header_preproc"
11124fi
Reid Spencera773bd52006-08-04 18:18:08 +000011125ac_res=`eval echo '${'$as_ac_Header'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128
11129fi
11130if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11133_ACEOF
11134
11135fi
11136
11137done
11138
11139
Reid Spencera773bd52006-08-04 18:18:08 +000011140{ echo "$as_me:$LINENO: checking for error_t" >&5
11141echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142if test "${ac_cv_type_error_t+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
11151#if HAVE_ARGZ_H
11152# include <argz.h>
11153#endif
11154
Reid Spencera773bd52006-08-04 18:18:08 +000011155typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156int
11157main ()
11158{
Reid Spencera773bd52006-08-04 18:18:08 +000011159if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011161if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162 return 0;
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011168if { (ac_try="$ac_compile"
11169case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172esac
11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11191 { ac_try='test -s conftest.$ac_objext'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201 ac_cv_type_error_t=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
Reid Spencera773bd52006-08-04 18:18:08 +000011206 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207fi
Reid Spencera773bd52006-08-04 18:18:08 +000011208
11209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210fi
Reid Spencera773bd52006-08-04 18:18:08 +000011211{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11212echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213if test $ac_cv_type_error_t = yes; then
11214
11215cat >>confdefs.h <<_ACEOF
11216#define HAVE_ERROR_T 1
11217_ACEOF
11218
11219
11220else
11221
11222cat >>confdefs.h <<\_ACEOF
11223#define error_t int
11224_ACEOF
11225
11226fi
11227
11228
11229
11230
11231
11232
11233
11234for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11235do
11236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241else
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11250#define $ac_func innocuous_$ac_func
11251
11252/* System header to define __stub macros and hopefully few prototypes,
11253 which can conflict with char $ac_func (); below.
11254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11255 <limits.h> exists even on freestanding compilers. */
11256
11257#ifdef __STDC__
11258# include <limits.h>
11259#else
11260# include <assert.h>
11261#endif
11262
11263#undef $ac_func
11264
Reid Spencera773bd52006-08-04 18:18:08 +000011265/* Override any GCC internal prototype to avoid an error.
11266 Use char because int might match the return type of a GCC
11267 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268#ifdef __cplusplus
11269extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011271char $ac_func ();
11272/* The GNU C library defines this for functions which it implements
11273 to always fail with ENOSYS. Some functions are actually named
11274 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011275#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277#endif
11278
11279int
11280main ()
11281{
Reid Spencera773bd52006-08-04 18:18:08 +000011282return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283 ;
11284 return 0;
11285}
11286_ACEOF
11287rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011288if { (ac_try="$ac_link"
11289case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292esac
11293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011300 (exit $ac_status); } &&
11301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_try") 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest$ac_exeext'
11312 { (case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_try") 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 eval "$as_ac_var=yes"
11322else
11323 echo "$as_me: failed program was:" >&5
11324sed 's/^/| /' conftest.$ac_ext >&5
11325
Reid Spencera773bd52006-08-04 18:18:08 +000011326 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327fi
Reid Spencera773bd52006-08-04 18:18:08 +000011328
Tanya Lattnercf067672008-01-17 05:57:22 +000011329rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330 conftest$ac_exeext conftest.$ac_ext
11331fi
Reid Spencera773bd52006-08-04 18:18:08 +000011332ac_res=`eval echo '${'$as_ac_var'}'`
11333 { echo "$as_me:$LINENO: result: $ac_res" >&5
11334echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335if test `eval echo '${'$as_ac_var'}'` = yes; then
11336 cat >>confdefs.h <<_ACEOF
11337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11338_ACEOF
11339
11340fi
11341done
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11371 stdio.h unistd.h
11372do
11373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379fi
Reid Spencera773bd52006-08-04 18:18:08 +000011380ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383else
11384 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011385{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387cat >conftest.$ac_ext <<_ACEOF
11388/* confdefs.h. */
11389_ACEOF
11390cat confdefs.h >>conftest.$ac_ext
11391cat >>conftest.$ac_ext <<_ACEOF
11392/* end confdefs.h. */
11393$ac_includes_default
11394#include <$ac_header>
11395_ACEOF
11396rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011397if { (ac_try="$ac_compile"
11398case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401esac
11402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414esac
11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
11421 { (case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_try") 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430 ac_header_compiler=yes
11431else
11432 echo "$as_me: failed program was:" >&5
11433sed 's/^/| /' conftest.$ac_ext >&5
11434
Reid Spencera773bd52006-08-04 18:18:08 +000011435 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011436fi
Reid Spencera773bd52006-08-04 18:18:08 +000011437
11438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11440echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011441
11442# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011443{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445cat >conftest.$ac_ext <<_ACEOF
11446/* confdefs.h. */
11447_ACEOF
11448cat confdefs.h >>conftest.$ac_ext
11449cat >>conftest.$ac_ext <<_ACEOF
11450/* end confdefs.h. */
11451#include <$ac_header>
11452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011453if { (ac_try="$ac_cpp conftest.$ac_ext"
11454case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011465 (exit $ac_status); } >/dev/null; then
11466 if test -s conftest.err; then
11467 ac_cpp_err=$ac_c_preproc_warn_flag
11468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11469 else
11470 ac_cpp_err=
11471 fi
11472else
11473 ac_cpp_err=yes
11474fi
11475if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476 ac_header_preproc=yes
11477else
11478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 ac_header_preproc=no
11482fi
Reid Spencera773bd52006-08-04 18:18:08 +000011483
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487
11488# So? What about this header?
11489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11490 yes:no: )
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11495 ac_header_preproc=yes
11496 ;;
11497 no:yes:* )
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011510 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511## ----------------------------------- ##
11512## Report this to llvmbugs@cs.uiuc.edu ##
11513## ----------------------------------- ##
11514_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011515 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516 ;;
11517esac
Reid Spencera773bd52006-08-04 18:18:08 +000011518{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522else
11523 eval "$as_ac_Header=\$ac_header_preproc"
11524fi
Reid Spencera773bd52006-08-04 18:18:08 +000011525ac_res=`eval echo '${'$as_ac_Header'}'`
11526 { echo "$as_me:$LINENO: result: $ac_res" >&5
11527echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528
11529fi
11530if test `eval echo '${'$as_ac_Header'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11533_ACEOF
11534
11535fi
11536
11537done
11538
11539
11540
11541
11542
11543for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11544do
11545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551fi
Reid Spencera773bd52006-08-04 18:18:08 +000011552ac_res=`eval echo '${'$as_ac_Header'}'`
11553 { echo "$as_me:$LINENO: result: $ac_res" >&5
11554echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555else
11556 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565$ac_includes_default
11566#include <$ac_header>
11567_ACEOF
11568rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011569if { (ac_try="$ac_compile"
11570case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586esac
11587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602 ac_header_compiler=yes
11603else
11604 echo "$as_me: failed program was:" >&5
11605sed 's/^/| /' conftest.$ac_ext >&5
11606
Reid Spencera773bd52006-08-04 18:18:08 +000011607 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011608fi
Reid Spencera773bd52006-08-04 18:18:08 +000011609
11610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11612echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613
11614# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011617cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h. */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h. */
11623#include <$ac_header>
11624_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011625if { (ac_try="$ac_cpp conftest.$ac_ext"
11626case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011637 (exit $ac_status); } >/dev/null; then
11638 if test -s conftest.err; then
11639 ac_cpp_err=$ac_c_preproc_warn_flag
11640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11641 else
11642 ac_cpp_err=
11643 fi
11644else
11645 ac_cpp_err=yes
11646fi
11647if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011648 ac_header_preproc=yes
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 ac_header_preproc=no
11654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011656rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11658echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659
11660# So? What about this header?
11661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11662 yes:no: )
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11667 ac_header_preproc=yes
11668 ;;
11669 no:yes:* )
11670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011682 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011683## ----------------------------------- ##
11684## Report this to llvmbugs@cs.uiuc.edu ##
11685## ----------------------------------- ##
11686_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011687 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688 ;;
11689esac
Reid Spencera773bd52006-08-04 18:18:08 +000011690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 eval "$as_ac_Header=\$ac_header_preproc"
11696fi
Reid Spencera773bd52006-08-04 18:18:08 +000011697ac_res=`eval echo '${'$as_ac_Header'}'`
11698 { echo "$as_me:$LINENO: result: $ac_res" >&5
11699echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700
11701fi
11702if test `eval echo '${'$as_ac_Header'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11705_ACEOF
11706
11707fi
11708
11709done
11710
11711
11712
11713for ac_header in string.h strings.h
11714do
11715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721fi
Reid Spencera773bd52006-08-04 18:18:08 +000011722ac_res=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725else
11726 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011727{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
11735$ac_includes_default
11736#include <$ac_header>
11737_ACEOF
11738rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011739if { (ac_try="$ac_compile"
11740case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743esac
11744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11753 { (case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756esac
11757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_try") 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest.$ac_objext'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772 ac_header_compiler=yes
11773else
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
Reid Spencera773bd52006-08-04 18:18:08 +000011777 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778fi
Reid Spencera773bd52006-08-04 18:18:08 +000011779
11780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11782echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783
11784# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011785{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793#include <$ac_header>
11794_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011795if { (ac_try="$ac_cpp conftest.$ac_ext"
11796case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799esac
11800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011807 (exit $ac_status); } >/dev/null; then
11808 if test -s conftest.err; then
11809 ac_cpp_err=$ac_c_preproc_warn_flag
11810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11811 else
11812 ac_cpp_err=
11813 fi
11814else
11815 ac_cpp_err=yes
11816fi
11817if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818 ac_header_preproc=yes
11819else
11820 echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 ac_header_preproc=no
11824fi
Reid Spencera773bd52006-08-04 18:18:08 +000011825
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011827{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11828echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829
11830# So? What about this header?
11831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11832 yes:no: )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11837 ac_header_preproc=yes
11838 ;;
11839 no:yes:* )
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011852 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011853## ----------------------------------- ##
11854## Report this to llvmbugs@cs.uiuc.edu ##
11855## ----------------------------------- ##
11856_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011857 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858 ;;
11859esac
Reid Spencera773bd52006-08-04 18:18:08 +000011860{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865 eval "$as_ac_Header=\$ac_header_preproc"
11866fi
Reid Spencera773bd52006-08-04 18:18:08 +000011867ac_res=`eval echo '${'$as_ac_Header'}'`
11868 { echo "$as_me:$LINENO: result: $ac_res" >&5
11869echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870
11871fi
11872if test `eval echo '${'$as_ac_Header'}'` = yes; then
11873 cat >>confdefs.h <<_ACEOF
11874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875_ACEOF
11876 break
11877fi
11878
11879done
11880
11881
11882
11883
11884for ac_func in strchr index
11885do
11886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011887{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11889if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891else
11892 cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11900#define $ac_func innocuous_$ac_func
11901
11902/* System header to define __stub macros and hopefully few prototypes,
11903 which can conflict with char $ac_func (); below.
11904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905 <limits.h> exists even on freestanding compilers. */
11906
11907#ifdef __STDC__
11908# include <limits.h>
11909#else
11910# include <assert.h>
11911#endif
11912
11913#undef $ac_func
11914
Reid Spencera773bd52006-08-04 18:18:08 +000011915/* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918#ifdef __cplusplus
11919extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921char $ac_func ();
11922/* The GNU C library defines this for functions which it implements
11923 to always fail with ENOSYS. Some functions are actually named
11924 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011925#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927#endif
11928
11929int
11930main ()
11931{
Reid Spencera773bd52006-08-04 18:18:08 +000011932return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933 ;
11934 return 0;
11935}
11936_ACEOF
11937rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011938if { (ac_try="$ac_link"
11939case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11942esac
11943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest$ac_exeext'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965esac
11966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971 eval "$as_ac_var=yes"
11972else
11973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
Reid Spencera773bd52006-08-04 18:18:08 +000011976 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977fi
Reid Spencera773bd52006-08-04 18:18:08 +000011978
Tanya Lattnercf067672008-01-17 05:57:22 +000011979rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980 conftest$ac_exeext conftest.$ac_ext
11981fi
Reid Spencera773bd52006-08-04 18:18:08 +000011982ac_res=`eval echo '${'$as_ac_var'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985if test `eval echo '${'$as_ac_var'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988_ACEOF
11989 break
11990fi
11991done
11992
11993
11994
11995for ac_func in strrchr rindex
11996do
11997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011998{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12000if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003 cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12011#define $ac_func innocuous_$ac_func
12012
12013/* System header to define __stub macros and hopefully few prototypes,
12014 which can conflict with char $ac_func (); below.
12015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016 <limits.h> exists even on freestanding compilers. */
12017
12018#ifdef __STDC__
12019# include <limits.h>
12020#else
12021# include <assert.h>
12022#endif
12023
12024#undef $ac_func
12025
Reid Spencera773bd52006-08-04 18:18:08 +000012026/* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029#ifdef __cplusplus
12030extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032char $ac_func ();
12033/* The GNU C library defines this for functions which it implements
12034 to always fail with ENOSYS. Some functions are actually named
12035 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012036#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012038#endif
12039
12040int
12041main ()
12042{
Reid Spencera773bd52006-08-04 18:18:08 +000012043return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012049if { (ac_try="$ac_link"
12050case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082 eval "$as_ac_var=yes"
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
Reid Spencera773bd52006-08-04 18:18:08 +000012087 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012088fi
Reid Spencera773bd52006-08-04 18:18:08 +000012089
Tanya Lattnercf067672008-01-17 05:57:22 +000012090rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091 conftest$ac_exeext conftest.$ac_ext
12092fi
Reid Spencera773bd52006-08-04 18:18:08 +000012093ac_res=`eval echo '${'$as_ac_var'}'`
12094 { echo "$as_me:$LINENO: result: $ac_res" >&5
12095echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096if test `eval echo '${'$as_ac_var'}'` = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12099_ACEOF
12100 break
12101fi
12102done
12103
12104
12105
12106for ac_func in memcpy bcopy
12107do
12108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012109{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12111if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113else
12114 cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h. */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */
12120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12122#define $ac_func innocuous_$ac_func
12123
12124/* System header to define __stub macros and hopefully few prototypes,
12125 which can conflict with char $ac_func (); below.
12126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12127 <limits.h> exists even on freestanding compilers. */
12128
12129#ifdef __STDC__
12130# include <limits.h>
12131#else
12132# include <assert.h>
12133#endif
12134
12135#undef $ac_func
12136
Reid Spencera773bd52006-08-04 18:18:08 +000012137/* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140#ifdef __cplusplus
12141extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143char $ac_func ();
12144/* The GNU C library defines this for functions which it implements
12145 to always fail with ENOSYS. Some functions are actually named
12146 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012147#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149#endif
12150
12151int
12152main ()
12153{
Reid Spencera773bd52006-08-04 18:18:08 +000012154return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155 ;
12156 return 0;
12157}
12158_ACEOF
12159rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012160if { (ac_try="$ac_link"
12161case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164esac
12165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012172 (exit $ac_status); } &&
12173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193 eval "$as_ac_var=yes"
12194else
12195 echo "$as_me: failed program was:" >&5
12196sed 's/^/| /' conftest.$ac_ext >&5
12197
Reid Spencera773bd52006-08-04 18:18:08 +000012198 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012199fi
Reid Spencera773bd52006-08-04 18:18:08 +000012200
Tanya Lattnercf067672008-01-17 05:57:22 +000012201rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012202 conftest$ac_exeext conftest.$ac_ext
12203fi
Reid Spencera773bd52006-08-04 18:18:08 +000012204ac_res=`eval echo '${'$as_ac_var'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207if test `eval echo '${'$as_ac_var'}'` = yes; then
12208 cat >>confdefs.h <<_ACEOF
12209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12210_ACEOF
12211 break
12212fi
12213done
12214
12215
12216
12217for ac_func in memmove strcmp
12218do
12219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012220{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225 cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h. */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h. */
12231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233#define $ac_func innocuous_$ac_func
12234
12235/* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12239
12240#ifdef __STDC__
12241# include <limits.h>
12242#else
12243# include <assert.h>
12244#endif
12245
12246#undef $ac_func
12247
Reid Spencera773bd52006-08-04 18:18:08 +000012248/* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251#ifdef __cplusplus
12252extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012253#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254char $ac_func ();
12255/* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012258#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260#endif
12261
12262int
12263main ()
12264{
Reid Spencera773bd52006-08-04 18:18:08 +000012265return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012266 ;
12267 return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012271if { (ac_try="$ac_link"
12272case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275esac
12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12285 { (case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_try") 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 eval "$as_ac_var=yes"
12305else
12306 echo "$as_me: failed program was:" >&5
12307sed 's/^/| /' conftest.$ac_ext >&5
12308
Reid Spencera773bd52006-08-04 18:18:08 +000012309 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012310fi
Reid Spencera773bd52006-08-04 18:18:08 +000012311
Tanya Lattnercf067672008-01-17 05:57:22 +000012312rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313 conftest$ac_exeext conftest.$ac_ext
12314fi
Reid Spencera773bd52006-08-04 18:18:08 +000012315ac_res=`eval echo '${'$as_ac_var'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012318if test `eval echo '${'$as_ac_var'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12321_ACEOF
12322
12323fi
12324done
12325
12326
12327
12328
12329for ac_func in closedir opendir readdir
12330do
12331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012332{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12334if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
12337 cat >conftest.$ac_ext <<_ACEOF
12338/* confdefs.h. */
12339_ACEOF
12340cat confdefs.h >>conftest.$ac_ext
12341cat >>conftest.$ac_ext <<_ACEOF
12342/* end confdefs.h. */
12343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12345#define $ac_func innocuous_$ac_func
12346
12347/* System header to define __stub macros and hopefully few prototypes,
12348 which can conflict with char $ac_func (); below.
12349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12350 <limits.h> exists even on freestanding compilers. */
12351
12352#ifdef __STDC__
12353# include <limits.h>
12354#else
12355# include <assert.h>
12356#endif
12357
12358#undef $ac_func
12359
Reid Spencera773bd52006-08-04 18:18:08 +000012360/* Override any GCC internal prototype to avoid an error.
12361 Use char because int might match the return type of a GCC
12362 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363#ifdef __cplusplus
12364extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366char $ac_func ();
12367/* The GNU C library defines this for functions which it implements
12368 to always fail with ENOSYS. Some functions are actually named
12369 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012370#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372#endif
12373
12374int
12375main ()
12376{
Reid Spencera773bd52006-08-04 18:18:08 +000012377return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012378 ;
12379 return 0;
12380}
12381_ACEOF
12382rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012383if { (ac_try="$ac_link"
12384case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12387esac
12388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390 ac_status=$?
12391 grep -v '^ *+' conftest.er1 >conftest.err
12392 rm -f conftest.er1
12393 cat conftest.err >&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012395 (exit $ac_status); } &&
12396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12397 { (case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_try") 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest$ac_exeext'
12407 { (case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_try") 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416 eval "$as_ac_var=yes"
12417else
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
Reid Spencera773bd52006-08-04 18:18:08 +000012421 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012422fi
Reid Spencera773bd52006-08-04 18:18:08 +000012423
Tanya Lattnercf067672008-01-17 05:57:22 +000012424rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425 conftest$ac_exeext conftest.$ac_ext
12426fi
Reid Spencera773bd52006-08-04 18:18:08 +000012427ac_res=`eval echo '${'$as_ac_var'}'`
12428 { echo "$as_me:$LINENO: result: $ac_res" >&5
12429echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430if test `eval echo '${'$as_ac_var'}'` = yes; then
12431 cat >>confdefs.h <<_ACEOF
12432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12433_ACEOF
12434
12435fi
12436done
12437
12438
Reid Spencera773bd52006-08-04 18:18:08 +000012439# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012441 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012442 case $enableval in
12443 yes) enable_shared=yes ;;
12444 no) enable_shared=no ;;
12445 *)
12446 enable_shared=no
12447 # Look at the argument we got. We use all the common list separators.
12448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12449 for pkg in $enableval; do
12450 IFS="$lt_save_ifs"
12451 if test "X$pkg" = "X$p"; then
12452 enable_shared=yes
12453 fi
12454 done
12455 IFS="$lt_save_ifs"
12456 ;;
12457 esac
12458else
12459 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012460fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461
Reid Spencera773bd52006-08-04 18:18:08 +000012462
12463# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012465 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466 case $enableval in
12467 yes) enable_static=yes ;;
12468 no) enable_static=no ;;
12469 *)
12470 enable_static=no
12471 # Look at the argument we got. We use all the common list separators.
12472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12473 for pkg in $enableval; do
12474 IFS="$lt_save_ifs"
12475 if test "X$pkg" = "X$p"; then
12476 enable_static=yes
12477 fi
12478 done
12479 IFS="$lt_save_ifs"
12480 ;;
12481 esac
12482else
12483 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012484fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485
Reid Spencera773bd52006-08-04 18:18:08 +000012486
12487# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012488if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012489 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490 case $enableval in
12491 yes) enable_fast_install=yes ;;
12492 no) enable_fast_install=no ;;
12493 *)
12494 enable_fast_install=no
12495 # Look at the argument we got. We use all the common list separators.
12496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12497 for pkg in $enableval; do
12498 IFS="$lt_save_ifs"
12499 if test "X$pkg" = "X$p"; then
12500 enable_fast_install=yes
12501 fi
12502 done
12503 IFS="$lt_save_ifs"
12504 ;;
12505 esac
12506else
12507 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012508fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509
Reid Spencera773bd52006-08-04 18:18:08 +000012510
12511{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12512echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513if test "${lt_cv_path_SED+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 # Loop through the user's path and test for sed and gsed.
12517# Then use that list of sed's as ones to test for truncation.
12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519for as_dir in $PATH
12520do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for lt_ac_prog in sed gsed; do
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12526 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12527 fi
12528 done
12529 done
12530done
12531lt_ac_max=0
12532lt_ac_count=0
12533# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12534# along with /bin/sed that truncates output.
12535for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012536 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012537 cat /dev/null > conftest.in
12538 lt_ac_count=0
12539 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12540 # Check for GNU sed and select it if it is found.
12541 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12542 lt_cv_path_SED=$lt_ac_sed
12543 break
12544 fi
12545 while true; do
12546 cat conftest.in conftest.in >conftest.tmp
12547 mv conftest.tmp conftest.in
12548 cp conftest.in conftest.nl
12549 echo >>conftest.nl
12550 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12551 cmp -s conftest.out conftest.nl || break
12552 # 10000 chars as input seems more than enough
12553 test $lt_ac_count -gt 10 && break
12554 lt_ac_count=`expr $lt_ac_count + 1`
12555 if test $lt_ac_count -gt $lt_ac_max; then
12556 lt_ac_max=$lt_ac_count
12557 lt_cv_path_SED=$lt_ac_sed
12558 fi
12559 done
12560done
12561
12562fi
12563
12564SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012565{ echo "$as_me:$LINENO: result: $SED" >&5
12566echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567
12568
Reid Spencera773bd52006-08-04 18:18:08 +000012569# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572else
12573 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012574fi
12575
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012576ac_prog=ld
12577if test "$GCC" = yes; then
12578 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012579 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12580echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012581 case $host in
12582 *-*-mingw*)
12583 # gcc leaves a trailing carriage return which upsets mingw
12584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12585 *)
12586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12587 esac
12588 case $ac_prog in
12589 # Accept absolute paths.
12590 [\\/]* | ?:[\\/]*)
12591 re_direlt='/[^/][^/]*/\.\./'
12592 # Canonicalize the pathname of ld
12593 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12595 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12596 done
12597 test -z "$LD" && LD="$ac_prog"
12598 ;;
12599 "")
12600 # If it fails, then pretend we aren't using GCC.
12601 ac_prog=ld
12602 ;;
12603 *)
12604 # If it is relative, then search for the first ld in PATH.
12605 with_gnu_ld=unknown
12606 ;;
12607 esac
12608elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012609 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12610echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012611else
Reid Spencera773bd52006-08-04 18:18:08 +000012612 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12613echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012614fi
12615if test "${lt_cv_path_LD+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618 if test -z "$LD"; then
12619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12620 for ac_dir in $PATH; do
12621 IFS="$lt_save_ifs"
12622 test -z "$ac_dir" && ac_dir=.
12623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12624 lt_cv_path_LD="$ac_dir/$ac_prog"
12625 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012626 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627 # Break only if it was the GNU/non-GNU ld that we prefer.
12628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12629 *GNU* | *'with BFD'*)
12630 test "$with_gnu_ld" != no && break
12631 ;;
12632 *)
12633 test "$with_gnu_ld" != yes && break
12634 ;;
12635 esac
12636 fi
12637 done
12638 IFS="$lt_save_ifs"
12639else
12640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12641fi
12642fi
12643
12644LD="$lt_cv_path_LD"
12645if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012646 { echo "$as_me:$LINENO: result: $LD" >&5
12647echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012648else
Reid Spencera773bd52006-08-04 18:18:08 +000012649 { echo "$as_me:$LINENO: result: no" >&5
12650echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012651fi
12652test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12653echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12654 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012655{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12656echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657if test "${lt_cv_prog_gnu_ld+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659else
Reid Spencera773bd52006-08-04 18:18:08 +000012660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661case `$LD -v 2>&1 </dev/null` in
12662*GNU* | *'with BFD'*)
12663 lt_cv_prog_gnu_ld=yes
12664 ;;
12665*)
12666 lt_cv_prog_gnu_ld=no
12667 ;;
12668esac
12669fi
Reid Spencera773bd52006-08-04 18:18:08 +000012670{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12671echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012672with_gnu_ld=$lt_cv_prog_gnu_ld
12673
12674
Reid Spencera773bd52006-08-04 18:18:08 +000012675{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12676echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012677if test "${lt_cv_ld_reload_flag+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679else
12680 lt_cv_ld_reload_flag='-r'
12681fi
Reid Spencera773bd52006-08-04 18:18:08 +000012682{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12683echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684reload_flag=$lt_cv_ld_reload_flag
12685case $reload_flag in
12686"" | " "*) ;;
12687*) reload_flag=" $reload_flag" ;;
12688esac
12689reload_cmds='$LD$reload_flag -o $output$reload_objs'
12690case $host_os in
12691 darwin*)
12692 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012693 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012694 else
12695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12696 fi
12697 ;;
12698esac
12699
Reid Spencera773bd52006-08-04 18:18:08 +000012700{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12701echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012702if test "${lt_cv_deplibs_check_method+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705 lt_cv_file_magic_cmd='$MAGIC_CMD'
12706lt_cv_file_magic_test_file=
12707lt_cv_deplibs_check_method='unknown'
12708# Need to set the preceding variable on all platforms that support
12709# interlibrary dependencies.
12710# 'none' -- dependencies not supported.
12711# `unknown' -- same as none, but documents that we really don't know.
12712# 'pass_all' -- all dependencies passed with no checks.
12713# 'test_compile' -- check by making test program.
12714# 'file_magic [[regex]]' -- check by looking for files in library path
12715# which responds to the $file_magic_cmd with a given extended regex.
12716# If you have `file' or equivalent on your system and you're not sure
12717# whether `pass_all' will *always* work, you probably want this one.
12718
12719case $host_os in
12720aix4* | aix5*)
12721 lt_cv_deplibs_check_method=pass_all
12722 ;;
12723
12724beos*)
12725 lt_cv_deplibs_check_method=pass_all
12726 ;;
12727
12728bsdi[45]*)
12729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12730 lt_cv_file_magic_cmd='/usr/bin/file -L'
12731 lt_cv_file_magic_test_file=/shlib/libc.so
12732 ;;
12733
12734cygwin*)
12735 # func_win32_libid is a shell function defined in ltmain.sh
12736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12737 lt_cv_file_magic_cmd='func_win32_libid'
12738 ;;
12739
12740mingw* | pw32*)
12741 # Base MSYS/MinGW do not provide the 'file' command needed by
12742 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12743 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12744 lt_cv_file_magic_cmd='$OBJDUMP -f'
12745 ;;
12746
12747darwin* | rhapsody*)
12748 lt_cv_deplibs_check_method=pass_all
12749 ;;
12750
Reid Spencera773bd52006-08-04 18:18:08 +000012751freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12753 case $host_cpu in
12754 i*86 )
12755 # Not sure whether the presence of OpenBSD here was a mistake.
12756 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012757 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 +000012758 lt_cv_file_magic_cmd=/usr/bin/file
12759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12760 ;;
12761 esac
12762 else
12763 lt_cv_deplibs_check_method=pass_all
12764 fi
12765 ;;
12766
12767gnu*)
12768 lt_cv_deplibs_check_method=pass_all
12769 ;;
12770
12771hpux10.20* | hpux11*)
12772 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012773 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012774 ia64*)
12775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12776 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12777 ;;
12778 hppa*64*)
12779 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]'
12780 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12781 ;;
12782 *)
12783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12785 ;;
12786 esac
12787 ;;
12788
Reid Spencera773bd52006-08-04 18:18:08 +000012789interix3*)
12790 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12792 ;;
12793
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012794irix5* | irix6* | nonstopux*)
12795 case $LD in
12796 *-32|*"-32 ") libmagic=32-bit;;
12797 *-n32|*"-n32 ") libmagic=N32;;
12798 *-64|*"-64 ") libmagic=64-bit;;
12799 *) libmagic=never-match;;
12800 esac
12801 lt_cv_deplibs_check_method=pass_all
12802 ;;
12803
12804# This must be Linux ELF.
12805linux*)
12806 lt_cv_deplibs_check_method=pass_all
12807 ;;
12808
12809netbsd*)
12810 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12812 else
12813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12814 fi
12815 ;;
12816
12817newos6*)
12818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12819 lt_cv_file_magic_cmd=/usr/bin/file
12820 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12821 ;;
12822
12823nto-qnx*)
12824 lt_cv_deplibs_check_method=unknown
12825 ;;
12826
12827openbsd*)
12828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12830 else
12831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12832 fi
12833 ;;
12834
12835osf3* | osf4* | osf5*)
12836 lt_cv_deplibs_check_method=pass_all
12837 ;;
12838
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012839solaris*)
12840 lt_cv_deplibs_check_method=pass_all
12841 ;;
12842
Reid Spencera773bd52006-08-04 18:18:08 +000012843sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844 case $host_vendor in
12845 motorola)
12846 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]'
12847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12848 ;;
12849 ncr)
12850 lt_cv_deplibs_check_method=pass_all
12851 ;;
12852 sequent)
12853 lt_cv_file_magic_cmd='/bin/file'
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12855 ;;
12856 sni)
12857 lt_cv_file_magic_cmd='/bin/file'
12858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12859 lt_cv_file_magic_test_file=/lib/libc.so
12860 ;;
12861 siemens)
12862 lt_cv_deplibs_check_method=pass_all
12863 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012864 pc)
12865 lt_cv_deplibs_check_method=pass_all
12866 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012867 esac
12868 ;;
12869
Reid Spencera773bd52006-08-04 18:18:08 +000012870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012871 lt_cv_deplibs_check_method=pass_all
12872 ;;
12873esac
12874
12875fi
Reid Spencera773bd52006-08-04 18:18:08 +000012876{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12877echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012878file_magic_cmd=$lt_cv_file_magic_cmd
12879deplibs_check_method=$lt_cv_deplibs_check_method
12880test -z "$deplibs_check_method" && deplibs_check_method=unknown
12881
12882
12883
12884# If no C compiler was specified, use CC.
12885LTCC=${LTCC-"$CC"}
12886
Reid Spencera773bd52006-08-04 18:18:08 +000012887# If no C compiler flags were specified, use CFLAGS.
12888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12889
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012890# Allow CC to be a program name with arguments.
12891compiler=$CC
12892
Reid Spencera773bd52006-08-04 18:18:08 +000012893# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012895 enableval=$enable_libtool_lock;
12896fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012897
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012898test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12899
12900# Some flags need to be propagated to the compiler or linker for good
12901# libtool support.
12902case $host in
12903ia64-*-hpux*)
12904 # Find out which ABI we are using.
12905 echo 'int i;' > conftest.$ac_ext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; then
12911 case `/usr/bin/file conftest.$ac_objext` in
12912 *ELF-32*)
12913 HPUX_IA64_MODE="32"
12914 ;;
12915 *ELF-64*)
12916 HPUX_IA64_MODE="64"
12917 ;;
12918 esac
12919 fi
12920 rm -rf conftest*
12921 ;;
12922*-*-irix6*)
12923 # Find out which ABI we are using.
Jim Grosbach673612e2008-10-02 22:56:44 +000012924 echo '#line 12924 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; then
12930 if test "$lt_cv_prog_gnu_ld" = yes; then
12931 case `/usr/bin/file conftest.$ac_objext` in
12932 *32-bit*)
12933 LD="${LD-ld} -melf32bsmip"
12934 ;;
12935 *N32*)
12936 LD="${LD-ld} -melf32bmipn32"
12937 ;;
12938 *64-bit*)
12939 LD="${LD-ld} -melf64bmip"
12940 ;;
12941 esac
12942 else
12943 case `/usr/bin/file conftest.$ac_objext` in
12944 *32-bit*)
12945 LD="${LD-ld} -32"
12946 ;;
12947 *N32*)
12948 LD="${LD-ld} -n32"
12949 ;;
12950 *64-bit*)
12951 LD="${LD-ld} -64"
12952 ;;
12953 esac
12954 fi
12955 fi
12956 rm -rf conftest*
12957 ;;
12958
12959x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12960 # Find out which ABI we are using.
12961 echo 'int i;' > conftest.$ac_ext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012967 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012968 *32-bit*)
12969 case $host in
12970 x86_64-*linux*)
12971 LD="${LD-ld} -m elf_i386"
12972 ;;
12973 ppc64-*linux*|powerpc64-*linux*)
12974 LD="${LD-ld} -m elf32ppclinux"
12975 ;;
12976 s390x-*linux*)
12977 LD="${LD-ld} -m elf_s390"
12978 ;;
12979 sparc64-*linux*)
12980 LD="${LD-ld} -m elf32_sparc"
12981 ;;
12982 esac
12983 ;;
12984 *64-bit*)
12985 case $host in
12986 x86_64-*linux*)
12987 LD="${LD-ld} -m elf_x86_64"
12988 ;;
12989 ppc*-*linux*|powerpc*-*linux*)
12990 LD="${LD-ld} -m elf64ppc"
12991 ;;
12992 s390*-*linux*)
12993 LD="${LD-ld} -m elf64_s390"
12994 ;;
12995 sparc*-*linux*)
12996 LD="${LD-ld} -m elf64_sparc"
12997 ;;
12998 esac
12999 ;;
13000 esac
13001 fi
13002 rm -rf conftest*
13003 ;;
13004
13005*-*-sco3.2v5*)
13006 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13007 SAVE_CFLAGS="$CFLAGS"
13008 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013009 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13010echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011if test "${lt_cv_cc_needs_belf+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013else
13014 ac_ext=c
13015ac_cpp='$CPP $CPPFLAGS'
13016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13018ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019
13020 cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h. */
13026
Reid Spencera773bd52006-08-04 18:18:08 +000013027int
13028main ()
13029{
13030
13031 ;
13032 return 0;
13033}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013034_ACEOF
13035rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013036if { (ac_try="$ac_link"
13037case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063esac
13064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013069 lt_cv_cc_needs_belf=yes
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
Reid Spencera773bd52006-08-04 18:18:08 +000013074 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013075fi
Reid Spencera773bd52006-08-04 18:18:08 +000013076
Tanya Lattnercf067672008-01-17 05:57:22 +000013077rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013078 conftest$ac_exeext conftest.$ac_ext
13079 ac_ext=c
13080ac_cpp='$CPP $CPPFLAGS'
13081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13083ac_compiler_gnu=$ac_cv_c_compiler_gnu
13084
13085fi
Reid Spencera773bd52006-08-04 18:18:08 +000013086{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13087echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13090 CFLAGS="$SAVE_CFLAGS"
13091 fi
13092 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013093sparc*-*solaris*)
13094 # Find out which ABI we are using.
13095 echo 'int i;' > conftest.$ac_ext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; then
13101 case `/usr/bin/file conftest.o` in
13102 *64-bit*)
13103 case $lt_cv_prog_gnu_ld in
13104 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13105 *) LD="${LD-ld} -64" ;;
13106 esac
13107 ;;
13108 esac
13109 fi
13110 rm -rf conftest*
13111 ;;
13112
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013113
13114esac
13115
13116need_locks="$enable_libtool_lock"
13117
13118
Reid Spencer2706f8c2004-09-19 23:53:36 +000013119
13120
13121if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13122 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13123 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013124 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013125ac_cpp='$CXXCPP $CPPFLAGS'
13126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013129{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13130echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013131if test -z "$CXXCPP"; then
13132 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
John Criswell47fdd832003-07-14 16:52:07 +000013135 # Double quotes because CXXCPP needs to be expanded
13136 for CXXCPP in "$CXX -E" "/lib/cpp"
13137 do
13138 ac_preproc_ok=false
13139for ac_cxx_preproc_warn_flag in '' yes
13140do
13141 # Use a header file that comes with gcc, so configuring glibc
13142 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13144 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013145 # On the NeXT, cc -E runs the code through the compiler's parser,
13146 # not just through cpp. "Syntax error" is here to catch this case.
13147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153#ifdef __STDC__
13154# include <limits.h>
13155#else
13156# include <assert.h>
13157#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013158 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013159_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013160if { (ac_try="$ac_cpp conftest.$ac_ext"
13161case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164esac
13165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013167 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013168 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013172 (exit $ac_status); } >/dev/null; then
13173 if test -s conftest.err; then
13174 ac_cpp_err=$ac_cxx_preproc_warn_flag
13175 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13176 else
13177 ac_cpp_err=
13178 fi
13179else
13180 ac_cpp_err=yes
13181fi
13182if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013183 :
13184else
13185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013186sed 's/^/| /' conftest.$ac_ext >&5
13187
John Criswell47fdd832003-07-14 16:52:07 +000013188 # Broken: fails on valid input.
13189continue
13190fi
Reid Spencera773bd52006-08-04 18:18:08 +000013191
John Criswell47fdd832003-07-14 16:52:07 +000013192rm -f conftest.err conftest.$ac_ext
13193
Reid Spencera773bd52006-08-04 18:18:08 +000013194 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013195 # can be detected and how.
13196 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013202#include <ac_nonexistent.h>
13203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013204if { (ac_try="$ac_cpp conftest.$ac_ext"
13205case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13208esac
13209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013211 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013212 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013216 (exit $ac_status); } >/dev/null; then
13217 if test -s conftest.err; then
13218 ac_cpp_err=$ac_cxx_preproc_warn_flag
13219 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13220 else
13221 ac_cpp_err=
13222 fi
13223else
13224 ac_cpp_err=yes
13225fi
13226if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013227 # Broken: success on invalid input.
13228continue
13229else
13230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013231sed 's/^/| /' conftest.$ac_ext >&5
13232
John Criswell47fdd832003-07-14 16:52:07 +000013233 # Passes both tests.
13234ac_preproc_ok=:
13235break
13236fi
Reid Spencera773bd52006-08-04 18:18:08 +000013237
John Criswell47fdd832003-07-14 16:52:07 +000013238rm -f conftest.err conftest.$ac_ext
13239
13240done
13241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13242rm -f conftest.err conftest.$ac_ext
13243if $ac_preproc_ok; then
13244 break
John Criswell7a73b802003-06-30 21:59:07 +000013245fi
13246
John Criswell47fdd832003-07-14 16:52:07 +000013247 done
13248 ac_cv_prog_CXXCPP=$CXXCPP
13249
13250fi
13251 CXXCPP=$ac_cv_prog_CXXCPP
13252else
13253 ac_cv_prog_CXXCPP=$CXXCPP
13254fi
Reid Spencera773bd52006-08-04 18:18:08 +000013255{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13256echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013257ac_preproc_ok=false
13258for ac_cxx_preproc_warn_flag in '' yes
13259do
13260 # Use a header file that comes with gcc, so configuring glibc
13261 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13263 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013264 # On the NeXT, cc -E runs the code through the compiler's parser,
13265 # not just through cpp. "Syntax error" is here to catch this case.
13266 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272#ifdef __STDC__
13273# include <limits.h>
13274#else
13275# include <assert.h>
13276#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013277 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013278_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013279if { (ac_try="$ac_cpp conftest.$ac_ext"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013286 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013287 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013291 (exit $ac_status); } >/dev/null; then
13292 if test -s conftest.err; then
13293 ac_cpp_err=$ac_cxx_preproc_warn_flag
13294 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13295 else
13296 ac_cpp_err=
13297 fi
13298else
13299 ac_cpp_err=yes
13300fi
13301if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013302 :
13303else
13304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013305sed 's/^/| /' conftest.$ac_ext >&5
13306
John Criswell47fdd832003-07-14 16:52:07 +000013307 # Broken: fails on valid input.
13308continue
13309fi
Reid Spencera773bd52006-08-04 18:18:08 +000013310
John Criswell47fdd832003-07-14 16:52:07 +000013311rm -f conftest.err conftest.$ac_ext
13312
Reid Spencera773bd52006-08-04 18:18:08 +000013313 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013314 # can be detected and how.
13315 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013321#include <ac_nonexistent.h>
13322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013323if { (ac_try="$ac_cpp conftest.$ac_ext"
13324case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013330 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013331 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013335 (exit $ac_status); } >/dev/null; then
13336 if test -s conftest.err; then
13337 ac_cpp_err=$ac_cxx_preproc_warn_flag
13338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13339 else
13340 ac_cpp_err=
13341 fi
13342else
13343 ac_cpp_err=yes
13344fi
13345if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013346 # Broken: success on invalid input.
13347continue
13348else
13349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013350sed 's/^/| /' conftest.$ac_ext >&5
13351
John Criswell47fdd832003-07-14 16:52:07 +000013352 # Passes both tests.
13353ac_preproc_ok=:
13354break
13355fi
Reid Spencera773bd52006-08-04 18:18:08 +000013356
John Criswell47fdd832003-07-14 16:52:07 +000013357rm -f conftest.err conftest.$ac_ext
13358
13359done
13360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13361rm -f conftest.err conftest.$ac_ext
13362if $ac_preproc_ok; then
13363 :
13364else
John Criswell0c38eaf2003-09-10 15:17:25 +000013365 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13366See \`config.log' for more details." >&5
13367echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13368See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013369 { (exit 1); exit 1; }; }
13370fi
13371
Reid Spencera773bd52006-08-04 18:18:08 +000013372ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013373ac_cpp='$CXXCPP $CPPFLAGS'
13374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13377
Reid Spencer2706f8c2004-09-19 23:53:36 +000013378fi
13379
John Criswell47fdd832003-07-14 16:52:07 +000013380
13381ac_ext=f
13382ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13383ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13385if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013386 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 +000013387 do
13388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013392if test "${ac_cv_prog_F77+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 if test -n "$F77"; then
13396 ac_cv_prog_F77="$F77" # Let the user override the test.
13397else
13398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $PATH
13400do
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013404 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 +000013405 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13408 fi
13409done
13410done
Reid Spencera773bd52006-08-04 18:18:08 +000013411IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013412
13413fi
13414fi
13415F77=$ac_cv_prog_F77
13416if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013417 { echo "$as_me:$LINENO: result: $F77" >&5
13418echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013419else
Reid Spencera773bd52006-08-04 18:18:08 +000013420 { echo "$as_me:$LINENO: result: no" >&5
13421echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013422fi
13423
Reid Spencera773bd52006-08-04 18:18:08 +000013424
John Criswell47fdd832003-07-14 16:52:07 +000013425 test -n "$F77" && break
13426 done
13427fi
13428if test -z "$F77"; then
13429 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013430 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 +000013431do
13432 # Extract the first word of "$ac_prog", so it can be a program name with args.
13433set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013436if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438else
13439 if test -n "$ac_ct_F77"; then
13440 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13441else
13442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443for as_dir in $PATH
13444do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013448 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 +000013449 ac_cv_prog_ac_ct_F77="$ac_prog"
13450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 break 2
13452 fi
13453done
13454done
Reid Spencera773bd52006-08-04 18:18:08 +000013455IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013456
13457fi
13458fi
13459ac_ct_F77=$ac_cv_prog_ac_ct_F77
13460if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013461 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13462echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013463else
Reid Spencera773bd52006-08-04 18:18:08 +000013464 { echo "$as_me:$LINENO: result: no" >&5
13465echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013466fi
13467
Reid Spencera773bd52006-08-04 18:18:08 +000013468
John Criswell47fdd832003-07-14 16:52:07 +000013469 test -n "$ac_ct_F77" && break
13470done
13471
Reid Spencera773bd52006-08-04 18:18:08 +000013472 if test "x$ac_ct_F77" = x; then
13473 F77=""
13474 else
13475 case $cross_compiling:$ac_tool_warned in
13476yes:)
13477{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13478whose name does not start with the host triplet. If you think this
13479configuration is useful to you, please write to autoconf@gnu.org." >&5
13480echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13481whose name does not start with the host triplet. If you think this
13482configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13483ac_tool_warned=yes ;;
13484esac
13485 F77=$ac_ct_F77
13486 fi
John Criswell47fdd832003-07-14 16:52:07 +000013487fi
13488
13489
13490# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013491echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013492ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013493{ (ac_try="$ac_compiler --version >&5"
13494case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497esac
13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013503{ (ac_try="$ac_compiler -v >&5"
13504case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013513{ (ac_try="$ac_compiler -V >&5"
13514case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013523rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013524
13525# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013526# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013527ac_save_ext=$ac_ext
13528ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013529{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13530echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013531if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533else
13534 cat >conftest.$ac_ext <<_ACEOF
13535 program main
13536#ifndef __GNUC__
13537 choke me
13538#endif
13539
13540 end
13541_ACEOF
13542rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013543if { (ac_try="$ac_compile"
13544case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570esac
13571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013576 ac_compiler_gnu=yes
13577else
13578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013579sed 's/^/| /' conftest.$ac_ext >&5
13580
Reid Spencera773bd52006-08-04 18:18:08 +000013581 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013582fi
Reid Spencera773bd52006-08-04 18:18:08 +000013583
13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013585ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13586
13587fi
Reid Spencera773bd52006-08-04 18:18:08 +000013588{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13589echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013590ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013591ac_test_FFLAGS=${FFLAGS+set}
13592ac_save_FFLAGS=$FFLAGS
13593FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013594{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13595echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013596if test "${ac_cv_prog_f77_g+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598else
13599 FFLAGS=-g
13600cat >conftest.$ac_ext <<_ACEOF
13601 program main
13602
13603 end
13604_ACEOF
13605rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013606if { (ac_try="$ac_compile"
13607case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13623esac
13624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest.$ac_objext'
13630 { (case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633esac
13634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_try") 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013639 ac_cv_prog_f77_g=yes
13640else
13641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013642sed 's/^/| /' conftest.$ac_ext >&5
13643
Reid Spencera773bd52006-08-04 18:18:08 +000013644 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013645fi
Reid Spencera773bd52006-08-04 18:18:08 +000013646
13647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013648
13649fi
Reid Spencera773bd52006-08-04 18:18:08 +000013650{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13651echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013652if test "$ac_test_FFLAGS" = set; then
13653 FFLAGS=$ac_save_FFLAGS
13654elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013655 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013656 FFLAGS="-g -O2"
13657 else
13658 FFLAGS="-g"
13659 fi
13660else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013661 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013662 FFLAGS="-O2"
13663 else
13664 FFLAGS=
13665 fi
13666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013667
13668G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013669ac_ext=c
13670ac_cpp='$CPP $CPPFLAGS'
13671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673ac_compiler_gnu=$ac_cv_c_compiler_gnu
13674
13675
13676
13677# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13678
13679# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013680{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13681echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013682if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013686 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013687
13688 case $build_os in
13689 msdosdjgpp*)
13690 # On DJGPP, this test can blow up pretty badly due to problems in libc
13691 # (any single argument exceeding 2000 bytes causes a buffer overrun
13692 # during glob expansion). Even if it were fixed, the result of this
13693 # check would be larger than it should be.
13694 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13695 ;;
13696
13697 gnu*)
13698 # Under GNU Hurd, this test is not required because there is
13699 # no limit to the length of command line arguments.
13700 # Libtool will interpret -1 as no limit whatsoever
13701 lt_cv_sys_max_cmd_len=-1;
13702 ;;
13703
13704 cygwin* | mingw*)
13705 # On Win9x/ME, this test blows up -- it succeeds, but takes
13706 # about 5 minutes as the teststring grows exponentially.
13707 # Worse, since 9x/ME are not pre-emptively multitasking,
13708 # you end up with a "frozen" computer, even though with patience
13709 # the test eventually succeeds (with a max line length of 256k).
13710 # Instead, let's just punt: use the minimum linelength reported by
13711 # all of the supported platforms: 8192 (on NT/2K/XP).
13712 lt_cv_sys_max_cmd_len=8192;
13713 ;;
13714
Reid Spencer2706f8c2004-09-19 23:53:36 +000013715 amigaos*)
13716 # On AmigaOS with pdksh, this test takes hours, literally.
13717 # So we just punt and use a minimum line length of 8192.
13718 lt_cv_sys_max_cmd_len=8192;
13719 ;;
13720
Reid Spencera773bd52006-08-04 18:18:08 +000013721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722 # This has been around since 386BSD, at least. Likely further.
13723 if test -x /sbin/sysctl; then
13724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13725 elif test -x /usr/sbin/sysctl; then
13726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13727 else
Reid Spencera773bd52006-08-04 18:18:08 +000013728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013729 fi
13730 # And add a safety zone
13731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013733 ;;
13734
Reid Spencera773bd52006-08-04 18:18:08 +000013735 interix*)
13736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13737 lt_cv_sys_max_cmd_len=196608
13738 ;;
13739
13740 osf*)
13741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13743 # nice to cause kernel panics so lets avoid the loop below.
13744 # First set a reasonable default.
13745 lt_cv_sys_max_cmd_len=16384
13746 #
13747 if test -x /sbin/sysconfig; then
13748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13749 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13750 esac
13751 fi
13752 ;;
13753 sco3.2v5*)
13754 lt_cv_sys_max_cmd_len=102400
13755 ;;
13756 sysv5* | sco5v6* | sysv4.2uw2*)
13757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13758 if test -n "$kargmax"; then
13759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13760 else
13761 lt_cv_sys_max_cmd_len=32768
13762 fi
13763 ;;
13764 *)
John Criswell47fdd832003-07-14 16:52:07 +000013765 # If test is not a shell built-in, we'll probably end up computing a
13766 # maximum length that is only half of the actual maximum length, but
13767 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13769 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13770 = "XX$teststring") >/dev/null 2>&1 &&
13771 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013772 lt_cv_sys_max_cmd_len=$new_result &&
13773 test $i != 17 # 1/2 MB should be enough
13774 do
13775 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013776 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013777 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013778 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013779 # Add a significant safety factor because C++ compilers can tack on massive
13780 # amounts of additional arguments before passing them to the linker.
13781 # It appears as though 1/2 is a usable value.
13782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13783 ;;
13784 esac
13785
13786fi
13787
13788if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013789 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13790echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013791else
Reid Spencera773bd52006-08-04 18:18:08 +000013792 { echo "$as_me:$LINENO: result: none" >&5
13793echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013794fi
13795
13796
13797
13798
13799# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013800{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13801echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013802if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805
13806# These are sane defaults that work on at least a few old systems.
13807# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13808
13809# Character class describing NM global symbol codes.
13810symcode='[BCDEGRST]'
13811
13812# Regexp to match symbols that can be accessed directly from C.
13813sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13814
John Criswell47fdd832003-07-14 16:52:07 +000013815# Transform an extracted symbol line into a proper C declaration
13816lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13817
13818# Transform an extracted symbol line into symbol name and symbol address
13819lt_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'"
13820
13821# Define system-specific variables.
13822case $host_os in
13823aix*)
13824 symcode='[BCDT]'
13825 ;;
13826cygwin* | mingw* | pw32*)
13827 symcode='[ABCDGISTW]'
13828 ;;
13829hpux*) # Its linker distinguishes data from code symbols
13830 if test "$host_cpu" = ia64; then
13831 symcode='[ABCDEGRST]'
13832 fi
13833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13834 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'"
13835 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013836linux*)
13837 if test "$host_cpu" = ia64; then
13838 symcode='[ABCDGIRSTW]'
13839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13840 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'"
13841 fi
13842 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013843irix* | nonstopux*)
13844 symcode='[BCDEGRST]'
13845 ;;
13846osf*)
13847 symcode='[BCDEGQRST]'
13848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013849solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013850 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013851 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013852sco3.2v5*)
13853 symcode='[DT]'
13854 ;;
13855sysv4.2uw2*)
13856 symcode='[DT]'
13857 ;;
13858sysv5* | sco5v6* | unixware* | OpenUNIX*)
13859 symcode='[ABDT]'
13860 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013861sysv4)
13862 symcode='[DFNSTU]'
13863 ;;
13864esac
13865
13866# Handle CRLF in mingw tool chain
13867opt_cr=
13868case $build_os in
13869mingw*)
13870 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13871 ;;
13872esac
13873
13874# If we're using GNU nm, then use its standard symbol codes.
13875case `$NM -V 2>&1` in
13876*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013877 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013878esac
13879
13880# Try without a prefix undercore, then with it.
13881for ac_symprfx in "" "_"; do
13882
Reid Spencera773bd52006-08-04 18:18:08 +000013883 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13884 symxfrm="\\1 $ac_symprfx\\2 \\2"
13885
John Criswell47fdd832003-07-14 16:52:07 +000013886 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013887 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 +000013888
13889 # Check to see that the pipe works correctly.
13890 pipe_works=no
13891
13892 rm -f conftest*
13893 cat > conftest.$ac_ext <<EOF
13894#ifdef __cplusplus
13895extern "C" {
13896#endif
13897char nm_test_var;
13898void nm_test_func(){}
13899#ifdef __cplusplus
13900}
13901#endif
13902int main(){nm_test_var='a';nm_test_func();return(0);}
13903EOF
13904
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; then
13910 # Now try to grab the symbols.
13911 nlist=conftest.nm
13912 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13913 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } && test -s "$nlist"; then
13917 # Try sorting and uniquifying the output.
13918 if sort "$nlist" | uniq > "$nlist"T; then
13919 mv -f "$nlist"T "$nlist"
13920 else
13921 rm -f "$nlist"T
13922 fi
13923
13924 # Make sure that we snagged all the symbols we need.
13925 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13926 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13927 cat <<EOF > conftest.$ac_ext
13928#ifdef __cplusplus
13929extern "C" {
13930#endif
13931
13932EOF
13933 # Now generate the symbol file.
13934 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13935
13936 cat <<EOF >> conftest.$ac_ext
13937#if defined (__STDC__) && __STDC__
13938# define lt_ptr_t void *
13939#else
13940# define lt_ptr_t char *
13941# define const
13942#endif
13943
13944/* The mapping between symbol names and symbols. */
13945const struct {
13946 const char *name;
13947 lt_ptr_t address;
13948}
13949lt_preloaded_symbols[] =
13950{
13951EOF
13952 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13953 cat <<\EOF >> conftest.$ac_ext
13954 {0, (lt_ptr_t) 0}
13955};
13956
13957#ifdef __cplusplus
13958}
13959#endif
13960EOF
13961 # Now try linking the two files.
13962 mv conftest.$ac_objext conftstm.$ac_objext
13963 lt_save_LIBS="$LIBS"
13964 lt_save_CFLAGS="$CFLAGS"
13965 LIBS="conftstm.$ac_objext"
13966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13968 (eval $ac_link) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13972 pipe_works=yes
13973 fi
13974 LIBS="$lt_save_LIBS"
13975 CFLAGS="$lt_save_CFLAGS"
13976 else
13977 echo "cannot find nm_test_func in $nlist" >&5
13978 fi
13979 else
13980 echo "cannot find nm_test_var in $nlist" >&5
13981 fi
13982 else
13983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13984 fi
13985 else
13986 echo "$progname: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13988 fi
13989 rm -f conftest* conftst*
13990
13991 # Do not use the global_symbol_pipe unless it works.
13992 if test "$pipe_works" = yes; then
13993 break
13994 else
13995 lt_cv_sys_global_symbol_pipe=
13996 fi
13997done
13998
13999fi
14000
14001if test -z "$lt_cv_sys_global_symbol_pipe"; then
14002 lt_cv_sys_global_symbol_to_cdecl=
14003fi
14004if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014005 { echo "$as_me:$LINENO: result: failed" >&5
14006echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014007else
Reid Spencera773bd52006-08-04 18:18:08 +000014008 { echo "$as_me:$LINENO: result: ok" >&5
14009echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014010fi
14011
Reid Spencera773bd52006-08-04 18:18:08 +000014012{ echo "$as_me:$LINENO: checking for objdir" >&5
14013echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014014if test "${lt_cv_objdir+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016else
14017 rm -f .libs 2>/dev/null
14018mkdir .libs 2>/dev/null
14019if test -d .libs; then
14020 lt_cv_objdir=.libs
14021else
14022 # MS-DOS does not allow filenames that begin with a dot.
14023 lt_cv_objdir=_libs
14024fi
14025rmdir .libs 2>/dev/null
14026fi
Reid Spencera773bd52006-08-04 18:18:08 +000014027{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14028echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014029objdir=$lt_cv_objdir
14030
14031
14032
14033
14034
14035case $host_os in
14036aix3*)
14037 # AIX sometimes has problems with the GCC collect2 program. For some
14038 # reason, if we set the COLLECT_NAMES environment variable, the problems
14039 # vanish in a puff of smoke.
14040 if test "X${COLLECT_NAMES+set}" != Xset; then
14041 COLLECT_NAMES=
14042 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014043 fi
14044 ;;
14045esac
14046
John Criswell47fdd832003-07-14 16:52:07 +000014047# Sed substitution that helps us do robust quoting. It backslashifies
14048# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014049Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014050sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14051
14052# Same as above, but do not quote variable references.
14053double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14054
14055# Sed substitution to delay expansion of an escaped shell variable in a
14056# double_quote_subst'ed string.
14057delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14058
14059# Sed substitution to avoid accidental globbing in evaled expressions
14060no_glob_subst='s/\*/\\\*/g'
14061
14062# Constants:
14063rm="rm -f"
14064
14065# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014066default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014067can_build_shared=yes
14068
Reid Spencera773bd52006-08-04 18:18:08 +000014069# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014070# which needs '.lib').
14071libext=a
14072ltmain="$ac_aux_dir/ltmain.sh"
14073ofile="$default_ofile"
14074with_gnu_ld="$lt_cv_prog_gnu_ld"
14075
14076if test -n "$ac_tool_prefix"; then
14077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14078set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014081if test "${ac_cv_prog_AR+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 if test -n "$AR"; then
14085 ac_cv_prog_AR="$AR" # Let the user override the test.
14086else
14087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088for as_dir in $PATH
14089do
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014093 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 +000014094 ac_cv_prog_AR="${ac_tool_prefix}ar"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14097 fi
14098done
14099done
Reid Spencera773bd52006-08-04 18:18:08 +000014100IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014101
14102fi
14103fi
14104AR=$ac_cv_prog_AR
14105if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014106 { echo "$as_me:$LINENO: result: $AR" >&5
14107echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014108else
Reid Spencera773bd52006-08-04 18:18:08 +000014109 { echo "$as_me:$LINENO: result: no" >&5
14110echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014111fi
14112
Reid Spencera773bd52006-08-04 18:18:08 +000014113
John Criswell47fdd832003-07-14 16:52:07 +000014114fi
14115if test -z "$ac_cv_prog_AR"; then
14116 ac_ct_AR=$AR
14117 # Extract the first word of "ar", so it can be a program name with args.
14118set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014121if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124 if test -n "$ac_ct_AR"; then
14125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14126else
14127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128for as_dir in $PATH
14129do
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014133 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 +000014134 ac_cv_prog_ac_ct_AR="ar"
14135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 break 2
14137 fi
14138done
14139done
Reid Spencera773bd52006-08-04 18:18:08 +000014140IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014141
John Criswell47fdd832003-07-14 16:52:07 +000014142fi
14143fi
14144ac_ct_AR=$ac_cv_prog_ac_ct_AR
14145if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014146 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14147echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014148else
Reid Spencera773bd52006-08-04 18:18:08 +000014149 { echo "$as_me:$LINENO: result: no" >&5
14150echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014151fi
14152
Reid Spencera773bd52006-08-04 18:18:08 +000014153 if test "x$ac_ct_AR" = x; then
14154 AR="false"
14155 else
14156 case $cross_compiling:$ac_tool_warned in
14157yes:)
14158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14159whose name does not start with the host triplet. If you think this
14160configuration is useful to you, please write to autoconf@gnu.org." >&5
14161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14162whose name does not start with the host triplet. If you think this
14163configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14164ac_tool_warned=yes ;;
14165esac
14166 AR=$ac_ct_AR
14167 fi
John Criswell47fdd832003-07-14 16:52:07 +000014168else
14169 AR="$ac_cv_prog_AR"
14170fi
14171
John Criswell7a73b802003-06-30 21:59:07 +000014172if test -n "$ac_tool_prefix"; then
14173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14174set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014177if test "${ac_cv_prog_RANLIB+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180 if test -n "$RANLIB"; then
14181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14182else
14183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184for as_dir in $PATH
14185do
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014189 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 +000014190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194done
14195done
Reid Spencera773bd52006-08-04 18:18:08 +000014196IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014197
14198fi
14199fi
14200RANLIB=$ac_cv_prog_RANLIB
14201if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014202 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14203echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014204else
Reid Spencera773bd52006-08-04 18:18:08 +000014205 { echo "$as_me:$LINENO: result: no" >&5
14206echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014207fi
14208
Reid Spencera773bd52006-08-04 18:18:08 +000014209
John Criswell7a73b802003-06-30 21:59:07 +000014210fi
14211if test -z "$ac_cv_prog_RANLIB"; then
14212 ac_ct_RANLIB=$RANLIB
14213 # Extract the first word of "ranlib", so it can be a program name with args.
14214set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 if test -n "$ac_ct_RANLIB"; then
14221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14222else
14223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224for as_dir in $PATH
14225do
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014229 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 +000014230 ac_cv_prog_ac_ct_RANLIB="ranlib"
14231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234done
14235done
Reid Spencera773bd52006-08-04 18:18:08 +000014236IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014237
John Criswell7a73b802003-06-30 21:59:07 +000014238fi
14239fi
14240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14241if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014242 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14243echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014244else
Reid Spencera773bd52006-08-04 18:18:08 +000014245 { echo "$as_me:$LINENO: result: no" >&5
14246echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014247fi
14248
Reid Spencera773bd52006-08-04 18:18:08 +000014249 if test "x$ac_ct_RANLIB" = x; then
14250 RANLIB=":"
14251 else
14252 case $cross_compiling:$ac_tool_warned in
14253yes:)
14254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14255whose name does not start with the host triplet. If you think this
14256configuration is useful to you, please write to autoconf@gnu.org." >&5
14257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14258whose name does not start with the host triplet. If you think this
14259configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14260ac_tool_warned=yes ;;
14261esac
14262 RANLIB=$ac_ct_RANLIB
14263 fi
John Criswell7a73b802003-06-30 21:59:07 +000014264else
14265 RANLIB="$ac_cv_prog_RANLIB"
14266fi
14267
14268if test -n "$ac_tool_prefix"; then
14269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14270set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014273if test "${ac_cv_prog_STRIP+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275else
14276 if test -n "$STRIP"; then
14277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14278else
14279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280for as_dir in $PATH
14281do
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014285 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 +000014286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14289 fi
14290done
14291done
Reid Spencera773bd52006-08-04 18:18:08 +000014292IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014293
14294fi
14295fi
14296STRIP=$ac_cv_prog_STRIP
14297if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014298 { echo "$as_me:$LINENO: result: $STRIP" >&5
14299echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014300else
Reid Spencera773bd52006-08-04 18:18:08 +000014301 { echo "$as_me:$LINENO: result: no" >&5
14302echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014303fi
14304
Reid Spencera773bd52006-08-04 18:18:08 +000014305
John Criswell7a73b802003-06-30 21:59:07 +000014306fi
14307if test -z "$ac_cv_prog_STRIP"; then
14308 ac_ct_STRIP=$STRIP
14309 # Extract the first word of "strip", so it can be a program name with args.
14310set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014313if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315else
14316 if test -n "$ac_ct_STRIP"; then
14317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14318else
14319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320for as_dir in $PATH
14321do
14322 IFS=$as_save_IFS
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014326 ac_cv_prog_ac_ct_STRIP="strip"
14327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14328 break 2
14329 fi
14330done
14331done
Reid Spencera773bd52006-08-04 18:18:08 +000014332IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014333
John Criswell7a73b802003-06-30 21:59:07 +000014334fi
14335fi
14336ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14337if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014338 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14339echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014340else
Reid Spencera773bd52006-08-04 18:18:08 +000014341 { echo "$as_me:$LINENO: result: no" >&5
14342echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014343fi
14344
Reid Spencera773bd52006-08-04 18:18:08 +000014345 if test "x$ac_ct_STRIP" = x; then
14346 STRIP=":"
14347 else
14348 case $cross_compiling:$ac_tool_warned in
14349yes:)
14350{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14351whose name does not start with the host triplet. If you think this
14352configuration is useful to you, please write to autoconf@gnu.org." >&5
14353echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14354whose name does not start with the host triplet. If you think this
14355configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14356ac_tool_warned=yes ;;
14357esac
14358 STRIP=$ac_ct_STRIP
14359 fi
John Criswell7a73b802003-06-30 21:59:07 +000014360else
14361 STRIP="$ac_cv_prog_STRIP"
14362fi
14363
14364
John Criswell7a73b802003-06-30 21:59:07 +000014365old_CC="$CC"
14366old_CFLAGS="$CFLAGS"
14367
14368# Set sane defaults for various variables
14369test -z "$AR" && AR=ar
14370test -z "$AR_FLAGS" && AR_FLAGS=cru
14371test -z "$AS" && AS=as
14372test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014373test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014374test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014375test -z "$DLLTOOL" && DLLTOOL=dlltool
14376test -z "$LD" && LD=ld
14377test -z "$LN_S" && LN_S="ln -s"
14378test -z "$MAGIC_CMD" && MAGIC_CMD=file
14379test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014380test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014381test -z "$OBJDUMP" && OBJDUMP=objdump
14382test -z "$RANLIB" && RANLIB=:
14383test -z "$STRIP" && STRIP=:
14384test -z "$ac_objext" && ac_objext=o
14385
John Criswell7a73b802003-06-30 21:59:07 +000014386# Determine commands to create old-style static archives.
14387old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14388old_postinstall_cmds='chmod 644 $oldlib'
14389old_postuninstall_cmds=
14390
14391if test -n "$RANLIB"; then
14392 case $host_os in
14393 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014395 ;;
14396 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014398 ;;
14399 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014401fi
14402
Reid Spencera773bd52006-08-04 18:18:08 +000014403for cc_temp in $compiler""; do
14404 case $cc_temp in
14405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14407 \-*) ;;
14408 *) break;;
14409 esac
14410done
14411cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14412
Reid Spencer2706f8c2004-09-19 23:53:36 +000014413
John Criswell47fdd832003-07-14 16:52:07 +000014414# Only perform the check for file, if the check method requires it
14415case $deplibs_check_method in
14416file_magic*)
14417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014418 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14419echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014420if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014422else
John Criswell47fdd832003-07-14 16:52:07 +000014423 case $MAGIC_CMD in
14424[\\/*] | ?:[\\/]*)
14425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14426 ;;
14427*)
14428 lt_save_MAGIC_CMD="$MAGIC_CMD"
14429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14431 for ac_dir in $ac_dummy; do
14432 IFS="$lt_save_ifs"
14433 test -z "$ac_dir" && ac_dir=.
14434 if test -f $ac_dir/${ac_tool_prefix}file; then
14435 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14436 if test -n "$file_magic_test_file"; then
14437 case $deplibs_check_method in
14438 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14442 $EGREP "$file_magic_regex" > /dev/null; then
14443 :
14444 else
14445 cat <<EOF 1>&2
14446
14447*** Warning: the command libtool uses to detect shared libraries,
14448*** $file_magic_cmd, produces output that libtool cannot recognize.
14449*** The result is that libtool may fail to recognize shared libraries
14450*** as such. This will affect the creation of libtool libraries that
14451*** depend on shared libraries, but programs linked with such libtool
14452*** libraries will work regardless of this problem. Nevertheless, you
14453*** may want to report the problem to your system manager and/or to
14454*** bug-libtool@gnu.org
14455
14456EOF
14457 fi ;;
14458 esac
14459 fi
14460 break
14461 fi
14462 done
14463 IFS="$lt_save_ifs"
14464 MAGIC_CMD="$lt_save_MAGIC_CMD"
14465 ;;
14466esac
John Criswell7a73b802003-06-30 21:59:07 +000014467fi
John Criswell7a73b802003-06-30 21:59:07 +000014468
John Criswell47fdd832003-07-14 16:52:07 +000014469MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14470if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014471 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14472echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014473else
Reid Spencera773bd52006-08-04 18:18:08 +000014474 { echo "$as_me:$LINENO: result: no" >&5
14475echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014476fi
John Criswell7a73b802003-06-30 21:59:07 +000014477
John Criswell47fdd832003-07-14 16:52:07 +000014478if test -z "$lt_cv_path_MAGIC_CMD"; then
14479 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014480 { echo "$as_me:$LINENO: checking for file" >&5
14481echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014482if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 case $MAGIC_CMD in
14486[\\/*] | ?:[\\/]*)
14487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14488 ;;
14489*)
14490 lt_save_MAGIC_CMD="$MAGIC_CMD"
14491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14493 for ac_dir in $ac_dummy; do
14494 IFS="$lt_save_ifs"
14495 test -z "$ac_dir" && ac_dir=.
14496 if test -f $ac_dir/file; then
14497 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14498 if test -n "$file_magic_test_file"; then
14499 case $deplibs_check_method in
14500 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14504 $EGREP "$file_magic_regex" > /dev/null; then
14505 :
14506 else
14507 cat <<EOF 1>&2
14508
14509*** Warning: the command libtool uses to detect shared libraries,
14510*** $file_magic_cmd, produces output that libtool cannot recognize.
14511*** The result is that libtool may fail to recognize shared libraries
14512*** as such. This will affect the creation of libtool libraries that
14513*** depend on shared libraries, but programs linked with such libtool
14514*** libraries will work regardless of this problem. Nevertheless, you
14515*** may want to report the problem to your system manager and/or to
14516*** bug-libtool@gnu.org
14517
14518EOF
14519 fi ;;
14520 esac
14521 fi
14522 break
14523 fi
14524 done
14525 IFS="$lt_save_ifs"
14526 MAGIC_CMD="$lt_save_MAGIC_CMD"
14527 ;;
14528esac
14529fi
14530
14531MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14532if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014533 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14534echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014535else
Reid Spencera773bd52006-08-04 18:18:08 +000014536 { echo "$as_me:$LINENO: result: no" >&5
14537echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014538fi
14539
14540 else
14541 MAGIC_CMD=:
14542 fi
14543fi
14544
14545 fi
14546 ;;
14547esac
14548
Reid Spencer17795972004-11-18 09:47:37 +000014549enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014550enable_win32_dll=no
14551
Reid Spencera773bd52006-08-04 18:18:08 +000014552# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014553if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014554 enableval=$enable_libtool_lock;
14555fi
John Criswell47fdd832003-07-14 16:52:07 +000014556
John Criswell47fdd832003-07-14 16:52:07 +000014557test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14558
John Criswell7a73b802003-06-30 21:59:07 +000014559
Reid Spencera773bd52006-08-04 18:18:08 +000014560# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014561if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014562 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014563else
14564 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014565fi
14566
John Criswell7a73b802003-06-30 21:59:07 +000014567test -z "$pic_mode" && pic_mode=default
14568
John Criswell47fdd832003-07-14 16:52:07 +000014569# Use C for the default configuration in the libtool script
14570tagname=
14571lt_save_CC="$CC"
14572ac_ext=c
14573ac_cpp='$CPP $CPPFLAGS'
14574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576ac_compiler_gnu=$ac_cv_c_compiler_gnu
14577
14578
14579# Source file extension for C test sources.
14580ac_ext=c
14581
14582# Object file extension for compiled C test sources.
14583objext=o
14584objext=$objext
14585
14586# Code to be used in simple compile tests
14587lt_simple_compile_test_code="int some_variable = 0;\n"
14588
14589# Code to be used in simple link tests
14590lt_simple_link_test_code='int main(){return(0);}\n'
14591
14592
14593# If no C compiler was specified, use CC.
14594LTCC=${LTCC-"$CC"}
14595
Reid Spencera773bd52006-08-04 18:18:08 +000014596# If no C compiler flags were specified, use CFLAGS.
14597LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14598
John Criswell47fdd832003-07-14 16:52:07 +000014599# Allow CC to be a program name with arguments.
14600compiler=$CC
14601
14602
Reid Spencera773bd52006-08-04 18:18:08 +000014603# save warnings/boilerplate of simple test code
14604ac_outfile=conftest.$ac_objext
14605printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14606eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14607_lt_compiler_boilerplate=`cat conftest.err`
14608$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014609
Reid Spencera773bd52006-08-04 18:18:08 +000014610ac_outfile=conftest.$ac_objext
14611printf "$lt_simple_link_test_code" >conftest.$ac_ext
14612eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14613_lt_linker_boilerplate=`cat conftest.err`
14614$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014615
14616
John Criswell47fdd832003-07-14 16:52:07 +000014617
14618lt_prog_compiler_no_builtin_flag=
14619
14620if test "$GCC" = yes; then
14621 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14622
Reid Spencer2706f8c2004-09-19 23:53:36 +000014623
Reid Spencera773bd52006-08-04 18:18:08 +000014624{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14625echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014626if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628else
14629 lt_cv_prog_compiler_rtti_exceptions=no
14630 ac_outfile=conftest.$ac_objext
14631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14632 lt_compiler_flag="-fno-rtti -fno-exceptions"
14633 # Insert the option either (1) after the last *FLAGS variable, or
14634 # (2) before a word containing "conftest.", or (3) at the end.
14635 # Note that $ac_compile itself does not contain backslashes and begins
14636 # with a dollar sign (not a hyphen), so the echo should work correctly.
14637 # The option is referenced via a variable to avoid confusing sed.
14638 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000014642 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014643 (eval "$lt_compile" 2>conftest.err)
14644 ac_status=$?
14645 cat conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000014646 echo "$as_me:14646: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014647 if (exit $ac_status) && test -s "$ac_outfile"; then
14648 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014649 # So say no if there are warnings other than the usual output.
14650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014653 lt_cv_prog_compiler_rtti_exceptions=yes
14654 fi
14655 fi
14656 $rm conftest*
14657
14658fi
Reid Spencera773bd52006-08-04 18:18:08 +000014659{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14660echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014661
14662if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14664else
14665 :
14666fi
14667
14668fi
14669
14670lt_prog_compiler_wl=
14671lt_prog_compiler_pic=
14672lt_prog_compiler_static=
14673
Reid Spencera773bd52006-08-04 18:18:08 +000014674{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14675echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014676
14677 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014678 lt_prog_compiler_wl='-Wl,'
14679 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014680
14681 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014682 aix*)
14683 # All AIX code is PIC.
14684 if test "$host_cpu" = ia64; then
14685 # AIX 5 now supports IA64 processor
14686 lt_prog_compiler_static='-Bstatic'
14687 fi
John Criswell7a73b802003-06-30 21:59:07 +000014688 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014689
John Criswell7a73b802003-06-30 21:59:07 +000014690 amigaos*)
14691 # FIXME: we need at least 68020 code to build shared libraries, but
14692 # adding the `-m68020' flag to GCC prevents building anything better,
14693 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014694 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014695 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014696
14697 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014698 # PIC is the default for these OSes.
14699 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014700
14701 mingw* | pw32* | os2*)
14702 # This hack is so that the source file can tell whether it is being
14703 # built for inclusion in a dll (and should export symbols for example).
14704 lt_prog_compiler_pic='-DDLL_EXPORT'
14705 ;;
14706
John Criswell7a73b802003-06-30 21:59:07 +000014707 darwin* | rhapsody*)
14708 # PIC is the default on this platform
14709 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014710 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014711 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014712
Reid Spencera773bd52006-08-04 18:18:08 +000014713 interix3*)
14714 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14715 # Instead, we relocate shared libraries at runtime.
14716 ;;
14717
John Criswell47fdd832003-07-14 16:52:07 +000014718 msdosdjgpp*)
14719 # Just because we use GCC doesn't mean we suddenly get shared libraries
14720 # on systems that don't support them.
14721 lt_prog_compiler_can_build_shared=no
14722 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014723 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014724
John Criswell7a73b802003-06-30 21:59:07 +000014725 sysv4*MP*)
14726 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014727 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014728 fi
14729 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014730
14731 hpux*)
14732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14733 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014734 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014735 hppa*64*|ia64*)
14736 # +Z the default
14737 ;;
14738 *)
14739 lt_prog_compiler_pic='-fPIC'
14740 ;;
14741 esac
14742 ;;
14743
John Criswell7a73b802003-06-30 21:59:07 +000014744 *)
John Criswell47fdd832003-07-14 16:52:07 +000014745 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014746 ;;
14747 esac
14748 else
John Criswell47fdd832003-07-14 16:52:07 +000014749 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014750 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014751 aix*)
14752 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014753 if test "$host_cpu" = ia64; then
14754 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014755 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014756 else
John Criswell47fdd832003-07-14 16:52:07 +000014757 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014758 fi
14759 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014760 darwin*)
14761 # PIC is the default on this platform
14762 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014763 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014764 xlc*)
14765 lt_prog_compiler_pic='-qnocommon'
14766 lt_prog_compiler_wl='-Wl,'
14767 ;;
14768 esac
14769 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014770
John Criswell47fdd832003-07-14 16:52:07 +000014771 mingw* | pw32* | os2*)
14772 # This hack is so that the source file can tell whether it is being
14773 # built for inclusion in a dll (and should export symbols for example).
14774 lt_prog_compiler_pic='-DDLL_EXPORT'
14775 ;;
14776
John Criswell7a73b802003-06-30 21:59:07 +000014777 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014778 lt_prog_compiler_wl='-Wl,'
14779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14780 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014781 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014782 hppa*64*|ia64*)
14783 # +Z the default
14784 ;;
14785 *)
14786 lt_prog_compiler_pic='+Z'
14787 ;;
14788 esac
14789 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14790 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014791 ;;
14792
John Criswell47fdd832003-07-14 16:52:07 +000014793 irix5* | irix6* | nonstopux*)
14794 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014795 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014796 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014797 ;;
14798
14799 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014800 lt_prog_compiler_pic='-KPIC'
14801 lt_prog_compiler_static='-Bstatic'
14802 ;;
14803
14804 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014805 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014806 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014807 lt_prog_compiler_wl='-Wl,'
14808 lt_prog_compiler_pic='-KPIC'
14809 lt_prog_compiler_static='-static'
14810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014811 pgcc* | pgf77* | pgf90* | pgf95*)
14812 # Portland Group compilers (*not* the Pentium gcc compiler,
14813 # which looks to be a dead project)
14814 lt_prog_compiler_wl='-Wl,'
14815 lt_prog_compiler_pic='-fpic'
14816 lt_prog_compiler_static='-Bstatic'
14817 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014818 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014819 lt_prog_compiler_wl='-Wl,'
14820 # All Alpha code is PIC.
14821 lt_prog_compiler_static='-non_shared'
14822 ;;
14823 esac
John Criswell7a73b802003-06-30 21:59:07 +000014824 ;;
14825
14826 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014827 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014828 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014829 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014830 ;;
14831
John Criswell7a73b802003-06-30 21:59:07 +000014832 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014833 lt_prog_compiler_pic='-KPIC'
14834 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014835 case $cc_basename in
14836 f77* | f90* | f95*)
14837 lt_prog_compiler_wl='-Qoption ld ';;
14838 *)
14839 lt_prog_compiler_wl='-Wl,';;
14840 esac
John Criswell7a73b802003-06-30 21:59:07 +000014841 ;;
14842
14843 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014844 lt_prog_compiler_wl='-Qoption ld '
14845 lt_prog_compiler_pic='-PIC'
14846 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014847 ;;
14848
Reid Spencera773bd52006-08-04 18:18:08 +000014849 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014850 lt_prog_compiler_wl='-Wl,'
14851 lt_prog_compiler_pic='-KPIC'
14852 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014853 ;;
14854
14855 sysv4*MP*)
14856 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014857 lt_prog_compiler_pic='-Kconform_pic'
14858 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014859 fi
14860 ;;
14861
Reid Spencera773bd52006-08-04 18:18:08 +000014862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14863 lt_prog_compiler_wl='-Wl,'
14864 lt_prog_compiler_pic='-KPIC'
14865 lt_prog_compiler_static='-Bstatic'
14866 ;;
14867
14868 unicos*)
14869 lt_prog_compiler_wl='-Wl,'
14870 lt_prog_compiler_can_build_shared=no
14871 ;;
14872
John Criswell47fdd832003-07-14 16:52:07 +000014873 uts4*)
14874 lt_prog_compiler_pic='-pic'
14875 lt_prog_compiler_static='-Bstatic'
14876 ;;
14877
John Criswell7a73b802003-06-30 21:59:07 +000014878 *)
John Criswell47fdd832003-07-14 16:52:07 +000014879 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014880 ;;
14881 esac
14882 fi
14883
Reid Spencera773bd52006-08-04 18:18:08 +000014884{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14885echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014886
John Criswell47fdd832003-07-14 16:52:07 +000014887#
14888# Check to make sure the PIC flag actually works.
14889#
14890if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014891
Reid Spencera773bd52006-08-04 18:18:08 +000014892{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14893echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014894if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896else
John Criswell47fdd832003-07-14 16:52:07 +000014897 lt_prog_compiler_pic_works=no
14898 ac_outfile=conftest.$ac_objext
14899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14900 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14901 # Insert the option either (1) after the last *FLAGS variable, or
14902 # (2) before a word containing "conftest.", or (3) at the end.
14903 # Note that $ac_compile itself does not contain backslashes and begins
14904 # with a dollar sign (not a hyphen), so the echo should work correctly.
14905 # The option is referenced via a variable to avoid confusing sed.
14906 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14909 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000014910 (eval echo "\"\$as_me:14910: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014911 (eval "$lt_compile" 2>conftest.err)
14912 ac_status=$?
14913 cat conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000014914 echo "$as_me:14914: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014915 if (exit $ac_status) && test -s "$ac_outfile"; then
14916 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014917 # So say no if there are warnings other than the usual output.
14918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014921 lt_prog_compiler_pic_works=yes
14922 fi
14923 fi
14924 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014925
John Criswell47fdd832003-07-14 16:52:07 +000014926fi
Reid Spencera773bd52006-08-04 18:18:08 +000014927{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14928echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014929
John Criswell47fdd832003-07-14 16:52:07 +000014930if test x"$lt_prog_compiler_pic_works" = xyes; then
14931 case $lt_prog_compiler_pic in
14932 "" | " "*) ;;
14933 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14934 esac
John Criswell7a73b802003-06-30 21:59:07 +000014935else
John Criswell47fdd832003-07-14 16:52:07 +000014936 lt_prog_compiler_pic=
14937 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014938fi
14939
John Criswell7a73b802003-06-30 21:59:07 +000014940fi
Reid Spencera773bd52006-08-04 18:18:08 +000014941case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014942 # For platforms which do not support PIC, -DPIC is meaningless:
14943 *djgpp*)
14944 lt_prog_compiler_pic=
14945 ;;
14946 *)
14947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14948 ;;
14949esac
John Criswell7a73b802003-06-30 21:59:07 +000014950
Reid Spencera773bd52006-08-04 18:18:08 +000014951#
14952# Check to make sure the static flag actually works.
14953#
14954wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14955{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14956echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14957if test "${lt_prog_compiler_static_works+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960 lt_prog_compiler_static_works=no
14961 save_LDFLAGS="$LDFLAGS"
14962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14963 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14965 # The linker can only warn and ignore the option if not recognized
14966 # So say no if there are warnings
14967 if test -s conftest.err; then
14968 # Append any errors to the config.log.
14969 cat conftest.err 1>&5
14970 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14972 if diff conftest.exp conftest.er2 >/dev/null; then
14973 lt_prog_compiler_static_works=yes
14974 fi
14975 else
14976 lt_prog_compiler_static_works=yes
14977 fi
14978 fi
14979 $rm conftest*
14980 LDFLAGS="$save_LDFLAGS"
14981
14982fi
14983{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14984echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14985
14986if test x"$lt_prog_compiler_static_works" = xyes; then
14987 :
14988else
14989 lt_prog_compiler_static=
14990fi
14991
14992
14993{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14994echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014995if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
John Criswell47fdd832003-07-14 16:52:07 +000014998 lt_cv_prog_compiler_c_o=no
14999 $rm -r conftest 2>/dev/null
15000 mkdir conftest
15001 cd conftest
15002 mkdir out
15003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015004
John Criswell47fdd832003-07-14 16:52:07 +000015005 lt_compiler_flag="-o out/conftest2.$ac_objext"
15006 # Insert the option either (1) after the last *FLAGS variable, or
15007 # (2) before a word containing "conftest.", or (3) at the end.
15008 # Note that $ac_compile itself does not contain backslashes and begins
15009 # with a dollar sign (not a hyphen), so the echo should work correctly.
15010 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15013 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000015014 (eval echo "\"\$as_me:15014: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015015 (eval "$lt_compile" 2>out/conftest.err)
15016 ac_status=$?
15017 cat out/conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000015018 echo "$as_me:15018: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15020 then
15021 # The compiler can only warn and ignore the option if not recognized
15022 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015026 lt_cv_prog_compiler_c_o=yes
15027 fi
15028 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015029 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015030 $rm conftest*
15031 # SGI C++ compiler will create directory out/ii_files/ for
15032 # template instantiation
15033 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15034 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015035 cd ..
15036 rmdir conftest
15037 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015038
15039fi
Reid Spencera773bd52006-08-04 18:18:08 +000015040{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15041echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015042
John Criswell7a73b802003-06-30 21:59:07 +000015043
John Criswell7a73b802003-06-30 21:59:07 +000015044hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015045if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015046 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015047 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15048echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015049 hard_links=yes
15050 $rm conftest*
15051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15052 touch conftest.a
15053 ln conftest.a conftest.b 2>&5 || hard_links=no
15054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015055 { echo "$as_me:$LINENO: result: $hard_links" >&5
15056echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015057 if test "$hard_links" = no; then
15058 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15059echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15060 need_locks=warn
15061 fi
15062else
15063 need_locks=no
15064fi
John Criswell7a73b802003-06-30 21:59:07 +000015065
Reid Spencera773bd52006-08-04 18:18:08 +000015066{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15067echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015068
15069 runpath_var=
15070 allow_undefined_flag=
15071 enable_shared_with_static_runtimes=no
15072 archive_cmds=
15073 archive_expsym_cmds=
15074 old_archive_From_new_cmds=
15075 old_archive_from_expsyms_cmds=
15076 export_dynamic_flag_spec=
15077 whole_archive_flag_spec=
15078 thread_safe_flag_spec=
15079 hardcode_libdir_flag_spec=
15080 hardcode_libdir_flag_spec_ld=
15081 hardcode_libdir_separator=
15082 hardcode_direct=no
15083 hardcode_minus_L=no
15084 hardcode_shlibpath_var=unsupported
15085 link_all_deplibs=unknown
15086 hardcode_automatic=no
15087 module_cmds=
15088 module_expsym_cmds=
15089 always_export_symbols=no
15090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15091 # include_expsyms should be a list of space-separated symbols to be *always*
15092 # included in the symbol list
15093 include_expsyms=
15094 # exclude_expsyms can be an extended regexp of symbols to exclude
15095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15097 # as well as any symbol that contains `d'.
15098 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15100 # platforms (ab)use it in PIC code, but their linkers get confused if
15101 # the symbol is explicitly referenced. Since portable code cannot
15102 # rely on this symbol name, it's probably fine to never include it in
15103 # preloaded symbol tables.
15104 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015105 # Just being paranoid about ensuring that cc_basename is set.
15106 for cc_temp in $compiler""; do
15107 case $cc_temp in
15108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15110 \-*) ;;
15111 *) break;;
15112 esac
15113done
15114cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015115
15116 case $host_os in
15117 cygwin* | mingw* | pw32*)
15118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15119 # When not using gcc, we currently assume that we are using
15120 # Microsoft Visual C++.
15121 if test "$GCC" != yes; then
15122 with_gnu_ld=no
15123 fi
15124 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015125 interix*)
15126 # we just hope/assume this is gcc and not c89 (= MSVC++)
15127 with_gnu_ld=yes
15128 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015129 openbsd*)
15130 with_gnu_ld=no
15131 ;;
15132 esac
15133
15134 ld_shlibs=yes
15135 if test "$with_gnu_ld" = yes; then
15136 # If archive_cmds runs LD, not CC, wlarc should be empty
15137 wlarc='${wl}'
15138
Reid Spencera773bd52006-08-04 18:18:08 +000015139 # Set some defaults for GNU ld with shared library support. These
15140 # are reset later if shared libraries are not supported. Putting them
15141 # here allows them to be overridden if necessary.
15142 runpath_var=LD_RUN_PATH
15143 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15144 export_dynamic_flag_spec='${wl}--export-dynamic'
15145 # ancient GNU ld didn't support --whole-archive et. al.
15146 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15147 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15148 else
15149 whole_archive_flag_spec=
15150 fi
15151 supports_anon_versioning=no
15152 case `$LD -v 2>/dev/null` in
15153 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15154 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15155 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15156 *\ 2.11.*) ;; # other 2.11 versions
15157 *) supports_anon_versioning=yes ;;
15158 esac
15159
John Criswell47fdd832003-07-14 16:52:07 +000015160 # See if GNU ld supports shared libraries.
15161 case $host_os in
15162 aix3* | aix4* | aix5*)
15163 # On AIX/PPC, the GNU linker is very broken
15164 if test "$host_cpu" != ia64; then
15165 ld_shlibs=no
15166 cat <<EOF 1>&2
15167
15168*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15169*** to be unable to reliably create shared libraries on AIX.
15170*** Therefore, libtool is disabling shared libraries support. If you
15171*** really care for shared libraries, you may want to modify your PATH
15172*** so that a non-GNU linker is found, and then restart.
15173
15174EOF
15175 fi
15176 ;;
15177
15178 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015179 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 +000015180 hardcode_libdir_flag_spec='-L$libdir'
15181 hardcode_minus_L=yes
15182
15183 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15184 # that the semantics of dynamic libraries on AmigaOS, at least up
15185 # to version 4, is to share data among multiple programs linked
15186 # with the same dynamic library. Since this doesn't match the
15187 # behavior of shared libraries on other platforms, we can't use
15188 # them.
15189 ld_shlibs=no
15190 ;;
15191
15192 beos*)
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194 allow_undefined_flag=unsupported
15195 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15196 # support --undefined. This deserves some investigation. FIXME
15197 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198 else
15199 ld_shlibs=no
15200 fi
15201 ;;
15202
15203 cygwin* | mingw* | pw32*)
15204 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15205 # as there is no search path for DLLs.
15206 hardcode_libdir_flag_spec='-L$libdir'
15207 allow_undefined_flag=unsupported
15208 always_export_symbols=no
15209 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015210 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 +000015211
15212 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015213 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 +000015214 # If the export-symbols file already is a .def file (1st line
15215 # is EXPORTS), use it as is; otherwise, prepend...
15216 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15217 cp $export_symbols $output_objdir/$soname.def;
15218 else
15219 echo EXPORTS > $output_objdir/$soname.def;
15220 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015221 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015222 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15223 else
15224 ld_shlibs=no
15225 fi
15226 ;;
15227
15228 interix3*)
15229 hardcode_direct=no
15230 hardcode_shlibpath_var=no
15231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15232 export_dynamic_flag_spec='${wl}-E'
15233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234 # Instead, shared libraries are loaded at an image base (0x10000000 by
15235 # default) and relocated if they conflict, which is a slow very memory
15236 # consuming and fragmenting process. To avoid this, we pick a random,
15237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15240 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'
15241 ;;
15242
15243 linux*)
15244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15245 tmp_addflag=
15246 case $cc_basename,$host_cpu in
15247 pgcc*) # Portland Group C compiler
15248 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'
15249 tmp_addflag=' $pic_flag'
15250 ;;
15251 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15252 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'
15253 tmp_addflag=' $pic_flag -Mnomain' ;;
15254 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15255 tmp_addflag=' -i_dynamic' ;;
15256 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15257 tmp_addflag=' -i_dynamic -nofor_main' ;;
15258 ifc* | ifort*) # Intel Fortran compiler
15259 tmp_addflag=' -nofor_main' ;;
15260 esac
15261 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15262
15263 if test $supports_anon_versioning = yes; then
15264 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15266 $echo "local: *; };" >> $output_objdir/$libname.ver~
15267 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15268 fi
John Criswell47fdd832003-07-14 16:52:07 +000015269 else
15270 ld_shlibs=no
15271 fi
15272 ;;
15273
15274 netbsd*)
15275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15277 wlarc=
15278 else
15279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15281 fi
15282 ;;
15283
Reid Spencera773bd52006-08-04 18:18:08 +000015284 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015285 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15286 ld_shlibs=no
15287 cat <<EOF 1>&2
15288
15289*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15290*** create shared libraries on Solaris systems. Therefore, libtool
15291*** is disabling shared libraries support. We urge you to upgrade GNU
15292*** binutils to release 2.9.1 or newer. Another option is to modify
15293*** your PATH or compiler configuration so that the native linker is
15294*** used, and then restart.
15295
15296EOF
15297 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15300 else
15301 ld_shlibs=no
15302 fi
15303 ;;
15304
Reid Spencera773bd52006-08-04 18:18:08 +000015305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15306 case `$LD -v 2>&1` in
15307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15308 ld_shlibs=no
15309 cat <<_LT_EOF 1>&2
15310
15311*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15312*** reliably create shared libraries on SCO systems. Therefore, libtool
15313*** is disabling shared libraries support. We urge you to upgrade GNU
15314*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15315*** your PATH or compiler configuration so that the native linker is
15316*** used, and then restart.
15317
15318_LT_EOF
15319 ;;
15320 *)
15321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15322 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15325 else
15326 ld_shlibs=no
15327 fi
15328 ;;
15329 esac
15330 ;;
15331
John Criswell47fdd832003-07-14 16:52:07 +000015332 sunos4*)
15333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15334 wlarc=
15335 hardcode_direct=yes
15336 hardcode_shlibpath_var=no
15337 ;;
15338
15339 *)
15340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15343 else
15344 ld_shlibs=no
15345 fi
15346 ;;
15347 esac
15348
Reid Spencera773bd52006-08-04 18:18:08 +000015349 if test "$ld_shlibs" = no; then
15350 runpath_var=
15351 hardcode_libdir_flag_spec=
15352 export_dynamic_flag_spec=
15353 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015354 fi
15355 else
15356 # PORTME fill in a description of your system's linker (not GNU ld)
15357 case $host_os in
15358 aix3*)
15359 allow_undefined_flag=unsupported
15360 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015361 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 +000015362 # Note: this linker hardcodes the directories in LIBPATH if there
15363 # are no directories specified by -L.
15364 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015365 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015366 # Neither direct hardcoding nor static linking is supported with a
15367 # broken collect2.
15368 hardcode_direct=unsupported
15369 fi
15370 ;;
15371
15372 aix4* | aix5*)
15373 if test "$host_cpu" = ia64; then
15374 # On IA64, the linker does run time linking by default, so we don't
15375 # have to do anything special.
15376 aix_use_runtimelinking=no
15377 exp_sym_flag='-Bexport'
15378 no_entry_flag=""
15379 else
15380 # If we're using GNU nm, then we don't want the "-C" option.
15381 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15382 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15383 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'
15384 else
15385 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'
15386 fi
15387 aix_use_runtimelinking=no
15388
15389 # Test if we are trying to use run time linking or normal
15390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15391 # need to do runtime linking.
15392 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15393 for ld_flag in $LDFLAGS; do
15394 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15395 aix_use_runtimelinking=yes
15396 break
15397 fi
15398 done
Reid Spencera773bd52006-08-04 18:18:08 +000015399 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015400 esac
15401
15402 exp_sym_flag='-bexport'
15403 no_entry_flag='-bnoentry'
15404 fi
15405
15406 # When large executables or shared objects are built, AIX ld can
15407 # have problems creating the table of contents. If linking a library
15408 # or program results in "error TOC overflow" add -mminimal-toc to
15409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15411
15412 archive_cmds=''
15413 hardcode_direct=yes
15414 hardcode_libdir_separator=':'
15415 link_all_deplibs=yes
15416
15417 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015418 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015419 # We only want to do this on AIX 4.2 and lower, the check
15420 # below for broken collect2 doesn't work under 4.3+
15421 collect2name=`${CC} -print-prog-name=collect2`
15422 if test -f "$collect2name" && \
15423 strings "$collect2name" | grep resolve_lib_name >/dev/null
15424 then
15425 # We have reworked collect2
15426 hardcode_direct=yes
15427 else
15428 # We have old collect2
15429 hardcode_direct=unsupported
15430 # It fails to find uninstalled libraries when the uninstalled
15431 # path is not listed in the libpath. Setting hardcode_minus_L
15432 # to unsupported forces relinking
15433 hardcode_minus_L=yes
15434 hardcode_libdir_flag_spec='-L$libdir'
15435 hardcode_libdir_separator=
15436 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015437 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015438 esac
15439 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015440 if test "$aix_use_runtimelinking" = yes; then
15441 shared_flag="$shared_flag "'${wl}-G'
15442 fi
John Criswell47fdd832003-07-14 16:52:07 +000015443 else
15444 # not using gcc
15445 if test "$host_cpu" = ia64; then
15446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15447 # chokes on -Wl,-G. The following line is correct:
15448 shared_flag='-G'
15449 else
Reid Spencera773bd52006-08-04 18:18:08 +000015450 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015451 shared_flag='${wl}-G'
15452 else
15453 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015454 fi
John Criswell47fdd832003-07-14 16:52:07 +000015455 fi
15456 fi
15457
15458 # It seems that -bexpall does not export symbols beginning with
15459 # underscore (_), so it is better to generate a list of symbols to export.
15460 always_export_symbols=yes
15461 if test "$aix_use_runtimelinking" = yes; then
15462 # Warning - without using the other runtime loading flags (-brtl),
15463 # -berok will link without error, but may produce a broken library.
15464 allow_undefined_flag='-berok'
15465 # Determine the default libpath from the value encoded in an empty executable.
15466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015472
John Criswell7a73b802003-06-30 21:59:07 +000015473int
15474main ()
15475{
John Criswell47fdd832003-07-14 16:52:07 +000015476
John Criswell7a73b802003-06-30 21:59:07 +000015477 ;
15478 return 0;
15479}
15480_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015481rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015482if { (ac_try="$ac_link"
15483case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486esac
15487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15499esac
15500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try='test -s conftest$ac_exeext'
15506 { (case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509esac
15510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_try") 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015515
John Criswell47fdd832003-07-14 16:52:07 +000015516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15517}'`
15518# Check for a 64-bit object if we didn't find anything.
15519if 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; }
15520}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015521else
15522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015523sed 's/^/| /' conftest.$ac_ext >&5
15524
Reid Spencera773bd52006-08-04 18:18:08 +000015525
John Criswell7a73b802003-06-30 21:59:07 +000015526fi
Reid Spencera773bd52006-08-04 18:18:08 +000015527
Tanya Lattnercf067672008-01-17 05:57:22 +000015528rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015529 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015530if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015531
John Criswell47fdd832003-07-14 16:52:07 +000015532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015533 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 +000015534 else
15535 if test "$host_cpu" = ia64; then
15536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15537 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015538 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 +000015539 else
15540 # Determine the default libpath from the value encoded in an empty executable.
15541 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015547
John Criswell47fdd832003-07-14 16:52:07 +000015548int
15549main ()
15550{
John Criswell7a73b802003-06-30 21:59:07 +000015551
John Criswell47fdd832003-07-14 16:52:07 +000015552 ;
15553 return 0;
15554}
15555_ACEOF
15556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015557if { (ac_try="$ac_link"
15558case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561esac
15562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15571 { (case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15574esac
15575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; } &&
15580 { ac_try='test -s conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015590
John Criswell47fdd832003-07-14 16:52:07 +000015591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15592}'`
15593# Check for a 64-bit object if we didn't find anything.
15594if 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; }
15595}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015596else
John Criswell47fdd832003-07-14 16:52:07 +000015597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015598sed 's/^/| /' conftest.$ac_ext >&5
15599
Reid Spencera773bd52006-08-04 18:18:08 +000015600
John Criswell47fdd832003-07-14 16:52:07 +000015601fi
Reid Spencera773bd52006-08-04 18:18:08 +000015602
Tanya Lattnercf067672008-01-17 05:57:22 +000015603rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015604 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015605if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015606
John Criswell47fdd832003-07-14 16:52:07 +000015607 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15608 # Warning - without using the other run time loading flags,
15609 # -berok will link without error, but may produce a broken library.
15610 no_undefined_flag=' ${wl}-bernotok'
15611 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015612 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015613 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015614 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015615 # This is similar to how AIX traditionally builds its shared libraries.
15616 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 +000015617 fi
15618 fi
John Criswell7a73b802003-06-30 21:59:07 +000015619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015620
15621 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015622 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 +000015623 hardcode_libdir_flag_spec='-L$libdir'
15624 hardcode_minus_L=yes
15625 # see comment about different semantics on the GNU ld section
15626 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015627 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015628
Reid Spencer2706f8c2004-09-19 23:53:36 +000015629 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015630 export_dynamic_flag_spec=-rdynamic
15631 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015632
John Criswell47fdd832003-07-14 16:52:07 +000015633 cygwin* | mingw* | pw32*)
15634 # When not using gcc, we currently assume that we are using
15635 # Microsoft Visual C++.
15636 # hardcode_libdir_flag_spec is actually meaningless, as there is
15637 # no search path for DLLs.
15638 hardcode_libdir_flag_spec=' '
15639 allow_undefined_flag=unsupported
15640 # Tell ltmain to make .lib files, not .a files.
15641 libext=lib
15642 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015643 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015644 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015646 # The linker will automatically build a .lib file if we build a DLL.
15647 old_archive_From_new_cmds='true'
15648 # FIXME: Should let the user specify the lib program.
15649 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15650 fix_srcfile_path='`cygpath -w "$srcfile"`'
15651 enable_shared_with_static_runtimes=yes
15652 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015653
John Criswell47fdd832003-07-14 16:52:07 +000015654 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015655 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015656 rhapsody* | darwin1.[012])
15657 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15658 ;;
15659 *) # Darwin 1.3 on
15660 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15661 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15662 else
15663 case ${MACOSX_DEPLOYMENT_TARGET} in
15664 10.[012])
15665 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15666 ;;
15667 10.*)
15668 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15669 ;;
15670 esac
15671 fi
15672 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015673 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015674 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015675 hardcode_direct=no
15676 hardcode_automatic=yes
15677 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015678 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015679 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015680 if test "$GCC" = yes ; then
15681 output_verbose_link_cmd='echo'
15682 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15683 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015684 # 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 +000015685 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}'
15686 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 +000015687 else
Reid Spencera773bd52006-08-04 18:18:08 +000015688 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015689 xlc*)
15690 output_verbose_link_cmd='echo'
15691 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15692 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015693 # 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 +000015694 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}'
15695 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 +000015696 ;;
15697 *)
15698 ld_shlibs=no
15699 ;;
15700 esac
John Criswell7a73b802003-06-30 21:59:07 +000015701 fi
John Criswell47fdd832003-07-14 16:52:07 +000015702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015703
John Criswell47fdd832003-07-14 16:52:07 +000015704 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015706 hardcode_libdir_flag_spec='-L$libdir'
15707 hardcode_shlibpath_var=no
15708 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015709
John Criswell47fdd832003-07-14 16:52:07 +000015710 freebsd1*)
15711 ld_shlibs=no
15712 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015713
John Criswell47fdd832003-07-14 16:52:07 +000015714 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15715 # support. Future versions do this automatically, but an explicit c++rt0.o
15716 # does not break anything, and helps significantly (at the cost of a little
15717 # extra space).
15718 freebsd2.2*)
15719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 hardcode_direct=yes
15722 hardcode_shlibpath_var=no
15723 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015724
John Criswell47fdd832003-07-14 16:52:07 +000015725 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15726 freebsd2*)
15727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_direct=yes
15729 hardcode_minus_L=yes
15730 hardcode_shlibpath_var=no
15731 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015732
John Criswell47fdd832003-07-14 16:52:07 +000015733 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015734 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015735 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15736 hardcode_libdir_flag_spec='-R$libdir'
15737 hardcode_direct=yes
15738 hardcode_shlibpath_var=no
15739 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015740
John Criswell47fdd832003-07-14 16:52:07 +000015741 hpux9*)
15742 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015743 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 +000015744 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015745 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 +000015746 fi
15747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15748 hardcode_libdir_separator=:
15749 hardcode_direct=yes
15750
15751 # hardcode_minus_L: Not really in the search PATH,
15752 # but as the default location of the library.
15753 hardcode_minus_L=yes
15754 export_dynamic_flag_spec='${wl}-E'
15755 ;;
15756
Reid Spencera773bd52006-08-04 18:18:08 +000015757 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015758 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15760 else
15761 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15762 fi
15763 if test "$with_gnu_ld" = no; then
15764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15765 hardcode_libdir_separator=:
15766
15767 hardcode_direct=yes
15768 export_dynamic_flag_spec='${wl}-E'
15769
15770 # hardcode_minus_L: Not really in the search PATH,
15771 # but as the default location of the library.
15772 hardcode_minus_L=yes
15773 fi
15774 ;;
15775
15776 hpux11*)
15777 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15778 case $host_cpu in
15779 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015780 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015782 ia64*)
15783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15784 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015785 *)
15786 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15787 ;;
15788 esac
15789 else
Reid Spencera773bd52006-08-04 18:18:08 +000015790 case $host_cpu in
15791 hppa*64*)
15792 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793 ;;
15794 ia64*)
15795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015796 ;;
15797 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015798 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 +000015799 ;;
15800 esac
15801 fi
15802 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15804 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015805
Reid Spencera773bd52006-08-04 18:18:08 +000015806 case $host_cpu in
15807 hppa*64*|ia64*)
15808 hardcode_libdir_flag_spec_ld='+b $libdir'
15809 hardcode_direct=no
15810 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015811 ;;
15812 *)
John Criswell47fdd832003-07-14 16:52:07 +000015813 hardcode_direct=yes
15814 export_dynamic_flag_spec='${wl}-E'
15815
15816 # hardcode_minus_L: Not really in the search PATH,
15817 # but as the default location of the library.
15818 hardcode_minus_L=yes
15819 ;;
15820 esac
15821 fi
15822 ;;
15823
15824 irix5* | irix6* | nonstopux*)
15825 if test "$GCC" = yes; then
15826 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'
15827 else
15828 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'
15829 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15830 fi
15831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15832 hardcode_libdir_separator=:
15833 link_all_deplibs=yes
15834 ;;
15835
15836 netbsd*)
15837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15839 else
15840 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15841 fi
15842 hardcode_libdir_flag_spec='-R$libdir'
15843 hardcode_direct=yes
15844 hardcode_shlibpath_var=no
15845 ;;
15846
15847 newsos6)
15848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_direct=yes
15850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15851 hardcode_libdir_separator=:
15852 hardcode_shlibpath_var=no
15853 ;;
15854
15855 openbsd*)
15856 hardcode_direct=yes
15857 hardcode_shlibpath_var=no
15858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015860 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 +000015861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15862 export_dynamic_flag_spec='${wl}-E'
15863 else
15864 case $host_os in
15865 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_libdir_flag_spec='-R$libdir'
15868 ;;
15869 *)
15870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15872 ;;
15873 esac
15874 fi
15875 ;;
15876
15877 os2*)
15878 hardcode_libdir_flag_spec='-L$libdir'
15879 hardcode_minus_L=yes
15880 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015881 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 +000015882 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15883 ;;
15884
15885 osf3*)
15886 if test "$GCC" = yes; then
15887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15888 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'
15889 else
15890 allow_undefined_flag=' -expect_unresolved \*'
15891 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'
15892 fi
15893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15894 hardcode_libdir_separator=:
15895 ;;
15896
15897 osf4* | osf5*) # as osf3* with the addition of -msym flag
15898 if test "$GCC" = yes; then
15899 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15900 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'
15901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15902 else
15903 allow_undefined_flag=' -expect_unresolved \*'
15904 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 +000015905 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 +000015906 $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 +000015907
John Criswell47fdd832003-07-14 16:52:07 +000015908 # Both c and cxx compiler support -rpath directly
15909 hardcode_libdir_flag_spec='-rpath $libdir'
15910 fi
15911 hardcode_libdir_separator=:
15912 ;;
15913
John Criswell47fdd832003-07-14 16:52:07 +000015914 solaris*)
15915 no_undefined_flag=' -z text'
15916 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015917 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015918 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015919 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15920 $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 +000015921 else
Reid Spencera773bd52006-08-04 18:18:08 +000015922 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015923 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15925 $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 +000015926 fi
15927 hardcode_libdir_flag_spec='-R$libdir'
15928 hardcode_shlibpath_var=no
15929 case $host_os in
15930 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015931 *)
15932 # The compiler driver will combine linker options so we
15933 # cannot just pass the convience library names through
15934 # without $wl, iff we do not link with $LD.
15935 # Luckily, gcc supports the same syntax we need for Sun Studio.
15936 # Supported since Solaris 2.6 (maybe 2.5.1?)
15937 case $wlarc in
15938 '')
15939 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15940 *)
15941 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' ;;
15942 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015943 esac
15944 link_all_deplibs=yes
15945 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015946
John Criswell47fdd832003-07-14 16:52:07 +000015947 sunos4*)
15948 if test "x$host_vendor" = xsequent; then
15949 # Use $CC to link under sequent, because it throws in some extra .o
15950 # files that make .init and .fini sections work.
15951 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15952 else
15953 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15954 fi
15955 hardcode_libdir_flag_spec='-L$libdir'
15956 hardcode_direct=yes
15957 hardcode_minus_L=yes
15958 hardcode_shlibpath_var=no
15959 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015960
John Criswell47fdd832003-07-14 16:52:07 +000015961 sysv4)
15962 case $host_vendor in
15963 sni)
15964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_direct=yes # is this really true???
15966 ;;
15967 siemens)
15968 ## LD is ld it makes a PLAMLIB
15969 ## CC just makes a GrossModule.
15970 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15971 reload_cmds='$CC -r -o $output$reload_objs'
15972 hardcode_direct=no
15973 ;;
15974 motorola)
15975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15976 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15977 ;;
15978 esac
15979 runpath_var='LD_RUN_PATH'
15980 hardcode_shlibpath_var=no
15981 ;;
15982
15983 sysv4.3*)
15984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_shlibpath_var=no
15986 export_dynamic_flag_spec='-Bexport'
15987 ;;
15988
15989 sysv4*MP*)
15990 if test -d /usr/nec; then
15991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15992 hardcode_shlibpath_var=no
15993 runpath_var=LD_RUN_PATH
15994 hardcode_runpath_var=yes
15995 ld_shlibs=yes
15996 fi
15997 ;;
15998
Reid Spencera773bd52006-08-04 18:18:08 +000015999 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16000 no_undefined_flag='${wl}-z,text'
16001 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016002 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016003 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016004
John Criswell47fdd832003-07-14 16:52:07 +000016005 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16007 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 +000016008 else
Reid Spencera773bd52006-08-04 18:18:08 +000016009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 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 +000016011 fi
John Criswell47fdd832003-07-14 16:52:07 +000016012 ;;
16013
Reid Spencera773bd52006-08-04 18:18:08 +000016014 sysv5* | sco3.2v5* | sco5v6*)
16015 # Note: We can NOT use -z defs as we might desire, because we do not
16016 # link with -lc, and that would cause any symbols used from libc to
16017 # always be unresolved, which means just about no library would
16018 # ever link correctly. If we're not using GNU ld we use -z text
16019 # though, which does catch some bad symbols but isn't as heavy-handed
16020 # as -z defs.
16021 no_undefined_flag='${wl}-z,text'
16022 allow_undefined_flag='${wl}-z,nodefs'
16023 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016024 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016025 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16026 hardcode_libdir_separator=':'
16027 link_all_deplibs=yes
16028 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016029 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016030
16031 if test "$GCC" = yes; then
16032 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16034 else
16035 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 fi
John Criswell47fdd832003-07-14 16:52:07 +000016038 ;;
16039
16040 uts4*)
16041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_libdir_flag_spec='-L$libdir'
16043 hardcode_shlibpath_var=no
16044 ;;
16045
16046 *)
16047 ld_shlibs=no
16048 ;;
16049 esac
16050 fi
16051
Reid Spencera773bd52006-08-04 18:18:08 +000016052{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16053echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016054test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016055
John Criswell47fdd832003-07-14 16:52:07 +000016056#
16057# Do we need to explicitly link libc?
16058#
16059case "x$archive_cmds_need_lc" in
16060x|xyes)
16061 # Assume -lc should be added
16062 archive_cmds_need_lc=yes
16063
16064 if test "$enable_shared" = yes && test "$GCC" = yes; then
16065 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016066 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016067 # FIXME: we may have to deal with multi-command sequences.
16068 ;;
16069 '$CC '*)
16070 # Test whether the compiler implicitly links with -lc since on some
16071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16072 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016073 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16074echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016075 $rm conftest*
16076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16077
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } 2>conftest.err; then
16083 soname=conftest
16084 lib=conftest
16085 libobjs=conftest.$ac_objext
16086 deplibs=
16087 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016088 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016089 compiler_flags=-v
16090 linker_flags=-v
16091 verstring=
16092 output_objdir=.
16093 libname=conftest
16094 lt_save_allow_undefined_flag=$allow_undefined_flag
16095 allow_undefined_flag=
16096 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16097 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }
16101 then
16102 archive_cmds_need_lc=no
16103 else
16104 archive_cmds_need_lc=yes
16105 fi
16106 allow_undefined_flag=$lt_save_allow_undefined_flag
16107 else
16108 cat conftest.err 1>&5
16109 fi
16110 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016111 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16112echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016113 ;;
16114 esac
16115 fi
16116 ;;
16117esac
16118
Reid Spencera773bd52006-08-04 18:18:08 +000016119{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16120echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016121library_names_spec=
16122libname_spec='lib$name'
16123soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016124shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016125postinstall_cmds=
16126postuninstall_cmds=
16127finish_cmds=
16128finish_eval=
16129shlibpath_var=
16130shlibpath_overrides_runpath=unknown
16131version_type=none
16132dynamic_linker="$host_os ld.so"
16133sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016134if test "$GCC" = yes; then
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 ';' >/dev/null ; then
16137 # if the path contains ";" then we assume it to be the separator
16138 # otherwise default to the standard path separator (i.e. ":") - it is
16139 # assumed that no part of a normal pathname contains ";" but that should
16140 # okay in the real world where ";" in dirpaths is itself problematic.
16141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16142 else
16143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16144 fi
16145else
16146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16147fi
16148need_lib_prefix=unknown
16149hardcode_into_libs=no
16150
16151# when you set need_version to no, make sure it does not cause -set_version
16152# flags to be left without arguments
16153need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016154
16155case $host_os in
16156aix3*)
16157 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016159 shlibpath_var=LIBPATH
16160
John Criswell47fdd832003-07-14 16:52:07 +000016161 # AIX 3 has no versioning support, so we append a major version to the name.
16162 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016163 ;;
16164
16165aix4* | aix5*)
16166 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016167 need_lib_prefix=no
16168 need_version=no
16169 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016170 if test "$host_cpu" = ia64; then
16171 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016173 shlibpath_var=LD_LIBRARY_PATH
16174 else
16175 # With GCC up to 2.95.x, collect2 would create an import file
16176 # for dependence libraries. The import file would start with
16177 # the line `#! .'. This would cause the generated library to
16178 # depend on `.', always an invalid library. This was fixed in
16179 # development snapshots of GCC prior to 3.0.
16180 case $host_os in
16181 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16183 echo ' yes '
16184 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16185 :
16186 else
16187 can_build_shared=no
16188 fi
16189 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016190 esac
John Criswell47fdd832003-07-14 16:52:07 +000016191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16192 # soname into executable. Probably we can add versioning support to
16193 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016194 if test "$aix_use_runtimelinking" = yes; then
16195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16196 # instead of lib<name>.a to let people know that these are not
16197 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016199 else
16200 # We preserve .a as extension for shared libraries through AIX4.2
16201 # and later when we are not doing run time linking.
16202 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016203 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016204 fi
16205 shlibpath_var=LIBPATH
16206 fi
16207 ;;
16208
16209amigaos*)
16210 library_names_spec='$libname.ixlibrary $libname.a'
16211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016212 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 +000016213 ;;
16214
16215beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016216 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016217 dynamic_linker="$host_os ld.so"
16218 shlibpath_var=LIBRARY_PATH
16219 ;;
16220
Reid Spencer2706f8c2004-09-19 23:53:36 +000016221bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016222 version_type=linux
16223 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016230 # the default ld.so.conf also contains /usr/contrib/lib and
16231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16232 # libtool to hard-code these into programs
16233 ;;
16234
16235cygwin* | mingw* | pw32*)
16236 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016237 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016238 need_version=no
16239 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016240
John Criswell7a73b802003-06-30 21:59:07 +000016241 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016242 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016243 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016245 postinstall_cmds='base_file=`basename \${file}`~
16246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16247 dldir=$destdir/`dirname \$dlpath`~
16248 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016249 $install_prog $dir/$dlname \$dldir/$dlname~
16250 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16252 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016253 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016254 shlibpath_overrides_runpath=yes
16255
16256 case $host_os in
16257 cygwin*)
16258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16259 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 +000016260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016261 ;;
16262 mingw*)
16263 # MinGW DLLs use traditional 'lib' prefix
16264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16267 # It is most probably a Windows format PATH printed by
16268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16269 # path with ; separators, and with drive letters. We can handle the
16270 # drive letters (cygwin fileutils understands them), so leave them,
16271 # especially as we might pass files found there to a mingw objdump,
16272 # which wouldn't understand a cygwinified path. Ahh.
16273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16274 else
16275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16276 fi
16277 ;;
16278 pw32*)
16279 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016280 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 +000016281 ;;
16282 esac
John Criswell7a73b802003-06-30 21:59:07 +000016283 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016284
John Criswell7a73b802003-06-30 21:59:07 +000016285 *)
John Criswell47fdd832003-07-14 16:52:07 +000016286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016287 ;;
16288 esac
16289 dynamic_linker='Win32 ld.exe'
16290 # FIXME: first we should search . and the directory the executable is in
16291 shlibpath_var=PATH
16292 ;;
16293
16294darwin* | rhapsody*)
16295 dynamic_linker="$host_os dyld"
16296 version_type=darwin
16297 need_lib_prefix=no
16298 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016300 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016301 shlibpath_overrides_runpath=yes
16302 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016303 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016305 if test "$GCC" = yes; then
16306 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"`
16307 else
16308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016309 fi
16310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16311 ;;
16312
16313dgux*)
16314 version_type=linux
16315 need_lib_prefix=no
16316 need_version=no
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016320 ;;
16321
16322freebsd1*)
16323 dynamic_linker=no
16324 ;;
16325
Reid Spencer2706f8c2004-09-19 23:53:36 +000016326kfreebsd*-gnu)
16327 version_type=linux
16328 need_lib_prefix=no
16329 need_version=no
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=no
16334 hardcode_into_libs=yes
16335 dynamic_linker='GNU ld.so'
16336 ;;
16337
Reid Spencera773bd52006-08-04 18:18:08 +000016338freebsd* | dragonfly*)
16339 # DragonFly does not have aout. When/if they implement a new
16340 # versioning mechanism, adjust this.
16341 if test -x /usr/bin/objformat; then
16342 objformat=`/usr/bin/objformat`
16343 else
16344 case $host_os in
16345 freebsd[123]*) objformat=aout ;;
16346 *) objformat=elf ;;
16347 esac
16348 fi
John Criswell7a73b802003-06-30 21:59:07 +000016349 version_type=freebsd-$objformat
16350 case $version_type in
16351 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016353 need_version=no
16354 need_lib_prefix=no
16355 ;;
16356 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016358 need_version=yes
16359 ;;
16360 esac
16361 shlibpath_var=LD_LIBRARY_PATH
16362 case $host_os in
16363 freebsd2*)
16364 shlibpath_overrides_runpath=yes
16365 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016366 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016367 shlibpath_overrides_runpath=yes
16368 hardcode_into_libs=yes
16369 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016370 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16371 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016372 shlibpath_overrides_runpath=no
16373 hardcode_into_libs=yes
16374 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016375 freebsd*) # from 4.6 on
16376 shlibpath_overrides_runpath=yes
16377 hardcode_into_libs=yes
16378 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016379 esac
16380 ;;
16381
16382gnu*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016388 shlibpath_var=LD_LIBRARY_PATH
16389 hardcode_into_libs=yes
16390 ;;
16391
16392hpux9* | hpux10* | hpux11*)
16393 # Give a soname corresponding to the major version so that dld.sl refuses to
16394 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016395 version_type=sunos
16396 need_lib_prefix=no
16397 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016398 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016399 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016400 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016401 hardcode_into_libs=yes
16402 dynamic_linker="$host_os dld.so"
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 if test "X$HPUX_IA64_MODE" = X32; then
16408 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16409 else
16410 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16411 fi
16412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16413 ;;
16414 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016415 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016416 hardcode_into_libs=yes
16417 dynamic_linker="$host_os dld.sl"
16418 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16424 ;;
16425 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016426 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016427 dynamic_linker="$host_os dld.sl"
16428 shlibpath_var=SHLIB_PATH
16429 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 ;;
16433 esac
John Criswell7a73b802003-06-30 21:59:07 +000016434 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16435 postinstall_cmds='chmod 555 $lib'
16436 ;;
16437
Reid Spencera773bd52006-08-04 18:18:08 +000016438interix3*)
16439 version_type=linux
16440 need_lib_prefix=no
16441 need_version=no
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 shlibpath_overrides_runpath=no
16447 hardcode_into_libs=yes
16448 ;;
16449
John Criswell47fdd832003-07-14 16:52:07 +000016450irix5* | irix6* | nonstopux*)
16451 case $host_os in
16452 nonstopux*) version_type=nonstopux ;;
16453 *)
16454 if test "$lt_cv_prog_gnu_ld" = yes; then
16455 version_type=linux
16456 else
16457 version_type=irix
16458 fi ;;
16459 esac
John Criswell7a73b802003-06-30 21:59:07 +000016460 need_lib_prefix=no
16461 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016462 soname_spec='${libname}${release}${shared_ext}$major'
16463 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 +000016464 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016465 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016466 libsuff= shlibsuff=
16467 ;;
16468 *)
16469 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16471 libsuff= shlibsuff= libmagic=32-bit;;
16472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16473 libsuff=32 shlibsuff=N32 libmagic=N32;;
16474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016476 *) libsuff= shlibsuff= libmagic=never-match;;
16477 esac
16478 ;;
16479 esac
16480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16481 shlibpath_overrides_runpath=no
16482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016484 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016485 ;;
16486
16487# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016488linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016489 dynamic_linker=no
16490 ;;
16491
16492# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016493linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016494 version_type=linux
16495 need_lib_prefix=no
16496 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=no
16502 # This implies no fast_install, which is unacceptable.
16503 # Some rework will be needed to allow for fast_install
16504 # before this can be enabled.
16505 hardcode_into_libs=yes
16506
Reid Spencer2706f8c2004-09-19 23:53:36 +000016507 # Append ld.so.conf contents to the search path
16508 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016509 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 +000016510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16511 fi
16512
John Criswell7a73b802003-06-30 21:59:07 +000016513 # We used to test for /lib/ld.so.1 and disable shared libraries on
16514 # powerpc, because MkLinux only supported shared libraries with the
16515 # GNU dynamic linker. Since this was broken with cross compilers,
16516 # most powerpc-linux boxes support dynamic linking these days and
16517 # people can always --disable-shared, the test was removed, and we
16518 # assume the GNU/Linux dynamic linker is in use.
16519 dynamic_linker='GNU/Linux ld.so'
16520 ;;
16521
Reid Spencer2706f8c2004-09-19 23:53:36 +000016522knetbsd*-gnu)
16523 version_type=linux
16524 need_lib_prefix=no
16525 need_version=no
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=no
16530 hardcode_into_libs=yes
16531 dynamic_linker='GNU ld.so'
16532 ;;
16533
John Criswell7a73b802003-06-30 21:59:07 +000016534netbsd*)
16535 version_type=sunos
16536 need_lib_prefix=no
16537 need_version=no
16538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16541 dynamic_linker='NetBSD (a.out) ld.so'
16542 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016544 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016545 dynamic_linker='NetBSD ld.elf_so'
16546 fi
16547 shlibpath_var=LD_LIBRARY_PATH
16548 shlibpath_overrides_runpath=yes
16549 hardcode_into_libs=yes
16550 ;;
16551
16552newsos6)
16553 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=yes
16557 ;;
16558
Reid Spencer2706f8c2004-09-19 23:53:36 +000016559nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016560 version_type=linux
16561 need_lib_prefix=no
16562 need_version=no
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=yes
16567 ;;
16568
16569openbsd*)
16570 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016571 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016572 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16574 case $host_os in
16575 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16576 *) need_version=no ;;
16577 esac
John Criswell47fdd832003-07-14 16:52:07 +000016578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16580 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016581 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 +000016582 case $host_os in
16583 openbsd2.[89] | openbsd2.[89].*)
16584 shlibpath_overrides_runpath=no
16585 ;;
16586 *)
16587 shlibpath_overrides_runpath=yes
16588 ;;
16589 esac
John Criswell7a73b802003-06-30 21:59:07 +000016590 else
16591 shlibpath_overrides_runpath=yes
16592 fi
John Criswell7a73b802003-06-30 21:59:07 +000016593 ;;
16594
16595os2*)
16596 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016597 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016598 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016599 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016600 dynamic_linker='OS/2 ld.exe'
16601 shlibpath_var=LIBPATH
16602 ;;
16603
16604osf3* | osf4* | osf5*)
16605 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016606 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016607 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016608 soname_spec='${libname}${release}${shared_ext}$major'
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016610 shlibpath_var=LD_LIBRARY_PATH
16611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16613 ;;
16614
John Criswell7a73b802003-06-30 21:59:07 +000016615solaris*)
16616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 hardcode_into_libs=yes
16624 # ldd complains unless libraries are executable
16625 postinstall_cmds='chmod +x $lib'
16626 ;;
16627
16628sunos4*)
16629 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 if test "$with_gnu_ld" = yes; then
16635 need_lib_prefix=no
16636 fi
16637 need_version=yes
16638 ;;
16639
Reid Spencera773bd52006-08-04 18:18:08 +000016640sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016641 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016644 shlibpath_var=LD_LIBRARY_PATH
16645 case $host_vendor in
16646 sni)
16647 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016648 need_lib_prefix=no
16649 export_dynamic_flag_spec='${wl}-Blargedynsym'
16650 runpath_var=LD_RUN_PATH
16651 ;;
16652 siemens)
16653 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016654 ;;
16655 motorola)
16656 need_lib_prefix=no
16657 need_version=no
16658 shlibpath_overrides_runpath=no
16659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16660 ;;
16661 esac
16662 ;;
16663
John Criswell7a73b802003-06-30 21:59:07 +000016664sysv4*MP*)
16665 if test -d /usr/nec ;then
16666 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016667 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16668 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016669 shlibpath_var=LD_LIBRARY_PATH
16670 fi
16671 ;;
16672
Reid Spencera773bd52006-08-04 18:18:08 +000016673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16674 version_type=freebsd-elf
16675 need_lib_prefix=no
16676 need_version=no
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 hardcode_into_libs=yes
16681 if test "$with_gnu_ld" = yes; then
16682 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16683 shlibpath_overrides_runpath=no
16684 else
16685 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16686 shlibpath_overrides_runpath=yes
16687 case $host_os in
16688 sco3.2v5*)
16689 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16690 ;;
16691 esac
16692 fi
16693 sys_lib_dlsearch_path_spec='/usr/lib'
16694 ;;
16695
John Criswell47fdd832003-07-14 16:52:07 +000016696uts4*)
16697 version_type=linux
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 shlibpath_var=LD_LIBRARY_PATH
16701 ;;
16702
John Criswell7a73b802003-06-30 21:59:07 +000016703*)
16704 dynamic_linker=no
16705 ;;
16706esac
Reid Spencera773bd52006-08-04 18:18:08 +000016707{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16708echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016709test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016710
Reid Spencera773bd52006-08-04 18:18:08 +000016711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16712if test "$GCC" = yes; then
16713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16714fi
16715
16716{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16717echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016718hardcode_action=
16719if test -n "$hardcode_libdir_flag_spec" || \
16720 test -n "$runpath_var" || \
16721 test "X$hardcode_automatic" = "Xyes" ; then
16722
16723 # We can hardcode non-existant directories.
16724 if test "$hardcode_direct" != no &&
16725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16726 # have to relink, otherwise we might link with an installed library
16727 # when we should be linking with a yet-to-be-installed one
16728 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16729 test "$hardcode_minus_L" != no; then
16730 # Linking always hardcodes the temporary library directory.
16731 hardcode_action=relink
16732 else
16733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16734 hardcode_action=immediate
16735 fi
16736else
16737 # We cannot hardcode anything, or else we can only hardcode existing
16738 # directories.
16739 hardcode_action=unsupported
16740fi
Reid Spencera773bd52006-08-04 18:18:08 +000016741{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16742echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016743
16744if test "$hardcode_action" = relink; then
16745 # Fast installation is not supported
16746 enable_fast_install=no
16747elif test "$shlibpath_overrides_runpath" = yes ||
16748 test "$enable_shared" = no; then
16749 # Fast installation is not necessary
16750 enable_fast_install=needless
16751fi
16752
16753striplib=
16754old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016755{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16756echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016757if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016760 { echo "$as_me:$LINENO: result: yes" >&5
16761echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016762else
16763# FIXME - insert some real tests, host_os isn't really good enough
16764 case $host_os in
16765 darwin*)
16766 if test -n "$STRIP" ; then
16767 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016768 { echo "$as_me:$LINENO: result: yes" >&5
16769echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016770 else
Reid Spencera773bd52006-08-04 18:18:08 +000016771 { echo "$as_me:$LINENO: result: no" >&5
16772echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016773fi
16774 ;;
16775 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016776 { echo "$as_me:$LINENO: result: no" >&5
16777echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016778 ;;
16779 esac
16780fi
16781
John Criswell7a73b802003-06-30 21:59:07 +000016782if test "x$enable_dlopen" != xyes; then
16783 enable_dlopen=unknown
16784 enable_dlopen_self=unknown
16785 enable_dlopen_self_static=unknown
16786else
16787 lt_cv_dlopen=no
16788 lt_cv_dlopen_libs=
16789
16790 case $host_os in
16791 beos*)
16792 lt_cv_dlopen="load_add_on"
16793 lt_cv_dlopen_libs=
16794 lt_cv_dlopen_self=yes
16795 ;;
16796
John Criswell47fdd832003-07-14 16:52:07 +000016797 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016798 lt_cv_dlopen="LoadLibrary"
16799 lt_cv_dlopen_libs=
16800 ;;
16801
John Criswell47fdd832003-07-14 16:52:07 +000016802 cygwin*)
16803 lt_cv_dlopen="dlopen"
16804 lt_cv_dlopen_libs=
16805 ;;
16806
16807 darwin*)
16808 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016809 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16810echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
16814 ac_check_lib_save_LIBS=$LIBS
16815LIBS="-ldl $LIBS"
16816cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016822
Reid Spencera773bd52006-08-04 18:18:08 +000016823/* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016826#ifdef __cplusplus
16827extern "C"
16828#endif
John Criswell47fdd832003-07-14 16:52:07 +000016829char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016830int
16831main ()
16832{
Reid Spencera773bd52006-08-04 18:18:08 +000016833return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016839if { (ac_try="$ac_link"
16840case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_try") 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016872 ac_cv_lib_dl_dlopen=yes
16873else
16874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016875sed 's/^/| /' conftest.$ac_ext >&5
16876
Reid Spencera773bd52006-08-04 18:18:08 +000016877 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016878fi
Reid Spencera773bd52006-08-04 18:18:08 +000016879
Tanya Lattnercf067672008-01-17 05:57:22 +000016880rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016882LIBS=$ac_check_lib_save_LIBS
16883fi
Reid Spencera773bd52006-08-04 18:18:08 +000016884{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16885echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016886if test $ac_cv_lib_dl_dlopen = yes; then
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16888else
16889
16890 lt_cv_dlopen="dyld"
16891 lt_cv_dlopen_libs=
16892 lt_cv_dlopen_self=yes
16893
16894fi
16895
16896 ;;
16897
John Criswell7a73b802003-06-30 21:59:07 +000016898 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016899 { echo "$as_me:$LINENO: checking for shl_load" >&5
16900echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016901if test "${ac_cv_func_shl_load+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903else
16904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016910/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912#define shl_load innocuous_shl_load
16913
John Criswell7a73b802003-06-30 21:59:07 +000016914/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016915 which can conflict with char shl_load (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016918
John Criswell0c38eaf2003-09-10 15:17:25 +000016919#ifdef __STDC__
16920# include <limits.h>
16921#else
16922# include <assert.h>
16923#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016924
16925#undef shl_load
16926
Reid Spencera773bd52006-08-04 18:18:08 +000016927/* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016930#ifdef __cplusplus
16931extern "C"
16932#endif
John Criswell7a73b802003-06-30 21:59:07 +000016933char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016934/* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016937#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016938choke me
John Criswell7a73b802003-06-30 21:59:07 +000016939#endif
16940
John Criswell0c38eaf2003-09-10 15:17:25 +000016941int
16942main ()
16943{
Reid Spencera773bd52006-08-04 18:18:08 +000016944return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016945 ;
16946 return 0;
16947}
16948_ACEOF
16949rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016950if { (ac_try="$ac_link"
16951case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954esac
16955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967esac
16968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16977esac
16978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016983 ac_cv_func_shl_load=yes
16984else
16985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016986sed 's/^/| /' conftest.$ac_ext >&5
16987
Reid Spencera773bd52006-08-04 18:18:08 +000016988 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016989fi
Reid Spencera773bd52006-08-04 18:18:08 +000016990
Tanya Lattnercf067672008-01-17 05:57:22 +000016991rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016992 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016993fi
Reid Spencera773bd52006-08-04 18:18:08 +000016994{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16995echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016996if test $ac_cv_func_shl_load = yes; then
16997 lt_cv_dlopen="shl_load"
16998else
Reid Spencera773bd52006-08-04 18:18:08 +000016999 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17000echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017001if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004 ac_check_lib_save_LIBS=$LIBS
17005LIBS="-ldld $LIBS"
17006cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017012
Reid Spencera773bd52006-08-04 18:18:08 +000017013/* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017016#ifdef __cplusplus
17017extern "C"
17018#endif
John Criswell7a73b802003-06-30 21:59:07 +000017019char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017020int
17021main ()
17022{
Reid Spencera773bd52006-08-04 18:18:08 +000017023return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017029if { (ac_try="$ac_link"
17030case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest$ac_exeext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056esac
17057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017062 ac_cv_lib_dld_shl_load=yes
17063else
17064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017065sed 's/^/| /' conftest.$ac_ext >&5
17066
Reid Spencera773bd52006-08-04 18:18:08 +000017067 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017068fi
Reid Spencera773bd52006-08-04 18:18:08 +000017069
Tanya Lattnercf067672008-01-17 05:57:22 +000017070rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017071 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017072LIBS=$ac_check_lib_save_LIBS
17073fi
Reid Spencera773bd52006-08-04 18:18:08 +000017074{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017076if test $ac_cv_lib_dld_shl_load = yes; then
17077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17078else
Reid Spencera773bd52006-08-04 18:18:08 +000017079 { echo "$as_me:$LINENO: checking for dlopen" >&5
17080echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017081if test "${ac_cv_func_dlopen+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017085/* confdefs.h. */
17086_ACEOF
17087cat confdefs.h >>conftest.$ac_ext
17088cat >>conftest.$ac_ext <<_ACEOF
17089/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017090/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092#define dlopen innocuous_dlopen
17093
John Criswell7a73b802003-06-30 21:59:07 +000017094/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017095 which can conflict with char dlopen (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017098
John Criswell0c38eaf2003-09-10 15:17:25 +000017099#ifdef __STDC__
17100# include <limits.h>
17101#else
17102# include <assert.h>
17103#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017104
17105#undef dlopen
17106
Reid Spencera773bd52006-08-04 18:18:08 +000017107/* Override any GCC internal prototype to avoid an error.
17108 Use char because int might match the return type of a GCC
17109 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017110#ifdef __cplusplus
17111extern "C"
17112#endif
John Criswell7a73b802003-06-30 21:59:07 +000017113char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017114/* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017117#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017118choke me
John Criswell7a73b802003-06-30 21:59:07 +000017119#endif
17120
John Criswell0c38eaf2003-09-10 15:17:25 +000017121int
17122main ()
17123{
Reid Spencera773bd52006-08-04 18:18:08 +000017124return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017130if { (ac_try="$ac_link"
17131case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17134esac
17135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144 { (case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147esac
17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_try") 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017163 ac_cv_func_dlopen=yes
17164else
17165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017166sed 's/^/| /' conftest.$ac_ext >&5
17167
Reid Spencera773bd52006-08-04 18:18:08 +000017168 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017169fi
Reid Spencera773bd52006-08-04 18:18:08 +000017170
Tanya Lattnercf067672008-01-17 05:57:22 +000017171rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017172 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017173fi
Reid Spencera773bd52006-08-04 18:18:08 +000017174{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17175echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017176if test $ac_cv_func_dlopen = yes; then
17177 lt_cv_dlopen="dlopen"
17178else
Reid Spencera773bd52006-08-04 18:18:08 +000017179 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17180echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017181if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184 ac_check_lib_save_LIBS=$LIBS
17185LIBS="-ldl $LIBS"
17186cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017187/* confdefs.h. */
17188_ACEOF
17189cat confdefs.h >>conftest.$ac_ext
17190cat >>conftest.$ac_ext <<_ACEOF
17191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017192
Reid Spencera773bd52006-08-04 18:18:08 +000017193/* Override any GCC internal prototype to avoid an error.
17194 Use char because int might match the return type of a GCC
17195 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017196#ifdef __cplusplus
17197extern "C"
17198#endif
John Criswell7a73b802003-06-30 21:59:07 +000017199char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017200int
17201main ()
17202{
Reid Spencera773bd52006-08-04 18:18:08 +000017203return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017209if { (ac_try="$ac_link"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017242 ac_cv_lib_dl_dlopen=yes
17243else
17244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017245sed 's/^/| /' conftest.$ac_ext >&5
17246
Reid Spencera773bd52006-08-04 18:18:08 +000017247 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017248fi
Reid Spencera773bd52006-08-04 18:18:08 +000017249
Tanya Lattnercf067672008-01-17 05:57:22 +000017250rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017251 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017252LIBS=$ac_check_lib_save_LIBS
17253fi
Reid Spencera773bd52006-08-04 18:18:08 +000017254{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17255echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017256if test $ac_cv_lib_dl_dlopen = yes; then
17257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17258else
Reid Spencera773bd52006-08-04 18:18:08 +000017259 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17260echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017261if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263else
17264 ac_check_lib_save_LIBS=$LIBS
17265LIBS="-lsvld $LIBS"
17266cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017267/* confdefs.h. */
17268_ACEOF
17269cat confdefs.h >>conftest.$ac_ext
17270cat >>conftest.$ac_ext <<_ACEOF
17271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017272
Reid Spencera773bd52006-08-04 18:18:08 +000017273/* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017276#ifdef __cplusplus
17277extern "C"
17278#endif
John Criswell7a73b802003-06-30 21:59:07 +000017279char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017280int
17281main ()
17282{
Reid Spencera773bd52006-08-04 18:18:08 +000017283return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017284 ;
17285 return 0;
17286}
17287_ACEOF
17288rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017289if { (ac_try="$ac_link"
17290case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293esac
17294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17303 { (case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17306esac
17307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_try") 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest$ac_exeext'
17313 { (case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17316esac
17317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017322 ac_cv_lib_svld_dlopen=yes
17323else
17324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017325sed 's/^/| /' conftest.$ac_ext >&5
17326
Reid Spencera773bd52006-08-04 18:18:08 +000017327 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017328fi
Reid Spencera773bd52006-08-04 18:18:08 +000017329
Tanya Lattnercf067672008-01-17 05:57:22 +000017330rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017331 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017332LIBS=$ac_check_lib_save_LIBS
17333fi
Reid Spencera773bd52006-08-04 18:18:08 +000017334{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17335echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017336if test $ac_cv_lib_svld_dlopen = yes; then
17337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17338else
Reid Spencera773bd52006-08-04 18:18:08 +000017339 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17340echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017341if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343else
17344 ac_check_lib_save_LIBS=$LIBS
17345LIBS="-ldld $LIBS"
17346cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017352
Reid Spencera773bd52006-08-04 18:18:08 +000017353/* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017356#ifdef __cplusplus
17357extern "C"
17358#endif
John Criswell7a73b802003-06-30 21:59:07 +000017359char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017360int
17361main ()
17362{
Reid Spencera773bd52006-08-04 18:18:08 +000017363return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017364 ;
17365 return 0;
17366}
17367_ACEOF
17368rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017369if { (ac_try="$ac_link"
17370case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373esac
17374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017381 (exit $ac_status); } &&
17382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest$ac_exeext'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017402 ac_cv_lib_dld_dld_link=yes
17403else
17404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017405sed 's/^/| /' conftest.$ac_ext >&5
17406
Reid Spencera773bd52006-08-04 18:18:08 +000017407 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017408fi
Reid Spencera773bd52006-08-04 18:18:08 +000017409
Tanya Lattnercf067672008-01-17 05:57:22 +000017410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017411 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017412LIBS=$ac_check_lib_save_LIBS
17413fi
Reid Spencera773bd52006-08-04 18:18:08 +000017414{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17415echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017416if test $ac_cv_lib_dld_dld_link = yes; then
17417 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17418fi
17419
17420
17421fi
17422
17423
17424fi
17425
17426
17427fi
17428
17429
17430fi
17431
17432
17433fi
17434
17435 ;;
17436 esac
17437
17438 if test "x$lt_cv_dlopen" != xno; then
17439 enable_dlopen=yes
17440 else
17441 enable_dlopen=no
17442 fi
17443
17444 case $lt_cv_dlopen in
17445 dlopen)
17446 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017447 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017448
17449 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017451
17452 save_LIBS="$LIBS"
17453 LIBS="$lt_cv_dlopen_libs $LIBS"
17454
Reid Spencera773bd52006-08-04 18:18:08 +000017455 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17456echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017457if test "${lt_cv_dlopen_self+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459else
17460 if test "$cross_compiling" = yes; then :
17461 lt_cv_dlopen_self=cross
17462else
John Criswell47fdd832003-07-14 16:52:07 +000017463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017464 lt_status=$lt_dlunknown
17465 cat > conftest.$ac_ext <<EOF
Jim Grosbach673612e2008-10-02 22:56:44 +000017466#line 17466 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017467#include "confdefs.h"
17468
17469#if HAVE_DLFCN_H
17470#include <dlfcn.h>
17471#endif
17472
17473#include <stdio.h>
17474
17475#ifdef RTLD_GLOBAL
17476# define LT_DLGLOBAL RTLD_GLOBAL
17477#else
17478# ifdef DL_GLOBAL
17479# define LT_DLGLOBAL DL_GLOBAL
17480# else
17481# define LT_DLGLOBAL 0
17482# endif
17483#endif
17484
17485/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17486 find out it does not work in some platform. */
17487#ifndef LT_DLLAZY_OR_NOW
17488# ifdef RTLD_LAZY
17489# define LT_DLLAZY_OR_NOW RTLD_LAZY
17490# else
17491# ifdef DL_LAZY
17492# define LT_DLLAZY_OR_NOW DL_LAZY
17493# else
17494# ifdef RTLD_NOW
17495# define LT_DLLAZY_OR_NOW RTLD_NOW
17496# else
17497# ifdef DL_NOW
17498# define LT_DLLAZY_OR_NOW DL_NOW
17499# else
17500# define LT_DLLAZY_OR_NOW 0
17501# endif
17502# endif
17503# endif
17504# endif
17505#endif
17506
17507#ifdef __cplusplus
17508extern "C" void exit (int);
17509#endif
17510
17511void fnord() { int i=42;}
17512int main ()
17513{
17514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17515 int status = $lt_dlunknown;
17516
17517 if (self)
17518 {
17519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17521 /* dlclose (self); */
17522 }
Reid Spencera773bd52006-08-04 18:18:08 +000017523 else
17524 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017525
17526 exit (status);
17527}
17528EOF
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017534 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017535 lt_status=$?
17536 case x$lt_status in
17537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017540 esac
17541 else :
17542 # compilation failed
17543 lt_cv_dlopen_self=no
17544 fi
17545fi
17546rm -fr conftest*
17547
17548
17549fi
Reid Spencera773bd52006-08-04 18:18:08 +000017550{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17551echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017552
17553 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17555 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17556echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017557if test "${lt_cv_dlopen_self_static+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560 if test "$cross_compiling" = yes; then :
17561 lt_cv_dlopen_self_static=cross
17562else
John Criswell47fdd832003-07-14 16:52:07 +000017563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017564 lt_status=$lt_dlunknown
17565 cat > conftest.$ac_ext <<EOF
Jim Grosbach673612e2008-10-02 22:56:44 +000017566#line 17566 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017567#include "confdefs.h"
17568
17569#if HAVE_DLFCN_H
17570#include <dlfcn.h>
17571#endif
17572
17573#include <stdio.h>
17574
17575#ifdef RTLD_GLOBAL
17576# define LT_DLGLOBAL RTLD_GLOBAL
17577#else
17578# ifdef DL_GLOBAL
17579# define LT_DLGLOBAL DL_GLOBAL
17580# else
17581# define LT_DLGLOBAL 0
17582# endif
17583#endif
17584
17585/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17586 find out it does not work in some platform. */
17587#ifndef LT_DLLAZY_OR_NOW
17588# ifdef RTLD_LAZY
17589# define LT_DLLAZY_OR_NOW RTLD_LAZY
17590# else
17591# ifdef DL_LAZY
17592# define LT_DLLAZY_OR_NOW DL_LAZY
17593# else
17594# ifdef RTLD_NOW
17595# define LT_DLLAZY_OR_NOW RTLD_NOW
17596# else
17597# ifdef DL_NOW
17598# define LT_DLLAZY_OR_NOW DL_NOW
17599# else
17600# define LT_DLLAZY_OR_NOW 0
17601# endif
17602# endif
17603# endif
17604# endif
17605#endif
17606
17607#ifdef __cplusplus
17608extern "C" void exit (int);
17609#endif
17610
17611void fnord() { int i=42;}
17612int main ()
17613{
17614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17615 int status = $lt_dlunknown;
17616
17617 if (self)
17618 {
17619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17621 /* dlclose (self); */
17622 }
Reid Spencera773bd52006-08-04 18:18:08 +000017623 else
17624 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017625
17626 exit (status);
17627}
17628EOF
17629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17630 (eval $ac_link) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017634 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017635 lt_status=$?
17636 case x$lt_status in
17637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017639 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017640 esac
17641 else :
17642 # compilation failed
17643 lt_cv_dlopen_self_static=no
17644 fi
17645fi
17646rm -fr conftest*
17647
17648
17649fi
Reid Spencera773bd52006-08-04 18:18:08 +000017650{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17651echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017652 fi
17653
17654 CPPFLAGS="$save_CPPFLAGS"
17655 LDFLAGS="$save_LDFLAGS"
17656 LIBS="$save_LIBS"
17657 ;;
17658 esac
17659
17660 case $lt_cv_dlopen_self in
17661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17662 *) enable_dlopen_self=unknown ;;
17663 esac
17664
17665 case $lt_cv_dlopen_self_static in
17666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17667 *) enable_dlopen_self_static=unknown ;;
17668 esac
17669fi
17670
17671
Reid Spencera773bd52006-08-04 18:18:08 +000017672# Report which library types will actually be built
17673{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17674echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17675{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17676echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017677
Reid Spencera773bd52006-08-04 18:18:08 +000017678{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17679echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017680test "$can_build_shared" = "no" && enable_shared=no
17681
17682# On AIX, shared libraries and static libraries use the same namespace, and
17683# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017684case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017685aix3*)
17686 test "$enable_shared" = yes && enable_static=no
17687 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017689 postinstall_cmds='$RANLIB $lib'
17690 fi
17691 ;;
17692
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17695 test "$enable_shared" = yes && enable_static=no
17696 fi
John Criswell7a73b802003-06-30 21:59:07 +000017697 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017698esac
Reid Spencera773bd52006-08-04 18:18:08 +000017699{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17700echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017701
Reid Spencera773bd52006-08-04 18:18:08 +000017702{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17703echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017704# Make sure either enable_shared or enable_static is yes.
17705test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017706{ echo "$as_me:$LINENO: result: $enable_static" >&5
17707echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017708
17709# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017710# libtool distribution, otherwise you forgot to ship ltmain.sh
17711# with your package, and you will get complaints that there are
17712# no rules to generate ltmain.sh.
17713if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017714 # See if we are running on zsh, and set the options which allow our commands through
17715 # without removal of \ escapes.
17716 if test -n "${ZSH_VERSION+set}" ; then
17717 setopt NO_GLOB_SUBST
17718 fi
John Criswell7a73b802003-06-30 21:59:07 +000017719 # Now quote all the things that may contain metacharacters while being
17720 # careful not to overquote the AC_SUBSTed values. We take copies of the
17721 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017722 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 +000017723 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17726 deplibs_check_method reload_flag reload_cmds need_locks \
17727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17728 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017730 old_postinstall_cmds old_postuninstall_cmds \
17731 compiler \
17732 CC \
17733 LD \
17734 lt_prog_compiler_wl \
17735 lt_prog_compiler_pic \
17736 lt_prog_compiler_static \
17737 lt_prog_compiler_no_builtin_flag \
17738 export_dynamic_flag_spec \
17739 thread_safe_flag_spec \
17740 whole_archive_flag_spec \
17741 enable_shared_with_static_runtimes \
17742 old_archive_cmds \
17743 old_archive_from_new_cmds \
17744 predep_objects \
17745 postdep_objects \
17746 predeps \
17747 postdeps \
17748 compiler_lib_search_path \
17749 archive_cmds \
17750 archive_expsym_cmds \
17751 postinstall_cmds \
17752 postuninstall_cmds \
17753 old_archive_from_expsyms_cmds \
17754 allow_undefined_flag \
17755 no_undefined_flag \
17756 export_symbols_cmds \
17757 hardcode_libdir_flag_spec \
17758 hardcode_libdir_flag_spec_ld \
17759 hardcode_libdir_separator \
17760 hardcode_automatic \
17761 module_cmds \
17762 module_expsym_cmds \
17763 lt_cv_prog_compiler_c_o \
17764 exclude_expsyms \
17765 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017766
17767 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017768 old_archive_cmds | \
17769 old_archive_from_new_cmds | \
17770 archive_cmds | \
17771 archive_expsym_cmds | \
17772 module_cmds | \
17773 module_expsym_cmds | \
17774 old_archive_from_expsyms_cmds | \
17775 export_symbols_cmds | \
17776 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017777 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017778 old_postinstall_cmds | old_postuninstall_cmds | \
17779 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017780 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017781 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 +000017782 ;;
17783 *)
17784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17785 ;;
17786 esac
17787 done
17788
John Criswell47fdd832003-07-14 16:52:07 +000017789 case $lt_echo in
17790 *'\$0 --fallback-echo"')
17791 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17792 ;;
17793 esac
17794
17795cfgfile="${ofile}T"
17796 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17797 $rm -f "$cfgfile"
17798 { echo "$as_me:$LINENO: creating $ofile" >&5
17799echo "$as_me: creating $ofile" >&6;}
17800
17801 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017802#! $SHELL
17803
John Criswell47fdd832003-07-14 16:52:07 +000017804# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017805# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17806# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17807#
John Criswell47fdd832003-07-14 16:52:07 +000017808# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17809# Free Software Foundation, Inc.
17810#
17811# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017812# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17813#
17814# This program is free software; you can redistribute it and/or modify
17815# it under the terms of the GNU General Public License as published by
17816# the Free Software Foundation; either version 2 of the License, or
17817# (at your option) any later version.
17818#
17819# This program is distributed in the hope that it will be useful, but
17820# WITHOUT ANY WARRANTY; without even the implied warranty of
17821# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17822# General Public License for more details.
17823#
17824# You should have received a copy of the GNU General Public License
17825# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017826# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017827#
17828# As a special exception to the GNU General Public License, if you
17829# distribute this file as part of a program that contains a
17830# configuration script generated by Autoconf, you may include it under
17831# the same distribution terms that you use for the rest of that program.
17832
John Criswell47fdd832003-07-14 16:52:07 +000017833# A sed program that does not truncate output.
17834SED=$lt_SED
17835
John Criswell7a73b802003-06-30 21:59:07 +000017836# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017837Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017838
17839# The HP-UX ksh and POSIX shell print the target directory to stdout
17840# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017841(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017842
John Criswell47fdd832003-07-14 16:52:07 +000017843# The names of the tagged configurations supported by this script.
17844available_tags=
17845
John Criswell7a73b802003-06-30 21:59:07 +000017846# ### BEGIN LIBTOOL CONFIG
17847
17848# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17849
17850# Shell to use when invoking shell scripts.
17851SHELL=$lt_SHELL
17852
17853# Whether or not to build shared libraries.
17854build_libtool_libs=$enable_shared
17855
17856# Whether or not to build static libraries.
17857build_old_libs=$enable_static
17858
17859# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017860build_libtool_need_lc=$archive_cmds_need_lc
17861
17862# Whether or not to disallow shared libs when runtime libs are static
17863allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017864
17865# Whether or not to optimize for fast installation.
17866fast_install=$enable_fast_install
17867
17868# The host system.
17869host_alias=$host_alias
17870host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017871host_os=$host_os
17872
17873# The build system.
17874build_alias=$build_alias
17875build=$build
17876build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017877
17878# An echo program that does not interpret backslashes.
17879echo=$lt_echo
17880
17881# The archiver.
17882AR=$lt_AR
17883AR_FLAGS=$lt_AR_FLAGS
17884
John Criswell47fdd832003-07-14 16:52:07 +000017885# A C compiler.
17886LTCC=$lt_LTCC
17887
Reid Spencera773bd52006-08-04 18:18:08 +000017888# LTCC compiler flags.
17889LTCFLAGS=$lt_LTCFLAGS
17890
John Criswell47fdd832003-07-14 16:52:07 +000017891# A language-specific compiler.
17892CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017893
17894# Is the compiler the GNU C compiler?
17895with_gcc=$GCC
17896
John Criswell47fdd832003-07-14 16:52:07 +000017897# An ERE matcher.
17898EGREP=$lt_EGREP
17899
John Criswell7a73b802003-06-30 21:59:07 +000017900# The linker used to build libraries.
17901LD=$lt_LD
17902
17903# Whether we need hard or soft links.
17904LN_S=$lt_LN_S
17905
17906# A BSD-compatible nm program.
17907NM=$lt_NM
17908
17909# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017910STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017911
17912# Used to examine libraries when file_magic_cmd begins "file"
17913MAGIC_CMD=$MAGIC_CMD
17914
17915# Used on cygwin: DLL creation program.
17916DLLTOOL="$DLLTOOL"
17917
17918# Used on cygwin: object dumper.
17919OBJDUMP="$OBJDUMP"
17920
17921# Used on cygwin: assembler.
17922AS="$AS"
17923
17924# The name of the directory that contains temporary libtool files.
17925objdir=$objdir
17926
17927# How to create reloadable object files.
17928reload_flag=$lt_reload_flag
17929reload_cmds=$lt_reload_cmds
17930
17931# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017932wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017933
17934# Object file suffix (normally "o").
17935objext="$ac_objext"
17936
17937# Old archive suffix (normally "a").
17938libext="$libext"
17939
John Criswell47fdd832003-07-14 16:52:07 +000017940# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017941shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017942
John Criswell7a73b802003-06-30 21:59:07 +000017943# Executable file suffix (normally "").
17944exeext="$exeext"
17945
17946# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017947pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017948pic_mode=$pic_mode
17949
John Criswell47fdd832003-07-14 16:52:07 +000017950# What is the maximum length of a command?
17951max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017952
John Criswell47fdd832003-07-14 16:52:07 +000017953# Does compiler simultaneously support -c and -o options?
17954compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017955
Reid Spencera773bd52006-08-04 18:18:08 +000017956# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017957need_locks=$lt_need_locks
17958
17959# Do we need the lib prefix for modules?
17960need_lib_prefix=$need_lib_prefix
17961
17962# Do we need a version for libraries?
17963need_version=$need_version
17964
17965# Whether dlopen is supported.
17966dlopen_support=$enable_dlopen
17967
17968# Whether dlopen of programs is supported.
17969dlopen_self=$enable_dlopen_self
17970
17971# Whether dlopen of statically linked programs is supported.
17972dlopen_self_static=$enable_dlopen_self_static
17973
17974# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017975link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017976
17977# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017978no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017979
17980# Compiler flag to allow reflexive dlopens.
17981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17982
17983# Compiler flag to generate shared objects directly from archives.
17984whole_archive_flag_spec=$lt_whole_archive_flag_spec
17985
17986# Compiler flag to generate thread-safe objects.
17987thread_safe_flag_spec=$lt_thread_safe_flag_spec
17988
17989# Library versioning type.
17990version_type=$version_type
17991
17992# Format of library name prefix.
17993libname_spec=$lt_libname_spec
17994
17995# List of archive names. First name is the real one, the rest are links.
17996# The last name is the one that the linker finds with -lNAME.
17997library_names_spec=$lt_library_names_spec
17998
17999# The coded name of the library, if different from the real name.
18000soname_spec=$lt_soname_spec
18001
18002# Commands used to build and install an old-style archive.
18003RANLIB=$lt_RANLIB
18004old_archive_cmds=$lt_old_archive_cmds
18005old_postinstall_cmds=$lt_old_postinstall_cmds
18006old_postuninstall_cmds=$lt_old_postuninstall_cmds
18007
18008# Create an old-style archive from a shared archive.
18009old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18010
18011# Create a temporary old-style archive to link instead of a shared archive.
18012old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18013
18014# Commands used to build and install a shared archive.
18015archive_cmds=$lt_archive_cmds
18016archive_expsym_cmds=$lt_archive_expsym_cmds
18017postinstall_cmds=$lt_postinstall_cmds
18018postuninstall_cmds=$lt_postuninstall_cmds
18019
John Criswell47fdd832003-07-14 16:52:07 +000018020# Commands used to build a loadable module (assumed same as above if empty)
18021module_cmds=$lt_module_cmds
18022module_expsym_cmds=$lt_module_expsym_cmds
18023
John Criswell7a73b802003-06-30 21:59:07 +000018024# Commands to strip libraries.
18025old_striplib=$lt_old_striplib
18026striplib=$lt_striplib
18027
John Criswell47fdd832003-07-14 16:52:07 +000018028# Dependencies to place before the objects being linked to create a
18029# shared library.
18030predep_objects=$lt_predep_objects
18031
18032# Dependencies to place after the objects being linked to create a
18033# shared library.
18034postdep_objects=$lt_postdep_objects
18035
18036# Dependencies to place before the objects being linked to create a
18037# shared library.
18038predeps=$lt_predeps
18039
18040# Dependencies to place after the objects being linked to create a
18041# shared library.
18042postdeps=$lt_postdeps
18043
18044# The library search path used internally by the compiler when linking
18045# a shared library.
18046compiler_lib_search_path=$lt_compiler_lib_search_path
18047
John Criswell7a73b802003-06-30 21:59:07 +000018048# Method to check whether dependent libraries are shared objects.
18049deplibs_check_method=$lt_deplibs_check_method
18050
18051# Command to use when deplibs_check_method == file_magic.
18052file_magic_cmd=$lt_file_magic_cmd
18053
18054# Flag that allows shared libraries with undefined symbols to be built.
18055allow_undefined_flag=$lt_allow_undefined_flag
18056
18057# Flag that forces no undefined symbols.
18058no_undefined_flag=$lt_no_undefined_flag
18059
18060# Commands used to finish a libtool library installation in a directory.
18061finish_cmds=$lt_finish_cmds
18062
18063# Same as above, but a single script fragment to be evaled but not shown.
18064finish_eval=$lt_finish_eval
18065
18066# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018068
18069# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018071
18072# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018074
18075# This is the shared library runtime path variable.
18076runpath_var=$runpath_var
18077
18078# This is the shared library path variable.
18079shlibpath_var=$shlibpath_var
18080
18081# Is shlibpath searched before the hard-coded library search path?
18082shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18083
18084# How to hardcode a shared library path into an executable.
18085hardcode_action=$hardcode_action
18086
18087# Whether we should hardcode library paths into libraries.
18088hardcode_into_libs=$hardcode_into_libs
18089
18090# Flag to hardcode \$libdir into a binary during linking.
18091# This must work even if \$libdir does not exist.
18092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18093
John Criswell47fdd832003-07-14 16:52:07 +000018094# If ld is used when linking, flag to hardcode \$libdir into
18095# a binary during linking. This must work even if \$libdir does
18096# not exist.
18097hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18098
John Criswell7a73b802003-06-30 21:59:07 +000018099# Whether we need a single -rpath flag with a separated argument.
18100hardcode_libdir_separator=$lt_hardcode_libdir_separator
18101
John Criswell47fdd832003-07-14 16:52:07 +000018102# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018103# resulting binary.
18104hardcode_direct=$hardcode_direct
18105
18106# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107# resulting binary.
18108hardcode_minus_L=$hardcode_minus_L
18109
18110# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111# the resulting binary.
18112hardcode_shlibpath_var=$hardcode_shlibpath_var
18113
John Criswell47fdd832003-07-14 16:52:07 +000018114# Set to yes if building a shared library automatically hardcodes DIR into the library
18115# and all subsequent libraries and executables linked against it.
18116hardcode_automatic=$hardcode_automatic
18117
John Criswell7a73b802003-06-30 21:59:07 +000018118# Variables whose values should be saved in libtool wrapper scripts and
18119# restored at relink time.
18120variables_saved_for_relink="$variables_saved_for_relink"
18121
18122# Whether libtool must link a program against all its dependency libraries.
18123link_all_deplibs=$link_all_deplibs
18124
18125# Compile-time system search path for libraries
18126sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18127
18128# Run-time system search path for libraries
18129sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18130
18131# Fix the shell variable \$srcfile for the compiler.
18132fix_srcfile_path="$fix_srcfile_path"
18133
18134# Set to yes if exported symbols are required.
18135always_export_symbols=$always_export_symbols
18136
18137# The commands to list exported symbols.
18138export_symbols_cmds=$lt_export_symbols_cmds
18139
18140# The commands to extract the exported symbol list from a shared archive.
18141extract_expsyms_cmds=$lt_extract_expsyms_cmds
18142
18143# Symbols that should not be listed in the preloaded symbols.
18144exclude_expsyms=$lt_exclude_expsyms
18145
18146# Symbols that must always be exported.
18147include_expsyms=$lt_include_expsyms
18148
18149# ### END LIBTOOL CONFIG
18150
18151__EOF__
18152
John Criswell47fdd832003-07-14 16:52:07 +000018153
John Criswell7a73b802003-06-30 21:59:07 +000018154 case $host_os in
18155 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018156 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018157
18158# AIX sometimes has problems with the GCC collect2 program. For some
18159# reason, if we set the COLLECT_NAMES environment variable, the problems
18160# vanish in a puff of smoke.
18161if test "X${COLLECT_NAMES+set}" != Xset; then
18162 COLLECT_NAMES=
18163 export COLLECT_NAMES
18164fi
18165EOF
18166 ;;
18167 esac
18168
John Criswell7a73b802003-06-30 21:59:07 +000018169 # We use sed instead of cat because bash on DJGPP gets confused if
18170 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18171 # text mode, it properly converts lines to CR/LF. This bash problem
18172 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018173 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018174
John Criswell47fdd832003-07-14 16:52:07 +000018175 mv -f "$cfgfile" "$ofile" || \
18176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018177 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018178
18179else
18180 # If there is no Makefile yet, we rely on a make rule to execute
18181 # `config.status --recheck' to rerun these tests and create the
18182 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018183 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18184 if test -f "$ltmain_in"; then
18185 test -f Makefile && make "$ltmain"
18186 fi
John Criswell7a73b802003-06-30 21:59:07 +000018187fi
John Criswell7a73b802003-06-30 21:59:07 +000018188
18189
John Criswell47fdd832003-07-14 16:52:07 +000018190ac_ext=c
18191ac_cpp='$CPP $CPPFLAGS'
18192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195
18196CC="$lt_save_CC"
18197
18198
Reid Spencera773bd52006-08-04 18:18:08 +000018199# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018200if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018201 withval=$with_tags; tagnames="$withval"
18202fi
18203
John Criswell47fdd832003-07-14 16:52:07 +000018204
18205if test -f "$ltmain" && test -n "$tagnames"; then
18206 if test ! -f "${ofile}"; then
18207 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18208echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18209 fi
18210
18211 if test -z "$LTCC"; then
18212 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18213 if test -z "$LTCC"; then
18214 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18215echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18216 else
18217 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18218echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18219 fi
18220 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018221 if test -z "$LTCFLAGS"; then
18222 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18223 fi
John Criswell47fdd832003-07-14 16:52:07 +000018224
18225 # Extract list of available tagged configurations in $ofile.
18226 # Note that this assumes the entire list is on one line.
18227 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18228
18229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18230 for tagname in $tagnames; do
18231 IFS="$lt_save_ifs"
18232 # Check whether tagname contains only valid characters
18233 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18234 "") ;;
18235 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18236echo "$as_me: error: invalid tag name: $tagname" >&2;}
18237 { (exit 1); exit 1; }; }
18238 ;;
18239 esac
18240
18241 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18242 then
18243 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18244echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18245 { (exit 1); exit 1; }; }
18246 fi
18247
18248 # Update the list of available tags.
18249 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018250 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018251
18252 case $tagname in
18253 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018254 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18255 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18256 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018257 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018258ac_cpp='$CXXCPP $CPPFLAGS'
18259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18262
18263
18264
18265
18266archive_cmds_need_lc_CXX=no
18267allow_undefined_flag_CXX=
18268always_export_symbols_CXX=no
18269archive_expsym_cmds_CXX=
18270export_dynamic_flag_spec_CXX=
18271hardcode_direct_CXX=no
18272hardcode_libdir_flag_spec_CXX=
18273hardcode_libdir_flag_spec_ld_CXX=
18274hardcode_libdir_separator_CXX=
18275hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018276hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018277hardcode_automatic_CXX=no
18278module_cmds_CXX=
18279module_expsym_cmds_CXX=
18280link_all_deplibs_CXX=unknown
18281old_archive_cmds_CXX=$old_archive_cmds
18282no_undefined_flag_CXX=
18283whole_archive_flag_spec_CXX=
18284enable_shared_with_static_runtimes_CXX=no
18285
18286# Dependencies to place before and after the object being linked:
18287predep_objects_CXX=
18288postdep_objects_CXX=
18289predeps_CXX=
18290postdeps_CXX=
18291compiler_lib_search_path_CXX=
18292
18293# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018294ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018295
18296# Object file extension for compiled C++ test sources.
18297objext=o
18298objext_CXX=$objext
18299
18300# Code to be used in simple compile tests
18301lt_simple_compile_test_code="int some_variable = 0;\n"
18302
18303# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018304lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018305
18306# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18307
18308# If no C compiler was specified, use CC.
18309LTCC=${LTCC-"$CC"}
18310
Reid Spencera773bd52006-08-04 18:18:08 +000018311# If no C compiler flags were specified, use CFLAGS.
18312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18313
John Criswell47fdd832003-07-14 16:52:07 +000018314# Allow CC to be a program name with arguments.
18315compiler=$CC
18316
18317
Reid Spencera773bd52006-08-04 18:18:08 +000018318# save warnings/boilerplate of simple test code
18319ac_outfile=conftest.$ac_objext
18320printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18322_lt_compiler_boilerplate=`cat conftest.err`
18323$rm conftest*
18324
18325ac_outfile=conftest.$ac_objext
18326printf "$lt_simple_link_test_code" >conftest.$ac_ext
18327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18328_lt_linker_boilerplate=`cat conftest.err`
18329$rm conftest*
18330
18331
John Criswell47fdd832003-07-14 16:52:07 +000018332# Allow CC to be a program name with arguments.
18333lt_save_CC=$CC
18334lt_save_LD=$LD
18335lt_save_GCC=$GCC
18336GCC=$GXX
18337lt_save_with_gnu_ld=$with_gnu_ld
18338lt_save_path_LD=$lt_cv_path_LD
18339if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18340 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18341else
Reid Spencera773bd52006-08-04 18:18:08 +000018342 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018343fi
18344if test -n "${lt_cv_path_LDCXX+set}"; then
18345 lt_cv_path_LD=$lt_cv_path_LDCXX
18346else
Reid Spencera773bd52006-08-04 18:18:08 +000018347 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018348fi
18349test -z "${LDCXX+set}" || LD=$LDCXX
18350CC=${CXX-"c++"}
18351compiler=$CC
18352compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018353for cc_temp in $compiler""; do
18354 case $cc_temp in
18355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18357 \-*) ;;
18358 *) break;;
18359 esac
18360done
18361cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18362
John Criswell47fdd832003-07-14 16:52:07 +000018363
18364# We don't want -fno-exception wen compiling C++ code, so set the
18365# no_builtin_flag separately
18366if test "$GXX" = yes; then
18367 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18368else
18369 lt_prog_compiler_no_builtin_flag_CXX=
18370fi
18371
18372if test "$GXX" = yes; then
18373 # Set up default GNU C++ configuration
18374
18375
Reid Spencera773bd52006-08-04 18:18:08 +000018376# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018377if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018379else
18380 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018381fi
18382
John Criswell47fdd832003-07-14 16:52:07 +000018383ac_prog=ld
18384if test "$GCC" = yes; then
18385 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018386 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18387echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018388 case $host in
18389 *-*-mingw*)
18390 # gcc leaves a trailing carriage return which upsets mingw
18391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18392 *)
18393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18394 esac
18395 case $ac_prog in
18396 # Accept absolute paths.
18397 [\\/]* | ?:[\\/]*)
18398 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018399 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018400 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18401 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18402 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18403 done
18404 test -z "$LD" && LD="$ac_prog"
18405 ;;
18406 "")
18407 # If it fails, then pretend we aren't using GCC.
18408 ac_prog=ld
18409 ;;
18410 *)
18411 # If it is relative, then search for the first ld in PATH.
18412 with_gnu_ld=unknown
18413 ;;
18414 esac
18415elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018416 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18417echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018418else
Reid Spencera773bd52006-08-04 18:18:08 +000018419 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18420echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018421fi
18422if test "${lt_cv_path_LD+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424else
18425 if test -z "$LD"; then
18426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18427 for ac_dir in $PATH; do
18428 IFS="$lt_save_ifs"
18429 test -z "$ac_dir" && ac_dir=.
18430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18431 lt_cv_path_LD="$ac_dir/$ac_prog"
18432 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018433 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018434 # Break only if it was the GNU/non-GNU ld that we prefer.
18435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18436 *GNU* | *'with BFD'*)
18437 test "$with_gnu_ld" != no && break
18438 ;;
18439 *)
18440 test "$with_gnu_ld" != yes && break
18441 ;;
18442 esac
18443 fi
18444 done
18445 IFS="$lt_save_ifs"
18446else
18447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18448fi
18449fi
18450
18451LD="$lt_cv_path_LD"
18452if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018453 { echo "$as_me:$LINENO: result: $LD" >&5
18454echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018455else
Reid Spencera773bd52006-08-04 18:18:08 +000018456 { echo "$as_me:$LINENO: result: no" >&5
18457echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018458fi
18459test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18460echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18461 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018462{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18463echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018464if test "${lt_cv_prog_gnu_ld+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466else
Reid Spencera773bd52006-08-04 18:18:08 +000018467 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018468case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018469*GNU* | *'with BFD'*)
18470 lt_cv_prog_gnu_ld=yes
18471 ;;
18472*)
18473 lt_cv_prog_gnu_ld=no
18474 ;;
18475esac
18476fi
Reid Spencera773bd52006-08-04 18:18:08 +000018477{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18478echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018479with_gnu_ld=$lt_cv_prog_gnu_ld
18480
18481
18482
18483 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18484 # archiving commands below assume that GNU ld is being used.
18485 if test "$with_gnu_ld" = yes; then
18486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18487 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'
18488
18489 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18491
18492 # If archive_cmds runs LD, not CC, wlarc should be empty
18493 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18494 # investigate it a little bit more. (MM)
18495 wlarc='${wl}'
18496
18497 # ancient GNU ld didn't support --whole-archive et. al.
18498 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18499 grep 'no-whole-archive' > /dev/null; then
18500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18501 else
18502 whole_archive_flag_spec_CXX=
18503 fi
18504 else
18505 with_gnu_ld=no
18506 wlarc=
18507
18508 # A generic and very simple default shared library creation
18509 # command for GNU C++ for the case where it uses the native
18510 # linker, instead of GNU ld. If possible, this setting should
18511 # overridden to take advantage of the native linker features on
18512 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018513 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018514 fi
18515
18516 # Commands to make compiler produce verbose output that lists
18517 # what "hidden" libraries, object files and flags are used when
18518 # linking a shared library.
18519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18520
18521else
18522 GXX=no
18523 with_gnu_ld=no
18524 wlarc=
18525fi
18526
18527# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018528{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018530ld_shlibs_CXX=yes
18531case $host_os in
18532 aix3*)
18533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18535 ;;
18536 aix4* | aix5*)
18537 if test "$host_cpu" = ia64; then
18538 # On IA64, the linker does run time linking by default, so we don't
18539 # have to do anything special.
18540 aix_use_runtimelinking=no
18541 exp_sym_flag='-Bexport'
18542 no_entry_flag=""
18543 else
18544 aix_use_runtimelinking=no
18545
18546 # Test if we are trying to use run time linking or normal
18547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18548 # need to do runtime linking.
18549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18550 for ld_flag in $LDFLAGS; do
18551 case $ld_flag in
18552 *-brtl*)
18553 aix_use_runtimelinking=yes
18554 break
18555 ;;
18556 esac
18557 done
Reid Spencera773bd52006-08-04 18:18:08 +000018558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018559 esac
18560
18561 exp_sym_flag='-bexport'
18562 no_entry_flag='-bnoentry'
18563 fi
18564
18565 # When large executables or shared objects are built, AIX ld can
18566 # have problems creating the table of contents. If linking a library
18567 # or program results in "error TOC overflow" add -mminimal-toc to
18568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18570
18571 archive_cmds_CXX=''
18572 hardcode_direct_CXX=yes
18573 hardcode_libdir_separator_CXX=':'
18574 link_all_deplibs_CXX=yes
18575
18576 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018577 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018578 # We only want to do this on AIX 4.2 and lower, the check
18579 # below for broken collect2 doesn't work under 4.3+
18580 collect2name=`${CC} -print-prog-name=collect2`
18581 if test -f "$collect2name" && \
18582 strings "$collect2name" | grep resolve_lib_name >/dev/null
18583 then
18584 # We have reworked collect2
18585 hardcode_direct_CXX=yes
18586 else
18587 # We have old collect2
18588 hardcode_direct_CXX=unsupported
18589 # It fails to find uninstalled libraries when the uninstalled
18590 # path is not listed in the libpath. Setting hardcode_minus_L
18591 # to unsupported forces relinking
18592 hardcode_minus_L_CXX=yes
18593 hardcode_libdir_flag_spec_CXX='-L$libdir'
18594 hardcode_libdir_separator_CXX=
18595 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018596 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018597 esac
18598 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018599 if test "$aix_use_runtimelinking" = yes; then
18600 shared_flag="$shared_flag "'${wl}-G'
18601 fi
John Criswell47fdd832003-07-14 16:52:07 +000018602 else
18603 # not using gcc
18604 if test "$host_cpu" = ia64; then
18605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18606 # chokes on -Wl,-G. The following line is correct:
18607 shared_flag='-G'
18608 else
18609 if test "$aix_use_runtimelinking" = yes; then
18610 shared_flag='${wl}-G'
18611 else
18612 shared_flag='${wl}-bM:SRE'
18613 fi
18614 fi
18615 fi
18616
18617 # It seems that -bexpall does not export symbols beginning with
18618 # underscore (_), so it is better to generate a list of symbols to export.
18619 always_export_symbols_CXX=yes
18620 if test "$aix_use_runtimelinking" = yes; then
18621 # Warning - without using the other runtime loading flags (-brtl),
18622 # -berok will link without error, but may produce a broken library.
18623 allow_undefined_flag_CXX='-berok'
18624 # Determine the default libpath from the value encoded in an empty executable.
18625 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018626/* confdefs.h. */
18627_ACEOF
18628cat confdefs.h >>conftest.$ac_ext
18629cat >>conftest.$ac_ext <<_ACEOF
18630/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018631
John Criswell47fdd832003-07-14 16:52:07 +000018632int
18633main ()
18634{
18635
18636 ;
18637 return 0;
18638}
18639_ACEOF
18640rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018641if { (ac_try="$ac_link"
18642case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018674
18675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18676}'`
18677# Check for a 64-bit object if we didn't find anything.
18678if 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; }
18679}'`; fi
18680else
18681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018682sed 's/^/| /' conftest.$ac_ext >&5
18683
Reid Spencera773bd52006-08-04 18:18:08 +000018684
John Criswell47fdd832003-07-14 16:52:07 +000018685fi
Reid Spencera773bd52006-08-04 18:18:08 +000018686
Tanya Lattnercf067672008-01-17 05:57:22 +000018687rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018688 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018689if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18690
18691 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18692
Reid Spencera773bd52006-08-04 18:18:08 +000018693 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 +000018694 else
18695 if test "$host_cpu" = ia64; then
18696 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18697 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018698 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 +000018699 else
18700 # Determine the default libpath from the value encoded in an empty executable.
18701 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018707
John Criswell47fdd832003-07-14 16:52:07 +000018708int
18709main ()
18710{
18711
18712 ;
18713 return 0;
18714}
18715_ACEOF
18716rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018717if { (ac_try="$ac_link"
18718case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18721esac
18722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018729 (exit $ac_status); } &&
18730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18731 { (case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734esac
18735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_try") 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest$ac_exeext'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018750
18751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18752}'`
18753# Check for a 64-bit object if we didn't find anything.
18754if 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; }
18755}'`; fi
18756else
18757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018758sed 's/^/| /' conftest.$ac_ext >&5
18759
Reid Spencera773bd52006-08-04 18:18:08 +000018760
John Criswell47fdd832003-07-14 16:52:07 +000018761fi
Reid Spencera773bd52006-08-04 18:18:08 +000018762
Tanya Lattnercf067672008-01-17 05:57:22 +000018763rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018764 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018765if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18766
18767 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18768 # Warning - without using the other run time loading flags,
18769 # -berok will link without error, but may produce a broken library.
18770 no_undefined_flag_CXX=' ${wl}-bernotok'
18771 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018772 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018773 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018774 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018775 # This is similar to how AIX traditionally builds its shared libraries.
18776 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 +000018777 fi
18778 fi
18779 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018780
18781 beos*)
18782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18783 allow_undefined_flag_CXX=unsupported
18784 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18785 # support --undefined. This deserves some investigation. FIXME
18786 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787 else
18788 ld_shlibs_CXX=no
18789 fi
18790 ;;
18791
John Criswell47fdd832003-07-14 16:52:07 +000018792 chorus*)
18793 case $cc_basename in
18794 *)
18795 # FIXME: insert proper C++ library support
18796 ld_shlibs_CXX=no
18797 ;;
18798 esac
18799 ;;
18800
18801 cygwin* | mingw* | pw32*)
18802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18803 # as there is no search path for DLLs.
18804 hardcode_libdir_flag_spec_CXX='-L$libdir'
18805 allow_undefined_flag_CXX=unsupported
18806 always_export_symbols_CXX=no
18807 enable_shared_with_static_runtimes_CXX=yes
18808
18809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018810 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 +000018811 # If the export-symbols file already is a .def file (1st line
18812 # is EXPORTS), use it as is; otherwise, prepend...
18813 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18814 cp $export_symbols $output_objdir/$soname.def;
18815 else
18816 echo EXPORTS > $output_objdir/$soname.def;
18817 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018818 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018819 $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 +000018820 else
18821 ld_shlibs_CXX=no
18822 fi
18823 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018824 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018825 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018826 rhapsody* | darwin1.[012])
18827 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18828 ;;
18829 *) # Darwin 1.3 on
18830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18831 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18832 else
18833 case ${MACOSX_DEPLOYMENT_TARGET} in
18834 10.[012])
18835 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18836 ;;
18837 10.*)
18838 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18839 ;;
18840 esac
18841 fi
18842 ;;
18843 esac
18844 archive_cmds_need_lc_CXX=no
18845 hardcode_direct_CXX=no
18846 hardcode_automatic_CXX=yes
18847 hardcode_shlibpath_var_CXX=unsupported
18848 whole_archive_flag_spec_CXX=''
18849 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018850
Reid Spencer2706f8c2004-09-19 23:53:36 +000018851 if test "$GXX" = yes ; then
18852 lt_int_apple_cc_single_mod=no
18853 output_verbose_link_cmd='echo'
18854 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18855 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018856 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018857 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018858 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 +000018859 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018860 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 +000018861 fi
18862 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018863 # 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 +000018864 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018865 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 +000018866 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018867 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 +000018868 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018869 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 +000018870 else
Reid Spencera773bd52006-08-04 18:18:08 +000018871 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018872 xlc*)
18873 output_verbose_link_cmd='echo'
18874 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'
18875 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018876 # 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 +000018877 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}'
18878 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 +000018879 ;;
18880 *)
18881 ld_shlibs_CXX=no
18882 ;;
18883 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018884 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018885 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018886
18887 dgux*)
18888 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018889 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018890 # FIXME: insert proper C++ library support
18891 ld_shlibs_CXX=no
18892 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018893 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018894 # Green Hills C++ Compiler
18895 # FIXME: insert proper C++ library support
18896 ld_shlibs_CXX=no
18897 ;;
18898 *)
18899 # FIXME: insert proper C++ library support
18900 ld_shlibs_CXX=no
18901 ;;
18902 esac
18903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018904 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018905 # C++ shared libraries reported to be fairly broken before switch to ELF
18906 ld_shlibs_CXX=no
18907 ;;
18908 freebsd-elf*)
18909 archive_cmds_need_lc_CXX=no
18910 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018911 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018912 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18913 # conventions
18914 ld_shlibs_CXX=yes
18915 ;;
18916 gnu*)
18917 ;;
18918 hpux9*)
18919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18920 hardcode_libdir_separator_CXX=:
18921 export_dynamic_flag_spec_CXX='${wl}-E'
18922 hardcode_direct_CXX=yes
18923 hardcode_minus_L_CXX=yes # Not in the search PATH,
18924 # but as the default
18925 # location of the library.
18926
18927 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018928 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018929 # FIXME: insert proper C++ library support
18930 ld_shlibs_CXX=no
18931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018932 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018933 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 +000018934 # Commands to make compiler produce verbose output that lists
18935 # what "hidden" libraries, object files and flags are used when
18936 # linking a shared library.
18937 #
18938 # There doesn't appear to be a way to prevent this compiler from
18939 # explicitly linking system object files so we need to strip them
18940 # from the output so that they don't get included in the library
18941 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018942 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 +000018943 ;;
18944 *)
18945 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018946 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 +000018947 else
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18950 fi
18951 ;;
18952 esac
18953 ;;
18954 hpux10*|hpux11*)
18955 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018956 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18957 hardcode_libdir_separator_CXX=:
18958
18959 case $host_cpu in
18960 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018961 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018962 ;;
18963 *)
John Criswell47fdd832003-07-14 16:52:07 +000018964 export_dynamic_flag_spec_CXX='${wl}-E'
18965 ;;
18966 esac
18967 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018968 case $host_cpu in
18969 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018970 hardcode_direct_CXX=no
18971 hardcode_shlibpath_var_CXX=no
18972 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018973 *)
18974 hardcode_direct_CXX=yes
18975 hardcode_minus_L_CXX=yes # Not in the search PATH,
18976 # but as the default
18977 # location of the library.
18978 ;;
18979 esac
18980
18981 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018982 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018983 # FIXME: insert proper C++ library support
18984 ld_shlibs_CXX=no
18985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018986 aCC*)
18987 case $host_cpu in
18988 hppa*64*)
18989 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18990 ;;
18991 ia64*)
18992 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 +000018993 ;;
18994 *)
18995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18996 ;;
18997 esac
18998 # Commands to make compiler produce verbose output that lists
18999 # what "hidden" libraries, object files and flags are used when
19000 # linking a shared library.
19001 #
19002 # There doesn't appear to be a way to prevent this compiler from
19003 # explicitly linking system object files so we need to strip them
19004 # from the output so that they don't get included in the library
19005 # dependencies.
19006 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'
19007 ;;
19008 *)
19009 if test "$GXX" = yes; then
19010 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019011 case $host_cpu in
19012 hppa*64*)
19013 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19014 ;;
19015 ia64*)
19016 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 +000019017 ;;
19018 *)
19019 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'
19020 ;;
19021 esac
19022 fi
19023 else
19024 # FIXME: insert proper C++ library support
19025 ld_shlibs_CXX=no
19026 fi
19027 ;;
19028 esac
19029 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019030 interix3*)
19031 hardcode_direct_CXX=no
19032 hardcode_shlibpath_var_CXX=no
19033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19034 export_dynamic_flag_spec_CXX='${wl}-E'
19035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19036 # Instead, shared libraries are loaded at an image base (0x10000000 by
19037 # default) and relocated if they conflict, which is a slow very memory
19038 # consuming and fragmenting process. To avoid this, we pick a random,
19039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19041 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'
19042 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'
19043 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019044 irix5* | irix6*)
19045 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019046 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019047 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019048 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 +000019049
19050 # Archives containing C++ object files must be created using
19051 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19052 # necessary to make sure instantiated templates are included
19053 # in the archive.
19054 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19055 ;;
19056 *)
19057 if test "$GXX" = yes; then
19058 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019059 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 +000019060 else
19061 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'
19062 fi
19063 fi
19064 link_all_deplibs_CXX=yes
19065 ;;
19066 esac
19067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19068 hardcode_libdir_separator_CXX=:
19069 ;;
19070 linux*)
19071 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019072 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019073 # Kuck and Associates, Inc. (KAI) C++ Compiler
19074
19075 # KCC will only create a shared library if the output file
19076 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19077 # to its proper name (with version) after linking.
19078 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'
19079 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'
19080 # Commands to make compiler produce verbose output that lists
19081 # what "hidden" libraries, object files and flags are used when
19082 # linking a shared library.
19083 #
19084 # There doesn't appear to be a way to prevent this compiler from
19085 # explicitly linking system object files so we need to strip them
19086 # from the output so that they don't get included in the library
19087 # dependencies.
19088 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'
19089
19090 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19092
19093 # Archives containing C++ object files must be created using
19094 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19095 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19096 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019097 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019098 # Intel C++
19099 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019100 # version 8.0 and above of icpc choke on multiply defined symbols
19101 # if we add $predep_objects and $postdep_objects, however 7.1 and
19102 # earlier do not add the objects themselves.
19103 case `$CC -V 2>&1` in
19104 *"Version 7."*)
19105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106 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'
19107 ;;
19108 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019109 tmp_idyn=
19110 case $host_cpu in
19111 ia64*) tmp_idyn=' -i_dynamic';;
19112 esac
19113 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 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 +000019115 ;;
19116 esac
John Criswell47fdd832003-07-14 16:52:07 +000019117 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19120 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19121 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019122 pgCC*)
19123 # Portland Group C++ compiler
19124 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19125 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'
19126
19127 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19129 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'
19130 ;;
19131 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019132 # Compaq C++
19133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134 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'
19135
19136 runpath_var=LD_RUN_PATH
19137 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19138 hardcode_libdir_separator_CXX=:
19139
19140 # Commands to make compiler produce verbose output that lists
19141 # what "hidden" libraries, object files and flags are used when
19142 # linking a shared library.
19143 #
19144 # There doesn't appear to be a way to prevent this compiler from
19145 # explicitly linking system object files so we need to strip them
19146 # from the output so that they don't get included in the library
19147 # dependencies.
19148 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'
19149 ;;
19150 esac
19151 ;;
19152 lynxos*)
19153 # FIXME: insert proper C++ library support
19154 ld_shlibs_CXX=no
19155 ;;
19156 m88k*)
19157 # FIXME: insert proper C++ library support
19158 ld_shlibs_CXX=no
19159 ;;
19160 mvs*)
19161 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019162 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19165 ;;
19166 *)
19167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19169 ;;
19170 esac
19171 ;;
19172 netbsd*)
19173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19174 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19175 wlarc=
19176 hardcode_libdir_flag_spec_CXX='-R$libdir'
19177 hardcode_direct_CXX=yes
19178 hardcode_shlibpath_var_CXX=no
19179 fi
19180 # Workaround some broken pre-1.5 toolchains
19181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19182 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019183 openbsd2*)
19184 # C++ shared libraries are fairly broken
19185 ld_shlibs_CXX=no
19186 ;;
19187 openbsd*)
19188 hardcode_direct_CXX=yes
19189 hardcode_shlibpath_var_CXX=no
19190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19191 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19193 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19194 export_dynamic_flag_spec_CXX='${wl}-E'
19195 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19196 fi
19197 output_verbose_link_cmd='echo'
19198 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019199 osf3*)
19200 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019201 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019202 # Kuck and Associates, Inc. (KAI) C++ Compiler
19203
19204 # KCC will only create a shared library if the output file
19205 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19206 # to its proper name (with version) after linking.
19207 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'
19208
19209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19210 hardcode_libdir_separator_CXX=:
19211
19212 # Archives containing C++ object files must be created using
19213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19215
19216 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019217 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019218 # Rational C++ 2.4.1
19219 # FIXME: insert proper C++ library support
19220 ld_shlibs_CXX=no
19221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019222 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019224 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 +000019225
19226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19227 hardcode_libdir_separator_CXX=:
19228
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19232 #
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19236 # dependencies.
19237 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'
19238 ;;
19239 *)
19240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019242 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 +000019243
19244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19245 hardcode_libdir_separator_CXX=:
19246
19247 # Commands to make compiler produce verbose output that lists
19248 # what "hidden" libraries, object files and flags are used when
19249 # linking a shared library.
19250 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19251
19252 else
19253 # FIXME: insert proper C++ library support
19254 ld_shlibs_CXX=no
19255 fi
19256 ;;
19257 esac
19258 ;;
19259 osf4* | osf5*)
19260 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019261 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019262 # Kuck and Associates, Inc. (KAI) C++ Compiler
19263
19264 # KCC will only create a shared library if the output file
19265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19266 # to its proper name (with version) after linking.
19267 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'
19268
19269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19270 hardcode_libdir_separator_CXX=:
19271
19272 # Archives containing C++ object files must be created using
19273 # the KAI C++ compiler.
19274 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19275 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019276 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019277 # Rational C++ 2.4.1
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019281 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019282 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019283 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 +000019284 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19285 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019286 $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 +000019287 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019288
19289 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19290 hardcode_libdir_separator_CXX=:
19291
19292 # Commands to make compiler produce verbose output that lists
19293 # what "hidden" libraries, object files and flags are used when
19294 # linking a shared library.
19295 #
19296 # There doesn't appear to be a way to prevent this compiler from
19297 # explicitly linking system object files so we need to strip them
19298 # from the output so that they don't get included in the library
19299 # dependencies.
19300 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'
19301 ;;
19302 *)
19303 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19304 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019305 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 +000019306
19307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19308 hardcode_libdir_separator_CXX=:
19309
19310 # Commands to make compiler produce verbose output that lists
19311 # what "hidden" libraries, object files and flags are used when
19312 # linking a shared library.
19313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19314
19315 else
19316 # FIXME: insert proper C++ library support
19317 ld_shlibs_CXX=no
19318 fi
19319 ;;
19320 esac
19321 ;;
19322 psos*)
19323 # FIXME: insert proper C++ library support
19324 ld_shlibs_CXX=no
19325 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019326 sunos4*)
19327 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019328 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019329 # Sun C++ 4.x
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019333 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019334 # Lucid
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19337 ;;
19338 *)
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 esac
19343 ;;
19344 solaris*)
19345 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019346 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019347 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019348 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019349 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019350 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 +000019351 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 +000019352 $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 +000019353
19354 hardcode_libdir_flag_spec_CXX='-R$libdir'
19355 hardcode_shlibpath_var_CXX=no
19356 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019357 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019358 *)
19359 # The C++ compiler is used as linker so we must use $wl
19360 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019361 # linker. We must also pass each convience library through
19362 # to the system linker between allextract/defaultextract.
19363 # The C++ compiler will combine linker options so we
19364 # cannot just pass the convience library names through
19365 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019366 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019367 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 +000019368 ;;
19369 esac
19370 link_all_deplibs_CXX=yes
19371
Reid Spencera773bd52006-08-04 18:18:08 +000019372 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019373
19374 # Archives containing C++ object files must be created using
19375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19376 # necessary to make sure instantiated templates are included
19377 # in the archive.
19378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19379 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019380 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019381 # Green Hills C++ Compiler
19382 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19383
19384 # The C++ compiler must be used to create the archive.
19385 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19386 ;;
19387 *)
19388 # GNU C++ compiler with Solaris linker
19389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19390 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19391 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019392 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 +000019393 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19394 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19395
John Criswell47fdd832003-07-14 16:52:07 +000019396 # Commands to make compiler produce verbose output that lists
19397 # what "hidden" libraries, object files and flags are used when
19398 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019399 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019400 else
19401 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19402 # platform.
19403 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 +000019404 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19405 $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 +000019406
19407 # Commands to make compiler produce verbose output that lists
19408 # what "hidden" libraries, object files and flags are used when
19409 # linking a shared library.
19410 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19411 fi
19412
19413 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19414 fi
19415 ;;
19416 esac
19417 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019418 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19419 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019420 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019421 hardcode_shlibpath_var_CXX=no
19422 runpath_var='LD_RUN_PATH'
19423
19424 case $cc_basename in
19425 CC*)
19426 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19427 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19428 ;;
19429 *)
19430 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19432 ;;
19433 esac
19434 ;;
19435 sysv5* | sco3.2v5* | sco5v6*)
19436 # Note: We can NOT use -z defs as we might desire, because we do not
19437 # link with -lc, and that would cause any symbols used from libc to
19438 # always be unresolved, which means just about no library would
19439 # ever link correctly. If we're not using GNU ld we use -z text
19440 # though, which does catch some bad symbols but isn't as heavy-handed
19441 # as -z defs.
19442 # For security reasons, it is highly recommended that you always
19443 # use absolute paths for naming shared libraries, and exclude the
19444 # DT_RUNPATH tag from executables and libraries. But doing so
19445 # requires that you compile everything twice, which is a pain.
19446 # So that behaviour is only enabled if SCOABSPATH is set to a
19447 # non-empty value in the environment. Most likely only useful for
19448 # creating official distributions of packages.
19449 # This is a hack until libtool officially supports absolute path
19450 # names for shared libraries.
19451 no_undefined_flag_CXX='${wl}-z,text'
19452 allow_undefined_flag_CXX='${wl}-z,nodefs'
19453 archive_cmds_need_lc_CXX=no
19454 hardcode_shlibpath_var_CXX=no
19455 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19456 hardcode_libdir_separator_CXX=':'
19457 link_all_deplibs_CXX=yes
19458 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19459 runpath_var='LD_RUN_PATH'
19460
19461 case $cc_basename in
19462 CC*)
19463 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19464 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19465 ;;
19466 *)
19467 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19469 ;;
19470 esac
John Criswell47fdd832003-07-14 16:52:07 +000019471 ;;
19472 tandem*)
19473 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019474 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019475 # NonStop-UX NCC 3.20
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19478 ;;
19479 *)
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19482 ;;
19483 esac
19484 ;;
19485 vxworks*)
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19488 ;;
19489 *)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19492 ;;
19493esac
Reid Spencera773bd52006-08-04 18:18:08 +000019494{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19495echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019496test "$ld_shlibs_CXX" = no && can_build_shared=no
19497
19498GCC_CXX="$GXX"
19499LD_CXX="$LD"
19500
John Criswell47fdd832003-07-14 16:52:07 +000019501
19502cat > conftest.$ac_ext <<EOF
19503class Foo
19504{
19505public:
19506 Foo (void) { a = 0; }
19507private:
19508 int a;
19509};
19510EOF
19511
19512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513 (eval $ac_compile) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; then
19517 # Parse the compiler output and extract the necessary
19518 # objects, libraries and library flags.
19519
19520 # Sentinel used to keep track of whether or not we are before
19521 # the conftest object file.
19522 pre_test_object_deps_done=no
19523
19524 # The `*' in the case matches for architectures that use `case' in
19525 # $output_verbose_cmd can trigger glob expansion during the loop
19526 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019527 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019528
19529 for p in `eval $output_verbose_link_cmd`; do
19530 case $p in
19531
19532 -L* | -R* | -l*)
19533 # Some compilers place space between "-{L,R}" and the path.
19534 # Remove the space.
19535 if test $p = "-L" \
19536 || test $p = "-R"; then
19537 prev=$p
19538 continue
19539 else
19540 prev=
19541 fi
19542
19543 if test "$pre_test_object_deps_done" = no; then
19544 case $p in
19545 -L* | -R*)
19546 # Internal compiler library paths should come after those
19547 # provided the user. The postdeps already come after the
19548 # user supplied libs so there is no need to process them.
19549 if test -z "$compiler_lib_search_path_CXX"; then
19550 compiler_lib_search_path_CXX="${prev}${p}"
19551 else
19552 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19553 fi
19554 ;;
19555 # The "-l" case would never come before the object being
19556 # linked, so don't bother handling this case.
19557 esac
19558 else
19559 if test -z "$postdeps_CXX"; then
19560 postdeps_CXX="${prev}${p}"
19561 else
19562 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19563 fi
19564 fi
19565 ;;
19566
19567 *.$objext)
19568 # This assumes that the test object file only shows up
19569 # once in the compiler output.
19570 if test "$p" = "conftest.$objext"; then
19571 pre_test_object_deps_done=yes
19572 continue
19573 fi
19574
19575 if test "$pre_test_object_deps_done" = no; then
19576 if test -z "$predep_objects_CXX"; then
19577 predep_objects_CXX="$p"
19578 else
19579 predep_objects_CXX="$predep_objects_CXX $p"
19580 fi
19581 else
19582 if test -z "$postdep_objects_CXX"; then
19583 postdep_objects_CXX="$p"
19584 else
19585 postdep_objects_CXX="$postdep_objects_CXX $p"
19586 fi
19587 fi
19588 ;;
19589
19590 *) ;; # Ignore the rest.
19591
19592 esac
19593 done
19594
19595 # Clean up.
19596 rm -f a.out a.exe
19597else
19598 echo "libtool.m4: error: problem compiling CXX test program"
19599fi
19600
19601$rm -f confest.$objext
19602
Reid Spencera773bd52006-08-04 18:18:08 +000019603# PORTME: override above test on systems where it is broken
19604case $host_os in
19605interix3*)
19606 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19607 # hack all around it, let's just trust "g++" to DTRT.
19608 predep_objects_CXX=
19609 postdep_objects_CXX=
19610 postdeps_CXX=
19611 ;;
19612
19613solaris*)
19614 case $cc_basename in
19615 CC*)
19616 # Adding this requires a known-good setup of shared libraries for
19617 # Sun compiler versions before 5.6, else PIC objects from an old
19618 # archive will be linked into the output, leading to subtle bugs.
19619 postdeps_CXX='-lCstd -lCrun'
19620 ;;
19621 esac
19622 ;;
19623esac
19624
19625
John Criswell47fdd832003-07-14 16:52:07 +000019626case " $postdeps_CXX " in
19627*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19628esac
19629
19630lt_prog_compiler_wl_CXX=
19631lt_prog_compiler_pic_CXX=
19632lt_prog_compiler_static_CXX=
19633
Reid Spencera773bd52006-08-04 18:18:08 +000019634{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19635echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019636
19637 # C++ specific cases for pic, static, wl, etc.
19638 if test "$GXX" = yes; then
19639 lt_prog_compiler_wl_CXX='-Wl,'
19640 lt_prog_compiler_static_CXX='-static'
19641
19642 case $host_os in
19643 aix*)
19644 # All AIX code is PIC.
19645 if test "$host_cpu" = ia64; then
19646 # AIX 5 now supports IA64 processor
19647 lt_prog_compiler_static_CXX='-Bstatic'
19648 fi
19649 ;;
19650 amigaos*)
19651 # FIXME: we need at least 68020 code to build shared libraries, but
19652 # adding the `-m68020' flag to GCC prevents building anything better,
19653 # like `-m68040'.
19654 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19655 ;;
19656 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19657 # PIC is the default for these OSes.
19658 ;;
19659 mingw* | os2* | pw32*)
19660 # This hack is so that the source file can tell whether it is being
19661 # built for inclusion in a dll (and should export symbols for example).
19662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19663 ;;
19664 darwin* | rhapsody*)
19665 # PIC is the default on this platform
19666 # Common symbols not allowed in MH_DYLIB files
19667 lt_prog_compiler_pic_CXX='-fno-common'
19668 ;;
19669 *djgpp*)
19670 # DJGPP does not support shared libraries at all
19671 lt_prog_compiler_pic_CXX=
19672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019673 interix3*)
19674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19675 # Instead, we relocate shared libraries at runtime.
19676 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019677 sysv4*MP*)
19678 if test -d /usr/nec; then
19679 lt_prog_compiler_pic_CXX=-Kconform_pic
19680 fi
19681 ;;
19682 hpux*)
19683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19684 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019685 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019686 hppa*64*|ia64*)
19687 ;;
19688 *)
19689 lt_prog_compiler_pic_CXX='-fPIC'
19690 ;;
19691 esac
19692 ;;
19693 *)
19694 lt_prog_compiler_pic_CXX='-fPIC'
19695 ;;
19696 esac
19697 else
19698 case $host_os in
19699 aix4* | aix5*)
19700 # All AIX code is PIC.
19701 if test "$host_cpu" = ia64; then
19702 # AIX 5 now supports IA64 processor
19703 lt_prog_compiler_static_CXX='-Bstatic'
19704 else
19705 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19706 fi
19707 ;;
19708 chorus*)
19709 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019710 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019711 # Green Hills C++ Compiler
19712 # _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"
19713 ;;
19714 esac
19715 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019716 darwin*)
19717 # PIC is the default on this platform
19718 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019719 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019720 xlc*)
19721 lt_prog_compiler_pic_CXX='-qnocommon'
19722 lt_prog_compiler_wl_CXX='-Wl,'
19723 ;;
19724 esac
19725 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019726 dgux*)
19727 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019728 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019729 lt_prog_compiler_pic_CXX='-KPIC'
19730 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019731 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019732 # Green Hills C++ Compiler
19733 lt_prog_compiler_pic_CXX='-pic'
19734 ;;
19735 *)
19736 ;;
19737 esac
19738 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019739 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019740 # FreeBSD uses GNU C++
19741 ;;
19742 hpux9* | hpux10* | hpux11*)
19743 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019744 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019745 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019746 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019747 if test "$host_cpu" != ia64; then
19748 lt_prog_compiler_pic_CXX='+Z'
19749 fi
19750 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019751 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019752 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019753 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19754 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019755 hppa*64*|ia64*)
19756 # +Z the default
19757 ;;
19758 *)
19759 lt_prog_compiler_pic_CXX='+Z'
19760 ;;
19761 esac
19762 ;;
19763 *)
19764 ;;
19765 esac
19766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019767 interix*)
19768 # This is c89, which is MS Visual C++ (no shared libs)
19769 # Anyone wants to do a port?
19770 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019771 irix5* | irix6* | nonstopux*)
19772 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019773 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019774 lt_prog_compiler_wl_CXX='-Wl,'
19775 lt_prog_compiler_static_CXX='-non_shared'
19776 # CC pic flag -KPIC is the default.
19777 ;;
19778 *)
19779 ;;
19780 esac
19781 ;;
19782 linux*)
19783 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019784 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019785 # KAI C++ Compiler
19786 lt_prog_compiler_wl_CXX='--backend -Wl,'
19787 lt_prog_compiler_pic_CXX='-fPIC'
19788 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019789 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019790 # Intel C++
19791 lt_prog_compiler_wl_CXX='-Wl,'
19792 lt_prog_compiler_pic_CXX='-KPIC'
19793 lt_prog_compiler_static_CXX='-static'
19794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019795 pgCC*)
19796 # Portland Group C++ compiler.
19797 lt_prog_compiler_wl_CXX='-Wl,'
19798 lt_prog_compiler_pic_CXX='-fpic'
19799 lt_prog_compiler_static_CXX='-Bstatic'
19800 ;;
19801 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019802 # Compaq C++
19803 # Make sure the PIC flag is empty. It appears that all Alpha
19804 # Linux and Compaq Tru64 Unix objects are PIC.
19805 lt_prog_compiler_pic_CXX=
19806 lt_prog_compiler_static_CXX='-non_shared'
19807 ;;
19808 *)
19809 ;;
19810 esac
19811 ;;
19812 lynxos*)
19813 ;;
19814 m88k*)
19815 ;;
19816 mvs*)
19817 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019818 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019819 lt_prog_compiler_pic_CXX='-W c,exportall'
19820 ;;
19821 *)
19822 ;;
19823 esac
19824 ;;
19825 netbsd*)
19826 ;;
19827 osf3* | osf4* | osf5*)
19828 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019829 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019830 lt_prog_compiler_wl_CXX='--backend -Wl,'
19831 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019832 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019833 # Rational C++ 2.4.1
19834 lt_prog_compiler_pic_CXX='-pic'
19835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019836 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019837 # Digital/Compaq C++
19838 lt_prog_compiler_wl_CXX='-Wl,'
19839 # Make sure the PIC flag is empty. It appears that all Alpha
19840 # Linux and Compaq Tru64 Unix objects are PIC.
19841 lt_prog_compiler_pic_CXX=
19842 lt_prog_compiler_static_CXX='-non_shared'
19843 ;;
19844 *)
19845 ;;
19846 esac
19847 ;;
19848 psos*)
19849 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019850 solaris*)
19851 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019852 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019853 # Sun C++ 4.2, 5.x and Centerline C++
19854 lt_prog_compiler_pic_CXX='-KPIC'
19855 lt_prog_compiler_static_CXX='-Bstatic'
19856 lt_prog_compiler_wl_CXX='-Qoption ld '
19857 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019858 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019859 # Green Hills C++ Compiler
19860 lt_prog_compiler_pic_CXX='-PIC'
19861 ;;
19862 *)
19863 ;;
19864 esac
19865 ;;
19866 sunos4*)
19867 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019868 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019869 # Sun C++ 4.x
19870 lt_prog_compiler_pic_CXX='-pic'
19871 lt_prog_compiler_static_CXX='-Bstatic'
19872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019873 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019874 # Lucid
19875 lt_prog_compiler_pic_CXX='-pic'
19876 ;;
19877 *)
19878 ;;
19879 esac
19880 ;;
19881 tandem*)
19882 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019883 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019884 # NonStop-UX NCC 3.20
19885 lt_prog_compiler_pic_CXX='-KPIC'
19886 ;;
19887 *)
19888 ;;
19889 esac
19890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19892 case $cc_basename in
19893 CC*)
19894 lt_prog_compiler_wl_CXX='-Wl,'
19895 lt_prog_compiler_pic_CXX='-KPIC'
19896 lt_prog_compiler_static_CXX='-Bstatic'
19897 ;;
19898 esac
John Criswell47fdd832003-07-14 16:52:07 +000019899 ;;
19900 vxworks*)
19901 ;;
19902 *)
19903 lt_prog_compiler_can_build_shared_CXX=no
19904 ;;
19905 esac
19906 fi
19907
Reid Spencera773bd52006-08-04 18:18:08 +000019908{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19909echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019910
19911#
19912# Check to make sure the PIC flag actually works.
19913#
19914if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019915
Reid Spencera773bd52006-08-04 18:18:08 +000019916{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19917echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019918if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920else
19921 lt_prog_compiler_pic_works_CXX=no
19922 ac_outfile=conftest.$ac_objext
19923 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19924 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19925 # Insert the option either (1) after the last *FLAGS variable, or
19926 # (2) before a word containing "conftest.", or (3) at the end.
19927 # Note that $ac_compile itself does not contain backslashes and begins
19928 # with a dollar sign (not a hyphen), so the echo should work correctly.
19929 # The option is referenced via a variable to avoid confusing sed.
19930 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19933 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000019934 (eval echo "\"\$as_me:19934: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019935 (eval "$lt_compile" 2>conftest.err)
19936 ac_status=$?
19937 cat conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000019938 echo "$as_me:19938: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019939 if (exit $ac_status) && test -s "$ac_outfile"; then
19940 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019941 # So say no if there are warnings other than the usual output.
19942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019945 lt_prog_compiler_pic_works_CXX=yes
19946 fi
19947 fi
19948 $rm conftest*
19949
19950fi
Reid Spencera773bd52006-08-04 18:18:08 +000019951{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19952echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019953
19954if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19955 case $lt_prog_compiler_pic_CXX in
19956 "" | " "*) ;;
19957 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19958 esac
19959else
19960 lt_prog_compiler_pic_CXX=
19961 lt_prog_compiler_can_build_shared_CXX=no
19962fi
19963
19964fi
Reid Spencera773bd52006-08-04 18:18:08 +000019965case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019966 # For platforms which do not support PIC, -DPIC is meaningless:
19967 *djgpp*)
19968 lt_prog_compiler_pic_CXX=
19969 ;;
19970 *)
19971 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19972 ;;
19973esac
19974
Reid Spencera773bd52006-08-04 18:18:08 +000019975#
19976# Check to make sure the static flag actually works.
19977#
19978wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19979{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19980echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19981if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983else
19984 lt_prog_compiler_static_works_CXX=no
19985 save_LDFLAGS="$LDFLAGS"
19986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19987 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19989 # The linker can only warn and ignore the option if not recognized
19990 # So say no if there are warnings
19991 if test -s conftest.err; then
19992 # Append any errors to the config.log.
19993 cat conftest.err 1>&5
19994 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19996 if diff conftest.exp conftest.er2 >/dev/null; then
19997 lt_prog_compiler_static_works_CXX=yes
19998 fi
19999 else
20000 lt_prog_compiler_static_works_CXX=yes
20001 fi
20002 fi
20003 $rm conftest*
20004 LDFLAGS="$save_LDFLAGS"
20005
20006fi
20007{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20008echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20009
20010if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20011 :
20012else
20013 lt_prog_compiler_static_CXX=
20014fi
20015
20016
20017{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20018echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020019if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022 lt_cv_prog_compiler_c_o_CXX=no
20023 $rm -r conftest 2>/dev/null
20024 mkdir conftest
20025 cd conftest
20026 mkdir out
20027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20028
John Criswell47fdd832003-07-14 16:52:07 +000020029 lt_compiler_flag="-o out/conftest2.$ac_objext"
20030 # Insert the option either (1) after the last *FLAGS variable, or
20031 # (2) before a word containing "conftest.", or (3) at the end.
20032 # Note that $ac_compile itself does not contain backslashes and begins
20033 # with a dollar sign (not a hyphen), so the echo should work correctly.
20034 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20037 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000020038 (eval echo "\"\$as_me:20038: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020039 (eval "$lt_compile" 2>out/conftest.err)
20040 ac_status=$?
20041 cat out/conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000020042 echo "$as_me:20042: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20044 then
20045 # The compiler can only warn and ignore the option if not recognized
20046 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020050 lt_cv_prog_compiler_c_o_CXX=yes
20051 fi
20052 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020053 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020054 $rm conftest*
20055 # SGI C++ compiler will create directory out/ii_files/ for
20056 # template instantiation
20057 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20058 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020059 cd ..
20060 rmdir conftest
20061 $rm conftest*
20062
20063fi
Reid Spencera773bd52006-08-04 18:18:08 +000020064{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20065echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020066
20067
20068hard_links="nottested"
20069if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20070 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020071 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20072echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020073 hard_links=yes
20074 $rm conftest*
20075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20076 touch conftest.a
20077 ln conftest.a conftest.b 2>&5 || hard_links=no
20078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020079 { echo "$as_me:$LINENO: result: $hard_links" >&5
20080echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020081 if test "$hard_links" = no; then
20082 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20083echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20084 need_locks=warn
20085 fi
20086else
20087 need_locks=no
20088fi
20089
Reid Spencera773bd52006-08-04 18:18:08 +000020090{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20091echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020092
20093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20094 case $host_os in
20095 aix4* | aix5*)
20096 # If we're using GNU nm, then we don't want the "-C" option.
20097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20098 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20099 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'
20100 else
20101 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'
20102 fi
20103 ;;
20104 pw32*)
20105 export_symbols_cmds_CXX="$ltdll_cmds"
20106 ;;
20107 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020108 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 +000020109 ;;
20110 *)
20111 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20112 ;;
20113 esac
20114
Reid Spencera773bd52006-08-04 18:18:08 +000020115{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20116echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020117test "$ld_shlibs_CXX" = no && can_build_shared=no
20118
John Criswell47fdd832003-07-14 16:52:07 +000020119#
20120# Do we need to explicitly link libc?
20121#
20122case "x$archive_cmds_need_lc_CXX" in
20123x|xyes)
20124 # Assume -lc should be added
20125 archive_cmds_need_lc_CXX=yes
20126
20127 if test "$enable_shared" = yes && test "$GCC" = yes; then
20128 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020129 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020130 # FIXME: we may have to deal with multi-command sequences.
20131 ;;
20132 '$CC '*)
20133 # Test whether the compiler implicitly links with -lc since on some
20134 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20135 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020136 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20137echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020138 $rm conftest*
20139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20140
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } 2>conftest.err; then
20146 soname=conftest
20147 lib=conftest
20148 libobjs=conftest.$ac_objext
20149 deplibs=
20150 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020151 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020152 compiler_flags=-v
20153 linker_flags=-v
20154 verstring=
20155 output_objdir=.
20156 libname=conftest
20157 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20158 allow_undefined_flag_CXX=
20159 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20160 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }
20164 then
20165 archive_cmds_need_lc_CXX=no
20166 else
20167 archive_cmds_need_lc_CXX=yes
20168 fi
20169 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20170 else
20171 cat conftest.err 1>&5
20172 fi
20173 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020174 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20175echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020176 ;;
20177 esac
20178 fi
20179 ;;
20180esac
20181
Reid Spencera773bd52006-08-04 18:18:08 +000020182{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20183echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020184library_names_spec=
20185libname_spec='lib$name'
20186soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020187shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020188postinstall_cmds=
20189postuninstall_cmds=
20190finish_cmds=
20191finish_eval=
20192shlibpath_var=
20193shlibpath_overrides_runpath=unknown
20194version_type=none
20195dynamic_linker="$host_os ld.so"
20196sys_lib_dlsearch_path_spec="/lib /usr/lib"
20197if test "$GCC" = yes; then
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 ';' >/dev/null ; then
20200 # if the path contains ";" then we assume it to be the separator
20201 # otherwise default to the standard path separator (i.e. ":") - it is
20202 # assumed that no part of a normal pathname contains ";" but that should
20203 # okay in the real world where ";" in dirpaths is itself problematic.
20204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20205 else
20206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20207 fi
20208else
20209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20210fi
20211need_lib_prefix=unknown
20212hardcode_into_libs=no
20213
20214# when you set need_version to no, make sure it does not cause -set_version
20215# flags to be left without arguments
20216need_version=unknown
20217
20218case $host_os in
20219aix3*)
20220 version_type=linux
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20222 shlibpath_var=LIBPATH
20223
20224 # AIX 3 has no versioning support, so we append a major version to the name.
20225 soname_spec='${libname}${release}${shared_ext}$major'
20226 ;;
20227
20228aix4* | aix5*)
20229 version_type=linux
20230 need_lib_prefix=no
20231 need_version=no
20232 hardcode_into_libs=yes
20233 if test "$host_cpu" = ia64; then
20234 # AIX 5 supports IA64
20235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 else
20238 # With GCC up to 2.95.x, collect2 would create an import file
20239 # for dependence libraries. The import file would start with
20240 # the line `#! .'. This would cause the generated library to
20241 # depend on `.', always an invalid library. This was fixed in
20242 # development snapshots of GCC prior to 3.0.
20243 case $host_os in
20244 aix4 | aix4.[01] | aix4.[01].*)
20245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20246 echo ' yes '
20247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20248 :
20249 else
20250 can_build_shared=no
20251 fi
20252 ;;
20253 esac
20254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20255 # soname into executable. Probably we can add versioning support to
20256 # collect2, so additional links can be useful in future.
20257 if test "$aix_use_runtimelinking" = yes; then
20258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20259 # instead of lib<name>.a to let people know that these are not
20260 # typical AIX shared libraries.
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 else
20263 # We preserve .a as extension for shared libraries through AIX4.2
20264 # and later when we are not doing run time linking.
20265 library_names_spec='${libname}${release}.a $libname.a'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 fi
20268 shlibpath_var=LIBPATH
20269 fi
20270 ;;
20271
20272amigaos*)
20273 library_names_spec='$libname.ixlibrary $libname.a'
20274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020275 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 +000020276 ;;
20277
20278beos*)
20279 library_names_spec='${libname}${shared_ext}'
20280 dynamic_linker="$host_os ld.so"
20281 shlibpath_var=LIBRARY_PATH
20282 ;;
20283
Reid Spencer2706f8c2004-09-19 23:53:36 +000020284bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020285 version_type=linux
20286 need_version=no
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20293 # the default ld.so.conf also contains /usr/contrib/lib and
20294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20295 # libtool to hard-code these into programs
20296 ;;
20297
20298cygwin* | mingw* | pw32*)
20299 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020300 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020301 need_version=no
20302 need_lib_prefix=no
20303
20304 case $GCC,$host_os in
20305 yes,cygwin* | yes,mingw* | yes,pw32*)
20306 library_names_spec='$libname.dll.a'
20307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020308 postinstall_cmds='base_file=`basename \${file}`~
20309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20310 dldir=$destdir/`dirname \$dlpath`~
20311 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020312 $install_prog $dir/$dlname \$dldir/$dlname~
20313 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20315 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020316 $rm \$dlpath'
20317 shlibpath_overrides_runpath=yes
20318
20319 case $host_os in
20320 cygwin*)
20321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20322 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 +000020323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020324 ;;
20325 mingw*)
20326 # MinGW DLLs use traditional 'lib' prefix
20327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20329 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20330 # It is most probably a Windows format PATH printed by
20331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20332 # path with ; separators, and with drive letters. We can handle the
20333 # drive letters (cygwin fileutils understands them), so leave them,
20334 # especially as we might pass files found there to a mingw objdump,
20335 # which wouldn't understand a cygwinified path. Ahh.
20336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20337 else
20338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20339 fi
20340 ;;
20341 pw32*)
20342 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020343 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 +000020344 ;;
20345 esac
20346 ;;
20347
20348 *)
20349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20350 ;;
20351 esac
20352 dynamic_linker='Win32 ld.exe'
20353 # FIXME: first we should search . and the directory the executable is in
20354 shlibpath_var=PATH
20355 ;;
20356
20357darwin* | rhapsody*)
20358 dynamic_linker="$host_os dyld"
20359 version_type=darwin
20360 need_lib_prefix=no
20361 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020362 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020363 soname_spec='${libname}${release}${major}$shared_ext'
20364 shlibpath_overrides_runpath=yes
20365 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020366 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020367 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020368 if test "$GCC" = yes; then
20369 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"`
20370 else
20371 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020372 fi
20373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20374 ;;
20375
20376dgux*)
20377 version_type=linux
20378 need_lib_prefix=no
20379 need_version=no
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 ;;
20384
20385freebsd1*)
20386 dynamic_linker=no
20387 ;;
20388
Reid Spencer2706f8c2004-09-19 23:53:36 +000020389kfreebsd*-gnu)
20390 version_type=linux
20391 need_lib_prefix=no
20392 need_version=no
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=no
20397 hardcode_into_libs=yes
20398 dynamic_linker='GNU ld.so'
20399 ;;
20400
Reid Spencera773bd52006-08-04 18:18:08 +000020401freebsd* | dragonfly*)
20402 # DragonFly does not have aout. When/if they implement a new
20403 # versioning mechanism, adjust this.
20404 if test -x /usr/bin/objformat; then
20405 objformat=`/usr/bin/objformat`
20406 else
20407 case $host_os in
20408 freebsd[123]*) objformat=aout ;;
20409 *) objformat=elf ;;
20410 esac
20411 fi
John Criswell47fdd832003-07-14 16:52:07 +000020412 version_type=freebsd-$objformat
20413 case $version_type in
20414 freebsd-elf*)
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20416 need_version=no
20417 need_lib_prefix=no
20418 ;;
20419 freebsd-*)
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20421 need_version=yes
20422 ;;
20423 esac
20424 shlibpath_var=LD_LIBRARY_PATH
20425 case $host_os in
20426 freebsd2*)
20427 shlibpath_overrides_runpath=yes
20428 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020429 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020430 shlibpath_overrides_runpath=yes
20431 hardcode_into_libs=yes
20432 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020435 shlibpath_overrides_runpath=no
20436 hardcode_into_libs=yes
20437 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020438 freebsd*) # from 4.6 on
20439 shlibpath_overrides_runpath=yes
20440 hardcode_into_libs=yes
20441 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020442 esac
20443 ;;
20444
20445gnu*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 hardcode_into_libs=yes
20453 ;;
20454
20455hpux9* | hpux10* | hpux11*)
20456 # Give a soname corresponding to the major version so that dld.sl refuses to
20457 # link against other versions.
20458 version_type=sunos
20459 need_lib_prefix=no
20460 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020461 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020462 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020463 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020464 hardcode_into_libs=yes
20465 dynamic_linker="$host_os dld.so"
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469 soname_spec='${libname}${release}${shared_ext}$major'
20470 if test "X$HPUX_IA64_MODE" = X32; then
20471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20472 else
20473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20474 fi
20475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20476 ;;
20477 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020478 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020479 hardcode_into_libs=yes
20480 dynamic_linker="$host_os dld.sl"
20481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20487 ;;
20488 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020489 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020490 dynamic_linker="$host_os dld.sl"
20491 shlibpath_var=SHLIB_PATH
20492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 ;;
20496 esac
20497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20498 postinstall_cmds='chmod 555 $lib'
20499 ;;
20500
Reid Spencera773bd52006-08-04 18:18:08 +000020501interix3*)
20502 version_type=linux
20503 need_lib_prefix=no
20504 need_version=no
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20508 shlibpath_var=LD_LIBRARY_PATH
20509 shlibpath_overrides_runpath=no
20510 hardcode_into_libs=yes
20511 ;;
20512
John Criswell47fdd832003-07-14 16:52:07 +000020513irix5* | irix6* | nonstopux*)
20514 case $host_os in
20515 nonstopux*) version_type=nonstopux ;;
20516 *)
20517 if test "$lt_cv_prog_gnu_ld" = yes; then
20518 version_type=linux
20519 else
20520 version_type=irix
20521 fi ;;
20522 esac
20523 need_lib_prefix=no
20524 need_version=no
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20527 case $host_os in
20528 irix5* | nonstopux*)
20529 libsuff= shlibsuff=
20530 ;;
20531 *)
20532 case $LD in # libtool.m4 will add one of these switches to LD
20533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20534 libsuff= shlibsuff= libmagic=32-bit;;
20535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20536 libsuff=32 shlibsuff=N32 libmagic=N32;;
20537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20539 *) libsuff= shlibsuff= libmagic=never-match;;
20540 esac
20541 ;;
20542 esac
20543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20544 shlibpath_overrides_runpath=no
20545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20547 hardcode_into_libs=yes
20548 ;;
20549
20550# No shared lib support for Linux oldld, aout, or coff.
20551linux*oldld* | linux*aout* | linux*coff*)
20552 dynamic_linker=no
20553 ;;
20554
20555# This must be Linux ELF.
20556linux*)
20557 version_type=linux
20558 need_lib_prefix=no
20559 need_version=no
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 shlibpath_overrides_runpath=no
20565 # This implies no fast_install, which is unacceptable.
20566 # Some rework will be needed to allow for fast_install
20567 # before this can be enabled.
20568 hardcode_into_libs=yes
20569
Reid Spencer2706f8c2004-09-19 23:53:36 +000020570 # Append ld.so.conf contents to the search path
20571 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020572 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 +000020573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20574 fi
20575
John Criswell47fdd832003-07-14 16:52:07 +000020576 # We used to test for /lib/ld.so.1 and disable shared libraries on
20577 # powerpc, because MkLinux only supported shared libraries with the
20578 # GNU dynamic linker. Since this was broken with cross compilers,
20579 # most powerpc-linux boxes support dynamic linking these days and
20580 # people can always --disable-shared, the test was removed, and we
20581 # assume the GNU/Linux dynamic linker is in use.
20582 dynamic_linker='GNU/Linux ld.so'
20583 ;;
20584
Reid Spencer2706f8c2004-09-19 23:53:36 +000020585knetbsd*-gnu)
20586 version_type=linux
20587 need_lib_prefix=no
20588 need_version=no
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20592 shlibpath_overrides_runpath=no
20593 hardcode_into_libs=yes
20594 dynamic_linker='GNU ld.so'
20595 ;;
20596
John Criswell47fdd832003-07-14 16:52:07 +000020597netbsd*)
20598 version_type=sunos
20599 need_lib_prefix=no
20600 need_version=no
20601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20604 dynamic_linker='NetBSD (a.out) ld.so'
20605 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020607 soname_spec='${libname}${release}${shared_ext}$major'
20608 dynamic_linker='NetBSD ld.elf_so'
20609 fi
20610 shlibpath_var=LD_LIBRARY_PATH
20611 shlibpath_overrides_runpath=yes
20612 hardcode_into_libs=yes
20613 ;;
20614
20615newsos6)
20616 version_type=linux
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=yes
20620 ;;
20621
Reid Spencer2706f8c2004-09-19 23:53:36 +000020622nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020623 version_type=linux
20624 need_lib_prefix=no
20625 need_version=no
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20627 soname_spec='${libname}${release}${shared_ext}$major'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 shlibpath_overrides_runpath=yes
20630 ;;
20631
20632openbsd*)
20633 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020634 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020635 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20637 case $host_os in
20638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20639 *) need_version=no ;;
20640 esac
John Criswell47fdd832003-07-14 16:52:07 +000020641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20643 shlibpath_var=LD_LIBRARY_PATH
20644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20645 case $host_os in
20646 openbsd2.[89] | openbsd2.[89].*)
20647 shlibpath_overrides_runpath=no
20648 ;;
20649 *)
20650 shlibpath_overrides_runpath=yes
20651 ;;
20652 esac
20653 else
20654 shlibpath_overrides_runpath=yes
20655 fi
20656 ;;
20657
20658os2*)
20659 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020660 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020661 need_lib_prefix=no
20662 library_names_spec='$libname${shared_ext} $libname.a'
20663 dynamic_linker='OS/2 ld.exe'
20664 shlibpath_var=LIBPATH
20665 ;;
20666
20667osf3* | osf4* | osf5*)
20668 version_type=osf
20669 need_lib_prefix=no
20670 need_version=no
20671 soname_spec='${libname}${release}${shared_ext}$major'
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20676 ;;
20677
John Criswell47fdd832003-07-14 16:52:07 +000020678solaris*)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 shlibpath_overrides_runpath=yes
20686 hardcode_into_libs=yes
20687 # ldd complains unless libraries are executable
20688 postinstall_cmds='chmod +x $lib'
20689 ;;
20690
20691sunos4*)
20692 version_type=sunos
20693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 shlibpath_overrides_runpath=yes
20697 if test "$with_gnu_ld" = yes; then
20698 need_lib_prefix=no
20699 fi
20700 need_version=yes
20701 ;;
20702
Reid Spencera773bd52006-08-04 18:18:08 +000020703sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020704 version_type=linux
20705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20706 soname_spec='${libname}${release}${shared_ext}$major'
20707 shlibpath_var=LD_LIBRARY_PATH
20708 case $host_vendor in
20709 sni)
20710 shlibpath_overrides_runpath=no
20711 need_lib_prefix=no
20712 export_dynamic_flag_spec='${wl}-Blargedynsym'
20713 runpath_var=LD_RUN_PATH
20714 ;;
20715 siemens)
20716 need_lib_prefix=no
20717 ;;
20718 motorola)
20719 need_lib_prefix=no
20720 need_version=no
20721 shlibpath_overrides_runpath=no
20722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20723 ;;
20724 esac
20725 ;;
20726
20727sysv4*MP*)
20728 if test -d /usr/nec ;then
20729 version_type=linux
20730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20731 soname_spec='$libname${shared_ext}.$major'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 fi
20734 ;;
20735
Reid Spencera773bd52006-08-04 18:18:08 +000020736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20737 version_type=freebsd-elf
20738 need_lib_prefix=no
20739 need_version=no
20740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20741 soname_spec='${libname}${release}${shared_ext}$major'
20742 shlibpath_var=LD_LIBRARY_PATH
20743 hardcode_into_libs=yes
20744 if test "$with_gnu_ld" = yes; then
20745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20746 shlibpath_overrides_runpath=no
20747 else
20748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20749 shlibpath_overrides_runpath=yes
20750 case $host_os in
20751 sco3.2v5*)
20752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20753 ;;
20754 esac
20755 fi
20756 sys_lib_dlsearch_path_spec='/usr/lib'
20757 ;;
20758
John Criswell47fdd832003-07-14 16:52:07 +000020759uts4*)
20760 version_type=linux
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 soname_spec='${libname}${release}${shared_ext}$major'
20763 shlibpath_var=LD_LIBRARY_PATH
20764 ;;
20765
20766*)
20767 dynamic_linker=no
20768 ;;
20769esac
Reid Spencera773bd52006-08-04 18:18:08 +000020770{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20771echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020772test "$dynamic_linker" = no && can_build_shared=no
20773
Reid Spencera773bd52006-08-04 18:18:08 +000020774variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20775if test "$GCC" = yes; then
20776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20777fi
20778
20779{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20780echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020781hardcode_action_CXX=
20782if test -n "$hardcode_libdir_flag_spec_CXX" || \
20783 test -n "$runpath_var_CXX" || \
20784 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20785
20786 # We can hardcode non-existant directories.
20787 if test "$hardcode_direct_CXX" != no &&
20788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20789 # have to relink, otherwise we might link with an installed library
20790 # when we should be linking with a yet-to-be-installed one
20791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20792 test "$hardcode_minus_L_CXX" != no; then
20793 # Linking always hardcodes the temporary library directory.
20794 hardcode_action_CXX=relink
20795 else
20796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20797 hardcode_action_CXX=immediate
20798 fi
20799else
20800 # We cannot hardcode anything, or else we can only hardcode existing
20801 # directories.
20802 hardcode_action_CXX=unsupported
20803fi
Reid Spencera773bd52006-08-04 18:18:08 +000020804{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20805echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020806
20807if test "$hardcode_action_CXX" = relink; then
20808 # Fast installation is not supported
20809 enable_fast_install=no
20810elif test "$shlibpath_overrides_runpath" = yes ||
20811 test "$enable_shared" = no; then
20812 # Fast installation is not necessary
20813 enable_fast_install=needless
20814fi
20815
John Criswell47fdd832003-07-14 16:52:07 +000020816
20817# The else clause should only fire when bootstrapping the
20818# libtool distribution, otherwise you forgot to ship ltmain.sh
20819# with your package, and you will get complaints that there are
20820# no rules to generate ltmain.sh.
20821if test -f "$ltmain"; then
20822 # See if we are running on zsh, and set the options which allow our commands through
20823 # without removal of \ escapes.
20824 if test -n "${ZSH_VERSION+set}" ; then
20825 setopt NO_GLOB_SUBST
20826 fi
20827 # Now quote all the things that may contain metacharacters while being
20828 # careful not to overquote the AC_SUBSTed values. We take copies of the
20829 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020830 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 +000020831 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020832 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20833 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20834 deplibs_check_method reload_flag reload_cmds need_locks \
20835 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20836 lt_cv_sys_global_symbol_to_c_name_address \
20837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20838 old_postinstall_cmds old_postuninstall_cmds \
20839 compiler_CXX \
20840 CC_CXX \
20841 LD_CXX \
20842 lt_prog_compiler_wl_CXX \
20843 lt_prog_compiler_pic_CXX \
20844 lt_prog_compiler_static_CXX \
20845 lt_prog_compiler_no_builtin_flag_CXX \
20846 export_dynamic_flag_spec_CXX \
20847 thread_safe_flag_spec_CXX \
20848 whole_archive_flag_spec_CXX \
20849 enable_shared_with_static_runtimes_CXX \
20850 old_archive_cmds_CXX \
20851 old_archive_from_new_cmds_CXX \
20852 predep_objects_CXX \
20853 postdep_objects_CXX \
20854 predeps_CXX \
20855 postdeps_CXX \
20856 compiler_lib_search_path_CXX \
20857 archive_cmds_CXX \
20858 archive_expsym_cmds_CXX \
20859 postinstall_cmds_CXX \
20860 postuninstall_cmds_CXX \
20861 old_archive_from_expsyms_cmds_CXX \
20862 allow_undefined_flag_CXX \
20863 no_undefined_flag_CXX \
20864 export_symbols_cmds_CXX \
20865 hardcode_libdir_flag_spec_CXX \
20866 hardcode_libdir_flag_spec_ld_CXX \
20867 hardcode_libdir_separator_CXX \
20868 hardcode_automatic_CXX \
20869 module_cmds_CXX \
20870 module_expsym_cmds_CXX \
20871 lt_cv_prog_compiler_c_o_CXX \
20872 exclude_expsyms_CXX \
20873 include_expsyms_CXX; do
20874
20875 case $var in
20876 old_archive_cmds_CXX | \
20877 old_archive_from_new_cmds_CXX | \
20878 archive_cmds_CXX | \
20879 archive_expsym_cmds_CXX | \
20880 module_cmds_CXX | \
20881 module_expsym_cmds_CXX | \
20882 old_archive_from_expsyms_cmds_CXX | \
20883 export_symbols_cmds_CXX | \
20884 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20885 postinstall_cmds | postuninstall_cmds | \
20886 old_postinstall_cmds | old_postuninstall_cmds | \
20887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20888 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020889 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 +000020890 ;;
20891 *)
20892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20893 ;;
20894 esac
20895 done
20896
20897 case $lt_echo in
20898 *'\$0 --fallback-echo"')
20899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20900 ;;
20901 esac
20902
20903cfgfile="$ofile"
20904
20905 cat <<__EOF__ >> "$cfgfile"
20906# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20907
20908# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20909
20910# Shell to use when invoking shell scripts.
20911SHELL=$lt_SHELL
20912
20913# Whether or not to build shared libraries.
20914build_libtool_libs=$enable_shared
20915
20916# Whether or not to build static libraries.
20917build_old_libs=$enable_static
20918
20919# Whether or not to add -lc for building shared libraries.
20920build_libtool_need_lc=$archive_cmds_need_lc_CXX
20921
20922# Whether or not to disallow shared libs when runtime libs are static
20923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20924
20925# Whether or not to optimize for fast installation.
20926fast_install=$enable_fast_install
20927
20928# The host system.
20929host_alias=$host_alias
20930host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020931host_os=$host_os
20932
20933# The build system.
20934build_alias=$build_alias
20935build=$build
20936build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020937
20938# An echo program that does not interpret backslashes.
20939echo=$lt_echo
20940
20941# The archiver.
20942AR=$lt_AR
20943AR_FLAGS=$lt_AR_FLAGS
20944
20945# A C compiler.
20946LTCC=$lt_LTCC
20947
Reid Spencera773bd52006-08-04 18:18:08 +000020948# LTCC compiler flags.
20949LTCFLAGS=$lt_LTCFLAGS
20950
John Criswell47fdd832003-07-14 16:52:07 +000020951# A language-specific compiler.
20952CC=$lt_compiler_CXX
20953
20954# Is the compiler the GNU C compiler?
20955with_gcc=$GCC_CXX
20956
20957# An ERE matcher.
20958EGREP=$lt_EGREP
20959
20960# The linker used to build libraries.
20961LD=$lt_LD_CXX
20962
20963# Whether we need hard or soft links.
20964LN_S=$lt_LN_S
20965
20966# A BSD-compatible nm program.
20967NM=$lt_NM
20968
20969# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020970STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020971
20972# Used to examine libraries when file_magic_cmd begins "file"
20973MAGIC_CMD=$MAGIC_CMD
20974
20975# Used on cygwin: DLL creation program.
20976DLLTOOL="$DLLTOOL"
20977
20978# Used on cygwin: object dumper.
20979OBJDUMP="$OBJDUMP"
20980
20981# Used on cygwin: assembler.
20982AS="$AS"
20983
20984# The name of the directory that contains temporary libtool files.
20985objdir=$objdir
20986
20987# How to create reloadable object files.
20988reload_flag=$lt_reload_flag
20989reload_cmds=$lt_reload_cmds
20990
20991# How to pass a linker flag through the compiler.
20992wl=$lt_lt_prog_compiler_wl_CXX
20993
20994# Object file suffix (normally "o").
20995objext="$ac_objext"
20996
20997# Old archive suffix (normally "a").
20998libext="$libext"
20999
21000# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021001shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021002
21003# Executable file suffix (normally "").
21004exeext="$exeext"
21005
21006# Additional compiler flags for building library objects.
21007pic_flag=$lt_lt_prog_compiler_pic_CXX
21008pic_mode=$pic_mode
21009
21010# What is the maximum length of a command?
21011max_cmd_len=$lt_cv_sys_max_cmd_len
21012
21013# Does compiler simultaneously support -c and -o options?
21014compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21015
Reid Spencera773bd52006-08-04 18:18:08 +000021016# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021017need_locks=$lt_need_locks
21018
21019# Do we need the lib prefix for modules?
21020need_lib_prefix=$need_lib_prefix
21021
21022# Do we need a version for libraries?
21023need_version=$need_version
21024
21025# Whether dlopen is supported.
21026dlopen_support=$enable_dlopen
21027
21028# Whether dlopen of programs is supported.
21029dlopen_self=$enable_dlopen_self
21030
21031# Whether dlopen of statically linked programs is supported.
21032dlopen_self_static=$enable_dlopen_self_static
21033
21034# Compiler flag to prevent dynamic linking.
21035link_static_flag=$lt_lt_prog_compiler_static_CXX
21036
21037# Compiler flag to turn off builtin functions.
21038no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21039
21040# Compiler flag to allow reflexive dlopens.
21041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21042
21043# Compiler flag to generate shared objects directly from archives.
21044whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21045
21046# Compiler flag to generate thread-safe objects.
21047thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21048
21049# Library versioning type.
21050version_type=$version_type
21051
21052# Format of library name prefix.
21053libname_spec=$lt_libname_spec
21054
21055# List of archive names. First name is the real one, the rest are links.
21056# The last name is the one that the linker finds with -lNAME.
21057library_names_spec=$lt_library_names_spec
21058
21059# The coded name of the library, if different from the real name.
21060soname_spec=$lt_soname_spec
21061
21062# Commands used to build and install an old-style archive.
21063RANLIB=$lt_RANLIB
21064old_archive_cmds=$lt_old_archive_cmds_CXX
21065old_postinstall_cmds=$lt_old_postinstall_cmds
21066old_postuninstall_cmds=$lt_old_postuninstall_cmds
21067
21068# Create an old-style archive from a shared archive.
21069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21070
21071# Create a temporary old-style archive to link instead of a shared archive.
21072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21073
21074# Commands used to build and install a shared archive.
21075archive_cmds=$lt_archive_cmds_CXX
21076archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21077postinstall_cmds=$lt_postinstall_cmds
21078postuninstall_cmds=$lt_postuninstall_cmds
21079
21080# Commands used to build a loadable module (assumed same as above if empty)
21081module_cmds=$lt_module_cmds_CXX
21082module_expsym_cmds=$lt_module_expsym_cmds_CXX
21083
21084# Commands to strip libraries.
21085old_striplib=$lt_old_striplib
21086striplib=$lt_striplib
21087
21088# Dependencies to place before the objects being linked to create a
21089# shared library.
21090predep_objects=$lt_predep_objects_CXX
21091
21092# Dependencies to place after the objects being linked to create a
21093# shared library.
21094postdep_objects=$lt_postdep_objects_CXX
21095
21096# Dependencies to place before the objects being linked to create a
21097# shared library.
21098predeps=$lt_predeps_CXX
21099
21100# Dependencies to place after the objects being linked to create a
21101# shared library.
21102postdeps=$lt_postdeps_CXX
21103
21104# The library search path used internally by the compiler when linking
21105# a shared library.
21106compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21107
21108# Method to check whether dependent libraries are shared objects.
21109deplibs_check_method=$lt_deplibs_check_method
21110
21111# Command to use when deplibs_check_method == file_magic.
21112file_magic_cmd=$lt_file_magic_cmd
21113
21114# Flag that allows shared libraries with undefined symbols to be built.
21115allow_undefined_flag=$lt_allow_undefined_flag_CXX
21116
21117# Flag that forces no undefined symbols.
21118no_undefined_flag=$lt_no_undefined_flag_CXX
21119
21120# Commands used to finish a libtool library installation in a directory.
21121finish_cmds=$lt_finish_cmds
21122
21123# Same as above, but a single script fragment to be evaled but not shown.
21124finish_eval=$lt_finish_eval
21125
21126# Take the output of nm and produce a listing of raw symbols and C names.
21127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21128
21129# Transform the output of nm in a proper C declaration
21130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21131
21132# Transform the output of nm in a C name address pair
21133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21134
21135# This is the shared library runtime path variable.
21136runpath_var=$runpath_var
21137
21138# This is the shared library path variable.
21139shlibpath_var=$shlibpath_var
21140
21141# Is shlibpath searched before the hard-coded library search path?
21142shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21143
21144# How to hardcode a shared library path into an executable.
21145hardcode_action=$hardcode_action_CXX
21146
21147# Whether we should hardcode library paths into libraries.
21148hardcode_into_libs=$hardcode_into_libs
21149
21150# Flag to hardcode \$libdir into a binary during linking.
21151# This must work even if \$libdir does not exist.
21152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21153
21154# If ld is used when linking, flag to hardcode \$libdir into
21155# a binary during linking. This must work even if \$libdir does
21156# not exist.
21157hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21158
21159# Whether we need a single -rpath flag with a separated argument.
21160hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21161
21162# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21163# resulting binary.
21164hardcode_direct=$hardcode_direct_CXX
21165
21166# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21167# resulting binary.
21168hardcode_minus_L=$hardcode_minus_L_CXX
21169
21170# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21171# the resulting binary.
21172hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21173
21174# Set to yes if building a shared library automatically hardcodes DIR into the library
21175# and all subsequent libraries and executables linked against it.
21176hardcode_automatic=$hardcode_automatic_CXX
21177
21178# Variables whose values should be saved in libtool wrapper scripts and
21179# restored at relink time.
21180variables_saved_for_relink="$variables_saved_for_relink"
21181
21182# Whether libtool must link a program against all its dependency libraries.
21183link_all_deplibs=$link_all_deplibs_CXX
21184
21185# Compile-time system search path for libraries
21186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21187
21188# Run-time system search path for libraries
21189sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21190
21191# Fix the shell variable \$srcfile for the compiler.
21192fix_srcfile_path="$fix_srcfile_path_CXX"
21193
21194# Set to yes if exported symbols are required.
21195always_export_symbols=$always_export_symbols_CXX
21196
21197# The commands to list exported symbols.
21198export_symbols_cmds=$lt_export_symbols_cmds_CXX
21199
21200# The commands to extract the exported symbol list from a shared archive.
21201extract_expsyms_cmds=$lt_extract_expsyms_cmds
21202
21203# Symbols that should not be listed in the preloaded symbols.
21204exclude_expsyms=$lt_exclude_expsyms_CXX
21205
21206# Symbols that must always be exported.
21207include_expsyms=$lt_include_expsyms_CXX
21208
21209# ### END LIBTOOL TAG CONFIG: $tagname
21210
21211__EOF__
21212
21213
21214else
21215 # If there is no Makefile yet, we rely on a make rule to execute
21216 # `config.status --recheck' to rerun these tests and create the
21217 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021218 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21219 if test -f "$ltmain_in"; then
21220 test -f Makefile && make "$ltmain"
21221 fi
John Criswell47fdd832003-07-14 16:52:07 +000021222fi
21223
21224
21225ac_ext=c
21226ac_cpp='$CPP $CPPFLAGS'
21227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229ac_compiler_gnu=$ac_cv_c_compiler_gnu
21230
21231CC=$lt_save_CC
21232LDCXX=$LD
21233LD=$lt_save_LD
21234GCC=$lt_save_GCC
21235with_gnu_ldcxx=$with_gnu_ld
21236with_gnu_ld=$lt_save_with_gnu_ld
21237lt_cv_path_LDCXX=$lt_cv_path_LD
21238lt_cv_path_LD=$lt_save_path_LD
21239lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21240lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21241
21242 else
21243 tagname=""
21244 fi
21245 ;;
21246
21247 F77)
21248 if test -n "$F77" && test "X$F77" != "Xno"; then
21249
21250ac_ext=f
21251ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21252ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21254
21255
21256archive_cmds_need_lc_F77=no
21257allow_undefined_flag_F77=
21258always_export_symbols_F77=no
21259archive_expsym_cmds_F77=
21260export_dynamic_flag_spec_F77=
21261hardcode_direct_F77=no
21262hardcode_libdir_flag_spec_F77=
21263hardcode_libdir_flag_spec_ld_F77=
21264hardcode_libdir_separator_F77=
21265hardcode_minus_L_F77=no
21266hardcode_automatic_F77=no
21267module_cmds_F77=
21268module_expsym_cmds_F77=
21269link_all_deplibs_F77=unknown
21270old_archive_cmds_F77=$old_archive_cmds
21271no_undefined_flag_F77=
21272whole_archive_flag_spec_F77=
21273enable_shared_with_static_runtimes_F77=no
21274
21275# Source file extension for f77 test sources.
21276ac_ext=f
21277
21278# Object file extension for compiled f77 test sources.
21279objext=o
21280objext_F77=$objext
21281
21282# Code to be used in simple compile tests
21283lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21284
21285# Code to be used in simple link tests
21286lt_simple_link_test_code=" program t\n end\n"
21287
21288# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21289
21290# If no C compiler was specified, use CC.
21291LTCC=${LTCC-"$CC"}
21292
Reid Spencera773bd52006-08-04 18:18:08 +000021293# If no C compiler flags were specified, use CFLAGS.
21294LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21295
John Criswell47fdd832003-07-14 16:52:07 +000021296# Allow CC to be a program name with arguments.
21297compiler=$CC
21298
21299
Reid Spencera773bd52006-08-04 18:18:08 +000021300# save warnings/boilerplate of simple test code
21301ac_outfile=conftest.$ac_objext
21302printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21303eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21304_lt_compiler_boilerplate=`cat conftest.err`
21305$rm conftest*
21306
21307ac_outfile=conftest.$ac_objext
21308printf "$lt_simple_link_test_code" >conftest.$ac_ext
21309eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21310_lt_linker_boilerplate=`cat conftest.err`
21311$rm conftest*
21312
21313
John Criswell47fdd832003-07-14 16:52:07 +000021314# Allow CC to be a program name with arguments.
21315lt_save_CC="$CC"
21316CC=${F77-"f77"}
21317compiler=$CC
21318compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021319for cc_temp in $compiler""; do
21320 case $cc_temp in
21321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21323 \-*) ;;
21324 *) break;;
21325 esac
21326done
21327cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021328
John Criswell47fdd832003-07-14 16:52:07 +000021329
Reid Spencera773bd52006-08-04 18:18:08 +000021330{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21331echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21332{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21333echo "${ECHO_T}$can_build_shared" >&6; }
21334
21335{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21336echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021337test "$can_build_shared" = "no" && enable_shared=no
21338
21339# On AIX, shared libraries and static libraries use the same namespace, and
21340# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021341case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021342aix3*)
21343 test "$enable_shared" = yes && enable_static=no
21344 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021346 postinstall_cmds='$RANLIB $lib'
21347 fi
21348 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021349aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21351 test "$enable_shared" = yes && enable_static=no
21352 fi
John Criswell47fdd832003-07-14 16:52:07 +000021353 ;;
21354esac
Reid Spencera773bd52006-08-04 18:18:08 +000021355{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21356echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021357
Reid Spencera773bd52006-08-04 18:18:08 +000021358{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21359echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021360# Make sure either enable_shared or enable_static is yes.
21361test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021362{ echo "$as_me:$LINENO: result: $enable_static" >&5
21363echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021364
21365GCC_F77="$G77"
21366LD_F77="$LD"
21367
21368lt_prog_compiler_wl_F77=
21369lt_prog_compiler_pic_F77=
21370lt_prog_compiler_static_F77=
21371
Reid Spencera773bd52006-08-04 18:18:08 +000021372{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21373echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021374
21375 if test "$GCC" = yes; then
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 lt_prog_compiler_static_F77='-static'
21378
21379 case $host_os in
21380 aix*)
21381 # All AIX code is PIC.
21382 if test "$host_cpu" = ia64; then
21383 # AIX 5 now supports IA64 processor
21384 lt_prog_compiler_static_F77='-Bstatic'
21385 fi
21386 ;;
21387
21388 amigaos*)
21389 # FIXME: we need at least 68020 code to build shared libraries, but
21390 # adding the `-m68020' flag to GCC prevents building anything better,
21391 # like `-m68040'.
21392 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21393 ;;
21394
21395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21396 # PIC is the default for these OSes.
21397 ;;
21398
21399 mingw* | pw32* | os2*)
21400 # This hack is so that the source file can tell whether it is being
21401 # built for inclusion in a dll (and should export symbols for example).
21402 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21403 ;;
21404
21405 darwin* | rhapsody*)
21406 # PIC is the default on this platform
21407 # Common symbols not allowed in MH_DYLIB files
21408 lt_prog_compiler_pic_F77='-fno-common'
21409 ;;
21410
Reid Spencera773bd52006-08-04 18:18:08 +000021411 interix3*)
21412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21413 # Instead, we relocate shared libraries at runtime.
21414 ;;
21415
John Criswell47fdd832003-07-14 16:52:07 +000021416 msdosdjgpp*)
21417 # Just because we use GCC doesn't mean we suddenly get shared libraries
21418 # on systems that don't support them.
21419 lt_prog_compiler_can_build_shared_F77=no
21420 enable_shared=no
21421 ;;
21422
21423 sysv4*MP*)
21424 if test -d /usr/nec; then
21425 lt_prog_compiler_pic_F77=-Kconform_pic
21426 fi
21427 ;;
21428
21429 hpux*)
21430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21431 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021432 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021433 hppa*64*|ia64*)
21434 # +Z the default
21435 ;;
21436 *)
21437 lt_prog_compiler_pic_F77='-fPIC'
21438 ;;
21439 esac
21440 ;;
21441
21442 *)
21443 lt_prog_compiler_pic_F77='-fPIC'
21444 ;;
21445 esac
21446 else
21447 # PORTME Check for flag to pass linker flags through the system compiler.
21448 case $host_os in
21449 aix*)
21450 lt_prog_compiler_wl_F77='-Wl,'
21451 if test "$host_cpu" = ia64; then
21452 # AIX 5 now supports IA64 processor
21453 lt_prog_compiler_static_F77='-Bstatic'
21454 else
21455 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21456 fi
21457 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021458 darwin*)
21459 # PIC is the default on this platform
21460 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021461 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021462 xlc*)
21463 lt_prog_compiler_pic_F77='-qnocommon'
21464 lt_prog_compiler_wl_F77='-Wl,'
21465 ;;
21466 esac
21467 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021468
21469 mingw* | pw32* | os2*)
21470 # This hack is so that the source file can tell whether it is being
21471 # built for inclusion in a dll (and should export symbols for example).
21472 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21473 ;;
21474
21475 hpux9* | hpux10* | hpux11*)
21476 lt_prog_compiler_wl_F77='-Wl,'
21477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21478 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021479 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021480 hppa*64*|ia64*)
21481 # +Z the default
21482 ;;
21483 *)
21484 lt_prog_compiler_pic_F77='+Z'
21485 ;;
21486 esac
21487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21488 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21489 ;;
21490
21491 irix5* | irix6* | nonstopux*)
21492 lt_prog_compiler_wl_F77='-Wl,'
21493 # PIC (with -KPIC) is the default.
21494 lt_prog_compiler_static_F77='-non_shared'
21495 ;;
21496
21497 newsos6)
21498 lt_prog_compiler_pic_F77='-KPIC'
21499 lt_prog_compiler_static_F77='-Bstatic'
21500 ;;
21501
21502 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021503 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021504 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021505 lt_prog_compiler_wl_F77='-Wl,'
21506 lt_prog_compiler_pic_F77='-KPIC'
21507 lt_prog_compiler_static_F77='-static'
21508 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021509 pgcc* | pgf77* | pgf90* | pgf95*)
21510 # Portland Group compilers (*not* the Pentium gcc compiler,
21511 # which looks to be a dead project)
21512 lt_prog_compiler_wl_F77='-Wl,'
21513 lt_prog_compiler_pic_F77='-fpic'
21514 lt_prog_compiler_static_F77='-Bstatic'
21515 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021516 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021517 lt_prog_compiler_wl_F77='-Wl,'
21518 # All Alpha code is PIC.
21519 lt_prog_compiler_static_F77='-non_shared'
21520 ;;
21521 esac
21522 ;;
21523
21524 osf3* | osf4* | osf5*)
21525 lt_prog_compiler_wl_F77='-Wl,'
21526 # All OSF/1 code is PIC.
21527 lt_prog_compiler_static_F77='-non_shared'
21528 ;;
21529
John Criswell47fdd832003-07-14 16:52:07 +000021530 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021531 lt_prog_compiler_pic_F77='-KPIC'
21532 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021533 case $cc_basename in
21534 f77* | f90* | f95*)
21535 lt_prog_compiler_wl_F77='-Qoption ld ';;
21536 *)
21537 lt_prog_compiler_wl_F77='-Wl,';;
21538 esac
John Criswell47fdd832003-07-14 16:52:07 +000021539 ;;
21540
21541 sunos4*)
21542 lt_prog_compiler_wl_F77='-Qoption ld '
21543 lt_prog_compiler_pic_F77='-PIC'
21544 lt_prog_compiler_static_F77='-Bstatic'
21545 ;;
21546
Reid Spencera773bd52006-08-04 18:18:08 +000021547 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021548 lt_prog_compiler_wl_F77='-Wl,'
21549 lt_prog_compiler_pic_F77='-KPIC'
21550 lt_prog_compiler_static_F77='-Bstatic'
21551 ;;
21552
21553 sysv4*MP*)
21554 if test -d /usr/nec ;then
21555 lt_prog_compiler_pic_F77='-Kconform_pic'
21556 lt_prog_compiler_static_F77='-Bstatic'
21557 fi
21558 ;;
21559
Reid Spencera773bd52006-08-04 18:18:08 +000021560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21561 lt_prog_compiler_wl_F77='-Wl,'
21562 lt_prog_compiler_pic_F77='-KPIC'
21563 lt_prog_compiler_static_F77='-Bstatic'
21564 ;;
21565
21566 unicos*)
21567 lt_prog_compiler_wl_F77='-Wl,'
21568 lt_prog_compiler_can_build_shared_F77=no
21569 ;;
21570
John Criswell47fdd832003-07-14 16:52:07 +000021571 uts4*)
21572 lt_prog_compiler_pic_F77='-pic'
21573 lt_prog_compiler_static_F77='-Bstatic'
21574 ;;
21575
21576 *)
21577 lt_prog_compiler_can_build_shared_F77=no
21578 ;;
21579 esac
21580 fi
21581
Reid Spencera773bd52006-08-04 18:18:08 +000021582{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21583echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021584
21585#
21586# Check to make sure the PIC flag actually works.
21587#
21588if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021589
Reid Spencera773bd52006-08-04 18:18:08 +000021590{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21591echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021592if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
21595 lt_prog_compiler_pic_works_F77=no
21596 ac_outfile=conftest.$ac_objext
21597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21598 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21599 # Insert the option either (1) after the last *FLAGS variable, or
21600 # (2) before a word containing "conftest.", or (3) at the end.
21601 # Note that $ac_compile itself does not contain backslashes and begins
21602 # with a dollar sign (not a hyphen), so the echo should work correctly.
21603 # The option is referenced via a variable to avoid confusing sed.
21604 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21607 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000021608 (eval echo "\"\$as_me:21608: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021609 (eval "$lt_compile" 2>conftest.err)
21610 ac_status=$?
21611 cat conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000021612 echo "$as_me:21612: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021613 if (exit $ac_status) && test -s "$ac_outfile"; then
21614 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021615 # So say no if there are warnings other than the usual output.
21616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021619 lt_prog_compiler_pic_works_F77=yes
21620 fi
21621 fi
21622 $rm conftest*
21623
21624fi
Reid Spencera773bd52006-08-04 18:18:08 +000021625{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21626echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021627
21628if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21629 case $lt_prog_compiler_pic_F77 in
21630 "" | " "*) ;;
21631 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21632 esac
21633else
21634 lt_prog_compiler_pic_F77=
21635 lt_prog_compiler_can_build_shared_F77=no
21636fi
21637
21638fi
Reid Spencera773bd52006-08-04 18:18:08 +000021639case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021640 # For platforms which do not support PIC, -DPIC is meaningless:
21641 *djgpp*)
21642 lt_prog_compiler_pic_F77=
21643 ;;
21644 *)
21645 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21646 ;;
21647esac
21648
Reid Spencera773bd52006-08-04 18:18:08 +000021649#
21650# Check to make sure the static flag actually works.
21651#
21652wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21653{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21654echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21655if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657else
21658 lt_prog_compiler_static_works_F77=no
21659 save_LDFLAGS="$LDFLAGS"
21660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21663 # The linker can only warn and ignore the option if not recognized
21664 # So say no if there are warnings
21665 if test -s conftest.err; then
21666 # Append any errors to the config.log.
21667 cat conftest.err 1>&5
21668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21670 if diff conftest.exp conftest.er2 >/dev/null; then
21671 lt_prog_compiler_static_works_F77=yes
21672 fi
21673 else
21674 lt_prog_compiler_static_works_F77=yes
21675 fi
21676 fi
21677 $rm conftest*
21678 LDFLAGS="$save_LDFLAGS"
21679
21680fi
21681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21682echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21683
21684if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21685 :
21686else
21687 lt_prog_compiler_static_F77=
21688fi
21689
21690
21691{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21692echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021693if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21695else
21696 lt_cv_prog_compiler_c_o_F77=no
21697 $rm -r conftest 2>/dev/null
21698 mkdir conftest
21699 cd conftest
21700 mkdir out
21701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21702
John Criswell47fdd832003-07-14 16:52:07 +000021703 lt_compiler_flag="-o out/conftest2.$ac_objext"
21704 # Insert the option either (1) after the last *FLAGS variable, or
21705 # (2) before a word containing "conftest.", or (3) at the end.
21706 # Note that $ac_compile itself does not contain backslashes and begins
21707 # with a dollar sign (not a hyphen), so the echo should work correctly.
21708 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21711 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000021712 (eval echo "\"\$as_me:21712: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021713 (eval "$lt_compile" 2>out/conftest.err)
21714 ac_status=$?
21715 cat out/conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000021716 echo "$as_me:21716: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21718 then
21719 # The compiler can only warn and ignore the option if not recognized
21720 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021724 lt_cv_prog_compiler_c_o_F77=yes
21725 fi
21726 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021727 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021728 $rm conftest*
21729 # SGI C++ compiler will create directory out/ii_files/ for
21730 # template instantiation
21731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21732 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021733 cd ..
21734 rmdir conftest
21735 $rm conftest*
21736
21737fi
Reid Spencera773bd52006-08-04 18:18:08 +000021738{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21739echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021740
21741
21742hard_links="nottested"
21743if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21744 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021745 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21746echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021747 hard_links=yes
21748 $rm conftest*
21749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21750 touch conftest.a
21751 ln conftest.a conftest.b 2>&5 || hard_links=no
21752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021753 { echo "$as_me:$LINENO: result: $hard_links" >&5
21754echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021755 if test "$hard_links" = no; then
21756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21757echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21758 need_locks=warn
21759 fi
21760else
21761 need_locks=no
21762fi
21763
Reid Spencera773bd52006-08-04 18:18:08 +000021764{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21765echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021766
21767 runpath_var=
21768 allow_undefined_flag_F77=
21769 enable_shared_with_static_runtimes_F77=no
21770 archive_cmds_F77=
21771 archive_expsym_cmds_F77=
21772 old_archive_From_new_cmds_F77=
21773 old_archive_from_expsyms_cmds_F77=
21774 export_dynamic_flag_spec_F77=
21775 whole_archive_flag_spec_F77=
21776 thread_safe_flag_spec_F77=
21777 hardcode_libdir_flag_spec_F77=
21778 hardcode_libdir_flag_spec_ld_F77=
21779 hardcode_libdir_separator_F77=
21780 hardcode_direct_F77=no
21781 hardcode_minus_L_F77=no
21782 hardcode_shlibpath_var_F77=unsupported
21783 link_all_deplibs_F77=unknown
21784 hardcode_automatic_F77=no
21785 module_cmds_F77=
21786 module_expsym_cmds_F77=
21787 always_export_symbols_F77=no
21788 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21789 # include_expsyms should be a list of space-separated symbols to be *always*
21790 # included in the symbol list
21791 include_expsyms_F77=
21792 # exclude_expsyms can be an extended regexp of symbols to exclude
21793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21795 # as well as any symbol that contains `d'.
21796 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21798 # platforms (ab)use it in PIC code, but their linkers get confused if
21799 # the symbol is explicitly referenced. Since portable code cannot
21800 # rely on this symbol name, it's probably fine to never include it in
21801 # preloaded symbol tables.
21802 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021803 # Just being paranoid about ensuring that cc_basename is set.
21804 for cc_temp in $compiler""; do
21805 case $cc_temp in
21806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21808 \-*) ;;
21809 *) break;;
21810 esac
21811done
21812cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021813
21814 case $host_os in
21815 cygwin* | mingw* | pw32*)
21816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21817 # When not using gcc, we currently assume that we are using
21818 # Microsoft Visual C++.
21819 if test "$GCC" != yes; then
21820 with_gnu_ld=no
21821 fi
21822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021823 interix*)
21824 # we just hope/assume this is gcc and not c89 (= MSVC++)
21825 with_gnu_ld=yes
21826 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021827 openbsd*)
21828 with_gnu_ld=no
21829 ;;
21830 esac
21831
21832 ld_shlibs_F77=yes
21833 if test "$with_gnu_ld" = yes; then
21834 # If archive_cmds runs LD, not CC, wlarc should be empty
21835 wlarc='${wl}'
21836
Reid Spencera773bd52006-08-04 18:18:08 +000021837 # Set some defaults for GNU ld with shared library support. These
21838 # are reset later if shared libraries are not supported. Putting them
21839 # here allows them to be overridden if necessary.
21840 runpath_var=LD_RUN_PATH
21841 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21842 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21843 # ancient GNU ld didn't support --whole-archive et. al.
21844 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21845 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21846 else
21847 whole_archive_flag_spec_F77=
21848 fi
21849 supports_anon_versioning=no
21850 case `$LD -v 2>/dev/null` in
21851 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21854 *\ 2.11.*) ;; # other 2.11 versions
21855 *) supports_anon_versioning=yes ;;
21856 esac
21857
John Criswell47fdd832003-07-14 16:52:07 +000021858 # See if GNU ld supports shared libraries.
21859 case $host_os in
21860 aix3* | aix4* | aix5*)
21861 # On AIX/PPC, the GNU linker is very broken
21862 if test "$host_cpu" != ia64; then
21863 ld_shlibs_F77=no
21864 cat <<EOF 1>&2
21865
21866*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21867*** to be unable to reliably create shared libraries on AIX.
21868*** Therefore, libtool is disabling shared libraries support. If you
21869*** really care for shared libraries, you may want to modify your PATH
21870*** so that a non-GNU linker is found, and then restart.
21871
21872EOF
21873 fi
21874 ;;
21875
21876 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021877 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 +000021878 hardcode_libdir_flag_spec_F77='-L$libdir'
21879 hardcode_minus_L_F77=yes
21880
21881 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21882 # that the semantics of dynamic libraries on AmigaOS, at least up
21883 # to version 4, is to share data among multiple programs linked
21884 # with the same dynamic library. Since this doesn't match the
21885 # behavior of shared libraries on other platforms, we can't use
21886 # them.
21887 ld_shlibs_F77=no
21888 ;;
21889
21890 beos*)
21891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21892 allow_undefined_flag_F77=unsupported
21893 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21894 # support --undefined. This deserves some investigation. FIXME
21895 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21896 else
21897 ld_shlibs_F77=no
21898 fi
21899 ;;
21900
21901 cygwin* | mingw* | pw32*)
21902 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21903 # as there is no search path for DLLs.
21904 hardcode_libdir_flag_spec_F77='-L$libdir'
21905 allow_undefined_flag_F77=unsupported
21906 always_export_symbols_F77=no
21907 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021908 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 +000021909
21910 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021911 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 +000021912 # If the export-symbols file already is a .def file (1st line
21913 # is EXPORTS), use it as is; otherwise, prepend...
21914 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21915 cp $export_symbols $output_objdir/$soname.def;
21916 else
21917 echo EXPORTS > $output_objdir/$soname.def;
21918 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021919 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021920 $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 +000021921 else
Reid Spencera773bd52006-08-04 18:18:08 +000021922 ld_shlibs_F77=no
21923 fi
21924 ;;
21925
21926 interix3*)
21927 hardcode_direct_F77=no
21928 hardcode_shlibpath_var_F77=no
21929 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21930 export_dynamic_flag_spec_F77='${wl}-E'
21931 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21932 # Instead, shared libraries are loaded at an image base (0x10000000 by
21933 # default) and relocated if they conflict, which is a slow very memory
21934 # consuming and fragmenting process. To avoid this, we pick a random,
21935 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21936 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21937 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'
21938 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'
21939 ;;
21940
21941 linux*)
21942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21943 tmp_addflag=
21944 case $cc_basename,$host_cpu in
21945 pgcc*) # Portland Group C compiler
21946 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'
21947 tmp_addflag=' $pic_flag'
21948 ;;
21949 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21950 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'
21951 tmp_addflag=' $pic_flag -Mnomain' ;;
21952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21953 tmp_addflag=' -i_dynamic' ;;
21954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21955 tmp_addflag=' -i_dynamic -nofor_main' ;;
21956 ifc* | ifort*) # Intel Fortran compiler
21957 tmp_addflag=' -nofor_main' ;;
21958 esac
21959 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21960
21961 if test $supports_anon_versioning = yes; then
21962 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21964 $echo "local: *; };" >> $output_objdir/$libname.ver~
21965 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21966 fi
21967 else
21968 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021969 fi
21970 ;;
21971
21972 netbsd*)
21973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21974 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21975 wlarc=
21976 else
21977 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21978 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21979 fi
21980 ;;
21981
Reid Spencera773bd52006-08-04 18:18:08 +000021982 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21984 ld_shlibs_F77=no
21985 cat <<EOF 1>&2
21986
21987*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21988*** create shared libraries on Solaris systems. Therefore, libtool
21989*** is disabling shared libraries support. We urge you to upgrade GNU
21990*** binutils to release 2.9.1 or newer. Another option is to modify
21991*** your PATH or compiler configuration so that the native linker is
21992*** used, and then restart.
21993
21994EOF
21995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21996 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21997 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21998 else
21999 ld_shlibs_F77=no
22000 fi
22001 ;;
22002
Reid Spencera773bd52006-08-04 18:18:08 +000022003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22004 case `$LD -v 2>&1` in
22005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22006 ld_shlibs_F77=no
22007 cat <<_LT_EOF 1>&2
22008
22009*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22010*** reliably create shared libraries on SCO systems. Therefore, libtool
22011*** is disabling shared libraries support. We urge you to upgrade GNU
22012*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22013*** your PATH or compiler configuration so that the native linker is
22014*** used, and then restart.
22015
22016_LT_EOF
22017 ;;
22018 *)
22019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22020 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22023 else
22024 ld_shlibs_F77=no
22025 fi
22026 ;;
22027 esac
22028 ;;
22029
John Criswell47fdd832003-07-14 16:52:07 +000022030 sunos4*)
22031 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032 wlarc=
22033 hardcode_direct_F77=yes
22034 hardcode_shlibpath_var_F77=no
22035 ;;
22036
22037 *)
22038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22041 else
22042 ld_shlibs_F77=no
22043 fi
22044 ;;
22045 esac
22046
Reid Spencera773bd52006-08-04 18:18:08 +000022047 if test "$ld_shlibs_F77" = no; then
22048 runpath_var=
22049 hardcode_libdir_flag_spec_F77=
22050 export_dynamic_flag_spec_F77=
22051 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022052 fi
22053 else
22054 # PORTME fill in a description of your system's linker (not GNU ld)
22055 case $host_os in
22056 aix3*)
22057 allow_undefined_flag_F77=unsupported
22058 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022059 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 +000022060 # Note: this linker hardcodes the directories in LIBPATH if there
22061 # are no directories specified by -L.
22062 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022063 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022064 # Neither direct hardcoding nor static linking is supported with a
22065 # broken collect2.
22066 hardcode_direct_F77=unsupported
22067 fi
22068 ;;
22069
22070 aix4* | aix5*)
22071 if test "$host_cpu" = ia64; then
22072 # On IA64, the linker does run time linking by default, so we don't
22073 # have to do anything special.
22074 aix_use_runtimelinking=no
22075 exp_sym_flag='-Bexport'
22076 no_entry_flag=""
22077 else
22078 # If we're using GNU nm, then we don't want the "-C" option.
22079 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22080 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22081 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'
22082 else
22083 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'
22084 fi
22085 aix_use_runtimelinking=no
22086
22087 # Test if we are trying to use run time linking or normal
22088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22089 # need to do runtime linking.
22090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22091 for ld_flag in $LDFLAGS; do
22092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22093 aix_use_runtimelinking=yes
22094 break
22095 fi
22096 done
Reid Spencera773bd52006-08-04 18:18:08 +000022097 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022098 esac
22099
22100 exp_sym_flag='-bexport'
22101 no_entry_flag='-bnoentry'
22102 fi
22103
22104 # When large executables or shared objects are built, AIX ld can
22105 # have problems creating the table of contents. If linking a library
22106 # or program results in "error TOC overflow" add -mminimal-toc to
22107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22109
22110 archive_cmds_F77=''
22111 hardcode_direct_F77=yes
22112 hardcode_libdir_separator_F77=':'
22113 link_all_deplibs_F77=yes
22114
22115 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022116 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022117 # We only want to do this on AIX 4.2 and lower, the check
22118 # below for broken collect2 doesn't work under 4.3+
22119 collect2name=`${CC} -print-prog-name=collect2`
22120 if test -f "$collect2name" && \
22121 strings "$collect2name" | grep resolve_lib_name >/dev/null
22122 then
22123 # We have reworked collect2
22124 hardcode_direct_F77=yes
22125 else
22126 # We have old collect2
22127 hardcode_direct_F77=unsupported
22128 # It fails to find uninstalled libraries when the uninstalled
22129 # path is not listed in the libpath. Setting hardcode_minus_L
22130 # to unsupported forces relinking
22131 hardcode_minus_L_F77=yes
22132 hardcode_libdir_flag_spec_F77='-L$libdir'
22133 hardcode_libdir_separator_F77=
22134 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022135 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022136 esac
22137 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022138 if test "$aix_use_runtimelinking" = yes; then
22139 shared_flag="$shared_flag "'${wl}-G'
22140 fi
John Criswell47fdd832003-07-14 16:52:07 +000022141 else
22142 # not using gcc
22143 if test "$host_cpu" = ia64; then
22144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22145 # chokes on -Wl,-G. The following line is correct:
22146 shared_flag='-G'
22147 else
Reid Spencera773bd52006-08-04 18:18:08 +000022148 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022149 shared_flag='${wl}-G'
22150 else
22151 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022152 fi
John Criswell47fdd832003-07-14 16:52:07 +000022153 fi
22154 fi
22155
22156 # It seems that -bexpall does not export symbols beginning with
22157 # underscore (_), so it is better to generate a list of symbols to export.
22158 always_export_symbols_F77=yes
22159 if test "$aix_use_runtimelinking" = yes; then
22160 # Warning - without using the other runtime loading flags (-brtl),
22161 # -berok will link without error, but may produce a broken library.
22162 allow_undefined_flag_F77='-berok'
22163 # Determine the default libpath from the value encoded in an empty executable.
22164 cat >conftest.$ac_ext <<_ACEOF
22165 program main
22166
22167 end
22168_ACEOF
22169rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022170if { (ac_try="$ac_link"
22171case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174esac
22175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022182 (exit $ac_status); } &&
22183 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22184 { (case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22187esac
22188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_try") 2>&5
22190 ac_status=$?
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; } &&
22193 { ac_try='test -s conftest$ac_exeext'
22194 { (case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22197esac
22198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_try") 2>&5
22200 ac_status=$?
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022203
22204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22205}'`
22206# Check for a 64-bit object if we didn't find anything.
22207if 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; }
22208}'`; fi
22209else
22210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022211sed 's/^/| /' conftest.$ac_ext >&5
22212
Reid Spencera773bd52006-08-04 18:18:08 +000022213
John Criswell47fdd832003-07-14 16:52:07 +000022214fi
Reid Spencera773bd52006-08-04 18:18:08 +000022215
Tanya Lattnercf067672008-01-17 05:57:22 +000022216rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022217 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022218if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22219
22220 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022221 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 +000022222 else
22223 if test "$host_cpu" = ia64; then
22224 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22225 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022226 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 +000022227 else
22228 # Determine the default libpath from the value encoded in an empty executable.
22229 cat >conftest.$ac_ext <<_ACEOF
22230 program main
22231
22232 end
22233_ACEOF
22234rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022235if { (ac_try="$ac_link"
22236case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239esac
22240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022242 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022243 grep -v '^ *+' conftest.er1 >conftest.err
22244 rm -f conftest.er1
22245 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022247 (exit $ac_status); } &&
22248 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22249 { (case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252esac
22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; } &&
22258 { ac_try='test -s conftest$ac_exeext'
22259 { (case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262esac
22263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_try") 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022268
22269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22270}'`
22271# Check for a 64-bit object if we didn't find anything.
22272if 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; }
22273}'`; fi
22274else
22275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022276sed 's/^/| /' conftest.$ac_ext >&5
22277
Reid Spencera773bd52006-08-04 18:18:08 +000022278
John Criswell47fdd832003-07-14 16:52:07 +000022279fi
Reid Spencera773bd52006-08-04 18:18:08 +000022280
Tanya Lattnercf067672008-01-17 05:57:22 +000022281rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022282 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022283if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22284
22285 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22286 # Warning - without using the other run time loading flags,
22287 # -berok will link without error, but may produce a broken library.
22288 no_undefined_flag_F77=' ${wl}-bernotok'
22289 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022290 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022291 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022292 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022293 # This is similar to how AIX traditionally builds its shared libraries.
22294 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 +000022295 fi
22296 fi
22297 ;;
22298
22299 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022300 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 +000022301 hardcode_libdir_flag_spec_F77='-L$libdir'
22302 hardcode_minus_L_F77=yes
22303 # see comment about different semantics on the GNU ld section
22304 ld_shlibs_F77=no
22305 ;;
22306
Reid Spencer2706f8c2004-09-19 23:53:36 +000022307 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022308 export_dynamic_flag_spec_F77=-rdynamic
22309 ;;
22310
22311 cygwin* | mingw* | pw32*)
22312 # When not using gcc, we currently assume that we are using
22313 # Microsoft Visual C++.
22314 # hardcode_libdir_flag_spec is actually meaningless, as there is
22315 # no search path for DLLs.
22316 hardcode_libdir_flag_spec_F77=' '
22317 allow_undefined_flag_F77=unsupported
22318 # Tell ltmain to make .lib files, not .a files.
22319 libext=lib
22320 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022321 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022322 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022323 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 +000022324 # The linker will automatically build a .lib file if we build a DLL.
22325 old_archive_From_new_cmds_F77='true'
22326 # FIXME: Should let the user specify the lib program.
22327 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022328 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022329 enable_shared_with_static_runtimes_F77=yes
22330 ;;
22331
22332 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022333 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022334 rhapsody* | darwin1.[012])
22335 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22336 ;;
22337 *) # Darwin 1.3 on
22338 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22339 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22340 else
22341 case ${MACOSX_DEPLOYMENT_TARGET} in
22342 10.[012])
22343 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22344 ;;
22345 10.*)
22346 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22347 ;;
22348 esac
22349 fi
22350 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022351 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022352 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022353 hardcode_direct_F77=no
22354 hardcode_automatic_F77=yes
22355 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022356 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022357 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022358 if test "$GCC" = yes ; then
22359 output_verbose_link_cmd='echo'
22360 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22361 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022362 # 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 +000022363 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}'
22364 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 +000022365 else
Reid Spencera773bd52006-08-04 18:18:08 +000022366 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022367 xlc*)
22368 output_verbose_link_cmd='echo'
22369 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22370 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022371 # 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 +000022372 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}'
22373 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 +000022374 ;;
22375 *)
22376 ld_shlibs_F77=no
22377 ;;
22378 esac
John Criswell47fdd832003-07-14 16:52:07 +000022379 fi
22380 ;;
22381
22382 dgux*)
22383 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22384 hardcode_libdir_flag_spec_F77='-L$libdir'
22385 hardcode_shlibpath_var_F77=no
22386 ;;
22387
22388 freebsd1*)
22389 ld_shlibs_F77=no
22390 ;;
22391
22392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22393 # support. Future versions do this automatically, but an explicit c++rt0.o
22394 # does not break anything, and helps significantly (at the cost of a little
22395 # extra space).
22396 freebsd2.2*)
22397 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 hardcode_direct_F77=yes
22400 hardcode_shlibpath_var_F77=no
22401 ;;
22402
22403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22404 freebsd2*)
22405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22406 hardcode_direct_F77=yes
22407 hardcode_minus_L_F77=yes
22408 hardcode_shlibpath_var_F77=no
22409 ;;
22410
22411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022412 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022413 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22414 hardcode_libdir_flag_spec_F77='-R$libdir'
22415 hardcode_direct_F77=yes
22416 hardcode_shlibpath_var_F77=no
22417 ;;
22418
22419 hpux9*)
22420 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022421 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 +000022422 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022423 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 +000022424 fi
22425 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22426 hardcode_libdir_separator_F77=:
22427 hardcode_direct_F77=yes
22428
22429 # hardcode_minus_L: Not really in the search PATH,
22430 # but as the default location of the library.
22431 hardcode_minus_L_F77=yes
22432 export_dynamic_flag_spec_F77='${wl}-E'
22433 ;;
22434
Reid Spencera773bd52006-08-04 18:18:08 +000022435 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022437 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22438 else
22439 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22440 fi
22441 if test "$with_gnu_ld" = no; then
22442 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22443 hardcode_libdir_separator_F77=:
22444
22445 hardcode_direct_F77=yes
22446 export_dynamic_flag_spec_F77='${wl}-E'
22447
22448 # hardcode_minus_L: Not really in the search PATH,
22449 # but as the default location of the library.
22450 hardcode_minus_L_F77=yes
22451 fi
22452 ;;
22453
22454 hpux11*)
22455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22456 case $host_cpu in
22457 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022458 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022460 ia64*)
22461 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22462 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022463 *)
22464 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22465 ;;
22466 esac
22467 else
Reid Spencera773bd52006-08-04 18:18:08 +000022468 case $host_cpu in
22469 hppa*64*)
22470 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22471 ;;
22472 ia64*)
22473 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022474 ;;
22475 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022476 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 +000022477 ;;
22478 esac
22479 fi
22480 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022481 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22482 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022483
Reid Spencera773bd52006-08-04 18:18:08 +000022484 case $host_cpu in
22485 hppa*64*|ia64*)
22486 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22487 hardcode_direct_F77=no
22488 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022489 ;;
22490 *)
John Criswell47fdd832003-07-14 16:52:07 +000022491 hardcode_direct_F77=yes
22492 export_dynamic_flag_spec_F77='${wl}-E'
22493
22494 # hardcode_minus_L: Not really in the search PATH,
22495 # but as the default location of the library.
22496 hardcode_minus_L_F77=yes
22497 ;;
22498 esac
22499 fi
22500 ;;
22501
22502 irix5* | irix6* | nonstopux*)
22503 if test "$GCC" = yes; then
22504 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'
22505 else
22506 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'
22507 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22508 fi
22509 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22510 hardcode_libdir_separator_F77=:
22511 link_all_deplibs_F77=yes
22512 ;;
22513
22514 netbsd*)
22515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22516 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22517 else
22518 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22519 fi
22520 hardcode_libdir_flag_spec_F77='-R$libdir'
22521 hardcode_direct_F77=yes
22522 hardcode_shlibpath_var_F77=no
22523 ;;
22524
22525 newsos6)
22526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_direct_F77=yes
22528 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22529 hardcode_libdir_separator_F77=:
22530 hardcode_shlibpath_var_F77=no
22531 ;;
22532
22533 openbsd*)
22534 hardcode_direct_F77=yes
22535 hardcode_shlibpath_var_F77=no
22536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22537 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 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 +000022539 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22540 export_dynamic_flag_spec_F77='${wl}-E'
22541 else
22542 case $host_os in
22543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22544 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22545 hardcode_libdir_flag_spec_F77='-R$libdir'
22546 ;;
22547 *)
22548 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22549 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22550 ;;
22551 esac
22552 fi
22553 ;;
22554
22555 os2*)
22556 hardcode_libdir_flag_spec_F77='-L$libdir'
22557 hardcode_minus_L_F77=yes
22558 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022559 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 +000022560 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22561 ;;
22562
22563 osf3*)
22564 if test "$GCC" = yes; then
22565 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22566 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'
22567 else
22568 allow_undefined_flag_F77=' -expect_unresolved \*'
22569 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'
22570 fi
22571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22572 hardcode_libdir_separator_F77=:
22573 ;;
22574
22575 osf4* | osf5*) # as osf3* with the addition of -msym flag
22576 if test "$GCC" = yes; then
22577 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22578 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'
22579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22580 else
22581 allow_undefined_flag_F77=' -expect_unresolved \*'
22582 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 +000022583 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 +000022584 $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 +000022585
John Criswell47fdd832003-07-14 16:52:07 +000022586 # Both c and cxx compiler support -rpath directly
22587 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22588 fi
22589 hardcode_libdir_separator_F77=:
22590 ;;
22591
John Criswell47fdd832003-07-14 16:52:07 +000022592 solaris*)
22593 no_undefined_flag_F77=' -z text'
22594 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022595 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022596 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022597 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22598 $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 +000022599 else
Reid Spencera773bd52006-08-04 18:18:08 +000022600 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022601 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022602 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22603 $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 +000022604 fi
22605 hardcode_libdir_flag_spec_F77='-R$libdir'
22606 hardcode_shlibpath_var_F77=no
22607 case $host_os in
22608 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022609 *)
22610 # The compiler driver will combine linker options so we
22611 # cannot just pass the convience library names through
22612 # without $wl, iff we do not link with $LD.
22613 # Luckily, gcc supports the same syntax we need for Sun Studio.
22614 # Supported since Solaris 2.6 (maybe 2.5.1?)
22615 case $wlarc in
22616 '')
22617 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22618 *)
22619 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' ;;
22620 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022621 esac
22622 link_all_deplibs_F77=yes
22623 ;;
22624
22625 sunos4*)
22626 if test "x$host_vendor" = xsequent; then
22627 # Use $CC to link under sequent, because it throws in some extra .o
22628 # files that make .init and .fini sections work.
22629 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22630 else
22631 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22632 fi
22633 hardcode_libdir_flag_spec_F77='-L$libdir'
22634 hardcode_direct_F77=yes
22635 hardcode_minus_L_F77=yes
22636 hardcode_shlibpath_var_F77=no
22637 ;;
22638
22639 sysv4)
22640 case $host_vendor in
22641 sni)
22642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643 hardcode_direct_F77=yes # is this really true???
22644 ;;
22645 siemens)
22646 ## LD is ld it makes a PLAMLIB
22647 ## CC just makes a GrossModule.
22648 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22649 reload_cmds_F77='$CC -r -o $output$reload_objs'
22650 hardcode_direct_F77=no
22651 ;;
22652 motorola)
22653 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22655 ;;
22656 esac
22657 runpath_var='LD_RUN_PATH'
22658 hardcode_shlibpath_var_F77=no
22659 ;;
22660
22661 sysv4.3*)
22662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663 hardcode_shlibpath_var_F77=no
22664 export_dynamic_flag_spec_F77='-Bexport'
22665 ;;
22666
22667 sysv4*MP*)
22668 if test -d /usr/nec; then
22669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_shlibpath_var_F77=no
22671 runpath_var=LD_RUN_PATH
22672 hardcode_runpath_var=yes
22673 ld_shlibs_F77=yes
22674 fi
22675 ;;
22676
Reid Spencera773bd52006-08-04 18:18:08 +000022677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22678 no_undefined_flag_F77='${wl}-z,text'
22679 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022680 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022681 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022682
John Criswell47fdd832003-07-14 16:52:07 +000022683 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022684 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22685 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 +000022686 else
Reid Spencera773bd52006-08-04 18:18:08 +000022687 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22688 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 +000022689 fi
John Criswell47fdd832003-07-14 16:52:07 +000022690 ;;
22691
Reid Spencera773bd52006-08-04 18:18:08 +000022692 sysv5* | sco3.2v5* | sco5v6*)
22693 # Note: We can NOT use -z defs as we might desire, because we do not
22694 # link with -lc, and that would cause any symbols used from libc to
22695 # always be unresolved, which means just about no library would
22696 # ever link correctly. If we're not using GNU ld we use -z text
22697 # though, which does catch some bad symbols but isn't as heavy-handed
22698 # as -z defs.
22699 no_undefined_flag_F77='${wl}-z,text'
22700 allow_undefined_flag_F77='${wl}-z,nodefs'
22701 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022702 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022703 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22704 hardcode_libdir_separator_F77=':'
22705 link_all_deplibs_F77=yes
22706 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022707 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022708
22709 if test "$GCC" = yes; then
22710 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22711 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22712 else
22713 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22714 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22715 fi
John Criswell47fdd832003-07-14 16:52:07 +000022716 ;;
22717
22718 uts4*)
22719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720 hardcode_libdir_flag_spec_F77='-L$libdir'
22721 hardcode_shlibpath_var_F77=no
22722 ;;
22723
22724 *)
22725 ld_shlibs_F77=no
22726 ;;
22727 esac
22728 fi
22729
Reid Spencera773bd52006-08-04 18:18:08 +000022730{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22731echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022732test "$ld_shlibs_F77" = no && can_build_shared=no
22733
John Criswell47fdd832003-07-14 16:52:07 +000022734#
22735# Do we need to explicitly link libc?
22736#
22737case "x$archive_cmds_need_lc_F77" in
22738x|xyes)
22739 # Assume -lc should be added
22740 archive_cmds_need_lc_F77=yes
22741
22742 if test "$enable_shared" = yes && test "$GCC" = yes; then
22743 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022744 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022745 # FIXME: we may have to deal with multi-command sequences.
22746 ;;
22747 '$CC '*)
22748 # Test whether the compiler implicitly links with -lc since on some
22749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22750 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022751 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22752echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022753 $rm conftest*
22754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22755
22756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757 (eval $ac_compile) 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } 2>conftest.err; then
22761 soname=conftest
22762 lib=conftest
22763 libobjs=conftest.$ac_objext
22764 deplibs=
22765 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022766 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022767 compiler_flags=-v
22768 linker_flags=-v
22769 verstring=
22770 output_objdir=.
22771 libname=conftest
22772 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22773 allow_undefined_flag_F77=
22774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22775 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22776 ac_status=$?
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }
22779 then
22780 archive_cmds_need_lc_F77=no
22781 else
22782 archive_cmds_need_lc_F77=yes
22783 fi
22784 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22785 else
22786 cat conftest.err 1>&5
22787 fi
22788 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022789 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22790echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022791 ;;
22792 esac
22793 fi
22794 ;;
22795esac
22796
Reid Spencera773bd52006-08-04 18:18:08 +000022797{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22798echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022799library_names_spec=
22800libname_spec='lib$name'
22801soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022802shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022803postinstall_cmds=
22804postuninstall_cmds=
22805finish_cmds=
22806finish_eval=
22807shlibpath_var=
22808shlibpath_overrides_runpath=unknown
22809version_type=none
22810dynamic_linker="$host_os ld.so"
22811sys_lib_dlsearch_path_spec="/lib /usr/lib"
22812if test "$GCC" = yes; then
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 ';' >/dev/null ; then
22815 # if the path contains ";" then we assume it to be the separator
22816 # otherwise default to the standard path separator (i.e. ":") - it is
22817 # assumed that no part of a normal pathname contains ";" but that should
22818 # okay in the real world where ";" in dirpaths is itself problematic.
22819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22820 else
22821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22822 fi
22823else
22824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22825fi
22826need_lib_prefix=unknown
22827hardcode_into_libs=no
22828
22829# when you set need_version to no, make sure it does not cause -set_version
22830# flags to be left without arguments
22831need_version=unknown
22832
22833case $host_os in
22834aix3*)
22835 version_type=linux
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22837 shlibpath_var=LIBPATH
22838
22839 # AIX 3 has no versioning support, so we append a major version to the name.
22840 soname_spec='${libname}${release}${shared_ext}$major'
22841 ;;
22842
22843aix4* | aix5*)
22844 version_type=linux
22845 need_lib_prefix=no
22846 need_version=no
22847 hardcode_into_libs=yes
22848 if test "$host_cpu" = ia64; then
22849 # AIX 5 supports IA64
22850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 else
22853 # With GCC up to 2.95.x, collect2 would create an import file
22854 # for dependence libraries. The import file would start with
22855 # the line `#! .'. This would cause the generated library to
22856 # depend on `.', always an invalid library. This was fixed in
22857 # development snapshots of GCC prior to 3.0.
22858 case $host_os in
22859 aix4 | aix4.[01] | aix4.[01].*)
22860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22861 echo ' yes '
22862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22863 :
22864 else
22865 can_build_shared=no
22866 fi
22867 ;;
22868 esac
22869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22870 # soname into executable. Probably we can add versioning support to
22871 # collect2, so additional links can be useful in future.
22872 if test "$aix_use_runtimelinking" = yes; then
22873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22874 # instead of lib<name>.a to let people know that these are not
22875 # typical AIX shared libraries.
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 else
22878 # We preserve .a as extension for shared libraries through AIX4.2
22879 # and later when we are not doing run time linking.
22880 library_names_spec='${libname}${release}.a $libname.a'
22881 soname_spec='${libname}${release}${shared_ext}$major'
22882 fi
22883 shlibpath_var=LIBPATH
22884 fi
22885 ;;
22886
22887amigaos*)
22888 library_names_spec='$libname.ixlibrary $libname.a'
22889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022890 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 +000022891 ;;
22892
22893beos*)
22894 library_names_spec='${libname}${shared_ext}'
22895 dynamic_linker="$host_os ld.so"
22896 shlibpath_var=LIBRARY_PATH
22897 ;;
22898
Reid Spencer2706f8c2004-09-19 23:53:36 +000022899bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022900 version_type=linux
22901 need_version=no
22902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22903 soname_spec='${libname}${release}${shared_ext}$major'
22904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22905 shlibpath_var=LD_LIBRARY_PATH
22906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22908 # the default ld.so.conf also contains /usr/contrib/lib and
22909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22910 # libtool to hard-code these into programs
22911 ;;
22912
22913cygwin* | mingw* | pw32*)
22914 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022915 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022916 need_version=no
22917 need_lib_prefix=no
22918
22919 case $GCC,$host_os in
22920 yes,cygwin* | yes,mingw* | yes,pw32*)
22921 library_names_spec='$libname.dll.a'
22922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022923 postinstall_cmds='base_file=`basename \${file}`~
22924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22925 dldir=$destdir/`dirname \$dlpath`~
22926 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022927 $install_prog $dir/$dlname \$dldir/$dlname~
22928 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022929 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22930 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022931 $rm \$dlpath'
22932 shlibpath_overrides_runpath=yes
22933
22934 case $host_os in
22935 cygwin*)
22936 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22937 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 +000022938 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022939 ;;
22940 mingw*)
22941 # MinGW DLLs use traditional 'lib' prefix
22942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22944 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22945 # It is most probably a Windows format PATH printed by
22946 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22947 # path with ; separators, and with drive letters. We can handle the
22948 # drive letters (cygwin fileutils understands them), so leave them,
22949 # especially as we might pass files found there to a mingw objdump,
22950 # which wouldn't understand a cygwinified path. Ahh.
22951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22952 else
22953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22954 fi
22955 ;;
22956 pw32*)
22957 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022958 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 +000022959 ;;
22960 esac
22961 ;;
22962
22963 *)
22964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22965 ;;
22966 esac
22967 dynamic_linker='Win32 ld.exe'
22968 # FIXME: first we should search . and the directory the executable is in
22969 shlibpath_var=PATH
22970 ;;
22971
22972darwin* | rhapsody*)
22973 dynamic_linker="$host_os dyld"
22974 version_type=darwin
22975 need_lib_prefix=no
22976 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022977 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022978 soname_spec='${libname}${release}${major}$shared_ext'
22979 shlibpath_overrides_runpath=yes
22980 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022981 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022982 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983 if test "$GCC" = yes; then
22984 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"`
22985 else
22986 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022987 fi
22988 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22989 ;;
22990
22991dgux*)
22992 version_type=linux
22993 need_lib_prefix=no
22994 need_version=no
22995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 shlibpath_var=LD_LIBRARY_PATH
22998 ;;
22999
23000freebsd1*)
23001 dynamic_linker=no
23002 ;;
23003
Reid Spencer2706f8c2004-09-19 23:53:36 +000023004kfreebsd*-gnu)
23005 version_type=linux
23006 need_lib_prefix=no
23007 need_version=no
23008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 shlibpath_overrides_runpath=no
23012 hardcode_into_libs=yes
23013 dynamic_linker='GNU ld.so'
23014 ;;
23015
Reid Spencera773bd52006-08-04 18:18:08 +000023016freebsd* | dragonfly*)
23017 # DragonFly does not have aout. When/if they implement a new
23018 # versioning mechanism, adjust this.
23019 if test -x /usr/bin/objformat; then
23020 objformat=`/usr/bin/objformat`
23021 else
23022 case $host_os in
23023 freebsd[123]*) objformat=aout ;;
23024 *) objformat=elf ;;
23025 esac
23026 fi
John Criswell47fdd832003-07-14 16:52:07 +000023027 version_type=freebsd-$objformat
23028 case $version_type in
23029 freebsd-elf*)
23030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23031 need_version=no
23032 need_lib_prefix=no
23033 ;;
23034 freebsd-*)
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23036 need_version=yes
23037 ;;
23038 esac
23039 shlibpath_var=LD_LIBRARY_PATH
23040 case $host_os in
23041 freebsd2*)
23042 shlibpath_overrides_runpath=yes
23043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023044 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023045 shlibpath_overrides_runpath=yes
23046 hardcode_into_libs=yes
23047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023050 shlibpath_overrides_runpath=no
23051 hardcode_into_libs=yes
23052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023053 freebsd*) # from 4.6 on
23054 shlibpath_overrides_runpath=yes
23055 hardcode_into_libs=yes
23056 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023057 esac
23058 ;;
23059
23060gnu*)
23061 version_type=linux
23062 need_lib_prefix=no
23063 need_version=no
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23065 soname_spec='${libname}${release}${shared_ext}$major'
23066 shlibpath_var=LD_LIBRARY_PATH
23067 hardcode_into_libs=yes
23068 ;;
23069
23070hpux9* | hpux10* | hpux11*)
23071 # Give a soname corresponding to the major version so that dld.sl refuses to
23072 # link against other versions.
23073 version_type=sunos
23074 need_lib_prefix=no
23075 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023076 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023077 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023078 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023079 hardcode_into_libs=yes
23080 dynamic_linker="$host_os dld.so"
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23084 soname_spec='${libname}${release}${shared_ext}$major'
23085 if test "X$HPUX_IA64_MODE" = X32; then
23086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23087 else
23088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23089 fi
23090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23091 ;;
23092 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023093 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023094 hardcode_into_libs=yes
23095 dynamic_linker="$host_os dld.sl"
23096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23102 ;;
23103 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023104 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023105 dynamic_linker="$host_os dld.sl"
23106 shlibpath_var=SHLIB_PATH
23107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23109 soname_spec='${libname}${release}${shared_ext}$major'
23110 ;;
23111 esac
23112 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23113 postinstall_cmds='chmod 555 $lib'
23114 ;;
23115
Reid Spencera773bd52006-08-04 18:18:08 +000023116interix3*)
23117 version_type=linux
23118 need_lib_prefix=no
23119 need_version=no
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23123 shlibpath_var=LD_LIBRARY_PATH
23124 shlibpath_overrides_runpath=no
23125 hardcode_into_libs=yes
23126 ;;
23127
John Criswell47fdd832003-07-14 16:52:07 +000023128irix5* | irix6* | nonstopux*)
23129 case $host_os in
23130 nonstopux*) version_type=nonstopux ;;
23131 *)
23132 if test "$lt_cv_prog_gnu_ld" = yes; then
23133 version_type=linux
23134 else
23135 version_type=irix
23136 fi ;;
23137 esac
23138 need_lib_prefix=no
23139 need_version=no
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23142 case $host_os in
23143 irix5* | nonstopux*)
23144 libsuff= shlibsuff=
23145 ;;
23146 *)
23147 case $LD in # libtool.m4 will add one of these switches to LD
23148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23149 libsuff= shlibsuff= libmagic=32-bit;;
23150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23151 libsuff=32 shlibsuff=N32 libmagic=N32;;
23152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23153 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23154 *) libsuff= shlibsuff= libmagic=never-match;;
23155 esac
23156 ;;
23157 esac
23158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23159 shlibpath_overrides_runpath=no
23160 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23161 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23162 hardcode_into_libs=yes
23163 ;;
23164
23165# No shared lib support for Linux oldld, aout, or coff.
23166linux*oldld* | linux*aout* | linux*coff*)
23167 dynamic_linker=no
23168 ;;
23169
23170# This must be Linux ELF.
23171linux*)
23172 version_type=linux
23173 need_lib_prefix=no
23174 need_version=no
23175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23176 soname_spec='${libname}${release}${shared_ext}$major'
23177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 shlibpath_overrides_runpath=no
23180 # This implies no fast_install, which is unacceptable.
23181 # Some rework will be needed to allow for fast_install
23182 # before this can be enabled.
23183 hardcode_into_libs=yes
23184
Reid Spencer2706f8c2004-09-19 23:53:36 +000023185 # Append ld.so.conf contents to the search path
23186 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023187 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 +000023188 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23189 fi
23190
John Criswell47fdd832003-07-14 16:52:07 +000023191 # We used to test for /lib/ld.so.1 and disable shared libraries on
23192 # powerpc, because MkLinux only supported shared libraries with the
23193 # GNU dynamic linker. Since this was broken with cross compilers,
23194 # most powerpc-linux boxes support dynamic linking these days and
23195 # people can always --disable-shared, the test was removed, and we
23196 # assume the GNU/Linux dynamic linker is in use.
23197 dynamic_linker='GNU/Linux ld.so'
23198 ;;
23199
Reid Spencer2706f8c2004-09-19 23:53:36 +000023200knetbsd*-gnu)
23201 version_type=linux
23202 need_lib_prefix=no
23203 need_version=no
23204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23205 soname_spec='${libname}${release}${shared_ext}$major'
23206 shlibpath_var=LD_LIBRARY_PATH
23207 shlibpath_overrides_runpath=no
23208 hardcode_into_libs=yes
23209 dynamic_linker='GNU ld.so'
23210 ;;
23211
John Criswell47fdd832003-07-14 16:52:07 +000023212netbsd*)
23213 version_type=sunos
23214 need_lib_prefix=no
23215 need_version=no
23216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23219 dynamic_linker='NetBSD (a.out) ld.so'
23220 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023222 soname_spec='${libname}${release}${shared_ext}$major'
23223 dynamic_linker='NetBSD ld.elf_so'
23224 fi
23225 shlibpath_var=LD_LIBRARY_PATH
23226 shlibpath_overrides_runpath=yes
23227 hardcode_into_libs=yes
23228 ;;
23229
23230newsos6)
23231 version_type=linux
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233 shlibpath_var=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath=yes
23235 ;;
23236
Reid Spencer2706f8c2004-09-19 23:53:36 +000023237nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023238 version_type=linux
23239 need_lib_prefix=no
23240 need_version=no
23241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23242 soname_spec='${libname}${release}${shared_ext}$major'
23243 shlibpath_var=LD_LIBRARY_PATH
23244 shlibpath_overrides_runpath=yes
23245 ;;
23246
23247openbsd*)
23248 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023249 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023250 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23252 case $host_os in
23253 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23254 *) need_version=no ;;
23255 esac
John Criswell47fdd832003-07-14 16:52:07 +000023256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23258 shlibpath_var=LD_LIBRARY_PATH
23259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23260 case $host_os in
23261 openbsd2.[89] | openbsd2.[89].*)
23262 shlibpath_overrides_runpath=no
23263 ;;
23264 *)
23265 shlibpath_overrides_runpath=yes
23266 ;;
23267 esac
23268 else
23269 shlibpath_overrides_runpath=yes
23270 fi
23271 ;;
23272
23273os2*)
23274 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023275 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023276 need_lib_prefix=no
23277 library_names_spec='$libname${shared_ext} $libname.a'
23278 dynamic_linker='OS/2 ld.exe'
23279 shlibpath_var=LIBPATH
23280 ;;
23281
23282osf3* | osf4* | osf5*)
23283 version_type=osf
23284 need_lib_prefix=no
23285 need_version=no
23286 soname_spec='${libname}${release}${shared_ext}$major'
23287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23288 shlibpath_var=LD_LIBRARY_PATH
23289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23291 ;;
23292
John Criswell47fdd832003-07-14 16:52:07 +000023293solaris*)
23294 version_type=linux
23295 need_lib_prefix=no
23296 need_version=no
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 shlibpath_var=LD_LIBRARY_PATH
23300 shlibpath_overrides_runpath=yes
23301 hardcode_into_libs=yes
23302 # ldd complains unless libraries are executable
23303 postinstall_cmds='chmod +x $lib'
23304 ;;
23305
23306sunos4*)
23307 version_type=sunos
23308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23310 shlibpath_var=LD_LIBRARY_PATH
23311 shlibpath_overrides_runpath=yes
23312 if test "$with_gnu_ld" = yes; then
23313 need_lib_prefix=no
23314 fi
23315 need_version=yes
23316 ;;
23317
Reid Spencera773bd52006-08-04 18:18:08 +000023318sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023319 version_type=linux
23320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23321 soname_spec='${libname}${release}${shared_ext}$major'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 case $host_vendor in
23324 sni)
23325 shlibpath_overrides_runpath=no
23326 need_lib_prefix=no
23327 export_dynamic_flag_spec='${wl}-Blargedynsym'
23328 runpath_var=LD_RUN_PATH
23329 ;;
23330 siemens)
23331 need_lib_prefix=no
23332 ;;
23333 motorola)
23334 need_lib_prefix=no
23335 need_version=no
23336 shlibpath_overrides_runpath=no
23337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23338 ;;
23339 esac
23340 ;;
23341
23342sysv4*MP*)
23343 if test -d /usr/nec ;then
23344 version_type=linux
23345 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23346 soname_spec='$libname${shared_ext}.$major'
23347 shlibpath_var=LD_LIBRARY_PATH
23348 fi
23349 ;;
23350
Reid Spencera773bd52006-08-04 18:18:08 +000023351sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23352 version_type=freebsd-elf
23353 need_lib_prefix=no
23354 need_version=no
23355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23356 soname_spec='${libname}${release}${shared_ext}$major'
23357 shlibpath_var=LD_LIBRARY_PATH
23358 hardcode_into_libs=yes
23359 if test "$with_gnu_ld" = yes; then
23360 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23361 shlibpath_overrides_runpath=no
23362 else
23363 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23364 shlibpath_overrides_runpath=yes
23365 case $host_os in
23366 sco3.2v5*)
23367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23368 ;;
23369 esac
23370 fi
23371 sys_lib_dlsearch_path_spec='/usr/lib'
23372 ;;
23373
John Criswell47fdd832003-07-14 16:52:07 +000023374uts4*)
23375 version_type=linux
23376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23377 soname_spec='${libname}${release}${shared_ext}$major'
23378 shlibpath_var=LD_LIBRARY_PATH
23379 ;;
23380
23381*)
23382 dynamic_linker=no
23383 ;;
23384esac
Reid Spencera773bd52006-08-04 18:18:08 +000023385{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23386echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023387test "$dynamic_linker" = no && can_build_shared=no
23388
Reid Spencera773bd52006-08-04 18:18:08 +000023389variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23390if test "$GCC" = yes; then
23391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23392fi
23393
23394{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23395echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023396hardcode_action_F77=
23397if test -n "$hardcode_libdir_flag_spec_F77" || \
23398 test -n "$runpath_var_F77" || \
23399 test "X$hardcode_automatic_F77" = "Xyes" ; then
23400
23401 # We can hardcode non-existant directories.
23402 if test "$hardcode_direct_F77" != no &&
23403 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23404 # have to relink, otherwise we might link with an installed library
23405 # when we should be linking with a yet-to-be-installed one
23406 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23407 test "$hardcode_minus_L_F77" != no; then
23408 # Linking always hardcodes the temporary library directory.
23409 hardcode_action_F77=relink
23410 else
23411 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23412 hardcode_action_F77=immediate
23413 fi
23414else
23415 # We cannot hardcode anything, or else we can only hardcode existing
23416 # directories.
23417 hardcode_action_F77=unsupported
23418fi
Reid Spencera773bd52006-08-04 18:18:08 +000023419{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23420echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023421
23422if test "$hardcode_action_F77" = relink; then
23423 # Fast installation is not supported
23424 enable_fast_install=no
23425elif test "$shlibpath_overrides_runpath" = yes ||
23426 test "$enable_shared" = no; then
23427 # Fast installation is not necessary
23428 enable_fast_install=needless
23429fi
23430
John Criswell47fdd832003-07-14 16:52:07 +000023431
23432# The else clause should only fire when bootstrapping the
23433# libtool distribution, otherwise you forgot to ship ltmain.sh
23434# with your package, and you will get complaints that there are
23435# no rules to generate ltmain.sh.
23436if test -f "$ltmain"; then
23437 # See if we are running on zsh, and set the options which allow our commands through
23438 # without removal of \ escapes.
23439 if test -n "${ZSH_VERSION+set}" ; then
23440 setopt NO_GLOB_SUBST
23441 fi
23442 # Now quote all the things that may contain metacharacters while being
23443 # careful not to overquote the AC_SUBSTed values. We take copies of the
23444 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023445 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 +000023446 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23449 deplibs_check_method reload_flag reload_cmds need_locks \
23450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23451 lt_cv_sys_global_symbol_to_c_name_address \
23452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23453 old_postinstall_cmds old_postuninstall_cmds \
23454 compiler_F77 \
23455 CC_F77 \
23456 LD_F77 \
23457 lt_prog_compiler_wl_F77 \
23458 lt_prog_compiler_pic_F77 \
23459 lt_prog_compiler_static_F77 \
23460 lt_prog_compiler_no_builtin_flag_F77 \
23461 export_dynamic_flag_spec_F77 \
23462 thread_safe_flag_spec_F77 \
23463 whole_archive_flag_spec_F77 \
23464 enable_shared_with_static_runtimes_F77 \
23465 old_archive_cmds_F77 \
23466 old_archive_from_new_cmds_F77 \
23467 predep_objects_F77 \
23468 postdep_objects_F77 \
23469 predeps_F77 \
23470 postdeps_F77 \
23471 compiler_lib_search_path_F77 \
23472 archive_cmds_F77 \
23473 archive_expsym_cmds_F77 \
23474 postinstall_cmds_F77 \
23475 postuninstall_cmds_F77 \
23476 old_archive_from_expsyms_cmds_F77 \
23477 allow_undefined_flag_F77 \
23478 no_undefined_flag_F77 \
23479 export_symbols_cmds_F77 \
23480 hardcode_libdir_flag_spec_F77 \
23481 hardcode_libdir_flag_spec_ld_F77 \
23482 hardcode_libdir_separator_F77 \
23483 hardcode_automatic_F77 \
23484 module_cmds_F77 \
23485 module_expsym_cmds_F77 \
23486 lt_cv_prog_compiler_c_o_F77 \
23487 exclude_expsyms_F77 \
23488 include_expsyms_F77; do
23489
23490 case $var in
23491 old_archive_cmds_F77 | \
23492 old_archive_from_new_cmds_F77 | \
23493 archive_cmds_F77 | \
23494 archive_expsym_cmds_F77 | \
23495 module_cmds_F77 | \
23496 module_expsym_cmds_F77 | \
23497 old_archive_from_expsyms_cmds_F77 | \
23498 export_symbols_cmds_F77 | \
23499 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23500 postinstall_cmds | postuninstall_cmds | \
23501 old_postinstall_cmds | old_postuninstall_cmds | \
23502 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23503 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023504 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 +000023505 ;;
23506 *)
23507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23508 ;;
23509 esac
23510 done
23511
23512 case $lt_echo in
23513 *'\$0 --fallback-echo"')
23514 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23515 ;;
23516 esac
23517
23518cfgfile="$ofile"
23519
23520 cat <<__EOF__ >> "$cfgfile"
23521# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23522
23523# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23524
23525# Shell to use when invoking shell scripts.
23526SHELL=$lt_SHELL
23527
23528# Whether or not to build shared libraries.
23529build_libtool_libs=$enable_shared
23530
23531# Whether or not to build static libraries.
23532build_old_libs=$enable_static
23533
23534# Whether or not to add -lc for building shared libraries.
23535build_libtool_need_lc=$archive_cmds_need_lc_F77
23536
23537# Whether or not to disallow shared libs when runtime libs are static
23538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23539
23540# Whether or not to optimize for fast installation.
23541fast_install=$enable_fast_install
23542
23543# The host system.
23544host_alias=$host_alias
23545host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023546host_os=$host_os
23547
23548# The build system.
23549build_alias=$build_alias
23550build=$build
23551build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023552
23553# An echo program that does not interpret backslashes.
23554echo=$lt_echo
23555
23556# The archiver.
23557AR=$lt_AR
23558AR_FLAGS=$lt_AR_FLAGS
23559
23560# A C compiler.
23561LTCC=$lt_LTCC
23562
Reid Spencera773bd52006-08-04 18:18:08 +000023563# LTCC compiler flags.
23564LTCFLAGS=$lt_LTCFLAGS
23565
John Criswell47fdd832003-07-14 16:52:07 +000023566# A language-specific compiler.
23567CC=$lt_compiler_F77
23568
23569# Is the compiler the GNU C compiler?
23570with_gcc=$GCC_F77
23571
23572# An ERE matcher.
23573EGREP=$lt_EGREP
23574
23575# The linker used to build libraries.
23576LD=$lt_LD_F77
23577
23578# Whether we need hard or soft links.
23579LN_S=$lt_LN_S
23580
23581# A BSD-compatible nm program.
23582NM=$lt_NM
23583
23584# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023585STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023586
23587# Used to examine libraries when file_magic_cmd begins "file"
23588MAGIC_CMD=$MAGIC_CMD
23589
23590# Used on cygwin: DLL creation program.
23591DLLTOOL="$DLLTOOL"
23592
23593# Used on cygwin: object dumper.
23594OBJDUMP="$OBJDUMP"
23595
23596# Used on cygwin: assembler.
23597AS="$AS"
23598
23599# The name of the directory that contains temporary libtool files.
23600objdir=$objdir
23601
23602# How to create reloadable object files.
23603reload_flag=$lt_reload_flag
23604reload_cmds=$lt_reload_cmds
23605
23606# How to pass a linker flag through the compiler.
23607wl=$lt_lt_prog_compiler_wl_F77
23608
23609# Object file suffix (normally "o").
23610objext="$ac_objext"
23611
23612# Old archive suffix (normally "a").
23613libext="$libext"
23614
23615# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023616shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023617
23618# Executable file suffix (normally "").
23619exeext="$exeext"
23620
23621# Additional compiler flags for building library objects.
23622pic_flag=$lt_lt_prog_compiler_pic_F77
23623pic_mode=$pic_mode
23624
23625# What is the maximum length of a command?
23626max_cmd_len=$lt_cv_sys_max_cmd_len
23627
23628# Does compiler simultaneously support -c and -o options?
23629compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23630
Reid Spencera773bd52006-08-04 18:18:08 +000023631# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023632need_locks=$lt_need_locks
23633
23634# Do we need the lib prefix for modules?
23635need_lib_prefix=$need_lib_prefix
23636
23637# Do we need a version for libraries?
23638need_version=$need_version
23639
23640# Whether dlopen is supported.
23641dlopen_support=$enable_dlopen
23642
23643# Whether dlopen of programs is supported.
23644dlopen_self=$enable_dlopen_self
23645
23646# Whether dlopen of statically linked programs is supported.
23647dlopen_self_static=$enable_dlopen_self_static
23648
23649# Compiler flag to prevent dynamic linking.
23650link_static_flag=$lt_lt_prog_compiler_static_F77
23651
23652# Compiler flag to turn off builtin functions.
23653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23654
23655# Compiler flag to allow reflexive dlopens.
23656export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23657
23658# Compiler flag to generate shared objects directly from archives.
23659whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23660
23661# Compiler flag to generate thread-safe objects.
23662thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23663
23664# Library versioning type.
23665version_type=$version_type
23666
23667# Format of library name prefix.
23668libname_spec=$lt_libname_spec
23669
23670# List of archive names. First name is the real one, the rest are links.
23671# The last name is the one that the linker finds with -lNAME.
23672library_names_spec=$lt_library_names_spec
23673
23674# The coded name of the library, if different from the real name.
23675soname_spec=$lt_soname_spec
23676
23677# Commands used to build and install an old-style archive.
23678RANLIB=$lt_RANLIB
23679old_archive_cmds=$lt_old_archive_cmds_F77
23680old_postinstall_cmds=$lt_old_postinstall_cmds
23681old_postuninstall_cmds=$lt_old_postuninstall_cmds
23682
23683# Create an old-style archive from a shared archive.
23684old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23685
23686# Create a temporary old-style archive to link instead of a shared archive.
23687old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23688
23689# Commands used to build and install a shared archive.
23690archive_cmds=$lt_archive_cmds_F77
23691archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23692postinstall_cmds=$lt_postinstall_cmds
23693postuninstall_cmds=$lt_postuninstall_cmds
23694
23695# Commands used to build a loadable module (assumed same as above if empty)
23696module_cmds=$lt_module_cmds_F77
23697module_expsym_cmds=$lt_module_expsym_cmds_F77
23698
23699# Commands to strip libraries.
23700old_striplib=$lt_old_striplib
23701striplib=$lt_striplib
23702
23703# Dependencies to place before the objects being linked to create a
23704# shared library.
23705predep_objects=$lt_predep_objects_F77
23706
23707# Dependencies to place after the objects being linked to create a
23708# shared library.
23709postdep_objects=$lt_postdep_objects_F77
23710
23711# Dependencies to place before the objects being linked to create a
23712# shared library.
23713predeps=$lt_predeps_F77
23714
23715# Dependencies to place after the objects being linked to create a
23716# shared library.
23717postdeps=$lt_postdeps_F77
23718
23719# The library search path used internally by the compiler when linking
23720# a shared library.
23721compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23722
23723# Method to check whether dependent libraries are shared objects.
23724deplibs_check_method=$lt_deplibs_check_method
23725
23726# Command to use when deplibs_check_method == file_magic.
23727file_magic_cmd=$lt_file_magic_cmd
23728
23729# Flag that allows shared libraries with undefined symbols to be built.
23730allow_undefined_flag=$lt_allow_undefined_flag_F77
23731
23732# Flag that forces no undefined symbols.
23733no_undefined_flag=$lt_no_undefined_flag_F77
23734
23735# Commands used to finish a libtool library installation in a directory.
23736finish_cmds=$lt_finish_cmds
23737
23738# Same as above, but a single script fragment to be evaled but not shown.
23739finish_eval=$lt_finish_eval
23740
23741# Take the output of nm and produce a listing of raw symbols and C names.
23742global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23743
23744# Transform the output of nm in a proper C declaration
23745global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23746
23747# Transform the output of nm in a C name address pair
23748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23749
23750# This is the shared library runtime path variable.
23751runpath_var=$runpath_var
23752
23753# This is the shared library path variable.
23754shlibpath_var=$shlibpath_var
23755
23756# Is shlibpath searched before the hard-coded library search path?
23757shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23758
23759# How to hardcode a shared library path into an executable.
23760hardcode_action=$hardcode_action_F77
23761
23762# Whether we should hardcode library paths into libraries.
23763hardcode_into_libs=$hardcode_into_libs
23764
23765# Flag to hardcode \$libdir into a binary during linking.
23766# This must work even if \$libdir does not exist.
23767hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23768
23769# If ld is used when linking, flag to hardcode \$libdir into
23770# a binary during linking. This must work even if \$libdir does
23771# not exist.
23772hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23773
23774# Whether we need a single -rpath flag with a separated argument.
23775hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23776
23777# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23778# resulting binary.
23779hardcode_direct=$hardcode_direct_F77
23780
23781# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23782# resulting binary.
23783hardcode_minus_L=$hardcode_minus_L_F77
23784
23785# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23786# the resulting binary.
23787hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23788
23789# Set to yes if building a shared library automatically hardcodes DIR into the library
23790# and all subsequent libraries and executables linked against it.
23791hardcode_automatic=$hardcode_automatic_F77
23792
23793# Variables whose values should be saved in libtool wrapper scripts and
23794# restored at relink time.
23795variables_saved_for_relink="$variables_saved_for_relink"
23796
23797# Whether libtool must link a program against all its dependency libraries.
23798link_all_deplibs=$link_all_deplibs_F77
23799
23800# Compile-time system search path for libraries
23801sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23802
23803# Run-time system search path for libraries
23804sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23805
23806# Fix the shell variable \$srcfile for the compiler.
23807fix_srcfile_path="$fix_srcfile_path_F77"
23808
23809# Set to yes if exported symbols are required.
23810always_export_symbols=$always_export_symbols_F77
23811
23812# The commands to list exported symbols.
23813export_symbols_cmds=$lt_export_symbols_cmds_F77
23814
23815# The commands to extract the exported symbol list from a shared archive.
23816extract_expsyms_cmds=$lt_extract_expsyms_cmds
23817
23818# Symbols that should not be listed in the preloaded symbols.
23819exclude_expsyms=$lt_exclude_expsyms_F77
23820
23821# Symbols that must always be exported.
23822include_expsyms=$lt_include_expsyms_F77
23823
23824# ### END LIBTOOL TAG CONFIG: $tagname
23825
23826__EOF__
23827
23828
23829else
23830 # If there is no Makefile yet, we rely on a make rule to execute
23831 # `config.status --recheck' to rerun these tests and create the
23832 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023833 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23834 if test -f "$ltmain_in"; then
23835 test -f Makefile && make "$ltmain"
23836 fi
John Criswell47fdd832003-07-14 16:52:07 +000023837fi
23838
23839
23840ac_ext=c
23841ac_cpp='$CPP $CPPFLAGS'
23842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844ac_compiler_gnu=$ac_cv_c_compiler_gnu
23845
23846CC="$lt_save_CC"
23847
23848 else
23849 tagname=""
23850 fi
23851 ;;
23852
23853 GCJ)
23854 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023855 ac_ext=c
23856ac_cpp='$CPP $CPPFLAGS'
23857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023860
23861
23862# Source file extension for Java test sources.
23863ac_ext=java
23864
23865# Object file extension for compiled Java test sources.
23866objext=o
23867objext_GCJ=$objext
23868
23869# Code to be used in simple compile tests
23870lt_simple_compile_test_code="class foo {}\n"
23871
23872# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023873lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023874
23875# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23876
23877# If no C compiler was specified, use CC.
23878LTCC=${LTCC-"$CC"}
23879
Reid Spencera773bd52006-08-04 18:18:08 +000023880# If no C compiler flags were specified, use CFLAGS.
23881LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23882
John Criswell47fdd832003-07-14 16:52:07 +000023883# Allow CC to be a program name with arguments.
23884compiler=$CC
23885
23886
Reid Spencera773bd52006-08-04 18:18:08 +000023887# save warnings/boilerplate of simple test code
23888ac_outfile=conftest.$ac_objext
23889printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23890eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23891_lt_compiler_boilerplate=`cat conftest.err`
23892$rm conftest*
23893
23894ac_outfile=conftest.$ac_objext
23895printf "$lt_simple_link_test_code" >conftest.$ac_ext
23896eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23897_lt_linker_boilerplate=`cat conftest.err`
23898$rm conftest*
23899
23900
John Criswell47fdd832003-07-14 16:52:07 +000023901# Allow CC to be a program name with arguments.
23902lt_save_CC="$CC"
23903CC=${GCJ-"gcj"}
23904compiler=$CC
23905compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023906for cc_temp in $compiler""; do
23907 case $cc_temp in
23908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23910 \-*) ;;
23911 *) break;;
23912 esac
23913done
23914cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23915
John Criswell47fdd832003-07-14 16:52:07 +000023916
23917# GCJ did not exist at the time GCC didn't implicitly link libc in.
23918archive_cmds_need_lc_GCJ=no
23919
Reid Spencera773bd52006-08-04 18:18:08 +000023920old_archive_cmds_GCJ=$old_archive_cmds
23921
John Criswell47fdd832003-07-14 16:52:07 +000023922
23923lt_prog_compiler_no_builtin_flag_GCJ=
23924
23925if test "$GCC" = yes; then
23926 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23927
Reid Spencer2706f8c2004-09-19 23:53:36 +000023928
Reid Spencera773bd52006-08-04 18:18:08 +000023929{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23930echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023931if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23933else
23934 lt_cv_prog_compiler_rtti_exceptions=no
23935 ac_outfile=conftest.$ac_objext
23936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23937 lt_compiler_flag="-fno-rtti -fno-exceptions"
23938 # Insert the option either (1) after the last *FLAGS variable, or
23939 # (2) before a word containing "conftest.", or (3) at the end.
23940 # Note that $ac_compile itself does not contain backslashes and begins
23941 # with a dollar sign (not a hyphen), so the echo should work correctly.
23942 # The option is referenced via a variable to avoid confusing sed.
23943 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23946 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000023947 (eval echo "\"\$as_me:23947: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023948 (eval "$lt_compile" 2>conftest.err)
23949 ac_status=$?
23950 cat conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000023951 echo "$as_me:23951: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023952 if (exit $ac_status) && test -s "$ac_outfile"; then
23953 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023954 # So say no if there are warnings other than the usual output.
23955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023958 lt_cv_prog_compiler_rtti_exceptions=yes
23959 fi
23960 fi
23961 $rm conftest*
23962
23963fi
Reid Spencera773bd52006-08-04 18:18:08 +000023964{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23965echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023966
23967if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23968 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23969else
23970 :
23971fi
23972
23973fi
23974
23975lt_prog_compiler_wl_GCJ=
23976lt_prog_compiler_pic_GCJ=
23977lt_prog_compiler_static_GCJ=
23978
Reid Spencera773bd52006-08-04 18:18:08 +000023979{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23980echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023981
23982 if test "$GCC" = yes; then
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 lt_prog_compiler_static_GCJ='-static'
23985
23986 case $host_os in
23987 aix*)
23988 # All AIX code is PIC.
23989 if test "$host_cpu" = ia64; then
23990 # AIX 5 now supports IA64 processor
23991 lt_prog_compiler_static_GCJ='-Bstatic'
23992 fi
23993 ;;
23994
23995 amigaos*)
23996 # FIXME: we need at least 68020 code to build shared libraries, but
23997 # adding the `-m68020' flag to GCC prevents building anything better,
23998 # like `-m68040'.
23999 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24000 ;;
24001
24002 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24003 # PIC is the default for these OSes.
24004 ;;
24005
24006 mingw* | pw32* | os2*)
24007 # This hack is so that the source file can tell whether it is being
24008 # built for inclusion in a dll (and should export symbols for example).
24009 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24010 ;;
24011
24012 darwin* | rhapsody*)
24013 # PIC is the default on this platform
24014 # Common symbols not allowed in MH_DYLIB files
24015 lt_prog_compiler_pic_GCJ='-fno-common'
24016 ;;
24017
Reid Spencera773bd52006-08-04 18:18:08 +000024018 interix3*)
24019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24020 # Instead, we relocate shared libraries at runtime.
24021 ;;
24022
John Criswell47fdd832003-07-14 16:52:07 +000024023 msdosdjgpp*)
24024 # Just because we use GCC doesn't mean we suddenly get shared libraries
24025 # on systems that don't support them.
24026 lt_prog_compiler_can_build_shared_GCJ=no
24027 enable_shared=no
24028 ;;
24029
24030 sysv4*MP*)
24031 if test -d /usr/nec; then
24032 lt_prog_compiler_pic_GCJ=-Kconform_pic
24033 fi
24034 ;;
24035
24036 hpux*)
24037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24038 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024039 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024040 hppa*64*|ia64*)
24041 # +Z the default
24042 ;;
24043 *)
24044 lt_prog_compiler_pic_GCJ='-fPIC'
24045 ;;
24046 esac
24047 ;;
24048
24049 *)
24050 lt_prog_compiler_pic_GCJ='-fPIC'
24051 ;;
24052 esac
24053 else
24054 # PORTME Check for flag to pass linker flags through the system compiler.
24055 case $host_os in
24056 aix*)
24057 lt_prog_compiler_wl_GCJ='-Wl,'
24058 if test "$host_cpu" = ia64; then
24059 # AIX 5 now supports IA64 processor
24060 lt_prog_compiler_static_GCJ='-Bstatic'
24061 else
24062 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24063 fi
24064 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024065 darwin*)
24066 # PIC is the default on this platform
24067 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024068 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024069 xlc*)
24070 lt_prog_compiler_pic_GCJ='-qnocommon'
24071 lt_prog_compiler_wl_GCJ='-Wl,'
24072 ;;
24073 esac
24074 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024075
24076 mingw* | pw32* | os2*)
24077 # This hack is so that the source file can tell whether it is being
24078 # built for inclusion in a dll (and should export symbols for example).
24079 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24080 ;;
24081
24082 hpux9* | hpux10* | hpux11*)
24083 lt_prog_compiler_wl_GCJ='-Wl,'
24084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24085 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024086 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024087 hppa*64*|ia64*)
24088 # +Z the default
24089 ;;
24090 *)
24091 lt_prog_compiler_pic_GCJ='+Z'
24092 ;;
24093 esac
24094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24095 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24096 ;;
24097
24098 irix5* | irix6* | nonstopux*)
24099 lt_prog_compiler_wl_GCJ='-Wl,'
24100 # PIC (with -KPIC) is the default.
24101 lt_prog_compiler_static_GCJ='-non_shared'
24102 ;;
24103
24104 newsos6)
24105 lt_prog_compiler_pic_GCJ='-KPIC'
24106 lt_prog_compiler_static_GCJ='-Bstatic'
24107 ;;
24108
24109 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024110 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024111 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024112 lt_prog_compiler_wl_GCJ='-Wl,'
24113 lt_prog_compiler_pic_GCJ='-KPIC'
24114 lt_prog_compiler_static_GCJ='-static'
24115 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024116 pgcc* | pgf77* | pgf90* | pgf95*)
24117 # Portland Group compilers (*not* the Pentium gcc compiler,
24118 # which looks to be a dead project)
24119 lt_prog_compiler_wl_GCJ='-Wl,'
24120 lt_prog_compiler_pic_GCJ='-fpic'
24121 lt_prog_compiler_static_GCJ='-Bstatic'
24122 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024123 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024124 lt_prog_compiler_wl_GCJ='-Wl,'
24125 # All Alpha code is PIC.
24126 lt_prog_compiler_static_GCJ='-non_shared'
24127 ;;
24128 esac
24129 ;;
24130
24131 osf3* | osf4* | osf5*)
24132 lt_prog_compiler_wl_GCJ='-Wl,'
24133 # All OSF/1 code is PIC.
24134 lt_prog_compiler_static_GCJ='-non_shared'
24135 ;;
24136
John Criswell47fdd832003-07-14 16:52:07 +000024137 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024138 lt_prog_compiler_pic_GCJ='-KPIC'
24139 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024140 case $cc_basename in
24141 f77* | f90* | f95*)
24142 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24143 *)
24144 lt_prog_compiler_wl_GCJ='-Wl,';;
24145 esac
John Criswell47fdd832003-07-14 16:52:07 +000024146 ;;
24147
24148 sunos4*)
24149 lt_prog_compiler_wl_GCJ='-Qoption ld '
24150 lt_prog_compiler_pic_GCJ='-PIC'
24151 lt_prog_compiler_static_GCJ='-Bstatic'
24152 ;;
24153
Reid Spencera773bd52006-08-04 18:18:08 +000024154 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024155 lt_prog_compiler_wl_GCJ='-Wl,'
24156 lt_prog_compiler_pic_GCJ='-KPIC'
24157 lt_prog_compiler_static_GCJ='-Bstatic'
24158 ;;
24159
24160 sysv4*MP*)
24161 if test -d /usr/nec ;then
24162 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24163 lt_prog_compiler_static_GCJ='-Bstatic'
24164 fi
24165 ;;
24166
Reid Spencera773bd52006-08-04 18:18:08 +000024167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24168 lt_prog_compiler_wl_GCJ='-Wl,'
24169 lt_prog_compiler_pic_GCJ='-KPIC'
24170 lt_prog_compiler_static_GCJ='-Bstatic'
24171 ;;
24172
24173 unicos*)
24174 lt_prog_compiler_wl_GCJ='-Wl,'
24175 lt_prog_compiler_can_build_shared_GCJ=no
24176 ;;
24177
John Criswell47fdd832003-07-14 16:52:07 +000024178 uts4*)
24179 lt_prog_compiler_pic_GCJ='-pic'
24180 lt_prog_compiler_static_GCJ='-Bstatic'
24181 ;;
24182
24183 *)
24184 lt_prog_compiler_can_build_shared_GCJ=no
24185 ;;
24186 esac
24187 fi
24188
Reid Spencera773bd52006-08-04 18:18:08 +000024189{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24190echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024191
24192#
24193# Check to make sure the PIC flag actually works.
24194#
24195if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024196
Reid Spencera773bd52006-08-04 18:18:08 +000024197{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24198echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024199if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24200 echo $ECHO_N "(cached) $ECHO_C" >&6
24201else
24202 lt_prog_compiler_pic_works_GCJ=no
24203 ac_outfile=conftest.$ac_objext
24204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24205 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24206 # Insert the option either (1) after the last *FLAGS variable, or
24207 # (2) before a word containing "conftest.", or (3) at the end.
24208 # Note that $ac_compile itself does not contain backslashes and begins
24209 # with a dollar sign (not a hyphen), so the echo should work correctly.
24210 # The option is referenced via a variable to avoid confusing sed.
24211 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24214 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000024215 (eval echo "\"\$as_me:24215: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024216 (eval "$lt_compile" 2>conftest.err)
24217 ac_status=$?
24218 cat conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000024219 echo "$as_me:24219: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024220 if (exit $ac_status) && test -s "$ac_outfile"; then
24221 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024222 # So say no if there are warnings other than the usual output.
24223 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024226 lt_prog_compiler_pic_works_GCJ=yes
24227 fi
24228 fi
24229 $rm conftest*
24230
24231fi
Reid Spencera773bd52006-08-04 18:18:08 +000024232{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24233echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024234
24235if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24236 case $lt_prog_compiler_pic_GCJ in
24237 "" | " "*) ;;
24238 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24239 esac
24240else
24241 lt_prog_compiler_pic_GCJ=
24242 lt_prog_compiler_can_build_shared_GCJ=no
24243fi
24244
24245fi
Reid Spencera773bd52006-08-04 18:18:08 +000024246case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024247 # For platforms which do not support PIC, -DPIC is meaningless:
24248 *djgpp*)
24249 lt_prog_compiler_pic_GCJ=
24250 ;;
24251 *)
24252 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24253 ;;
24254esac
24255
Reid Spencera773bd52006-08-04 18:18:08 +000024256#
24257# Check to make sure the static flag actually works.
24258#
24259wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24260{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24261echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24262if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24264else
24265 lt_prog_compiler_static_works_GCJ=no
24266 save_LDFLAGS="$LDFLAGS"
24267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24268 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24270 # The linker can only warn and ignore the option if not recognized
24271 # So say no if there are warnings
24272 if test -s conftest.err; then
24273 # Append any errors to the config.log.
24274 cat conftest.err 1>&5
24275 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24277 if diff conftest.exp conftest.er2 >/dev/null; then
24278 lt_prog_compiler_static_works_GCJ=yes
24279 fi
24280 else
24281 lt_prog_compiler_static_works_GCJ=yes
24282 fi
24283 fi
24284 $rm conftest*
24285 LDFLAGS="$save_LDFLAGS"
24286
24287fi
24288{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24289echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24290
24291if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24292 :
24293else
24294 lt_prog_compiler_static_GCJ=
24295fi
24296
24297
24298{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24299echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024300if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24302else
24303 lt_cv_prog_compiler_c_o_GCJ=no
24304 $rm -r conftest 2>/dev/null
24305 mkdir conftest
24306 cd conftest
24307 mkdir out
24308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24309
John Criswell47fdd832003-07-14 16:52:07 +000024310 lt_compiler_flag="-o out/conftest2.$ac_objext"
24311 # Insert the option either (1) after the last *FLAGS variable, or
24312 # (2) before a word containing "conftest.", or (3) at the end.
24313 # Note that $ac_compile itself does not contain backslashes and begins
24314 # with a dollar sign (not a hyphen), so the echo should work correctly.
24315 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24318 -e 's:$: $lt_compiler_flag:'`
Jim Grosbach673612e2008-10-02 22:56:44 +000024319 (eval echo "\"\$as_me:24319: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024320 (eval "$lt_compile" 2>out/conftest.err)
24321 ac_status=$?
24322 cat out/conftest.err >&5
Jim Grosbach673612e2008-10-02 22:56:44 +000024323 echo "$as_me:24323: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24325 then
24326 # The compiler can only warn and ignore the option if not recognized
24327 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024328 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024331 lt_cv_prog_compiler_c_o_GCJ=yes
24332 fi
24333 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024334 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024335 $rm conftest*
24336 # SGI C++ compiler will create directory out/ii_files/ for
24337 # template instantiation
24338 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24339 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024340 cd ..
24341 rmdir conftest
24342 $rm conftest*
24343
24344fi
Reid Spencera773bd52006-08-04 18:18:08 +000024345{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24346echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024347
24348
24349hard_links="nottested"
24350if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24351 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024352 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24353echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024354 hard_links=yes
24355 $rm conftest*
24356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24357 touch conftest.a
24358 ln conftest.a conftest.b 2>&5 || hard_links=no
24359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024360 { echo "$as_me:$LINENO: result: $hard_links" >&5
24361echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024362 if test "$hard_links" = no; then
24363 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24364echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24365 need_locks=warn
24366 fi
24367else
24368 need_locks=no
24369fi
24370
Reid Spencera773bd52006-08-04 18:18:08 +000024371{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24372echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024373
24374 runpath_var=
24375 allow_undefined_flag_GCJ=
24376 enable_shared_with_static_runtimes_GCJ=no
24377 archive_cmds_GCJ=
24378 archive_expsym_cmds_GCJ=
24379 old_archive_From_new_cmds_GCJ=
24380 old_archive_from_expsyms_cmds_GCJ=
24381 export_dynamic_flag_spec_GCJ=
24382 whole_archive_flag_spec_GCJ=
24383 thread_safe_flag_spec_GCJ=
24384 hardcode_libdir_flag_spec_GCJ=
24385 hardcode_libdir_flag_spec_ld_GCJ=
24386 hardcode_libdir_separator_GCJ=
24387 hardcode_direct_GCJ=no
24388 hardcode_minus_L_GCJ=no
24389 hardcode_shlibpath_var_GCJ=unsupported
24390 link_all_deplibs_GCJ=unknown
24391 hardcode_automatic_GCJ=no
24392 module_cmds_GCJ=
24393 module_expsym_cmds_GCJ=
24394 always_export_symbols_GCJ=no
24395 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24396 # include_expsyms should be a list of space-separated symbols to be *always*
24397 # included in the symbol list
24398 include_expsyms_GCJ=
24399 # exclude_expsyms can be an extended regexp of symbols to exclude
24400 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24402 # as well as any symbol that contains `d'.
24403 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24405 # platforms (ab)use it in PIC code, but their linkers get confused if
24406 # the symbol is explicitly referenced. Since portable code cannot
24407 # rely on this symbol name, it's probably fine to never include it in
24408 # preloaded symbol tables.
24409 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024410 # Just being paranoid about ensuring that cc_basename is set.
24411 for cc_temp in $compiler""; do
24412 case $cc_temp in
24413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24415 \-*) ;;
24416 *) break;;
24417 esac
24418done
24419cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024420
24421 case $host_os in
24422 cygwin* | mingw* | pw32*)
24423 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24424 # When not using gcc, we currently assume that we are using
24425 # Microsoft Visual C++.
24426 if test "$GCC" != yes; then
24427 with_gnu_ld=no
24428 fi
24429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024430 interix*)
24431 # we just hope/assume this is gcc and not c89 (= MSVC++)
24432 with_gnu_ld=yes
24433 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024434 openbsd*)
24435 with_gnu_ld=no
24436 ;;
24437 esac
24438
24439 ld_shlibs_GCJ=yes
24440 if test "$with_gnu_ld" = yes; then
24441 # If archive_cmds runs LD, not CC, wlarc should be empty
24442 wlarc='${wl}'
24443
Reid Spencera773bd52006-08-04 18:18:08 +000024444 # Set some defaults for GNU ld with shared library support. These
24445 # are reset later if shared libraries are not supported. Putting them
24446 # here allows them to be overridden if necessary.
24447 runpath_var=LD_RUN_PATH
24448 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24449 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24450 # ancient GNU ld didn't support --whole-archive et. al.
24451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24452 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24453 else
24454 whole_archive_flag_spec_GCJ=
24455 fi
24456 supports_anon_versioning=no
24457 case `$LD -v 2>/dev/null` in
24458 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24459 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24460 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24461 *\ 2.11.*) ;; # other 2.11 versions
24462 *) supports_anon_versioning=yes ;;
24463 esac
24464
John Criswell47fdd832003-07-14 16:52:07 +000024465 # See if GNU ld supports shared libraries.
24466 case $host_os in
24467 aix3* | aix4* | aix5*)
24468 # On AIX/PPC, the GNU linker is very broken
24469 if test "$host_cpu" != ia64; then
24470 ld_shlibs_GCJ=no
24471 cat <<EOF 1>&2
24472
24473*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24474*** to be unable to reliably create shared libraries on AIX.
24475*** Therefore, libtool is disabling shared libraries support. If you
24476*** really care for shared libraries, you may want to modify your PATH
24477*** so that a non-GNU linker is found, and then restart.
24478
24479EOF
24480 fi
24481 ;;
24482
24483 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024484 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 +000024485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24486 hardcode_minus_L_GCJ=yes
24487
24488 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24489 # that the semantics of dynamic libraries on AmigaOS, at least up
24490 # to version 4, is to share data among multiple programs linked
24491 # with the same dynamic library. Since this doesn't match the
24492 # behavior of shared libraries on other platforms, we can't use
24493 # them.
24494 ld_shlibs_GCJ=no
24495 ;;
24496
24497 beos*)
24498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24499 allow_undefined_flag_GCJ=unsupported
24500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24501 # support --undefined. This deserves some investigation. FIXME
24502 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24503 else
24504 ld_shlibs_GCJ=no
24505 fi
24506 ;;
24507
24508 cygwin* | mingw* | pw32*)
24509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24510 # as there is no search path for DLLs.
24511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24512 allow_undefined_flag_GCJ=unsupported
24513 always_export_symbols_GCJ=no
24514 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024515 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 +000024516
24517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024518 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 +000024519 # If the export-symbols file already is a .def file (1st line
24520 # is EXPORTS), use it as is; otherwise, prepend...
24521 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24522 cp $export_symbols $output_objdir/$soname.def;
24523 else
24524 echo EXPORTS > $output_objdir/$soname.def;
24525 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024526 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024527 $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 +000024528 else
Reid Spencera773bd52006-08-04 18:18:08 +000024529 ld_shlibs_GCJ=no
24530 fi
24531 ;;
24532
24533 interix3*)
24534 hardcode_direct_GCJ=no
24535 hardcode_shlibpath_var_GCJ=no
24536 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24537 export_dynamic_flag_spec_GCJ='${wl}-E'
24538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24539 # Instead, shared libraries are loaded at an image base (0x10000000 by
24540 # default) and relocated if they conflict, which is a slow very memory
24541 # consuming and fragmenting process. To avoid this, we pick a random,
24542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24544 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'
24545 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'
24546 ;;
24547
24548 linux*)
24549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24550 tmp_addflag=
24551 case $cc_basename,$host_cpu in
24552 pgcc*) # Portland Group C compiler
24553 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'
24554 tmp_addflag=' $pic_flag'
24555 ;;
24556 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24557 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'
24558 tmp_addflag=' $pic_flag -Mnomain' ;;
24559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24560 tmp_addflag=' -i_dynamic' ;;
24561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24562 tmp_addflag=' -i_dynamic -nofor_main' ;;
24563 ifc* | ifort*) # Intel Fortran compiler
24564 tmp_addflag=' -nofor_main' ;;
24565 esac
24566 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24567
24568 if test $supports_anon_versioning = yes; then
24569 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24571 $echo "local: *; };" >> $output_objdir/$libname.ver~
24572 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24573 fi
24574 else
24575 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024576 fi
24577 ;;
24578
24579 netbsd*)
24580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24581 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24582 wlarc=
24583 else
24584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24585 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24586 fi
24587 ;;
24588
Reid Spencera773bd52006-08-04 18:18:08 +000024589 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024590 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24591 ld_shlibs_GCJ=no
24592 cat <<EOF 1>&2
24593
24594*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24595*** create shared libraries on Solaris systems. Therefore, libtool
24596*** is disabling shared libraries support. We urge you to upgrade GNU
24597*** binutils to release 2.9.1 or newer. Another option is to modify
24598*** your PATH or compiler configuration so that the native linker is
24599*** used, and then restart.
24600
24601EOF
24602 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24605 else
24606 ld_shlibs_GCJ=no
24607 fi
24608 ;;
24609
Reid Spencera773bd52006-08-04 18:18:08 +000024610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24611 case `$LD -v 2>&1` in
24612 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24613 ld_shlibs_GCJ=no
24614 cat <<_LT_EOF 1>&2
24615
24616*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24617*** reliably create shared libraries on SCO systems. Therefore, libtool
24618*** is disabling shared libraries support. We urge you to upgrade GNU
24619*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24620*** your PATH or compiler configuration so that the native linker is
24621*** used, and then restart.
24622
24623_LT_EOF
24624 ;;
24625 *)
24626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24627 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24630 else
24631 ld_shlibs_GCJ=no
24632 fi
24633 ;;
24634 esac
24635 ;;
24636
John Criswell47fdd832003-07-14 16:52:07 +000024637 sunos4*)
24638 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24639 wlarc=
24640 hardcode_direct_GCJ=yes
24641 hardcode_shlibpath_var_GCJ=no
24642 ;;
24643
24644 *)
24645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24646 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24647 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24648 else
24649 ld_shlibs_GCJ=no
24650 fi
24651 ;;
24652 esac
24653
Reid Spencera773bd52006-08-04 18:18:08 +000024654 if test "$ld_shlibs_GCJ" = no; then
24655 runpath_var=
24656 hardcode_libdir_flag_spec_GCJ=
24657 export_dynamic_flag_spec_GCJ=
24658 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024659 fi
24660 else
24661 # PORTME fill in a description of your system's linker (not GNU ld)
24662 case $host_os in
24663 aix3*)
24664 allow_undefined_flag_GCJ=unsupported
24665 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024666 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 +000024667 # Note: this linker hardcodes the directories in LIBPATH if there
24668 # are no directories specified by -L.
24669 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024671 # Neither direct hardcoding nor static linking is supported with a
24672 # broken collect2.
24673 hardcode_direct_GCJ=unsupported
24674 fi
24675 ;;
24676
24677 aix4* | aix5*)
24678 if test "$host_cpu" = ia64; then
24679 # On IA64, the linker does run time linking by default, so we don't
24680 # have to do anything special.
24681 aix_use_runtimelinking=no
24682 exp_sym_flag='-Bexport'
24683 no_entry_flag=""
24684 else
24685 # If we're using GNU nm, then we don't want the "-C" option.
24686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24688 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'
24689 else
24690 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'
24691 fi
24692 aix_use_runtimelinking=no
24693
24694 # Test if we are trying to use run time linking or normal
24695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24696 # need to do runtime linking.
24697 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24698 for ld_flag in $LDFLAGS; do
24699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24700 aix_use_runtimelinking=yes
24701 break
24702 fi
24703 done
Reid Spencera773bd52006-08-04 18:18:08 +000024704 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024705 esac
24706
24707 exp_sym_flag='-bexport'
24708 no_entry_flag='-bnoentry'
24709 fi
24710
24711 # When large executables or shared objects are built, AIX ld can
24712 # have problems creating the table of contents. If linking a library
24713 # or program results in "error TOC overflow" add -mminimal-toc to
24714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24716
24717 archive_cmds_GCJ=''
24718 hardcode_direct_GCJ=yes
24719 hardcode_libdir_separator_GCJ=':'
24720 link_all_deplibs_GCJ=yes
24721
24722 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024723 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024724 # We only want to do this on AIX 4.2 and lower, the check
24725 # below for broken collect2 doesn't work under 4.3+
24726 collect2name=`${CC} -print-prog-name=collect2`
24727 if test -f "$collect2name" && \
24728 strings "$collect2name" | grep resolve_lib_name >/dev/null
24729 then
24730 # We have reworked collect2
24731 hardcode_direct_GCJ=yes
24732 else
24733 # We have old collect2
24734 hardcode_direct_GCJ=unsupported
24735 # It fails to find uninstalled libraries when the uninstalled
24736 # path is not listed in the libpath. Setting hardcode_minus_L
24737 # to unsupported forces relinking
24738 hardcode_minus_L_GCJ=yes
24739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24740 hardcode_libdir_separator_GCJ=
24741 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024742 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024743 esac
24744 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024745 if test "$aix_use_runtimelinking" = yes; then
24746 shared_flag="$shared_flag "'${wl}-G'
24747 fi
John Criswell47fdd832003-07-14 16:52:07 +000024748 else
24749 # not using gcc
24750 if test "$host_cpu" = ia64; then
24751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24752 # chokes on -Wl,-G. The following line is correct:
24753 shared_flag='-G'
24754 else
Reid Spencera773bd52006-08-04 18:18:08 +000024755 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024756 shared_flag='${wl}-G'
24757 else
24758 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024759 fi
John Criswell47fdd832003-07-14 16:52:07 +000024760 fi
24761 fi
24762
24763 # It seems that -bexpall does not export symbols beginning with
24764 # underscore (_), so it is better to generate a list of symbols to export.
24765 always_export_symbols_GCJ=yes
24766 if test "$aix_use_runtimelinking" = yes; then
24767 # Warning - without using the other runtime loading flags (-brtl),
24768 # -berok will link without error, but may produce a broken library.
24769 allow_undefined_flag_GCJ='-berok'
24770 # Determine the default libpath from the value encoded in an empty executable.
24771 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024772/* confdefs.h. */
24773_ACEOF
24774cat confdefs.h >>conftest.$ac_ext
24775cat >>conftest.$ac_ext <<_ACEOF
24776/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024777
John Criswell47fdd832003-07-14 16:52:07 +000024778int
24779main ()
24780{
24781
24782 ;
24783 return 0;
24784}
24785_ACEOF
24786rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024787if { (ac_try="$ac_link"
24788case "(($ac_try" in
24789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790 *) ac_try_echo=$ac_try;;
24791esac
24792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024794 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024795 grep -v '^ *+' conftest.er1 >conftest.err
24796 rm -f conftest.er1
24797 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024799 (exit $ac_status); } &&
24800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24801 { (case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24804esac
24805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_try") 2>&5
24807 ac_status=$?
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; } &&
24810 { ac_try='test -s conftest$ac_exeext'
24811 { (case "(($ac_try" in
24812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813 *) ac_try_echo=$ac_try;;
24814esac
24815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816 (eval "$ac_try") 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024820
24821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24822}'`
24823# Check for a 64-bit object if we didn't find anything.
24824if 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; }
24825}'`; fi
24826else
24827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024828sed 's/^/| /' conftest.$ac_ext >&5
24829
Reid Spencera773bd52006-08-04 18:18:08 +000024830
John Criswell47fdd832003-07-14 16:52:07 +000024831fi
Reid Spencera773bd52006-08-04 18:18:08 +000024832
Tanya Lattnercf067672008-01-17 05:57:22 +000024833rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024834 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24836
24837 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024838 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 +000024839 else
24840 if test "$host_cpu" = ia64; then
24841 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24842 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024843 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 +000024844 else
24845 # Determine the default libpath from the value encoded in an empty executable.
24846 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024847/* confdefs.h. */
24848_ACEOF
24849cat confdefs.h >>conftest.$ac_ext
24850cat >>conftest.$ac_ext <<_ACEOF
24851/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024852
John Criswell47fdd832003-07-14 16:52:07 +000024853int
24854main ()
24855{
24856
24857 ;
24858 return 0;
24859}
24860_ACEOF
24861rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024862if { (ac_try="$ac_link"
24863case "(($ac_try" in
24864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865 *) ac_try_echo=$ac_try;;
24866esac
24867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024870 grep -v '^ *+' conftest.er1 >conftest.err
24871 rm -f conftest.er1
24872 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24876 { (case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24879esac
24880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881 (eval "$ac_try") 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; } &&
24885 { ac_try='test -s conftest$ac_exeext'
24886 { (case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24889esac
24890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_try") 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024895
24896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24897}'`
24898# Check for a 64-bit object if we didn't find anything.
24899if 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; }
24900}'`; fi
24901else
24902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024903sed 's/^/| /' conftest.$ac_ext >&5
24904
Reid Spencera773bd52006-08-04 18:18:08 +000024905
John Criswell47fdd832003-07-14 16:52:07 +000024906fi
Reid Spencera773bd52006-08-04 18:18:08 +000024907
Tanya Lattnercf067672008-01-17 05:57:22 +000024908rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024909 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24911
24912 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24913 # Warning - without using the other run time loading flags,
24914 # -berok will link without error, but may produce a broken library.
24915 no_undefined_flag_GCJ=' ${wl}-bernotok'
24916 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024917 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024918 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024919 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024920 # This is similar to how AIX traditionally builds its shared libraries.
24921 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 +000024922 fi
24923 fi
24924 ;;
24925
24926 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024927 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 +000024928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24929 hardcode_minus_L_GCJ=yes
24930 # see comment about different semantics on the GNU ld section
24931 ld_shlibs_GCJ=no
24932 ;;
24933
Reid Spencer2706f8c2004-09-19 23:53:36 +000024934 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024935 export_dynamic_flag_spec_GCJ=-rdynamic
24936 ;;
24937
24938 cygwin* | mingw* | pw32*)
24939 # When not using gcc, we currently assume that we are using
24940 # Microsoft Visual C++.
24941 # hardcode_libdir_flag_spec is actually meaningless, as there is
24942 # no search path for DLLs.
24943 hardcode_libdir_flag_spec_GCJ=' '
24944 allow_undefined_flag_GCJ=unsupported
24945 # Tell ltmain to make .lib files, not .a files.
24946 libext=lib
24947 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024948 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024949 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024950 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 +000024951 # The linker will automatically build a .lib file if we build a DLL.
24952 old_archive_From_new_cmds_GCJ='true'
24953 # FIXME: Should let the user specify the lib program.
24954 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024955 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024956 enable_shared_with_static_runtimes_GCJ=yes
24957 ;;
24958
24959 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024960 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024961 rhapsody* | darwin1.[012])
24962 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24963 ;;
24964 *) # Darwin 1.3 on
24965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24966 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24967 else
24968 case ${MACOSX_DEPLOYMENT_TARGET} in
24969 10.[012])
24970 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24971 ;;
24972 10.*)
24973 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24974 ;;
24975 esac
24976 fi
24977 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024978 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024979 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024980 hardcode_direct_GCJ=no
24981 hardcode_automatic_GCJ=yes
24982 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024983 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024984 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024985 if test "$GCC" = yes ; then
24986 output_verbose_link_cmd='echo'
24987 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24988 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024989 # 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 +000024990 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}'
24991 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 +000024992 else
Reid Spencera773bd52006-08-04 18:18:08 +000024993 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024994 xlc*)
24995 output_verbose_link_cmd='echo'
24996 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24997 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024998 # 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 +000024999 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}'
25000 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 +000025001 ;;
25002 *)
25003 ld_shlibs_GCJ=no
25004 ;;
25005 esac
John Criswell47fdd832003-07-14 16:52:07 +000025006 fi
25007 ;;
25008
25009 dgux*)
25010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25012 hardcode_shlibpath_var_GCJ=no
25013 ;;
25014
25015 freebsd1*)
25016 ld_shlibs_GCJ=no
25017 ;;
25018
25019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25020 # support. Future versions do this automatically, but an explicit c++rt0.o
25021 # does not break anything, and helps significantly (at the cost of a little
25022 # extra space).
25023 freebsd2.2*)
25024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 hardcode_direct_GCJ=yes
25027 hardcode_shlibpath_var_GCJ=no
25028 ;;
25029
25030 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25031 freebsd2*)
25032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25033 hardcode_direct_GCJ=yes
25034 hardcode_minus_L_GCJ=yes
25035 hardcode_shlibpath_var_GCJ=no
25036 ;;
25037
25038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025039 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025040 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042 hardcode_direct_GCJ=yes
25043 hardcode_shlibpath_var_GCJ=no
25044 ;;
25045
25046 hpux9*)
25047 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025048 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 +000025049 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025050 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 +000025051 fi
25052 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25053 hardcode_libdir_separator_GCJ=:
25054 hardcode_direct_GCJ=yes
25055
25056 # hardcode_minus_L: Not really in the search PATH,
25057 # but as the default location of the library.
25058 hardcode_minus_L_GCJ=yes
25059 export_dynamic_flag_spec_GCJ='${wl}-E'
25060 ;;
25061
Reid Spencera773bd52006-08-04 18:18:08 +000025062 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025064 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25065 else
25066 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25067 fi
25068 if test "$with_gnu_ld" = no; then
25069 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25070 hardcode_libdir_separator_GCJ=:
25071
25072 hardcode_direct_GCJ=yes
25073 export_dynamic_flag_spec_GCJ='${wl}-E'
25074
25075 # hardcode_minus_L: Not really in the search PATH,
25076 # but as the default location of the library.
25077 hardcode_minus_L_GCJ=yes
25078 fi
25079 ;;
25080
25081 hpux11*)
25082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25083 case $host_cpu in
25084 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025085 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25086 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025087 ia64*)
25088 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25089 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025090 *)
25091 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25092 ;;
25093 esac
25094 else
Reid Spencera773bd52006-08-04 18:18:08 +000025095 case $host_cpu in
25096 hppa*64*)
25097 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25098 ;;
25099 ia64*)
25100 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025101 ;;
25102 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025103 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 +000025104 ;;
25105 esac
25106 fi
25107 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025108 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25109 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025110
Reid Spencera773bd52006-08-04 18:18:08 +000025111 case $host_cpu in
25112 hppa*64*|ia64*)
25113 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25114 hardcode_direct_GCJ=no
25115 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025116 ;;
25117 *)
John Criswell47fdd832003-07-14 16:52:07 +000025118 hardcode_direct_GCJ=yes
25119 export_dynamic_flag_spec_GCJ='${wl}-E'
25120
25121 # hardcode_minus_L: Not really in the search PATH,
25122 # but as the default location of the library.
25123 hardcode_minus_L_GCJ=yes
25124 ;;
25125 esac
25126 fi
25127 ;;
25128
25129 irix5* | irix6* | nonstopux*)
25130 if test "$GCC" = yes; then
25131 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'
25132 else
25133 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'
25134 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25135 fi
25136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25137 hardcode_libdir_separator_GCJ=:
25138 link_all_deplibs_GCJ=yes
25139 ;;
25140
25141 netbsd*)
25142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25143 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25144 else
25145 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25146 fi
25147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148 hardcode_direct_GCJ=yes
25149 hardcode_shlibpath_var_GCJ=no
25150 ;;
25151
25152 newsos6)
25153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_direct_GCJ=yes
25155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25156 hardcode_libdir_separator_GCJ=:
25157 hardcode_shlibpath_var_GCJ=no
25158 ;;
25159
25160 openbsd*)
25161 hardcode_direct_GCJ=yes
25162 hardcode_shlibpath_var_GCJ=no
25163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25164 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025165 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 +000025166 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25167 export_dynamic_flag_spec_GCJ='${wl}-E'
25168 else
25169 case $host_os in
25170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25173 ;;
25174 *)
25175 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25177 ;;
25178 esac
25179 fi
25180 ;;
25181
25182 os2*)
25183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25184 hardcode_minus_L_GCJ=yes
25185 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025186 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 +000025187 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25188 ;;
25189
25190 osf3*)
25191 if test "$GCC" = yes; then
25192 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25193 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'
25194 else
25195 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25196 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'
25197 fi
25198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25199 hardcode_libdir_separator_GCJ=:
25200 ;;
25201
25202 osf4* | osf5*) # as osf3* with the addition of -msym flag
25203 if test "$GCC" = yes; then
25204 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25205 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'
25206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25207 else
25208 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25209 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 +000025210 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 +000025211 $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 +000025212
John Criswell47fdd832003-07-14 16:52:07 +000025213 # Both c and cxx compiler support -rpath directly
25214 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25215 fi
25216 hardcode_libdir_separator_GCJ=:
25217 ;;
25218
John Criswell47fdd832003-07-14 16:52:07 +000025219 solaris*)
25220 no_undefined_flag_GCJ=' -z text'
25221 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025222 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025224 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25225 $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 +000025226 else
Reid Spencera773bd52006-08-04 18:18:08 +000025227 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025228 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025229 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25230 $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 +000025231 fi
25232 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233 hardcode_shlibpath_var_GCJ=no
25234 case $host_os in
25235 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025236 *)
25237 # The compiler driver will combine linker options so we
25238 # cannot just pass the convience library names through
25239 # without $wl, iff we do not link with $LD.
25240 # Luckily, gcc supports the same syntax we need for Sun Studio.
25241 # Supported since Solaris 2.6 (maybe 2.5.1?)
25242 case $wlarc in
25243 '')
25244 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25245 *)
25246 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' ;;
25247 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025248 esac
25249 link_all_deplibs_GCJ=yes
25250 ;;
25251
25252 sunos4*)
25253 if test "x$host_vendor" = xsequent; then
25254 # Use $CC to link under sequent, because it throws in some extra .o
25255 # files that make .init and .fini sections work.
25256 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25257 else
25258 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25259 fi
25260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25261 hardcode_direct_GCJ=yes
25262 hardcode_minus_L_GCJ=yes
25263 hardcode_shlibpath_var_GCJ=no
25264 ;;
25265
25266 sysv4)
25267 case $host_vendor in
25268 sni)
25269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25270 hardcode_direct_GCJ=yes # is this really true???
25271 ;;
25272 siemens)
25273 ## LD is ld it makes a PLAMLIB
25274 ## CC just makes a GrossModule.
25275 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25276 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25277 hardcode_direct_GCJ=no
25278 ;;
25279 motorola)
25280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25281 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25282 ;;
25283 esac
25284 runpath_var='LD_RUN_PATH'
25285 hardcode_shlibpath_var_GCJ=no
25286 ;;
25287
25288 sysv4.3*)
25289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25290 hardcode_shlibpath_var_GCJ=no
25291 export_dynamic_flag_spec_GCJ='-Bexport'
25292 ;;
25293
25294 sysv4*MP*)
25295 if test -d /usr/nec; then
25296 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25297 hardcode_shlibpath_var_GCJ=no
25298 runpath_var=LD_RUN_PATH
25299 hardcode_runpath_var=yes
25300 ld_shlibs_GCJ=yes
25301 fi
25302 ;;
25303
Reid Spencera773bd52006-08-04 18:18:08 +000025304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25305 no_undefined_flag_GCJ='${wl}-z,text'
25306 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025307 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025308 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025309
John Criswell47fdd832003-07-14 16:52:07 +000025310 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025311 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25312 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 +000025313 else
Reid Spencera773bd52006-08-04 18:18:08 +000025314 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25315 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 +000025316 fi
John Criswell47fdd832003-07-14 16:52:07 +000025317 ;;
25318
Reid Spencera773bd52006-08-04 18:18:08 +000025319 sysv5* | sco3.2v5* | sco5v6*)
25320 # Note: We can NOT use -z defs as we might desire, because we do not
25321 # link with -lc, and that would cause any symbols used from libc to
25322 # always be unresolved, which means just about no library would
25323 # ever link correctly. If we're not using GNU ld we use -z text
25324 # though, which does catch some bad symbols but isn't as heavy-handed
25325 # as -z defs.
25326 no_undefined_flag_GCJ='${wl}-z,text'
25327 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25328 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025329 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025330 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25331 hardcode_libdir_separator_GCJ=':'
25332 link_all_deplibs_GCJ=yes
25333 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025334 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025335
25336 if test "$GCC" = yes; then
25337 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25338 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25339 else
25340 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25341 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25342 fi
John Criswell47fdd832003-07-14 16:52:07 +000025343 ;;
25344
25345 uts4*)
25346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25348 hardcode_shlibpath_var_GCJ=no
25349 ;;
25350
25351 *)
25352 ld_shlibs_GCJ=no
25353 ;;
25354 esac
25355 fi
25356
Reid Spencera773bd52006-08-04 18:18:08 +000025357{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25358echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025359test "$ld_shlibs_GCJ" = no && can_build_shared=no
25360
John Criswell47fdd832003-07-14 16:52:07 +000025361#
25362# Do we need to explicitly link libc?
25363#
25364case "x$archive_cmds_need_lc_GCJ" in
25365x|xyes)
25366 # Assume -lc should be added
25367 archive_cmds_need_lc_GCJ=yes
25368
25369 if test "$enable_shared" = yes && test "$GCC" = yes; then
25370 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025371 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025372 # FIXME: we may have to deal with multi-command sequences.
25373 ;;
25374 '$CC '*)
25375 # Test whether the compiler implicitly links with -lc since on some
25376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25377 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025378 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25379echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025380 $rm conftest*
25381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25382
25383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25384 (eval $ac_compile) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } 2>conftest.err; then
25388 soname=conftest
25389 lib=conftest
25390 libobjs=conftest.$ac_objext
25391 deplibs=
25392 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025393 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025394 compiler_flags=-v
25395 linker_flags=-v
25396 verstring=
25397 output_objdir=.
25398 libname=conftest
25399 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25400 allow_undefined_flag_GCJ=
25401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25402 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }
25406 then
25407 archive_cmds_need_lc_GCJ=no
25408 else
25409 archive_cmds_need_lc_GCJ=yes
25410 fi
25411 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25412 else
25413 cat conftest.err 1>&5
25414 fi
25415 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025416 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25417echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025418 ;;
25419 esac
25420 fi
25421 ;;
25422esac
25423
Reid Spencera773bd52006-08-04 18:18:08 +000025424{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25425echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025426library_names_spec=
25427libname_spec='lib$name'
25428soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025429shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025430postinstall_cmds=
25431postuninstall_cmds=
25432finish_cmds=
25433finish_eval=
25434shlibpath_var=
25435shlibpath_overrides_runpath=unknown
25436version_type=none
25437dynamic_linker="$host_os ld.so"
25438sys_lib_dlsearch_path_spec="/lib /usr/lib"
25439if test "$GCC" = yes; then
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 ';' >/dev/null ; then
25442 # if the path contains ";" then we assume it to be the separator
25443 # otherwise default to the standard path separator (i.e. ":") - it is
25444 # assumed that no part of a normal pathname contains ";" but that should
25445 # okay in the real world where ";" in dirpaths is itself problematic.
25446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25447 else
25448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25449 fi
25450else
25451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25452fi
25453need_lib_prefix=unknown
25454hardcode_into_libs=no
25455
25456# when you set need_version to no, make sure it does not cause -set_version
25457# flags to be left without arguments
25458need_version=unknown
25459
25460case $host_os in
25461aix3*)
25462 version_type=linux
25463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25464 shlibpath_var=LIBPATH
25465
25466 # AIX 3 has no versioning support, so we append a major version to the name.
25467 soname_spec='${libname}${release}${shared_ext}$major'
25468 ;;
25469
25470aix4* | aix5*)
25471 version_type=linux
25472 need_lib_prefix=no
25473 need_version=no
25474 hardcode_into_libs=yes
25475 if test "$host_cpu" = ia64; then
25476 # AIX 5 supports IA64
25477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 else
25480 # With GCC up to 2.95.x, collect2 would create an import file
25481 # for dependence libraries. The import file would start with
25482 # the line `#! .'. This would cause the generated library to
25483 # depend on `.', always an invalid library. This was fixed in
25484 # development snapshots of GCC prior to 3.0.
25485 case $host_os in
25486 aix4 | aix4.[01] | aix4.[01].*)
25487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25488 echo ' yes '
25489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25490 :
25491 else
25492 can_build_shared=no
25493 fi
25494 ;;
25495 esac
25496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25497 # soname into executable. Probably we can add versioning support to
25498 # collect2, so additional links can be useful in future.
25499 if test "$aix_use_runtimelinking" = yes; then
25500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25501 # instead of lib<name>.a to let people know that these are not
25502 # typical AIX shared libraries.
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 else
25505 # We preserve .a as extension for shared libraries through AIX4.2
25506 # and later when we are not doing run time linking.
25507 library_names_spec='${libname}${release}.a $libname.a'
25508 soname_spec='${libname}${release}${shared_ext}$major'
25509 fi
25510 shlibpath_var=LIBPATH
25511 fi
25512 ;;
25513
25514amigaos*)
25515 library_names_spec='$libname.ixlibrary $libname.a'
25516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025517 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 +000025518 ;;
25519
25520beos*)
25521 library_names_spec='${libname}${shared_ext}'
25522 dynamic_linker="$host_os ld.so"
25523 shlibpath_var=LIBRARY_PATH
25524 ;;
25525
Reid Spencer2706f8c2004-09-19 23:53:36 +000025526bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025527 version_type=linux
25528 need_version=no
25529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25530 soname_spec='${libname}${release}${shared_ext}$major'
25531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25532 shlibpath_var=LD_LIBRARY_PATH
25533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25535 # the default ld.so.conf also contains /usr/contrib/lib and
25536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25537 # libtool to hard-code these into programs
25538 ;;
25539
25540cygwin* | mingw* | pw32*)
25541 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025542 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025543 need_version=no
25544 need_lib_prefix=no
25545
25546 case $GCC,$host_os in
25547 yes,cygwin* | yes,mingw* | yes,pw32*)
25548 library_names_spec='$libname.dll.a'
25549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025550 postinstall_cmds='base_file=`basename \${file}`~
25551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25552 dldir=$destdir/`dirname \$dlpath`~
25553 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025554 $install_prog $dir/$dlname \$dldir/$dlname~
25555 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25557 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025558 $rm \$dlpath'
25559 shlibpath_overrides_runpath=yes
25560
25561 case $host_os in
25562 cygwin*)
25563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25564 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 +000025565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025566 ;;
25567 mingw*)
25568 # MinGW DLLs use traditional 'lib' prefix
25569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25572 # It is most probably a Windows format PATH printed by
25573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25574 # path with ; separators, and with drive letters. We can handle the
25575 # drive letters (cygwin fileutils understands them), so leave them,
25576 # especially as we might pass files found there to a mingw objdump,
25577 # which wouldn't understand a cygwinified path. Ahh.
25578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25579 else
25580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25581 fi
25582 ;;
25583 pw32*)
25584 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025585 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 +000025586 ;;
25587 esac
25588 ;;
25589
25590 *)
25591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25592 ;;
25593 esac
25594 dynamic_linker='Win32 ld.exe'
25595 # FIXME: first we should search . and the directory the executable is in
25596 shlibpath_var=PATH
25597 ;;
25598
25599darwin* | rhapsody*)
25600 dynamic_linker="$host_os dyld"
25601 version_type=darwin
25602 need_lib_prefix=no
25603 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025605 soname_spec='${libname}${release}${major}$shared_ext'
25606 shlibpath_overrides_runpath=yes
25607 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025608 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025610 if test "$GCC" = yes; then
25611 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"`
25612 else
25613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025614 fi
25615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25616 ;;
25617
25618dgux*)
25619 version_type=linux
25620 need_lib_prefix=no
25621 need_version=no
25622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25623 soname_spec='${libname}${release}${shared_ext}$major'
25624 shlibpath_var=LD_LIBRARY_PATH
25625 ;;
25626
25627freebsd1*)
25628 dynamic_linker=no
25629 ;;
25630
Reid Spencer2706f8c2004-09-19 23:53:36 +000025631kfreebsd*-gnu)
25632 version_type=linux
25633 need_lib_prefix=no
25634 need_version=no
25635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 shlibpath_overrides_runpath=no
25639 hardcode_into_libs=yes
25640 dynamic_linker='GNU ld.so'
25641 ;;
25642
Reid Spencera773bd52006-08-04 18:18:08 +000025643freebsd* | dragonfly*)
25644 # DragonFly does not have aout. When/if they implement a new
25645 # versioning mechanism, adjust this.
25646 if test -x /usr/bin/objformat; then
25647 objformat=`/usr/bin/objformat`
25648 else
25649 case $host_os in
25650 freebsd[123]*) objformat=aout ;;
25651 *) objformat=elf ;;
25652 esac
25653 fi
John Criswell47fdd832003-07-14 16:52:07 +000025654 version_type=freebsd-$objformat
25655 case $version_type in
25656 freebsd-elf*)
25657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25658 need_version=no
25659 need_lib_prefix=no
25660 ;;
25661 freebsd-*)
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25663 need_version=yes
25664 ;;
25665 esac
25666 shlibpath_var=LD_LIBRARY_PATH
25667 case $host_os in
25668 freebsd2*)
25669 shlibpath_overrides_runpath=yes
25670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025671 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025672 shlibpath_overrides_runpath=yes
25673 hardcode_into_libs=yes
25674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025677 shlibpath_overrides_runpath=no
25678 hardcode_into_libs=yes
25679 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025680 freebsd*) # from 4.6 on
25681 shlibpath_overrides_runpath=yes
25682 hardcode_into_libs=yes
25683 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025684 esac
25685 ;;
25686
25687gnu*)
25688 version_type=linux
25689 need_lib_prefix=no
25690 need_version=no
25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25692 soname_spec='${libname}${release}${shared_ext}$major'
25693 shlibpath_var=LD_LIBRARY_PATH
25694 hardcode_into_libs=yes
25695 ;;
25696
25697hpux9* | hpux10* | hpux11*)
25698 # Give a soname corresponding to the major version so that dld.sl refuses to
25699 # link against other versions.
25700 version_type=sunos
25701 need_lib_prefix=no
25702 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025703 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025704 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025705 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025706 hardcode_into_libs=yes
25707 dynamic_linker="$host_os dld.so"
25708 shlibpath_var=LD_LIBRARY_PATH
25709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25711 soname_spec='${libname}${release}${shared_ext}$major'
25712 if test "X$HPUX_IA64_MODE" = X32; then
25713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25714 else
25715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25716 fi
25717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25718 ;;
25719 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025720 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025721 hardcode_into_libs=yes
25722 dynamic_linker="$host_os dld.sl"
25723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25729 ;;
25730 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025731 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025732 dynamic_linker="$host_os dld.sl"
25733 shlibpath_var=SHLIB_PATH
25734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25736 soname_spec='${libname}${release}${shared_ext}$major'
25737 ;;
25738 esac
25739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25740 postinstall_cmds='chmod 555 $lib'
25741 ;;
25742
Reid Spencera773bd52006-08-04 18:18:08 +000025743interix3*)
25744 version_type=linux
25745 need_lib_prefix=no
25746 need_version=no
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25750 shlibpath_var=LD_LIBRARY_PATH
25751 shlibpath_overrides_runpath=no
25752 hardcode_into_libs=yes
25753 ;;
25754
John Criswell47fdd832003-07-14 16:52:07 +000025755irix5* | irix6* | nonstopux*)
25756 case $host_os in
25757 nonstopux*) version_type=nonstopux ;;
25758 *)
25759 if test "$lt_cv_prog_gnu_ld" = yes; then
25760 version_type=linux
25761 else
25762 version_type=irix
25763 fi ;;
25764 esac
25765 need_lib_prefix=no
25766 need_version=no
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25769 case $host_os in
25770 irix5* | nonstopux*)
25771 libsuff= shlibsuff=
25772 ;;
25773 *)
25774 case $LD in # libtool.m4 will add one of these switches to LD
25775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25776 libsuff= shlibsuff= libmagic=32-bit;;
25777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25778 libsuff=32 shlibsuff=N32 libmagic=N32;;
25779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25781 *) libsuff= shlibsuff= libmagic=never-match;;
25782 esac
25783 ;;
25784 esac
25785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25786 shlibpath_overrides_runpath=no
25787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25789 hardcode_into_libs=yes
25790 ;;
25791
25792# No shared lib support for Linux oldld, aout, or coff.
25793linux*oldld* | linux*aout* | linux*coff*)
25794 dynamic_linker=no
25795 ;;
25796
25797# This must be Linux ELF.
25798linux*)
25799 version_type=linux
25800 need_lib_prefix=no
25801 need_version=no
25802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25803 soname_spec='${libname}${release}${shared_ext}$major'
25804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 shlibpath_overrides_runpath=no
25807 # This implies no fast_install, which is unacceptable.
25808 # Some rework will be needed to allow for fast_install
25809 # before this can be enabled.
25810 hardcode_into_libs=yes
25811
Reid Spencer2706f8c2004-09-19 23:53:36 +000025812 # Append ld.so.conf contents to the search path
25813 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025814 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 +000025815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25816 fi
25817
John Criswell47fdd832003-07-14 16:52:07 +000025818 # We used to test for /lib/ld.so.1 and disable shared libraries on
25819 # powerpc, because MkLinux only supported shared libraries with the
25820 # GNU dynamic linker. Since this was broken with cross compilers,
25821 # most powerpc-linux boxes support dynamic linking these days and
25822 # people can always --disable-shared, the test was removed, and we
25823 # assume the GNU/Linux dynamic linker is in use.
25824 dynamic_linker='GNU/Linux ld.so'
25825 ;;
25826
Reid Spencer2706f8c2004-09-19 23:53:36 +000025827knetbsd*-gnu)
25828 version_type=linux
25829 need_lib_prefix=no
25830 need_version=no
25831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25832 soname_spec='${libname}${release}${shared_ext}$major'
25833 shlibpath_var=LD_LIBRARY_PATH
25834 shlibpath_overrides_runpath=no
25835 hardcode_into_libs=yes
25836 dynamic_linker='GNU ld.so'
25837 ;;
25838
John Criswell47fdd832003-07-14 16:52:07 +000025839netbsd*)
25840 version_type=sunos
25841 need_lib_prefix=no
25842 need_version=no
25843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25846 dynamic_linker='NetBSD (a.out) ld.so'
25847 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025849 soname_spec='${libname}${release}${shared_ext}$major'
25850 dynamic_linker='NetBSD ld.elf_so'
25851 fi
25852 shlibpath_var=LD_LIBRARY_PATH
25853 shlibpath_overrides_runpath=yes
25854 hardcode_into_libs=yes
25855 ;;
25856
25857newsos6)
25858 version_type=linux
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860 shlibpath_var=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath=yes
25862 ;;
25863
Reid Spencer2706f8c2004-09-19 23:53:36 +000025864nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025865 version_type=linux
25866 need_lib_prefix=no
25867 need_version=no
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25869 soname_spec='${libname}${release}${shared_ext}$major'
25870 shlibpath_var=LD_LIBRARY_PATH
25871 shlibpath_overrides_runpath=yes
25872 ;;
25873
25874openbsd*)
25875 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025876 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025877 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25879 case $host_os in
25880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25881 *) need_version=no ;;
25882 esac
John Criswell47fdd832003-07-14 16:52:07 +000025883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25885 shlibpath_var=LD_LIBRARY_PATH
25886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25887 case $host_os in
25888 openbsd2.[89] | openbsd2.[89].*)
25889 shlibpath_overrides_runpath=no
25890 ;;
25891 *)
25892 shlibpath_overrides_runpath=yes
25893 ;;
25894 esac
25895 else
25896 shlibpath_overrides_runpath=yes
25897 fi
25898 ;;
25899
25900os2*)
25901 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025902 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025903 need_lib_prefix=no
25904 library_names_spec='$libname${shared_ext} $libname.a'
25905 dynamic_linker='OS/2 ld.exe'
25906 shlibpath_var=LIBPATH
25907 ;;
25908
25909osf3* | osf4* | osf5*)
25910 version_type=osf
25911 need_lib_prefix=no
25912 need_version=no
25913 soname_spec='${libname}${release}${shared_ext}$major'
25914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25915 shlibpath_var=LD_LIBRARY_PATH
25916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25918 ;;
25919
John Criswell47fdd832003-07-14 16:52:07 +000025920solaris*)
25921 version_type=linux
25922 need_lib_prefix=no
25923 need_version=no
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 shlibpath_var=LD_LIBRARY_PATH
25927 shlibpath_overrides_runpath=yes
25928 hardcode_into_libs=yes
25929 # ldd complains unless libraries are executable
25930 postinstall_cmds='chmod +x $lib'
25931 ;;
25932
25933sunos4*)
25934 version_type=sunos
25935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25937 shlibpath_var=LD_LIBRARY_PATH
25938 shlibpath_overrides_runpath=yes
25939 if test "$with_gnu_ld" = yes; then
25940 need_lib_prefix=no
25941 fi
25942 need_version=yes
25943 ;;
25944
Reid Spencera773bd52006-08-04 18:18:08 +000025945sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025946 version_type=linux
25947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25948 soname_spec='${libname}${release}${shared_ext}$major'
25949 shlibpath_var=LD_LIBRARY_PATH
25950 case $host_vendor in
25951 sni)
25952 shlibpath_overrides_runpath=no
25953 need_lib_prefix=no
25954 export_dynamic_flag_spec='${wl}-Blargedynsym'
25955 runpath_var=LD_RUN_PATH
25956 ;;
25957 siemens)
25958 need_lib_prefix=no
25959 ;;
25960 motorola)
25961 need_lib_prefix=no
25962 need_version=no
25963 shlibpath_overrides_runpath=no
25964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25965 ;;
25966 esac
25967 ;;
25968
25969sysv4*MP*)
25970 if test -d /usr/nec ;then
25971 version_type=linux
25972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25973 soname_spec='$libname${shared_ext}.$major'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 fi
25976 ;;
25977
Reid Spencera773bd52006-08-04 18:18:08 +000025978sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25979 version_type=freebsd-elf
25980 need_lib_prefix=no
25981 need_version=no
25982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25983 soname_spec='${libname}${release}${shared_ext}$major'
25984 shlibpath_var=LD_LIBRARY_PATH
25985 hardcode_into_libs=yes
25986 if test "$with_gnu_ld" = yes; then
25987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25988 shlibpath_overrides_runpath=no
25989 else
25990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25991 shlibpath_overrides_runpath=yes
25992 case $host_os in
25993 sco3.2v5*)
25994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25995 ;;
25996 esac
25997 fi
25998 sys_lib_dlsearch_path_spec='/usr/lib'
25999 ;;
26000
John Criswell47fdd832003-07-14 16:52:07 +000026001uts4*)
26002 version_type=linux
26003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26004 soname_spec='${libname}${release}${shared_ext}$major'
26005 shlibpath_var=LD_LIBRARY_PATH
26006 ;;
26007
26008*)
26009 dynamic_linker=no
26010 ;;
26011esac
Reid Spencera773bd52006-08-04 18:18:08 +000026012{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26013echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026014test "$dynamic_linker" = no && can_build_shared=no
26015
Reid Spencera773bd52006-08-04 18:18:08 +000026016variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26017if test "$GCC" = yes; then
26018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26019fi
26020
26021{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26022echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026023hardcode_action_GCJ=
26024if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26025 test -n "$runpath_var_GCJ" || \
26026 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26027
26028 # We can hardcode non-existant directories.
26029 if test "$hardcode_direct_GCJ" != no &&
26030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26031 # have to relink, otherwise we might link with an installed library
26032 # when we should be linking with a yet-to-be-installed one
26033 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26034 test "$hardcode_minus_L_GCJ" != no; then
26035 # Linking always hardcodes the temporary library directory.
26036 hardcode_action_GCJ=relink
26037 else
26038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26039 hardcode_action_GCJ=immediate
26040 fi
26041else
26042 # We cannot hardcode anything, or else we can only hardcode existing
26043 # directories.
26044 hardcode_action_GCJ=unsupported
26045fi
Reid Spencera773bd52006-08-04 18:18:08 +000026046{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26047echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026048
26049if test "$hardcode_action_GCJ" = relink; then
26050 # Fast installation is not supported
26051 enable_fast_install=no
26052elif test "$shlibpath_overrides_runpath" = yes ||
26053 test "$enable_shared" = no; then
26054 # Fast installation is not necessary
26055 enable_fast_install=needless
26056fi
26057
John Criswell47fdd832003-07-14 16:52:07 +000026058
26059# The else clause should only fire when bootstrapping the
26060# libtool distribution, otherwise you forgot to ship ltmain.sh
26061# with your package, and you will get complaints that there are
26062# no rules to generate ltmain.sh.
26063if test -f "$ltmain"; then
26064 # See if we are running on zsh, and set the options which allow our commands through
26065 # without removal of \ escapes.
26066 if test -n "${ZSH_VERSION+set}" ; then
26067 setopt NO_GLOB_SUBST
26068 fi
26069 # Now quote all the things that may contain metacharacters while being
26070 # careful not to overquote the AC_SUBSTed values. We take copies of the
26071 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026072 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 +000026073 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26076 deplibs_check_method reload_flag reload_cmds need_locks \
26077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26078 lt_cv_sys_global_symbol_to_c_name_address \
26079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26080 old_postinstall_cmds old_postuninstall_cmds \
26081 compiler_GCJ \
26082 CC_GCJ \
26083 LD_GCJ \
26084 lt_prog_compiler_wl_GCJ \
26085 lt_prog_compiler_pic_GCJ \
26086 lt_prog_compiler_static_GCJ \
26087 lt_prog_compiler_no_builtin_flag_GCJ \
26088 export_dynamic_flag_spec_GCJ \
26089 thread_safe_flag_spec_GCJ \
26090 whole_archive_flag_spec_GCJ \
26091 enable_shared_with_static_runtimes_GCJ \
26092 old_archive_cmds_GCJ \
26093 old_archive_from_new_cmds_GCJ \
26094 predep_objects_GCJ \
26095 postdep_objects_GCJ \
26096 predeps_GCJ \
26097 postdeps_GCJ \
26098 compiler_lib_search_path_GCJ \
26099 archive_cmds_GCJ \
26100 archive_expsym_cmds_GCJ \
26101 postinstall_cmds_GCJ \
26102 postuninstall_cmds_GCJ \
26103 old_archive_from_expsyms_cmds_GCJ \
26104 allow_undefined_flag_GCJ \
26105 no_undefined_flag_GCJ \
26106 export_symbols_cmds_GCJ \
26107 hardcode_libdir_flag_spec_GCJ \
26108 hardcode_libdir_flag_spec_ld_GCJ \
26109 hardcode_libdir_separator_GCJ \
26110 hardcode_automatic_GCJ \
26111 module_cmds_GCJ \
26112 module_expsym_cmds_GCJ \
26113 lt_cv_prog_compiler_c_o_GCJ \
26114 exclude_expsyms_GCJ \
26115 include_expsyms_GCJ; do
26116
26117 case $var in
26118 old_archive_cmds_GCJ | \
26119 old_archive_from_new_cmds_GCJ | \
26120 archive_cmds_GCJ | \
26121 archive_expsym_cmds_GCJ | \
26122 module_cmds_GCJ | \
26123 module_expsym_cmds_GCJ | \
26124 old_archive_from_expsyms_cmds_GCJ | \
26125 export_symbols_cmds_GCJ | \
26126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26127 postinstall_cmds | postuninstall_cmds | \
26128 old_postinstall_cmds | old_postuninstall_cmds | \
26129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26130 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026131 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 +000026132 ;;
26133 *)
26134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26135 ;;
26136 esac
26137 done
26138
26139 case $lt_echo in
26140 *'\$0 --fallback-echo"')
26141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26142 ;;
26143 esac
26144
26145cfgfile="$ofile"
26146
26147 cat <<__EOF__ >> "$cfgfile"
26148# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26149
26150# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26151
26152# Shell to use when invoking shell scripts.
26153SHELL=$lt_SHELL
26154
26155# Whether or not to build shared libraries.
26156build_libtool_libs=$enable_shared
26157
26158# Whether or not to build static libraries.
26159build_old_libs=$enable_static
26160
26161# Whether or not to add -lc for building shared libraries.
26162build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26163
26164# Whether or not to disallow shared libs when runtime libs are static
26165allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26166
26167# Whether or not to optimize for fast installation.
26168fast_install=$enable_fast_install
26169
26170# The host system.
26171host_alias=$host_alias
26172host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026173host_os=$host_os
26174
26175# The build system.
26176build_alias=$build_alias
26177build=$build
26178build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026179
26180# An echo program that does not interpret backslashes.
26181echo=$lt_echo
26182
26183# The archiver.
26184AR=$lt_AR
26185AR_FLAGS=$lt_AR_FLAGS
26186
26187# A C compiler.
26188LTCC=$lt_LTCC
26189
Reid Spencera773bd52006-08-04 18:18:08 +000026190# LTCC compiler flags.
26191LTCFLAGS=$lt_LTCFLAGS
26192
John Criswell47fdd832003-07-14 16:52:07 +000026193# A language-specific compiler.
26194CC=$lt_compiler_GCJ
26195
26196# Is the compiler the GNU C compiler?
26197with_gcc=$GCC_GCJ
26198
26199# An ERE matcher.
26200EGREP=$lt_EGREP
26201
26202# The linker used to build libraries.
26203LD=$lt_LD_GCJ
26204
26205# Whether we need hard or soft links.
26206LN_S=$lt_LN_S
26207
26208# A BSD-compatible nm program.
26209NM=$lt_NM
26210
26211# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026212STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026213
26214# Used to examine libraries when file_magic_cmd begins "file"
26215MAGIC_CMD=$MAGIC_CMD
26216
26217# Used on cygwin: DLL creation program.
26218DLLTOOL="$DLLTOOL"
26219
26220# Used on cygwin: object dumper.
26221OBJDUMP="$OBJDUMP"
26222
26223# Used on cygwin: assembler.
26224AS="$AS"
26225
26226# The name of the directory that contains temporary libtool files.
26227objdir=$objdir
26228
26229# How to create reloadable object files.
26230reload_flag=$lt_reload_flag
26231reload_cmds=$lt_reload_cmds
26232
26233# How to pass a linker flag through the compiler.
26234wl=$lt_lt_prog_compiler_wl_GCJ
26235
26236# Object file suffix (normally "o").
26237objext="$ac_objext"
26238
26239# Old archive suffix (normally "a").
26240libext="$libext"
26241
26242# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026243shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026244
26245# Executable file suffix (normally "").
26246exeext="$exeext"
26247
26248# Additional compiler flags for building library objects.
26249pic_flag=$lt_lt_prog_compiler_pic_GCJ
26250pic_mode=$pic_mode
26251
26252# What is the maximum length of a command?
26253max_cmd_len=$lt_cv_sys_max_cmd_len
26254
26255# Does compiler simultaneously support -c and -o options?
26256compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26257
Reid Spencera773bd52006-08-04 18:18:08 +000026258# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026259need_locks=$lt_need_locks
26260
26261# Do we need the lib prefix for modules?
26262need_lib_prefix=$need_lib_prefix
26263
26264# Do we need a version for libraries?
26265need_version=$need_version
26266
26267# Whether dlopen is supported.
26268dlopen_support=$enable_dlopen
26269
26270# Whether dlopen of programs is supported.
26271dlopen_self=$enable_dlopen_self
26272
26273# Whether dlopen of statically linked programs is supported.
26274dlopen_self_static=$enable_dlopen_self_static
26275
26276# Compiler flag to prevent dynamic linking.
26277link_static_flag=$lt_lt_prog_compiler_static_GCJ
26278
26279# Compiler flag to turn off builtin functions.
26280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26281
26282# Compiler flag to allow reflexive dlopens.
26283export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26284
26285# Compiler flag to generate shared objects directly from archives.
26286whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26287
26288# Compiler flag to generate thread-safe objects.
26289thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26290
26291# Library versioning type.
26292version_type=$version_type
26293
26294# Format of library name prefix.
26295libname_spec=$lt_libname_spec
26296
26297# List of archive names. First name is the real one, the rest are links.
26298# The last name is the one that the linker finds with -lNAME.
26299library_names_spec=$lt_library_names_spec
26300
26301# The coded name of the library, if different from the real name.
26302soname_spec=$lt_soname_spec
26303
26304# Commands used to build and install an old-style archive.
26305RANLIB=$lt_RANLIB
26306old_archive_cmds=$lt_old_archive_cmds_GCJ
26307old_postinstall_cmds=$lt_old_postinstall_cmds
26308old_postuninstall_cmds=$lt_old_postuninstall_cmds
26309
26310# Create an old-style archive from a shared archive.
26311old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26312
26313# Create a temporary old-style archive to link instead of a shared archive.
26314old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26315
26316# Commands used to build and install a shared archive.
26317archive_cmds=$lt_archive_cmds_GCJ
26318archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26319postinstall_cmds=$lt_postinstall_cmds
26320postuninstall_cmds=$lt_postuninstall_cmds
26321
26322# Commands used to build a loadable module (assumed same as above if empty)
26323module_cmds=$lt_module_cmds_GCJ
26324module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26325
26326# Commands to strip libraries.
26327old_striplib=$lt_old_striplib
26328striplib=$lt_striplib
26329
26330# Dependencies to place before the objects being linked to create a
26331# shared library.
26332predep_objects=$lt_predep_objects_GCJ
26333
26334# Dependencies to place after the objects being linked to create a
26335# shared library.
26336postdep_objects=$lt_postdep_objects_GCJ
26337
26338# Dependencies to place before the objects being linked to create a
26339# shared library.
26340predeps=$lt_predeps_GCJ
26341
26342# Dependencies to place after the objects being linked to create a
26343# shared library.
26344postdeps=$lt_postdeps_GCJ
26345
26346# The library search path used internally by the compiler when linking
26347# a shared library.
26348compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26349
26350# Method to check whether dependent libraries are shared objects.
26351deplibs_check_method=$lt_deplibs_check_method
26352
26353# Command to use when deplibs_check_method == file_magic.
26354file_magic_cmd=$lt_file_magic_cmd
26355
26356# Flag that allows shared libraries with undefined symbols to be built.
26357allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26358
26359# Flag that forces no undefined symbols.
26360no_undefined_flag=$lt_no_undefined_flag_GCJ
26361
26362# Commands used to finish a libtool library installation in a directory.
26363finish_cmds=$lt_finish_cmds
26364
26365# Same as above, but a single script fragment to be evaled but not shown.
26366finish_eval=$lt_finish_eval
26367
26368# Take the output of nm and produce a listing of raw symbols and C names.
26369global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26370
26371# Transform the output of nm in a proper C declaration
26372global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26373
26374# Transform the output of nm in a C name address pair
26375global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26376
26377# This is the shared library runtime path variable.
26378runpath_var=$runpath_var
26379
26380# This is the shared library path variable.
26381shlibpath_var=$shlibpath_var
26382
26383# Is shlibpath searched before the hard-coded library search path?
26384shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26385
26386# How to hardcode a shared library path into an executable.
26387hardcode_action=$hardcode_action_GCJ
26388
26389# Whether we should hardcode library paths into libraries.
26390hardcode_into_libs=$hardcode_into_libs
26391
26392# Flag to hardcode \$libdir into a binary during linking.
26393# This must work even if \$libdir does not exist.
26394hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26395
26396# If ld is used when linking, flag to hardcode \$libdir into
26397# a binary during linking. This must work even if \$libdir does
26398# not exist.
26399hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26400
26401# Whether we need a single -rpath flag with a separated argument.
26402hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26403
26404# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26405# resulting binary.
26406hardcode_direct=$hardcode_direct_GCJ
26407
26408# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26409# resulting binary.
26410hardcode_minus_L=$hardcode_minus_L_GCJ
26411
26412# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26413# the resulting binary.
26414hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26415
26416# Set to yes if building a shared library automatically hardcodes DIR into the library
26417# and all subsequent libraries and executables linked against it.
26418hardcode_automatic=$hardcode_automatic_GCJ
26419
26420# Variables whose values should be saved in libtool wrapper scripts and
26421# restored at relink time.
26422variables_saved_for_relink="$variables_saved_for_relink"
26423
26424# Whether libtool must link a program against all its dependency libraries.
26425link_all_deplibs=$link_all_deplibs_GCJ
26426
26427# Compile-time system search path for libraries
26428sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26429
26430# Run-time system search path for libraries
26431sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26432
26433# Fix the shell variable \$srcfile for the compiler.
26434fix_srcfile_path="$fix_srcfile_path_GCJ"
26435
26436# Set to yes if exported symbols are required.
26437always_export_symbols=$always_export_symbols_GCJ
26438
26439# The commands to list exported symbols.
26440export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26441
26442# The commands to extract the exported symbol list from a shared archive.
26443extract_expsyms_cmds=$lt_extract_expsyms_cmds
26444
26445# Symbols that should not be listed in the preloaded symbols.
26446exclude_expsyms=$lt_exclude_expsyms_GCJ
26447
26448# Symbols that must always be exported.
26449include_expsyms=$lt_include_expsyms_GCJ
26450
26451# ### END LIBTOOL TAG CONFIG: $tagname
26452
26453__EOF__
26454
26455
26456else
26457 # If there is no Makefile yet, we rely on a make rule to execute
26458 # `config.status --recheck' to rerun these tests and create the
26459 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26461 if test -f "$ltmain_in"; then
26462 test -f Makefile && make "$ltmain"
26463 fi
John Criswell47fdd832003-07-14 16:52:07 +000026464fi
26465
26466
26467ac_ext=c
26468ac_cpp='$CPP $CPPFLAGS'
26469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471ac_compiler_gnu=$ac_cv_c_compiler_gnu
26472
26473CC="$lt_save_CC"
26474
26475 else
26476 tagname=""
26477 fi
26478 ;;
26479
26480 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026481 ac_ext=c
26482ac_cpp='$CPP $CPPFLAGS'
26483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26485ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026486
26487
26488# Source file extension for RC test sources.
26489ac_ext=rc
26490
26491# Object file extension for compiled RC test sources.
26492objext=o
26493objext_RC=$objext
26494
26495# Code to be used in simple compile tests
26496lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26497
26498# Code to be used in simple link tests
26499lt_simple_link_test_code="$lt_simple_compile_test_code"
26500
26501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26502
26503# If no C compiler was specified, use CC.
26504LTCC=${LTCC-"$CC"}
26505
Reid Spencera773bd52006-08-04 18:18:08 +000026506# If no C compiler flags were specified, use CFLAGS.
26507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26508
John Criswell47fdd832003-07-14 16:52:07 +000026509# Allow CC to be a program name with arguments.
26510compiler=$CC
26511
26512
Reid Spencera773bd52006-08-04 18:18:08 +000026513# save warnings/boilerplate of simple test code
26514ac_outfile=conftest.$ac_objext
26515printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26517_lt_compiler_boilerplate=`cat conftest.err`
26518$rm conftest*
26519
26520ac_outfile=conftest.$ac_objext
26521printf "$lt_simple_link_test_code" >conftest.$ac_ext
26522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26523_lt_linker_boilerplate=`cat conftest.err`
26524$rm conftest*
26525
26526
John Criswell47fdd832003-07-14 16:52:07 +000026527# Allow CC to be a program name with arguments.
26528lt_save_CC="$CC"
26529CC=${RC-"windres"}
26530compiler=$CC
26531compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026532for cc_temp in $compiler""; do
26533 case $cc_temp in
26534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26536 \-*) ;;
26537 *) break;;
26538 esac
26539done
26540cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26541
John Criswell47fdd832003-07-14 16:52:07 +000026542lt_cv_prog_compiler_c_o_RC=yes
26543
26544# The else clause should only fire when bootstrapping the
26545# libtool distribution, otherwise you forgot to ship ltmain.sh
26546# with your package, and you will get complaints that there are
26547# no rules to generate ltmain.sh.
26548if test -f "$ltmain"; then
26549 # See if we are running on zsh, and set the options which allow our commands through
26550 # without removal of \ escapes.
26551 if test -n "${ZSH_VERSION+set}" ; then
26552 setopt NO_GLOB_SUBST
26553 fi
26554 # Now quote all the things that may contain metacharacters while being
26555 # careful not to overquote the AC_SUBSTed values. We take copies of the
26556 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026557 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 +000026558 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26561 deplibs_check_method reload_flag reload_cmds need_locks \
26562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26563 lt_cv_sys_global_symbol_to_c_name_address \
26564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26565 old_postinstall_cmds old_postuninstall_cmds \
26566 compiler_RC \
26567 CC_RC \
26568 LD_RC \
26569 lt_prog_compiler_wl_RC \
26570 lt_prog_compiler_pic_RC \
26571 lt_prog_compiler_static_RC \
26572 lt_prog_compiler_no_builtin_flag_RC \
26573 export_dynamic_flag_spec_RC \
26574 thread_safe_flag_spec_RC \
26575 whole_archive_flag_spec_RC \
26576 enable_shared_with_static_runtimes_RC \
26577 old_archive_cmds_RC \
26578 old_archive_from_new_cmds_RC \
26579 predep_objects_RC \
26580 postdep_objects_RC \
26581 predeps_RC \
26582 postdeps_RC \
26583 compiler_lib_search_path_RC \
26584 archive_cmds_RC \
26585 archive_expsym_cmds_RC \
26586 postinstall_cmds_RC \
26587 postuninstall_cmds_RC \
26588 old_archive_from_expsyms_cmds_RC \
26589 allow_undefined_flag_RC \
26590 no_undefined_flag_RC \
26591 export_symbols_cmds_RC \
26592 hardcode_libdir_flag_spec_RC \
26593 hardcode_libdir_flag_spec_ld_RC \
26594 hardcode_libdir_separator_RC \
26595 hardcode_automatic_RC \
26596 module_cmds_RC \
26597 module_expsym_cmds_RC \
26598 lt_cv_prog_compiler_c_o_RC \
26599 exclude_expsyms_RC \
26600 include_expsyms_RC; do
26601
26602 case $var in
26603 old_archive_cmds_RC | \
26604 old_archive_from_new_cmds_RC | \
26605 archive_cmds_RC | \
26606 archive_expsym_cmds_RC | \
26607 module_cmds_RC | \
26608 module_expsym_cmds_RC | \
26609 old_archive_from_expsyms_cmds_RC | \
26610 export_symbols_cmds_RC | \
26611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26612 postinstall_cmds | postuninstall_cmds | \
26613 old_postinstall_cmds | old_postuninstall_cmds | \
26614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26615 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026616 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 +000026617 ;;
26618 *)
26619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26620 ;;
26621 esac
26622 done
26623
26624 case $lt_echo in
26625 *'\$0 --fallback-echo"')
26626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26627 ;;
26628 esac
26629
26630cfgfile="$ofile"
26631
26632 cat <<__EOF__ >> "$cfgfile"
26633# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26634
26635# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26636
26637# Shell to use when invoking shell scripts.
26638SHELL=$lt_SHELL
26639
26640# Whether or not to build shared libraries.
26641build_libtool_libs=$enable_shared
26642
26643# Whether or not to build static libraries.
26644build_old_libs=$enable_static
26645
26646# Whether or not to add -lc for building shared libraries.
26647build_libtool_need_lc=$archive_cmds_need_lc_RC
26648
26649# Whether or not to disallow shared libs when runtime libs are static
26650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26651
26652# Whether or not to optimize for fast installation.
26653fast_install=$enable_fast_install
26654
26655# The host system.
26656host_alias=$host_alias
26657host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026658host_os=$host_os
26659
26660# The build system.
26661build_alias=$build_alias
26662build=$build
26663build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026664
26665# An echo program that does not interpret backslashes.
26666echo=$lt_echo
26667
26668# The archiver.
26669AR=$lt_AR
26670AR_FLAGS=$lt_AR_FLAGS
26671
26672# A C compiler.
26673LTCC=$lt_LTCC
26674
Reid Spencera773bd52006-08-04 18:18:08 +000026675# LTCC compiler flags.
26676LTCFLAGS=$lt_LTCFLAGS
26677
John Criswell47fdd832003-07-14 16:52:07 +000026678# A language-specific compiler.
26679CC=$lt_compiler_RC
26680
26681# Is the compiler the GNU C compiler?
26682with_gcc=$GCC_RC
26683
26684# An ERE matcher.
26685EGREP=$lt_EGREP
26686
26687# The linker used to build libraries.
26688LD=$lt_LD_RC
26689
26690# Whether we need hard or soft links.
26691LN_S=$lt_LN_S
26692
26693# A BSD-compatible nm program.
26694NM=$lt_NM
26695
26696# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026697STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026698
26699# Used to examine libraries when file_magic_cmd begins "file"
26700MAGIC_CMD=$MAGIC_CMD
26701
26702# Used on cygwin: DLL creation program.
26703DLLTOOL="$DLLTOOL"
26704
26705# Used on cygwin: object dumper.
26706OBJDUMP="$OBJDUMP"
26707
26708# Used on cygwin: assembler.
26709AS="$AS"
26710
26711# The name of the directory that contains temporary libtool files.
26712objdir=$objdir
26713
26714# How to create reloadable object files.
26715reload_flag=$lt_reload_flag
26716reload_cmds=$lt_reload_cmds
26717
26718# How to pass a linker flag through the compiler.
26719wl=$lt_lt_prog_compiler_wl_RC
26720
26721# Object file suffix (normally "o").
26722objext="$ac_objext"
26723
26724# Old archive suffix (normally "a").
26725libext="$libext"
26726
26727# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026728shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026729
26730# Executable file suffix (normally "").
26731exeext="$exeext"
26732
26733# Additional compiler flags for building library objects.
26734pic_flag=$lt_lt_prog_compiler_pic_RC
26735pic_mode=$pic_mode
26736
26737# What is the maximum length of a command?
26738max_cmd_len=$lt_cv_sys_max_cmd_len
26739
26740# Does compiler simultaneously support -c and -o options?
26741compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26742
Reid Spencera773bd52006-08-04 18:18:08 +000026743# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026744need_locks=$lt_need_locks
26745
26746# Do we need the lib prefix for modules?
26747need_lib_prefix=$need_lib_prefix
26748
26749# Do we need a version for libraries?
26750need_version=$need_version
26751
26752# Whether dlopen is supported.
26753dlopen_support=$enable_dlopen
26754
26755# Whether dlopen of programs is supported.
26756dlopen_self=$enable_dlopen_self
26757
26758# Whether dlopen of statically linked programs is supported.
26759dlopen_self_static=$enable_dlopen_self_static
26760
26761# Compiler flag to prevent dynamic linking.
26762link_static_flag=$lt_lt_prog_compiler_static_RC
26763
26764# Compiler flag to turn off builtin functions.
26765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26766
26767# Compiler flag to allow reflexive dlopens.
26768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26769
26770# Compiler flag to generate shared objects directly from archives.
26771whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26772
26773# Compiler flag to generate thread-safe objects.
26774thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26775
26776# Library versioning type.
26777version_type=$version_type
26778
26779# Format of library name prefix.
26780libname_spec=$lt_libname_spec
26781
26782# List of archive names. First name is the real one, the rest are links.
26783# The last name is the one that the linker finds with -lNAME.
26784library_names_spec=$lt_library_names_spec
26785
26786# The coded name of the library, if different from the real name.
26787soname_spec=$lt_soname_spec
26788
26789# Commands used to build and install an old-style archive.
26790RANLIB=$lt_RANLIB
26791old_archive_cmds=$lt_old_archive_cmds_RC
26792old_postinstall_cmds=$lt_old_postinstall_cmds
26793old_postuninstall_cmds=$lt_old_postuninstall_cmds
26794
26795# Create an old-style archive from a shared archive.
26796old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26797
26798# Create a temporary old-style archive to link instead of a shared archive.
26799old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26800
26801# Commands used to build and install a shared archive.
26802archive_cmds=$lt_archive_cmds_RC
26803archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26804postinstall_cmds=$lt_postinstall_cmds
26805postuninstall_cmds=$lt_postuninstall_cmds
26806
26807# Commands used to build a loadable module (assumed same as above if empty)
26808module_cmds=$lt_module_cmds_RC
26809module_expsym_cmds=$lt_module_expsym_cmds_RC
26810
26811# Commands to strip libraries.
26812old_striplib=$lt_old_striplib
26813striplib=$lt_striplib
26814
26815# Dependencies to place before the objects being linked to create a
26816# shared library.
26817predep_objects=$lt_predep_objects_RC
26818
26819# Dependencies to place after the objects being linked to create a
26820# shared library.
26821postdep_objects=$lt_postdep_objects_RC
26822
26823# Dependencies to place before the objects being linked to create a
26824# shared library.
26825predeps=$lt_predeps_RC
26826
26827# Dependencies to place after the objects being linked to create a
26828# shared library.
26829postdeps=$lt_postdeps_RC
26830
26831# The library search path used internally by the compiler when linking
26832# a shared library.
26833compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26834
26835# Method to check whether dependent libraries are shared objects.
26836deplibs_check_method=$lt_deplibs_check_method
26837
26838# Command to use when deplibs_check_method == file_magic.
26839file_magic_cmd=$lt_file_magic_cmd
26840
26841# Flag that allows shared libraries with undefined symbols to be built.
26842allow_undefined_flag=$lt_allow_undefined_flag_RC
26843
26844# Flag that forces no undefined symbols.
26845no_undefined_flag=$lt_no_undefined_flag_RC
26846
26847# Commands used to finish a libtool library installation in a directory.
26848finish_cmds=$lt_finish_cmds
26849
26850# Same as above, but a single script fragment to be evaled but not shown.
26851finish_eval=$lt_finish_eval
26852
26853# Take the output of nm and produce a listing of raw symbols and C names.
26854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26855
26856# Transform the output of nm in a proper C declaration
26857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26858
26859# Transform the output of nm in a C name address pair
26860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26861
26862# This is the shared library runtime path variable.
26863runpath_var=$runpath_var
26864
26865# This is the shared library path variable.
26866shlibpath_var=$shlibpath_var
26867
26868# Is shlibpath searched before the hard-coded library search path?
26869shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26870
26871# How to hardcode a shared library path into an executable.
26872hardcode_action=$hardcode_action_RC
26873
26874# Whether we should hardcode library paths into libraries.
26875hardcode_into_libs=$hardcode_into_libs
26876
26877# Flag to hardcode \$libdir into a binary during linking.
26878# This must work even if \$libdir does not exist.
26879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26880
26881# If ld is used when linking, flag to hardcode \$libdir into
26882# a binary during linking. This must work even if \$libdir does
26883# not exist.
26884hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26885
26886# Whether we need a single -rpath flag with a separated argument.
26887hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26888
26889# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26890# resulting binary.
26891hardcode_direct=$hardcode_direct_RC
26892
26893# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26894# resulting binary.
26895hardcode_minus_L=$hardcode_minus_L_RC
26896
26897# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26898# the resulting binary.
26899hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26900
26901# Set to yes if building a shared library automatically hardcodes DIR into the library
26902# and all subsequent libraries and executables linked against it.
26903hardcode_automatic=$hardcode_automatic_RC
26904
26905# Variables whose values should be saved in libtool wrapper scripts and
26906# restored at relink time.
26907variables_saved_for_relink="$variables_saved_for_relink"
26908
26909# Whether libtool must link a program against all its dependency libraries.
26910link_all_deplibs=$link_all_deplibs_RC
26911
26912# Compile-time system search path for libraries
26913sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26914
26915# Run-time system search path for libraries
26916sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26917
26918# Fix the shell variable \$srcfile for the compiler.
26919fix_srcfile_path="$fix_srcfile_path_RC"
26920
26921# Set to yes if exported symbols are required.
26922always_export_symbols=$always_export_symbols_RC
26923
26924# The commands to list exported symbols.
26925export_symbols_cmds=$lt_export_symbols_cmds_RC
26926
26927# The commands to extract the exported symbol list from a shared archive.
26928extract_expsyms_cmds=$lt_extract_expsyms_cmds
26929
26930# Symbols that should not be listed in the preloaded symbols.
26931exclude_expsyms=$lt_exclude_expsyms_RC
26932
26933# Symbols that must always be exported.
26934include_expsyms=$lt_include_expsyms_RC
26935
26936# ### END LIBTOOL TAG CONFIG: $tagname
26937
26938__EOF__
26939
26940
26941else
26942 # If there is no Makefile yet, we rely on a make rule to execute
26943 # `config.status --recheck' to rerun these tests and create the
26944 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26946 if test -f "$ltmain_in"; then
26947 test -f Makefile && make "$ltmain"
26948 fi
John Criswell47fdd832003-07-14 16:52:07 +000026949fi
26950
26951
26952ac_ext=c
26953ac_cpp='$CPP $CPPFLAGS'
26954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26956ac_compiler_gnu=$ac_cv_c_compiler_gnu
26957
26958CC="$lt_save_CC"
26959
26960 ;;
26961
26962 *)
26963 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26964echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26965 { (exit 1); exit 1; }; }
26966 ;;
26967 esac
26968
26969 # Append the new tag name to the list of available tags.
26970 if test -n "$tagname" ; then
26971 available_tags="$available_tags $tagname"
26972 fi
26973 fi
26974 done
26975 IFS="$lt_save_ifs"
26976
26977 # Now substitute the updated list of available tags.
26978 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26979 mv "${ofile}T" "$ofile"
26980 chmod +x "$ofile"
26981 else
26982 rm -f "${ofile}T"
26983 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26984echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26985 { (exit 1); exit 1; }; }
26986 fi
26987fi
John Criswell7a73b802003-06-30 21:59:07 +000026988
26989
26990
26991# This can be used to rebuild libtool when needed
26992LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26993
26994# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026995LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026996
26997# Prevent multiple expansion
26998
26999
27000
John Criswell47fdd832003-07-14 16:52:07 +000027001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027018
Reid Spencer582a23c2004-12-29 07:07:57 +000027019if test "$lt_cv_dlopen_self" = "yes" ; then
27020
27021cat >>confdefs.h <<\_ACEOF
27022#define CAN_DLOPEN_SELF 1
27023_ACEOF
27024
27025fi
27026
Reid Spencer7931a782004-12-27 06:15:02 +000027027if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027028 LLVMGCC="llvm-gcc${EXEEXT}"
27029 LLVMGXX="llvm-g++${EXEEXT}"
27030 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27031set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027034if test "${ac_cv_path_LLVMGCC+set}" = set; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27036else
27037 case $LLVMGCC in
27038 [\\/]* | ?:[\\/]*)
27039 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27040 ;;
27041 *)
27042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27043for as_dir in $PATH
27044do
27045 IFS=$as_save_IFS
27046 test -z "$as_dir" && as_dir=.
27047 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000027048 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 +000027049 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27051 break 2
27052 fi
27053done
27054done
Reid Spencera773bd52006-08-04 18:18:08 +000027055IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027056
Reid Spencer59473af2004-12-25 07:31:29 +000027057 ;;
27058esac
27059fi
27060LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027061if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027062 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27063echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027064else
Reid Spencera773bd52006-08-04 18:18:08 +000027065 { echo "$as_me:$LINENO: result: no" >&5
27066echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027067fi
27068
Reid Spencera773bd52006-08-04 18:18:08 +000027069
Reid Spencerc84492c2005-06-02 22:34:49 +000027070 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27071set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027074if test "${ac_cv_path_LLVMGXX+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076else
27077 case $LLVMGXX in
27078 [\\/]* | ?:[\\/]*)
27079 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27080 ;;
27081 *)
27082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27083for as_dir in $PATH
27084do
27085 IFS=$as_save_IFS
27086 test -z "$as_dir" && as_dir=.
27087 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000027088 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 +000027089 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27091 break 2
27092 fi
27093done
27094done
Reid Spencera773bd52006-08-04 18:18:08 +000027095IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027096
Reid Spencer59473af2004-12-25 07:31:29 +000027097 ;;
27098esac
27099fi
27100LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027101if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027102 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27103echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027104else
Reid Spencera773bd52006-08-04 18:18:08 +000027105 { echo "$as_me:$LINENO: result: no" >&5
27106echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027107fi
27108
Reid Spencera773bd52006-08-04 18:18:08 +000027109
Reid Spencer59473af2004-12-25 07:31:29 +000027110else
Devang Patel5d28b882007-12-04 22:54:47 +000027111 if test -z "$LLVMGCC"; then
27112 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27113 fi
27114 if test -z "$LLVMGXX"; then
27115 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27116 fi
Reid Spencer59473af2004-12-25 07:31:29 +000027117 LLVMGCC=$LLVMGCC
27118
27119 LLVMGXX=$LLVMGXX
27120
27121fi
27122
Reid Spencera773bd52006-08-04 18:18:08 +000027123{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27124echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027125
Reid Spencer86901802004-12-08 23:07:27 +000027126ICC=no
27127IXX=no
27128case $CC in
27129 icc*|icpc*)
27130 ICC=yes
27131 IXX=yes
27132 ;;
27133 *)
27134 ;;
27135esac
27136
Duraid Madina937c60a2006-02-15 07:57:42 +000027137if test "$GCC" != "yes" && test "$ICC" != "yes"
27138then
27139 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27140echo "$as_me: error: gcc|icc required but not found" >&2;}
27141 { (exit 1); exit 1; }; }
27142fi
27143
27144if test "$GXX" != "yes" && test "$IXX" != "yes"
27145then
27146 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27147echo "$as_me: error: g++|icc required but not found" >&2;}
27148 { (exit 1); exit 1; }; }
27149fi
27150
Reid Spencer86901802004-12-08 23:07:27 +000027151if test "$GCC" = "yes"
27152then
Chris Lattner399c7c72008-02-05 19:43:53 +000027153 cat >conftest.$ac_ext <<_ACEOF
27154#if !defined(__GNUC__) || __GNUC__ < 3
27155#error Unsupported GCC version
27156#endif
27157
27158_ACEOF
27159rm -f conftest.$ac_objext
27160if { (ac_try="$ac_compile"
27161case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164esac
27165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_compile") 2>conftest.er1
27167 ac_status=$?
27168 grep -v '^ *+' conftest.er1 >conftest.err
27169 rm -f conftest.er1
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } &&
27173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27174 { (case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27177esac
27178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_try") 2>&5
27180 ac_status=$?
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; } &&
27183 { ac_try='test -s conftest.$ac_objext'
27184 { (case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187esac
27188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_try") 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 :
27194else
27195 echo "$as_me: failed program was:" >&5
27196sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027199echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27200 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027201fi
27202
27203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027204fi
27205
27206if test -z "$llvm_cv_gnu_make_command"
27207then
27208 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27209echo "$as_me: error: GNU Make required but not found" >&2;}
27210 { (exit 1); exit 1; }; }
27211fi
27212
Reid Spencera773bd52006-08-04 18:18:08 +000027213{ echo "$as_me:$LINENO: result: ok" >&5
27214echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027215
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027216
John Criswell7a73b802003-06-30 21:59:07 +000027217
Reid Spencera773bd52006-08-04 18:18:08 +000027218{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27219echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027220if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27222else
27223 ac_check_lib_save_LIBS=$LIBS
27224LIBS="-lelf $LIBS"
27225cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027226/* confdefs.h. */
27227_ACEOF
27228cat confdefs.h >>conftest.$ac_ext
27229cat >>conftest.$ac_ext <<_ACEOF
27230/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027231
Reid Spencera773bd52006-08-04 18:18:08 +000027232/* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027235#ifdef __cplusplus
27236extern "C"
27237#endif
John Criswell7a73b802003-06-30 21:59:07 +000027238char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027239int
27240main ()
27241{
Reid Spencera773bd52006-08-04 18:18:08 +000027242return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027243 ;
27244 return 0;
27245}
27246_ACEOF
27247rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027248if { (ac_try="$ac_link"
27249case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027256 grep -v '^ *+' conftest.er1 >conftest.err
27257 rm -f conftest.er1
27258 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027260 (exit $ac_status); } &&
27261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27262 { (case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27265esac
27266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_try") 2>&5
27268 ac_status=$?
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); }; } &&
27271 { ac_try='test -s conftest$ac_exeext'
27272 { (case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27275esac
27276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_try") 2>&5
27278 ac_status=$?
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027281 ac_cv_lib_elf_elf_begin=yes
27282else
27283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027284sed 's/^/| /' conftest.$ac_ext >&5
27285
Reid Spencera773bd52006-08-04 18:18:08 +000027286 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027287fi
Reid Spencera773bd52006-08-04 18:18:08 +000027288
Tanya Lattnercf067672008-01-17 05:57:22 +000027289rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027290 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027291LIBS=$ac_check_lib_save_LIBS
27292fi
Reid Spencera773bd52006-08-04 18:18:08 +000027293{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27294echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027295if test $ac_cv_lib_elf_elf_begin = yes; then
27296 cat >>confdefs.h <<_ACEOF
27297#define HAVE_LIBELF 1
27298_ACEOF
27299
27300 LIBS="-lelf $LIBS"
27301
27302fi
27303
27304
Reid Spencera773bd52006-08-04 18:18:08 +000027305{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27306echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027307if test "${ac_cv_lib_m_sin+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27309else
27310 ac_check_lib_save_LIBS=$LIBS
27311LIBS="-lm $LIBS"
27312cat >conftest.$ac_ext <<_ACEOF
27313/* confdefs.h. */
27314_ACEOF
27315cat confdefs.h >>conftest.$ac_ext
27316cat >>conftest.$ac_ext <<_ACEOF
27317/* end confdefs.h. */
27318
Reid Spencera773bd52006-08-04 18:18:08 +000027319/* Override any GCC internal prototype to avoid an error.
27320 Use char because int might match the return type of a GCC
27321 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027322#ifdef __cplusplus
27323extern "C"
27324#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027325char sin ();
27326int
27327main ()
27328{
Reid Spencera773bd52006-08-04 18:18:08 +000027329return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027330 ;
27331 return 0;
27332}
27333_ACEOF
27334rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027335if { (ac_try="$ac_link"
27336case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339esac
27340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027342 ac_status=$?
27343 grep -v '^ *+' conftest.er1 >conftest.err
27344 rm -f conftest.er1
27345 cat conftest.err >&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027347 (exit $ac_status); } &&
27348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27349 { (case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27352esac
27353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_try") 2>&5
27355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest$ac_exeext'
27359 { (case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362esac
27363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_try") 2>&5
27365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027368 ac_cv_lib_m_sin=yes
27369else
27370 echo "$as_me: failed program was:" >&5
27371sed 's/^/| /' conftest.$ac_ext >&5
27372
Reid Spencera773bd52006-08-04 18:18:08 +000027373 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027374fi
Reid Spencera773bd52006-08-04 18:18:08 +000027375
Tanya Lattnercf067672008-01-17 05:57:22 +000027376rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027377 conftest$ac_exeext conftest.$ac_ext
27378LIBS=$ac_check_lib_save_LIBS
27379fi
Reid Spencera773bd52006-08-04 18:18:08 +000027380{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27381echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027382if test $ac_cv_lib_m_sin = yes; then
27383 cat >>confdefs.h <<_ACEOF
27384#define HAVE_LIBM 1
27385_ACEOF
27386
27387 LIBS="-lm $LIBS"
27388
27389fi
27390
Jeff Cohen28783c32007-01-12 18:22:38 +000027391if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027392
Reid Spencera773bd52006-08-04 18:18:08 +000027393{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27394echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027395if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027396 echo $ECHO_N "(cached) $ECHO_C" >&6
27397else
27398 ac_check_lib_save_LIBS=$LIBS
27399LIBS="-limagehlp $LIBS"
27400cat >conftest.$ac_ext <<_ACEOF
27401/* confdefs.h. */
27402_ACEOF
27403cat confdefs.h >>conftest.$ac_ext
27404cat >>conftest.$ac_ext <<_ACEOF
27405/* end confdefs.h. */
27406
Reid Spencer48fdf912006-06-01 19:03:21 +000027407
Reid Spencer484fc8e2006-06-01 16:55:59 +000027408int
27409main ()
27410{
Reid Spencera773bd52006-08-04 18:18:08 +000027411return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027412 ;
27413 return 0;
27414}
27415_ACEOF
27416rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027417if { (ac_try="$ac_link"
27418case "(($ac_try" in
27419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420 *) ac_try_echo=$ac_try;;
27421esac
27422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027424 ac_status=$?
27425 grep -v '^ *+' conftest.er1 >conftest.err
27426 rm -f conftest.er1
27427 cat conftest.err >&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027429 (exit $ac_status); } &&
27430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27431 { (case "(($ac_try" in
27432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433 *) ac_try_echo=$ac_try;;
27434esac
27435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436 (eval "$ac_try") 2>&5
27437 ac_status=$?
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; } &&
27440 { ac_try='test -s conftest$ac_exeext'
27441 { (case "(($ac_try" in
27442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27443 *) ac_try_echo=$ac_try;;
27444esac
27445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27446 (eval "$ac_try") 2>&5
27447 ac_status=$?
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027450 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027451else
27452 echo "$as_me: failed program was:" >&5
27453sed 's/^/| /' conftest.$ac_ext >&5
27454
Reid Spencera773bd52006-08-04 18:18:08 +000027455 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027456fi
Reid Spencera773bd52006-08-04 18:18:08 +000027457
Tanya Lattnercf067672008-01-17 05:57:22 +000027458rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027459 conftest$ac_exeext conftest.$ac_ext
27460LIBS=$ac_check_lib_save_LIBS
27461fi
Reid Spencera773bd52006-08-04 18:18:08 +000027462{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27463echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027464if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027465 cat >>confdefs.h <<_ACEOF
27466#define HAVE_LIBIMAGEHLP 1
27467_ACEOF
27468
27469 LIBS="-limagehlp $LIBS"
27470
27471fi
27472
27473
Reid Spencera773bd52006-08-04 18:18:08 +000027474{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27475echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027476if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027477 echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479 ac_check_lib_save_LIBS=$LIBS
27480LIBS="-lpsapi $LIBS"
27481cat >conftest.$ac_ext <<_ACEOF
27482/* confdefs.h. */
27483_ACEOF
27484cat confdefs.h >>conftest.$ac_ext
27485cat >>conftest.$ac_ext <<_ACEOF
27486/* end confdefs.h. */
27487
Reid Spencer48fdf912006-06-01 19:03:21 +000027488
Reid Spencer484fc8e2006-06-01 16:55:59 +000027489int
27490main ()
27491{
Reid Spencera773bd52006-08-04 18:18:08 +000027492return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027493 ;
27494 return 0;
27495}
27496_ACEOF
27497rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027498if { (ac_try="$ac_link"
27499case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27502esac
27503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027505 ac_status=$?
27506 grep -v '^ *+' conftest.er1 >conftest.err
27507 rm -f conftest.er1
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027510 (exit $ac_status); } &&
27511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27512 { (case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27515esac
27516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_try") 2>&5
27518 ac_status=$?
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; } &&
27521 { ac_try='test -s conftest$ac_exeext'
27522 { (case "(($ac_try" in
27523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27525esac
27526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527 (eval "$ac_try") 2>&5
27528 ac_status=$?
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027531 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027532else
27533 echo "$as_me: failed program was:" >&5
27534sed 's/^/| /' conftest.$ac_ext >&5
27535
Reid Spencera773bd52006-08-04 18:18:08 +000027536 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027537fi
Reid Spencera773bd52006-08-04 18:18:08 +000027538
Tanya Lattnercf067672008-01-17 05:57:22 +000027539rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027540 conftest$ac_exeext conftest.$ac_ext
27541LIBS=$ac_check_lib_save_LIBS
27542fi
Reid Spencera773bd52006-08-04 18:18:08 +000027543{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27544echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027545if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027546 cat >>confdefs.h <<_ACEOF
27547#define HAVE_LIBPSAPI 1
27548_ACEOF
27549
27550 LIBS="-lpsapi $LIBS"
27551
27552fi
27553
27554fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027555
Reid Spencera773bd52006-08-04 18:18:08 +000027556{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27557echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027558if test "${ac_cv_search_dlopen+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27560else
27561 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027562cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027563/* confdefs.h. */
27564_ACEOF
27565cat confdefs.h >>conftest.$ac_ext
27566cat >>conftest.$ac_ext <<_ACEOF
27567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027568
Reid Spencera773bd52006-08-04 18:18:08 +000027569/* Override any GCC internal prototype to avoid an error.
27570 Use char because int might match the return type of a GCC
27571 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027572#ifdef __cplusplus
27573extern "C"
27574#endif
John Criswell7a73b802003-06-30 21:59:07 +000027575char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027576int
27577main ()
27578{
Reid Spencera773bd52006-08-04 18:18:08 +000027579return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027580 ;
27581 return 0;
27582}
27583_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027584for ac_lib in '' dl; do
27585 if test -z "$ac_lib"; then
27586 ac_res="none required"
27587 else
27588 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027590 fi
27591 rm -f conftest.$ac_objext conftest$ac_exeext
27592if { (ac_try="$ac_link"
27593case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027600 grep -v '^ *+' conftest.er1 >conftest.err
27601 rm -f conftest.er1
27602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027604 (exit $ac_status); } &&
27605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609esac
27610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; } &&
27615 { ac_try='test -s conftest$ac_exeext'
27616 { (case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27619esac
27620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_try") 2>&5
27622 ac_status=$?
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027625 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027626else
27627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027628sed 's/^/| /' conftest.$ac_ext >&5
27629
Reid Spencera773bd52006-08-04 18:18:08 +000027630
John Criswell7a73b802003-06-30 21:59:07 +000027631fi
Reid Spencera773bd52006-08-04 18:18:08 +000027632
Tanya Lattnercf067672008-01-17 05:57:22 +000027633rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027634 conftest$ac_exeext
27635 if test "${ac_cv_search_dlopen+set}" = set; then
27636 break
John Criswell7a73b802003-06-30 21:59:07 +000027637fi
Reid Spencera773bd52006-08-04 18:18:08 +000027638done
27639if test "${ac_cv_search_dlopen+set}" = set; then
27640 :
27641else
27642 ac_cv_search_dlopen=no
27643fi
27644rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027645LIBS=$ac_func_search_save_LIBS
27646fi
Reid Spencera773bd52006-08-04 18:18:08 +000027647{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27648echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27649ac_res=$ac_cv_search_dlopen
27650if test "$ac_res" != no; then
27651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027652
27653cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027654#define HAVE_DLOPEN 1
27655_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027656
27657else
Brian Gaekec45be042003-10-07 06:01:34 +000027658 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27659echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027660fi
27661
27662
Reid Spencera773bd52006-08-04 18:18:08 +000027663{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27664echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027665if test "${ac_cv_search_mallinfo+set}" = set; then
27666 echo $ECHO_N "(cached) $ECHO_C" >&6
27667else
27668 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027669cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027670/* confdefs.h. */
27671_ACEOF
27672cat confdefs.h >>conftest.$ac_ext
27673cat >>conftest.$ac_ext <<_ACEOF
27674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027675
Reid Spencera773bd52006-08-04 18:18:08 +000027676/* Override any GCC internal prototype to avoid an error.
27677 Use char because int might match the return type of a GCC
27678 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027679#ifdef __cplusplus
27680extern "C"
27681#endif
John Criswell7a73b802003-06-30 21:59:07 +000027682char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027683int
27684main ()
27685{
Reid Spencera773bd52006-08-04 18:18:08 +000027686return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027687 ;
27688 return 0;
27689}
27690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027691for ac_lib in '' malloc; do
27692 if test -z "$ac_lib"; then
27693 ac_res="none required"
27694 else
27695 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027697 fi
27698 rm -f conftest.$ac_objext conftest$ac_exeext
27699if { (ac_try="$ac_link"
27700case "(($ac_try" in
27701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702 *) ac_try_echo=$ac_try;;
27703esac
27704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027707 grep -v '^ *+' conftest.er1 >conftest.err
27708 rm -f conftest.er1
27709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027711 (exit $ac_status); } &&
27712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27713 { (case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27716esac
27717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_try") 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; } &&
27722 { ac_try='test -s conftest$ac_exeext'
27723 { (case "(($ac_try" in
27724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725 *) ac_try_echo=$ac_try;;
27726esac
27727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728 (eval "$ac_try") 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027732 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027733else
27734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027735sed 's/^/| /' conftest.$ac_ext >&5
27736
Reid Spencera773bd52006-08-04 18:18:08 +000027737
John Criswell7a73b802003-06-30 21:59:07 +000027738fi
Reid Spencera773bd52006-08-04 18:18:08 +000027739
Tanya Lattnercf067672008-01-17 05:57:22 +000027740rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027741 conftest$ac_exeext
27742 if test "${ac_cv_search_mallinfo+set}" = set; then
27743 break
John Criswell7a73b802003-06-30 21:59:07 +000027744fi
Reid Spencera773bd52006-08-04 18:18:08 +000027745done
27746if test "${ac_cv_search_mallinfo+set}" = set; then
27747 :
27748else
27749 ac_cv_search_mallinfo=no
27750fi
27751rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027752LIBS=$ac_func_search_save_LIBS
27753fi
Reid Spencera773bd52006-08-04 18:18:08 +000027754{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27755echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27756ac_res=$ac_cv_search_mallinfo
27757if test "$ac_res" != no; then
27758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027759
27760cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027761#define HAVE_MALLINFO 1
27762_ACEOF
27763
27764fi
27765
27766
Reid Spencer0a262ba2005-08-24 10:07:20 +000027767if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027768
Reid Spencera773bd52006-08-04 18:18:08 +000027769{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27770echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027771if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27773else
27774 ac_check_lib_save_LIBS=$LIBS
27775LIBS="-lpthread $LIBS"
27776cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h. */
27782
Reid Spencera773bd52006-08-04 18:18:08 +000027783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027786#ifdef __cplusplus
27787extern "C"
27788#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027789char pthread_mutex_init ();
27790int
27791main ()
27792{
Reid Spencera773bd52006-08-04 18:18:08 +000027793return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027794 ;
27795 return 0;
27796}
27797_ACEOF
27798rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027799if { (ac_try="$ac_link"
27800case "(($ac_try" in
27801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27802 *) ac_try_echo=$ac_try;;
27803esac
27804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27805 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027806 ac_status=$?
27807 grep -v '^ *+' conftest.er1 >conftest.err
27808 rm -f conftest.er1
27809 cat conftest.err >&5
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027811 (exit $ac_status); } &&
27812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27813 { (case "(($ac_try" in
27814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27815 *) ac_try_echo=$ac_try;;
27816esac
27817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27818 (eval "$ac_try") 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest$ac_exeext'
27823 { (case "(($ac_try" in
27824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825 *) ac_try_echo=$ac_try;;
27826esac
27827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828 (eval "$ac_try") 2>&5
27829 ac_status=$?
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027832 ac_cv_lib_pthread_pthread_mutex_init=yes
27833else
27834 echo "$as_me: failed program was:" >&5
27835sed 's/^/| /' conftest.$ac_ext >&5
27836
Reid Spencera773bd52006-08-04 18:18:08 +000027837 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027838fi
Reid Spencera773bd52006-08-04 18:18:08 +000027839
Tanya Lattnercf067672008-01-17 05:57:22 +000027840rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027841 conftest$ac_exeext conftest.$ac_ext
27842LIBS=$ac_check_lib_save_LIBS
27843fi
Reid Spencera773bd52006-08-04 18:18:08 +000027844{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27845echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027846if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27847 cat >>confdefs.h <<_ACEOF
27848#define HAVE_LIBPTHREAD 1
27849_ACEOF
27850
27851 LIBS="-lpthread $LIBS"
27852
27853fi
27854
Reid Spencera773bd52006-08-04 18:18:08 +000027855 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27856echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027857if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27858 echo $ECHO_N "(cached) $ECHO_C" >&6
27859else
27860 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027861cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027862/* confdefs.h. */
27863_ACEOF
27864cat confdefs.h >>conftest.$ac_ext
27865cat >>conftest.$ac_ext <<_ACEOF
27866/* end confdefs.h. */
27867
Reid Spencera773bd52006-08-04 18:18:08 +000027868/* Override any GCC internal prototype to avoid an error.
27869 Use char because int might match the return type of a GCC
27870 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027871#ifdef __cplusplus
27872extern "C"
27873#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027874char pthread_mutex_lock ();
27875int
27876main ()
27877{
Reid Spencera773bd52006-08-04 18:18:08 +000027878return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027879 ;
27880 return 0;
27881}
27882_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027883for ac_lib in '' pthread; do
27884 if test -z "$ac_lib"; then
27885 ac_res="none required"
27886 else
27887 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027889 fi
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (ac_try="$ac_link"
27892case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27895esac
27896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027899 grep -v '^ *+' conftest.er1 >conftest.err
27900 rm -f conftest.er1
27901 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027903 (exit $ac_status); } &&
27904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27905 { (case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27908esac
27909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_try") 2>&5
27911 ac_status=$?
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; } &&
27914 { ac_try='test -s conftest$ac_exeext'
27915 { (case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27918esac
27919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_try") 2>&5
27921 ac_status=$?
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027924 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027925else
27926 echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
Reid Spencera773bd52006-08-04 18:18:08 +000027929
Brian Gaeke5f268f72003-12-05 19:29:01 +000027930fi
Reid Spencera773bd52006-08-04 18:18:08 +000027931
Tanya Lattnercf067672008-01-17 05:57:22 +000027932rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027933 conftest$ac_exeext
27934 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27935 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027936fi
Reid Spencera773bd52006-08-04 18:18:08 +000027937done
27938if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27939 :
27940else
27941 ac_cv_search_pthread_mutex_lock=no
27942fi
27943rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027944LIBS=$ac_func_search_save_LIBS
27945fi
Reid Spencera773bd52006-08-04 18:18:08 +000027946{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27947echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27948ac_res=$ac_cv_search_pthread_mutex_lock
27949if test "$ac_res" != no; then
27950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027951
John Criswell40468462004-09-24 21:19:06 +000027952cat >>confdefs.h <<\_ACEOF
27953#define HAVE_PTHREAD_MUTEX_LOCK 1
27954_ACEOF
27955
27956fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027957
Reid Spencer0a262ba2005-08-24 10:07:20 +000027958fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027959
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027960
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027961# Check whether --with-udis86 was given.
27962if test "${with_udis86+set}" = set; then
27963 withval=$with_udis86;
27964 USE_UDIS86=1
27965
27966 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027967 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027968 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27969 esac
27970
27971{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27972echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27973if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27974 echo $ECHO_N "(cached) $ECHO_C" >&6
27975else
27976 ac_check_lib_save_LIBS=$LIBS
27977LIBS="-ludis86 $LIBS"
27978cat >conftest.$ac_ext <<_ACEOF
27979/* confdefs.h. */
27980_ACEOF
27981cat confdefs.h >>conftest.$ac_ext
27982cat >>conftest.$ac_ext <<_ACEOF
27983/* end confdefs.h. */
27984
27985/* Override any GCC internal prototype to avoid an error.
27986 Use char because int might match the return type of a GCC
27987 builtin and then its argument prototype would still apply. */
27988#ifdef __cplusplus
27989extern "C"
27990#endif
27991char ud_init ();
27992int
27993main ()
27994{
27995return ud_init ();
27996 ;
27997 return 0;
27998}
27999_ACEOF
28000rm -f conftest.$ac_objext conftest$ac_exeext
28001if { (ac_try="$ac_link"
28002case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28005esac
28006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_link") 2>conftest.er1
28008 ac_status=$?
28009 grep -v '^ *+' conftest.er1 >conftest.err
28010 rm -f conftest.er1
28011 cat conftest.err >&5
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028013 (exit $ac_status); } &&
28014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28015 { (case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28018esac
28019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_try") 2>&5
28021 ac_status=$?
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; } &&
28024 { ac_try='test -s conftest$ac_exeext'
28025 { (case "(($ac_try" in
28026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027 *) ac_try_echo=$ac_try;;
28028esac
28029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030 (eval "$ac_try") 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028034 ac_cv_lib_udis86_ud_init=yes
28035else
28036 echo "$as_me: failed program was:" >&5
28037sed 's/^/| /' conftest.$ac_ext >&5
28038
28039 ac_cv_lib_udis86_ud_init=no
28040fi
28041
Tanya Lattnercf067672008-01-17 05:57:22 +000028042rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028043 conftest$ac_exeext conftest.$ac_ext
28044LIBS=$ac_check_lib_save_LIBS
28045fi
28046{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28047echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28048if test $ac_cv_lib_udis86_ud_init = yes; then
28049 cat >>confdefs.h <<_ACEOF
28050#define HAVE_LIBUDIS86 1
28051_ACEOF
28052
28053 LIBS="-ludis86 $LIBS"
28054
28055else
28056
28057 echo "Error! You need to have libudis86 around."
28058 exit -1
28059
28060fi
28061
28062
28063else
28064 USE_UDIS86=0
28065
28066fi
28067
28068
28069cat >>confdefs.h <<_ACEOF
28070#define USE_UDIS86 $USE_UDIS86
28071_ACEOF
28072
28073
28074
Reid Spencer59473af2004-12-25 07:31:29 +000028075
28076
28077
28078
28079
28080ac_header_dirent=no
28081for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28082 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028083{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28084echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028086 echo $ECHO_N "(cached) $ECHO_C" >&6
28087else
28088 cat >conftest.$ac_ext <<_ACEOF
28089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
28094#include <sys/types.h>
28095#include <$ac_hdr>
28096
28097int
28098main ()
28099{
28100if ((DIR *) 0)
28101return 0;
28102 ;
28103 return 0;
28104}
28105_ACEOF
28106rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028107if { (ac_try="$ac_compile"
28108case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28111esac
28112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028114 ac_status=$?
28115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28121 { (case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28124esac
28125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_try") 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest.$ac_objext'
28131 { (case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28134esac
28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_try") 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028140 eval "$as_ac_Header=yes"
28141else
28142 echo "$as_me: failed program was:" >&5
28143sed 's/^/| /' conftest.$ac_ext >&5
28144
Reid Spencera773bd52006-08-04 18:18:08 +000028145 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028146fi
Reid Spencera773bd52006-08-04 18:18:08 +000028147
28148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028149fi
Reid Spencera773bd52006-08-04 18:18:08 +000028150ac_res=`eval echo '${'$as_ac_Header'}'`
28151 { echo "$as_me:$LINENO: result: $ac_res" >&5
28152echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028153if test `eval echo '${'$as_ac_Header'}'` = yes; then
28154 cat >>confdefs.h <<_ACEOF
28155#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28156_ACEOF
28157
28158ac_header_dirent=$ac_hdr; break
28159fi
28160
28161done
28162# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28163if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028164 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28165echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028166if test "${ac_cv_search_opendir+set}" = set; then
28167 echo $ECHO_N "(cached) $ECHO_C" >&6
28168else
28169 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028170cat >conftest.$ac_ext <<_ACEOF
28171/* confdefs.h. */
28172_ACEOF
28173cat confdefs.h >>conftest.$ac_ext
28174cat >>conftest.$ac_ext <<_ACEOF
28175/* end confdefs.h. */
28176
Reid Spencera773bd52006-08-04 18:18:08 +000028177/* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028180#ifdef __cplusplus
28181extern "C"
28182#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028183char opendir ();
28184int
28185main ()
28186{
Reid Spencera773bd52006-08-04 18:18:08 +000028187return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028188 ;
28189 return 0;
28190}
28191_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028192for ac_lib in '' dir; do
28193 if test -z "$ac_lib"; then
28194 ac_res="none required"
28195 else
28196 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028198 fi
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200if { (ac_try="$ac_link"
28201case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28204esac
28205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028207 ac_status=$?
28208 grep -v '^ *+' conftest.er1 >conftest.err
28209 rm -f conftest.er1
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028212 (exit $ac_status); } &&
28213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28217esac
28218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; } &&
28223 { ac_try='test -s conftest$ac_exeext'
28224 { (case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227esac
28228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_try") 2>&5
28230 ac_status=$?
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028233 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028234else
28235 echo "$as_me: failed program was:" >&5
28236sed 's/^/| /' conftest.$ac_ext >&5
28237
Reid Spencera773bd52006-08-04 18:18:08 +000028238
Reid Spencer59473af2004-12-25 07:31:29 +000028239fi
Reid Spencera773bd52006-08-04 18:18:08 +000028240
Tanya Lattnercf067672008-01-17 05:57:22 +000028241rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028242 conftest$ac_exeext
28243 if test "${ac_cv_search_opendir+set}" = set; then
28244 break
Reid Spencer59473af2004-12-25 07:31:29 +000028245fi
Reid Spencera773bd52006-08-04 18:18:08 +000028246done
28247if test "${ac_cv_search_opendir+set}" = set; then
28248 :
28249else
28250 ac_cv_search_opendir=no
28251fi
28252rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028253LIBS=$ac_func_search_save_LIBS
28254fi
Reid Spencera773bd52006-08-04 18:18:08 +000028255{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28256echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28257ac_res=$ac_cv_search_opendir
28258if test "$ac_res" != no; then
28259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028260
28261fi
28262
28263else
Reid Spencera773bd52006-08-04 18:18:08 +000028264 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28265echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028266if test "${ac_cv_search_opendir+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268else
28269 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028270cat >conftest.$ac_ext <<_ACEOF
28271/* confdefs.h. */
28272_ACEOF
28273cat confdefs.h >>conftest.$ac_ext
28274cat >>conftest.$ac_ext <<_ACEOF
28275/* end confdefs.h. */
28276
Reid Spencera773bd52006-08-04 18:18:08 +000028277/* Override any GCC internal prototype to avoid an error.
28278 Use char because int might match the return type of a GCC
28279 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028280#ifdef __cplusplus
28281extern "C"
28282#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028283char opendir ();
28284int
28285main ()
28286{
Reid Spencera773bd52006-08-04 18:18:08 +000028287return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028288 ;
28289 return 0;
28290}
28291_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028292for ac_lib in '' x; do
28293 if test -z "$ac_lib"; then
28294 ac_res="none required"
28295 else
28296 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028298 fi
28299 rm -f conftest.$ac_objext conftest$ac_exeext
28300if { (ac_try="$ac_link"
28301case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28304esac
28305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028307 ac_status=$?
28308 grep -v '^ *+' conftest.er1 >conftest.err
28309 rm -f conftest.er1
28310 cat conftest.err >&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028312 (exit $ac_status); } &&
28313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28314 { (case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28317esac
28318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_try") 2>&5
28320 ac_status=$?
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; } &&
28323 { ac_try='test -s conftest$ac_exeext'
28324 { (case "(($ac_try" in
28325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326 *) ac_try_echo=$ac_try;;
28327esac
28328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329 (eval "$ac_try") 2>&5
28330 ac_status=$?
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028333 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028334else
28335 echo "$as_me: failed program was:" >&5
28336sed 's/^/| /' conftest.$ac_ext >&5
28337
Reid Spencera773bd52006-08-04 18:18:08 +000028338
Reid Spencer59473af2004-12-25 07:31:29 +000028339fi
Reid Spencera773bd52006-08-04 18:18:08 +000028340
Tanya Lattnercf067672008-01-17 05:57:22 +000028341rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028342 conftest$ac_exeext
28343 if test "${ac_cv_search_opendir+set}" = set; then
28344 break
Reid Spencer59473af2004-12-25 07:31:29 +000028345fi
Reid Spencera773bd52006-08-04 18:18:08 +000028346done
28347if test "${ac_cv_search_opendir+set}" = set; then
28348 :
28349else
28350 ac_cv_search_opendir=no
28351fi
28352rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028353LIBS=$ac_func_search_save_LIBS
28354fi
Reid Spencera773bd52006-08-04 18:18:08 +000028355{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28356echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28357ac_res=$ac_cv_search_opendir
28358if test "$ac_res" != no; then
28359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028360
28361fi
28362
28363fi
28364
Reid Spencera773bd52006-08-04 18:18:08 +000028365{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28366echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028367if test "${ac_cv_header_mmap_anon+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28369else
28370 ac_ext=c
28371ac_cpp='$CPP $CPPFLAGS'
28372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374ac_compiler_gnu=$ac_cv_c_compiler_gnu
28375
28376 cat >conftest.$ac_ext <<_ACEOF
28377/* confdefs.h. */
28378_ACEOF
28379cat confdefs.h >>conftest.$ac_ext
28380cat >>conftest.$ac_ext <<_ACEOF
28381/* end confdefs.h. */
28382#include <sys/mman.h>
28383#include <unistd.h>
28384#include <fcntl.h>
28385int
28386main ()
28387{
28388mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28389 ;
28390 return 0;
28391}
28392_ACEOF
28393rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028394if { (ac_try="$ac_compile"
28395case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28398esac
28399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28400 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028401 ac_status=$?
28402 grep -v '^ *+' conftest.er1 >conftest.err
28403 rm -f conftest.er1
28404 cat conftest.err >&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028406 (exit $ac_status); } &&
28407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28408 { (case "(($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_try") 2>&5
28414 ac_status=$?
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; } &&
28417 { ac_try='test -s conftest.$ac_objext'
28418 { (case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28421esac
28422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_try") 2>&5
28424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028427 ac_cv_header_mmap_anon=yes
28428else
28429 echo "$as_me: failed program was:" >&5
28430sed 's/^/| /' conftest.$ac_ext >&5
28431
Reid Spencera773bd52006-08-04 18:18:08 +000028432 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028433fi
Reid Spencera773bd52006-08-04 18:18:08 +000028434
28435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028436 ac_ext=c
28437ac_cpp='$CPP $CPPFLAGS'
28438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28440ac_compiler_gnu=$ac_cv_c_compiler_gnu
28441
28442
28443fi
Reid Spencera773bd52006-08-04 18:18:08 +000028444{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28445echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028446if test "$ac_cv_header_mmap_anon" = yes; then
28447
28448cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028449#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028450_ACEOF
28451
28452fi
28453
Reid Spencera773bd52006-08-04 18:18:08 +000028454{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28455echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028456if test "${ac_cv_header_stat_broken+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28458else
28459 cat >conftest.$ac_ext <<_ACEOF
28460/* confdefs.h. */
28461_ACEOF
28462cat confdefs.h >>conftest.$ac_ext
28463cat >>conftest.$ac_ext <<_ACEOF
28464/* end confdefs.h. */
28465#include <sys/types.h>
28466#include <sys/stat.h>
28467
Reid Spencera773bd52006-08-04 18:18:08 +000028468#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028469# if S_ISBLK (S_IFDIR)
28470You lose.
28471# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028472#endif
28473
Reid Spencera773bd52006-08-04 18:18:08 +000028474#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028475# if S_ISBLK (S_IFCHR)
28476You lose.
28477# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028478#endif
28479
Reid Spencera773bd52006-08-04 18:18:08 +000028480#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028481# if S_ISLNK (S_IFREG)
28482You lose.
28483# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028484#endif
28485
Reid Spencera773bd52006-08-04 18:18:08 +000028486#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028487# if S_ISSOCK (S_IFREG)
28488You lose.
28489# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028490#endif
28491
28492_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28494 $EGREP "You lose" >/dev/null 2>&1; then
28495 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028496else
Tanya Lattnercf067672008-01-17 05:57:22 +000028497 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028498fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028499rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028500
Reid Spencer59473af2004-12-25 07:31:29 +000028501fi
Reid Spencera773bd52006-08-04 18:18:08 +000028502{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28503echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028504if test $ac_cv_header_stat_broken = yes; then
28505
28506cat >>confdefs.h <<\_ACEOF
28507#define STAT_MACROS_BROKEN 1
28508_ACEOF
28509
28510fi
28511
Reid Spencera773bd52006-08-04 18:18:08 +000028512{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28513echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028514if test "${ac_cv_header_stdc+set}" = set; then
28515 echo $ECHO_N "(cached) $ECHO_C" >&6
28516else
28517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028518/* confdefs.h. */
28519_ACEOF
28520cat confdefs.h >>conftest.$ac_ext
28521cat >>conftest.$ac_ext <<_ACEOF
28522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028523#include <stdlib.h>
28524#include <stdarg.h>
28525#include <string.h>
28526#include <float.h>
28527
John Criswell0c38eaf2003-09-10 15:17:25 +000028528int
28529main ()
28530{
28531
28532 ;
28533 return 0;
28534}
John Criswell7a73b802003-06-30 21:59:07 +000028535_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028536rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028537if { (ac_try="$ac_compile"
28538case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28541esac
28542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028545 grep -v '^ *+' conftest.er1 >conftest.err
28546 rm -f conftest.er1
28547 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028549 (exit $ac_status); } &&
28550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28551 { (case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28554esac
28555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_try") 2>&5
28557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest.$ac_objext'
28561 { (case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28564esac
28565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_try") 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028570 ac_cv_header_stdc=yes
28571else
28572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028573sed 's/^/| /' conftest.$ac_ext >&5
28574
Reid Spencera773bd52006-08-04 18:18:08 +000028575 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028576fi
Reid Spencera773bd52006-08-04 18:18:08 +000028577
28578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028579
28580if test $ac_cv_header_stdc = yes; then
28581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028588#include <string.h>
28589
28590_ACEOF
28591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028592 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028593 :
28594else
28595 ac_cv_header_stdc=no
28596fi
28597rm -f conftest*
28598
28599fi
28600
28601if test $ac_cv_header_stdc = yes; then
28602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028604/* confdefs.h. */
28605_ACEOF
28606cat confdefs.h >>conftest.$ac_ext
28607cat >>conftest.$ac_ext <<_ACEOF
28608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028609#include <stdlib.h>
28610
28611_ACEOF
28612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028613 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028614 :
28615else
28616 ac_cv_header_stdc=no
28617fi
28618rm -f conftest*
28619
28620fi
28621
28622if test $ac_cv_header_stdc = yes; then
28623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28624 if test "$cross_compiling" = yes; then
28625 :
28626else
28627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028628/* confdefs.h. */
28629_ACEOF
28630cat confdefs.h >>conftest.$ac_ext
28631cat >>conftest.$ac_ext <<_ACEOF
28632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028633#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028634#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028635#if ((' ' & 0x0FF) == 0x020)
28636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28638#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028639# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028640 (('a' <= (c) && (c) <= 'i') \
28641 || ('j' <= (c) && (c) <= 'r') \
28642 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28644#endif
28645
28646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28647int
28648main ()
28649{
28650 int i;
28651 for (i = 0; i < 256; i++)
28652 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028653 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028654 return 2;
28655 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028656}
28657_ACEOF
28658rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028659if { (ac_try="$ac_link"
28660case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28663esac
28664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028669 { (case "(($ac_try" in
28670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671 *) ac_try_echo=$ac_try;;
28672esac
28673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028675 ac_status=$?
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); }; }; then
28678 :
28679else
28680 echo "$as_me: program exited with status $ac_status" >&5
28681echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028682sed 's/^/| /' conftest.$ac_ext >&5
28683
John Criswell7a73b802003-06-30 21:59:07 +000028684( exit $ac_status )
28685ac_cv_header_stdc=no
28686fi
Reid Spencera773bd52006-08-04 18:18:08 +000028687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28688fi
28689
28690
John Criswell7a73b802003-06-30 21:59:07 +000028691fi
28692fi
Reid Spencera773bd52006-08-04 18:18:08 +000028693{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28694echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028695if test $ac_cv_header_stdc = yes; then
28696
28697cat >>confdefs.h <<\_ACEOF
28698#define STDC_HEADERS 1
28699_ACEOF
28700
28701fi
28702
Reid Spencera773bd52006-08-04 18:18:08 +000028703{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28704echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028705if test "${ac_cv_header_sys_wait_h+set}" = set; then
28706 echo $ECHO_N "(cached) $ECHO_C" >&6
28707else
28708 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028709/* confdefs.h. */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
28713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028714#include <sys/types.h>
28715#include <sys/wait.h>
28716#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028717# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028718#endif
28719#ifndef WIFEXITED
28720# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28721#endif
28722
John Criswell7a73b802003-06-30 21:59:07 +000028723int
28724main ()
28725{
28726 int s;
28727 wait (&s);
28728 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28729 ;
28730 return 0;
28731}
28732_ACEOF
28733rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028734if { (ac_try="$ac_compile"
28735case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28738esac
28739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028741 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028742 grep -v '^ *+' conftest.er1 >conftest.err
28743 rm -f conftest.er1
28744 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028746 (exit $ac_status); } &&
28747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28748 { (case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28751esac
28752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_try") 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest.$ac_objext'
28758 { (case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28761esac
28762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_try") 2>&5
28764 ac_status=$?
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028767 ac_cv_header_sys_wait_h=yes
28768else
28769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028770sed 's/^/| /' conftest.$ac_ext >&5
28771
Reid Spencera773bd52006-08-04 18:18:08 +000028772 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028773fi
Reid Spencera773bd52006-08-04 18:18:08 +000028774
28775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028776fi
Reid Spencera773bd52006-08-04 18:18:08 +000028777{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28778echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028779if test $ac_cv_header_sys_wait_h = yes; then
28780
28781cat >>confdefs.h <<\_ACEOF
28782#define HAVE_SYS_WAIT_H 1
28783_ACEOF
28784
28785fi
28786
Reid Spencera773bd52006-08-04 18:18:08 +000028787{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28788echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028789if test "${ac_cv_header_time+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
28792 cat >conftest.$ac_ext <<_ACEOF
28793/* confdefs.h. */
28794_ACEOF
28795cat confdefs.h >>conftest.$ac_ext
28796cat >>conftest.$ac_ext <<_ACEOF
28797/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028798#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028799#include <sys/time.h>
28800#include <time.h>
28801
28802int
28803main ()
28804{
28805if ((struct tm *) 0)
28806return 0;
28807 ;
28808 return 0;
28809}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028810_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028811rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028812if { (ac_try="$ac_compile"
28813case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28816esac
28817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028819 ac_status=$?
28820 grep -v '^ *+' conftest.er1 >conftest.err
28821 rm -f conftest.er1
28822 cat conftest.err >&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028824 (exit $ac_status); } &&
28825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28826 { (case "(($ac_try" in
28827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828 *) ac_try_echo=$ac_try;;
28829esac
28830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831 (eval "$ac_try") 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest.$ac_objext'
28836 { (case "(($ac_try" in
28837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 *) ac_try_echo=$ac_try;;
28839esac
28840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841 (eval "$ac_try") 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028845 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028846else
28847 echo "$as_me: failed program was:" >&5
28848sed 's/^/| /' conftest.$ac_ext >&5
28849
Reid Spencera773bd52006-08-04 18:18:08 +000028850 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028851fi
Reid Spencera773bd52006-08-04 18:18:08 +000028852
28853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028854fi
Reid Spencera773bd52006-08-04 18:18:08 +000028855{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28856echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028857if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028858
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028859cat >>confdefs.h <<\_ACEOF
28860#define TIME_WITH_SYS_TIME 1
28861_ACEOF
28862
28863fi
28864
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028865
Reid Spencer59473af2004-12-25 07:31:29 +000028866
28867
28868
28869
28870
28871
28872for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28873do
28874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028879 echo $ECHO_N "(cached) $ECHO_C" >&6
28880fi
Reid Spencera773bd52006-08-04 18:18:08 +000028881ac_res=`eval echo '${'$as_ac_Header'}'`
28882 { echo "$as_me:$LINENO: result: $ac_res" >&5
28883echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028884else
28885 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028886{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028888cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028889/* confdefs.h. */
28890_ACEOF
28891cat confdefs.h >>conftest.$ac_ext
28892cat >>conftest.$ac_ext <<_ACEOF
28893/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028894$ac_includes_default
28895#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028896_ACEOF
28897rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028898if { (ac_try="$ac_compile"
28899case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28902esac
28903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028905 ac_status=$?
28906 grep -v '^ *+' conftest.er1 >conftest.err
28907 rm -f conftest.er1
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028910 (exit $ac_status); } &&
28911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28912 { (case "(($ac_try" in
28913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914 *) ac_try_echo=$ac_try;;
28915esac
28916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917 (eval "$ac_try") 2>&5
28918 ac_status=$?
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; } &&
28921 { ac_try='test -s conftest.$ac_objext'
28922 { (case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28925esac
28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_try") 2>&5
28928 ac_status=$?
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028931 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028932else
28933 echo "$as_me: failed program was:" >&5
28934sed 's/^/| /' conftest.$ac_ext >&5
28935
Reid Spencera773bd52006-08-04 18:18:08 +000028936 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028937fi
Reid Spencera773bd52006-08-04 18:18:08 +000028938
28939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28940{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28941echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028942
Reid Spencer59473af2004-12-25 07:31:29 +000028943# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028944{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028946cat >conftest.$ac_ext <<_ACEOF
28947/* confdefs.h. */
28948_ACEOF
28949cat confdefs.h >>conftest.$ac_ext
28950cat >>conftest.$ac_ext <<_ACEOF
28951/* end confdefs.h. */
28952#include <$ac_header>
28953_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028954if { (ac_try="$ac_cpp conftest.$ac_ext"
28955case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28958esac
28959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028961 ac_status=$?
28962 grep -v '^ *+' conftest.er1 >conftest.err
28963 rm -f conftest.er1
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028966 (exit $ac_status); } >/dev/null; then
28967 if test -s conftest.err; then
28968 ac_cpp_err=$ac_c_preproc_warn_flag
28969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28970 else
28971 ac_cpp_err=
28972 fi
28973else
28974 ac_cpp_err=yes
28975fi
28976if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028977 ac_header_preproc=yes
28978else
28979 echo "$as_me: failed program was:" >&5
28980sed 's/^/| /' conftest.$ac_ext >&5
28981
28982 ac_header_preproc=no
28983fi
Reid Spencera773bd52006-08-04 18:18:08 +000028984
Reid Spencer59473af2004-12-25 07:31:29 +000028985rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028986{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28987echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028988
28989# So? What about this header?
28990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28991 yes:no: )
28992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28996 ac_header_preproc=yes
28997 ;;
28998 no:yes:* )
28999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029011 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029012## ----------------------------------- ##
29013## Report this to llvmbugs@cs.uiuc.edu ##
29014## ----------------------------------- ##
29015_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029016 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029017 ;;
29018esac
Reid Spencera773bd52006-08-04 18:18:08 +000029019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029022 echo $ECHO_N "(cached) $ECHO_C" >&6
29023else
29024 eval "$as_ac_Header=\$ac_header_preproc"
29025fi
Reid Spencera773bd52006-08-04 18:18:08 +000029026ac_res=`eval echo '${'$as_ac_Header'}'`
29027 { echo "$as_me:$LINENO: result: $ac_res" >&5
29028echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029029
29030fi
Reid Spencer59473af2004-12-25 07:31:29 +000029031if test `eval echo '${'$as_ac_Header'}'` = yes; then
29032 cat >>confdefs.h <<_ACEOF
29033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029034_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029035
29036fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029037
Reid Spencer59473af2004-12-25 07:31:29 +000029038done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029039
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029040
29041
Reid Spencer59473af2004-12-25 07:31:29 +000029042
29043
29044
29045
Reid Spencercdb08a32006-06-05 16:11:07 +000029046for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000029047do
29048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029053 echo $ECHO_N "(cached) $ECHO_C" >&6
29054fi
Reid Spencera773bd52006-08-04 18:18:08 +000029055ac_res=`eval echo '${'$as_ac_Header'}'`
29056 { echo "$as_me:$LINENO: result: $ac_res" >&5
29057echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029058else
29059 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029062cat >conftest.$ac_ext <<_ACEOF
29063/* confdefs.h. */
29064_ACEOF
29065cat confdefs.h >>conftest.$ac_ext
29066cat >>conftest.$ac_ext <<_ACEOF
29067/* end confdefs.h. */
29068$ac_includes_default
29069#include <$ac_header>
29070_ACEOF
29071rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029072if { (ac_try="$ac_compile"
29073case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29076esac
29077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029079 ac_status=$?
29080 grep -v '^ *+' conftest.er1 >conftest.err
29081 rm -f conftest.er1
29082 cat conftest.err >&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029084 (exit $ac_status); } &&
29085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29086 { (case "(($ac_try" in
29087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088 *) ac_try_echo=$ac_try;;
29089esac
29090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091 (eval "$ac_try") 2>&5
29092 ac_status=$?
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); }; } &&
29095 { ac_try='test -s conftest.$ac_objext'
29096 { (case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29099esac
29100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_try") 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029105 ac_header_compiler=yes
29106else
29107 echo "$as_me: failed program was:" >&5
29108sed 's/^/| /' conftest.$ac_ext >&5
29109
Reid Spencera773bd52006-08-04 18:18:08 +000029110 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029111fi
Reid Spencera773bd52006-08-04 18:18:08 +000029112
29113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29115echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029116
29117# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029118{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029120cat >conftest.$ac_ext <<_ACEOF
29121/* confdefs.h. */
29122_ACEOF
29123cat confdefs.h >>conftest.$ac_ext
29124cat >>conftest.$ac_ext <<_ACEOF
29125/* end confdefs.h. */
29126#include <$ac_header>
29127_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029128if { (ac_try="$ac_cpp conftest.$ac_ext"
29129case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29132esac
29133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029135 ac_status=$?
29136 grep -v '^ *+' conftest.er1 >conftest.err
29137 rm -f conftest.er1
29138 cat conftest.err >&5
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029140 (exit $ac_status); } >/dev/null; then
29141 if test -s conftest.err; then
29142 ac_cpp_err=$ac_c_preproc_warn_flag
29143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29144 else
29145 ac_cpp_err=
29146 fi
29147else
29148 ac_cpp_err=yes
29149fi
29150if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029151 ac_header_preproc=yes
29152else
29153 echo "$as_me: failed program was:" >&5
29154sed 's/^/| /' conftest.$ac_ext >&5
29155
29156 ac_header_preproc=no
29157fi
Reid Spencera773bd52006-08-04 18:18:08 +000029158
Reid Spencer59473af2004-12-25 07:31:29 +000029159rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29161echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029162
29163# So? What about this header?
29164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29165 yes:no: )
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29170 ac_header_preproc=yes
29171 ;;
29172 no:yes:* )
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029185 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029186## ----------------------------------- ##
29187## Report this to llvmbugs@cs.uiuc.edu ##
29188## ----------------------------------- ##
29189_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029190 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029191 ;;
29192esac
Reid Spencera773bd52006-08-04 18:18:08 +000029193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029196 echo $ECHO_N "(cached) $ECHO_C" >&6
29197else
29198 eval "$as_ac_Header=\$ac_header_preproc"
29199fi
Reid Spencera773bd52006-08-04 18:18:08 +000029200ac_res=`eval echo '${'$as_ac_Header'}'`
29201 { echo "$as_me:$LINENO: result: $ac_res" >&5
29202echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029203
29204fi
29205if test `eval echo '${'$as_ac_Header'}'` = yes; then
29206 cat >>confdefs.h <<_ACEOF
29207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29208_ACEOF
29209
29210fi
29211
29212done
29213
29214
Reid Spencerbe3e4192007-08-17 05:45:26 +000029215for ac_header in windows.h
29216do
29217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29223fi
29224ac_res=`eval echo '${'$as_ac_Header'}'`
29225 { echo "$as_me:$LINENO: result: $ac_res" >&5
29226echo "${ECHO_T}$ac_res" >&6; }
29227else
29228 # Is the header compilable?
29229{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29231cat >conftest.$ac_ext <<_ACEOF
29232/* confdefs.h. */
29233_ACEOF
29234cat confdefs.h >>conftest.$ac_ext
29235cat >>conftest.$ac_ext <<_ACEOF
29236/* end confdefs.h. */
29237$ac_includes_default
29238#include <$ac_header>
29239_ACEOF
29240rm -f conftest.$ac_objext
29241if { (ac_try="$ac_compile"
29242case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29245esac
29246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_compile") 2>conftest.er1
29248 ac_status=$?
29249 grep -v '^ *+' conftest.er1 >conftest.err
29250 rm -f conftest.er1
29251 cat conftest.err >&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029253 (exit $ac_status); } &&
29254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29255 { (case "(($ac_try" in
29256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29257 *) ac_try_echo=$ac_try;;
29258esac
29259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29260 (eval "$ac_try") 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; } &&
29264 { ac_try='test -s conftest.$ac_objext'
29265 { (case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29268esac
29269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_try") 2>&5
29271 ac_status=$?
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029274 ac_header_compiler=yes
29275else
29276 echo "$as_me: failed program was:" >&5
29277sed 's/^/| /' conftest.$ac_ext >&5
29278
29279 ac_header_compiler=no
29280fi
29281
29282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29283{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29284echo "${ECHO_T}$ac_header_compiler" >&6; }
29285
29286# Is the header present?
29287{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29289cat >conftest.$ac_ext <<_ACEOF
29290/* confdefs.h. */
29291_ACEOF
29292cat confdefs.h >>conftest.$ac_ext
29293cat >>conftest.$ac_ext <<_ACEOF
29294/* end confdefs.h. */
29295#include <$ac_header>
29296_ACEOF
29297if { (ac_try="$ac_cpp conftest.$ac_ext"
29298case "(($ac_try" in
29299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300 *) ac_try_echo=$ac_try;;
29301esac
29302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29304 ac_status=$?
29305 grep -v '^ *+' conftest.er1 >conftest.err
29306 rm -f conftest.er1
29307 cat conftest.err >&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029309 (exit $ac_status); } >/dev/null; then
29310 if test -s conftest.err; then
29311 ac_cpp_err=$ac_c_preproc_warn_flag
29312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29313 else
29314 ac_cpp_err=
29315 fi
29316else
29317 ac_cpp_err=yes
29318fi
29319if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029320 ac_header_preproc=yes
29321else
29322 echo "$as_me: failed program was:" >&5
29323sed 's/^/| /' conftest.$ac_ext >&5
29324
29325 ac_header_preproc=no
29326fi
29327
29328rm -f conftest.err conftest.$ac_ext
29329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29330echo "${ECHO_T}$ac_header_preproc" >&6; }
29331
29332# So? What about this header?
29333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29334 yes:no: )
29335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29339 ac_header_preproc=yes
29340 ;;
29341 no:yes:* )
29342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29354 ( cat <<\_ASBOX
29355## ----------------------------------- ##
29356## Report this to llvmbugs@cs.uiuc.edu ##
29357## ----------------------------------- ##
29358_ASBOX
29359 ) | sed "s/^/$as_me: WARNING: /" >&2
29360 ;;
29361esac
29362{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29366else
29367 eval "$as_ac_Header=\$ac_header_preproc"
29368fi
29369ac_res=`eval echo '${'$as_ac_Header'}'`
29370 { echo "$as_me:$LINENO: result: $ac_res" >&5
29371echo "${ECHO_T}$ac_res" >&6; }
29372
29373fi
29374if test `eval echo '${'$as_ac_Header'}'` = yes; then
29375 cat >>confdefs.h <<_ACEOF
29376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29377_ACEOF
29378
29379fi
29380
29381done
Reid Spencer59473af2004-12-25 07:31:29 +000029382
29383
29384
29385
Reid Spencerbe3e4192007-08-17 05:45:26 +000029386
29387for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029388do
29389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395fi
Reid Spencera773bd52006-08-04 18:18:08 +000029396ac_res=`eval echo '${'$as_ac_Header'}'`
29397 { echo "$as_me:$LINENO: result: $ac_res" >&5
29398echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029399else
29400 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029403cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029404/* confdefs.h. */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h. */
29409$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029410#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029411_ACEOF
29412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029413if { (ac_try="$ac_compile"
29414case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29417esac
29418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029425 (exit $ac_status); } &&
29426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29430esac
29431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432 (eval "$ac_try") 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
29437 { (case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29440esac
29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_try") 2>&5
29443 ac_status=$?
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029446 ac_header_compiler=yes
29447else
29448 echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
Reid Spencera773bd52006-08-04 18:18:08 +000029451 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029452fi
Reid Spencera773bd52006-08-04 18:18:08 +000029453
29454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29456echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029457
29458# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029461cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029467#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029469if { (ac_try="$ac_cpp conftest.$ac_ext"
29470case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473esac
29474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029476 ac_status=$?
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029481 (exit $ac_status); } >/dev/null; then
29482 if test -s conftest.err; then
29483 ac_cpp_err=$ac_c_preproc_warn_flag
29484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29485 else
29486 ac_cpp_err=
29487 fi
29488else
29489 ac_cpp_err=yes
29490fi
29491if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029492 ac_header_preproc=yes
29493else
29494 echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497 ac_header_preproc=no
29498fi
Reid Spencera773bd52006-08-04 18:18:08 +000029499
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029500rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29502echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029503
29504# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29506 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029511 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029512 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029513 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029526 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029527## ----------------------------------- ##
29528## Report this to llvmbugs@cs.uiuc.edu ##
29529## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029530_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029531 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029532 ;;
29533esac
Reid Spencera773bd52006-08-04 18:18:08 +000029534{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029537 echo $ECHO_N "(cached) $ECHO_C" >&6
29538else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029539 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029540fi
Reid Spencera773bd52006-08-04 18:18:08 +000029541ac_res=`eval echo '${'$as_ac_Header'}'`
29542 { echo "$as_me:$LINENO: result: $ac_res" >&5
29543echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029544
29545fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029546if test `eval echo '${'$as_ac_Header'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029549_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029550
29551fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029552
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029553done
29554
John Criswell7ed43ad2004-07-19 16:12:29 +000029555
Reid Spencercdb08a32006-06-05 16:11:07 +000029556
Reid Spencera6d990a2006-09-14 06:17:21 +000029557
29558for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029559do
29560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029565 echo $ECHO_N "(cached) $ECHO_C" >&6
29566fi
Reid Spencera773bd52006-08-04 18:18:08 +000029567ac_res=`eval echo '${'$as_ac_Header'}'`
29568 { echo "$as_me:$LINENO: result: $ac_res" >&5
29569echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029570else
29571 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029574cat >conftest.$ac_ext <<_ACEOF
29575/* confdefs.h. */
29576_ACEOF
29577cat confdefs.h >>conftest.$ac_ext
29578cat >>conftest.$ac_ext <<_ACEOF
29579/* end confdefs.h. */
29580$ac_includes_default
29581#include <$ac_header>
29582_ACEOF
29583rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029584if { (ac_try="$ac_compile"
29585case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29588esac
29589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029591 ac_status=$?
29592 grep -v '^ *+' conftest.er1 >conftest.err
29593 rm -f conftest.er1
29594 cat conftest.err >&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029596 (exit $ac_status); } &&
29597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29598 { (case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29601esac
29602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_try") 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest.$ac_objext'
29608 { (case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29611esac
29612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_try") 2>&5
29614 ac_status=$?
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029617 ac_header_compiler=yes
29618else
29619 echo "$as_me: failed program was:" >&5
29620sed 's/^/| /' conftest.$ac_ext >&5
29621
Reid Spencera773bd52006-08-04 18:18:08 +000029622 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029623fi
Reid Spencera773bd52006-08-04 18:18:08 +000029624
29625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29627echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029628
29629# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029632cat >conftest.$ac_ext <<_ACEOF
29633/* confdefs.h. */
29634_ACEOF
29635cat confdefs.h >>conftest.$ac_ext
29636cat >>conftest.$ac_ext <<_ACEOF
29637/* end confdefs.h. */
29638#include <$ac_header>
29639_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029640if { (ac_try="$ac_cpp conftest.$ac_ext"
29641case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644esac
29645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029647 ac_status=$?
29648 grep -v '^ *+' conftest.er1 >conftest.err
29649 rm -f conftest.er1
29650 cat conftest.err >&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029652 (exit $ac_status); } >/dev/null; then
29653 if test -s conftest.err; then
29654 ac_cpp_err=$ac_c_preproc_warn_flag
29655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29656 else
29657 ac_cpp_err=
29658 fi
29659else
29660 ac_cpp_err=yes
29661fi
29662if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029663 ac_header_preproc=yes
29664else
29665 echo "$as_me: failed program was:" >&5
29666sed 's/^/| /' conftest.$ac_ext >&5
29667
29668 ac_header_preproc=no
29669fi
Reid Spencera773bd52006-08-04 18:18:08 +000029670
Chris Lattner0b142592005-11-14 06:57:34 +000029671rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29673echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029674
29675# So? What about this header?
29676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29677 yes:no: )
29678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29682 ac_header_preproc=yes
29683 ;;
29684 no:yes:* )
29685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029697 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029698## ----------------------------------- ##
29699## Report this to llvmbugs@cs.uiuc.edu ##
29700## ----------------------------------- ##
29701_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029702 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029703 ;;
29704esac
Reid Spencera773bd52006-08-04 18:18:08 +000029705{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029708 echo $ECHO_N "(cached) $ECHO_C" >&6
29709else
29710 eval "$as_ac_Header=\$ac_header_preproc"
29711fi
Reid Spencera773bd52006-08-04 18:18:08 +000029712ac_res=`eval echo '${'$as_ac_Header'}'`
29713 { echo "$as_me:$LINENO: result: $ac_res" >&5
29714echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029715
29716fi
29717if test `eval echo '${'$as_ac_Header'}'` = yes; then
29718 cat >>confdefs.h <<_ACEOF
29719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29720_ACEOF
29721
29722fi
29723
29724done
29725
Reid Spencer0a262ba2005-08-24 10:07:20 +000029726if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029727
29728for ac_header in pthread.h
29729do
29730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029735 echo $ECHO_N "(cached) $ECHO_C" >&6
29736fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029737ac_res=`eval echo '${'$as_ac_Header'}'`
29738 { echo "$as_me:$LINENO: result: $ac_res" >&5
29739echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029740else
29741 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029744cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h. */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h. */
29750$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029751#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029752_ACEOF
29753rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029754if { (ac_try="$ac_compile"
29755case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29758esac
29759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029761 ac_status=$?
29762 grep -v '^ *+' conftest.er1 >conftest.err
29763 rm -f conftest.er1
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29771esac
29772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29774 ac_status=$?
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } &&
29777 { ac_try='test -s conftest.$ac_objext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029787 ac_header_compiler=yes
29788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
Reid Spencera773bd52006-08-04 18:18:08 +000029792 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029793fi
Reid Spencera773bd52006-08-04 18:18:08 +000029794
29795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29797echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029798
29799# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029800{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029802cat >conftest.$ac_ext <<_ACEOF
29803/* confdefs.h. */
29804_ACEOF
29805cat confdefs.h >>conftest.$ac_ext
29806cat >>conftest.$ac_ext <<_ACEOF
29807/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029808#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029809_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029810if { (ac_try="$ac_cpp conftest.$ac_ext"
29811case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29814esac
29815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029817 ac_status=$?
29818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029822 (exit $ac_status); } >/dev/null; then
29823 if test -s conftest.err; then
29824 ac_cpp_err=$ac_c_preproc_warn_flag
29825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29826 else
29827 ac_cpp_err=
29828 fi
29829else
29830 ac_cpp_err=yes
29831fi
29832if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029833 ac_header_preproc=yes
29834else
29835 echo "$as_me: failed program was:" >&5
29836sed 's/^/| /' conftest.$ac_ext >&5
29837
29838 ac_header_preproc=no
29839fi
Reid Spencera773bd52006-08-04 18:18:08 +000029840
Reid Spencer0a262ba2005-08-24 10:07:20 +000029841rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029842{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29843echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029844
29845# So? What about this header?
29846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29847 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029852 ac_header_preproc=yes
29853 ;;
29854 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029867 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029868## ----------------------------------- ##
29869## Report this to llvmbugs@cs.uiuc.edu ##
29870## ----------------------------------- ##
29871_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029872 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029873 ;;
29874esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029878 echo $ECHO_N "(cached) $ECHO_C" >&6
29879else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029880 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029881fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029882ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029885
29886fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029887if test `eval echo '${'$as_ac_Header'}'` = yes; then
29888 cat >>confdefs.h <<_ACEOF
29889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29890_ACEOF
29891 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029892
29893else
29894 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029895
29896fi
29897
Reid Spencerbe3e4192007-08-17 05:45:26 +000029898done
Reid Spencer1000b732006-12-01 00:37:14 +000029899
29900else
29901 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029902
29903fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029904
29905
Reid Spencerb2ed05262006-11-03 18:04:08 +000029906
29907 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29908echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29909if test "${ac_cv_huge_val_sanity+set}" = set; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29911else
29912
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029913 ac_ext=cpp
29914ac_cpp='$CXXCPP $CPPFLAGS'
29915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029918
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029919 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029920 if test "$cross_compiling" = yes; then
29921 ac_cv_huge_val_sanity=yes
29922else
29923 cat >conftest.$ac_ext <<_ACEOF
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
29929#include <math.h>
29930int
29931main ()
29932{
29933double x = HUGE_VAL; return x != x;
29934 ;
29935 return 0;
29936}
29937_ACEOF
29938rm -f conftest$ac_exeext
29939if { (ac_try="$ac_link"
29940case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29943esac
29944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_link") 2>&5
29946 ac_status=$?
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29949 { (case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29952esac
29953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_try") 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; }; then
29958 ac_cv_huge_val_sanity=yes
29959else
29960 echo "$as_me: program exited with status $ac_status" >&5
29961echo "$as_me: failed program was:" >&5
29962sed 's/^/| /' conftest.$ac_ext >&5
29963
29964( exit $ac_status )
29965ac_cv_huge_val_sanity=no
29966fi
29967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29968fi
29969
29970
29971 ac_ext=c
29972ac_cpp='$CPP $CPPFLAGS'
29973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29975ac_compiler_gnu=$ac_cv_c_compiler_gnu
29976
29977
29978fi
29979{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29980echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29981 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29982
29983
Reid Spencera773bd52006-08-04 18:18:08 +000029984{ echo "$as_me:$LINENO: checking for pid_t" >&5
29985echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029986if test "${ac_cv_type_pid_t+set}" = set; then
29987 echo $ECHO_N "(cached) $ECHO_C" >&6
29988else
29989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029990/* confdefs.h. */
29991_ACEOF
29992cat confdefs.h >>conftest.$ac_ext
29993cat >>conftest.$ac_ext <<_ACEOF
29994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029995$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029996typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029997int
29998main ()
29999{
Reid Spencera773bd52006-08-04 18:18:08 +000030000if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030001 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030002if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030003 return 0;
30004 ;
30005 return 0;
30006}
30007_ACEOF
30008rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030009if { (ac_try="$ac_compile"
30010case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013esac
30014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030017 grep -v '^ *+' conftest.er1 >conftest.err
30018 rm -f conftest.er1
30019 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030021 (exit $ac_status); } &&
30022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30023 { (case "(($ac_try" in
30024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30026esac
30027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_try") 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
30033 { (case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036esac
30037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_try") 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030042 ac_cv_type_pid_t=yes
30043else
30044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030045sed 's/^/| /' conftest.$ac_ext >&5
30046
Reid Spencera773bd52006-08-04 18:18:08 +000030047 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030048fi
Reid Spencera773bd52006-08-04 18:18:08 +000030049
30050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030051fi
Reid Spencera773bd52006-08-04 18:18:08 +000030052{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30053echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030054if test $ac_cv_type_pid_t = yes; then
30055 :
30056else
30057
30058cat >>confdefs.h <<_ACEOF
30059#define pid_t int
30060_ACEOF
30061
30062fi
30063
Reid Spencera773bd52006-08-04 18:18:08 +000030064{ echo "$as_me:$LINENO: checking for size_t" >&5
30065echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030066if test "${ac_cv_type_size_t+set}" = set; then
30067 echo $ECHO_N "(cached) $ECHO_C" >&6
30068else
30069 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030070/* confdefs.h. */
30071_ACEOF
30072cat confdefs.h >>conftest.$ac_ext
30073cat >>conftest.$ac_ext <<_ACEOF
30074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030075$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030076typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030077int
30078main ()
30079{
Reid Spencera773bd52006-08-04 18:18:08 +000030080if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030081 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030082if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030083 return 0;
30084 ;
30085 return 0;
30086}
30087_ACEOF
30088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030089if { (ac_try="$ac_compile"
30090case "(($ac_try" in
30091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092 *) ac_try_echo=$ac_try;;
30093esac
30094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030097 grep -v '^ *+' conftest.er1 >conftest.err
30098 rm -f conftest.er1
30099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030101 (exit $ac_status); } &&
30102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30103 { (case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30106esac
30107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_try") 2>&5
30109 ac_status=$?
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest.$ac_objext'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30116esac
30117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030122 ac_cv_type_size_t=yes
30123else
30124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030125sed 's/^/| /' conftest.$ac_ext >&5
30126
Reid Spencera773bd52006-08-04 18:18:08 +000030127 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030128fi
Reid Spencera773bd52006-08-04 18:18:08 +000030129
30130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030131fi
Reid Spencera773bd52006-08-04 18:18:08 +000030132{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30133echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030134if test $ac_cv_type_size_t = yes; then
30135 :
30136else
30137
30138cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030139#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030140_ACEOF
30141
30142fi
30143
Reid Spencera773bd52006-08-04 18:18:08 +000030144{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30145echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030146if test "${ac_cv_type_signal+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30148else
30149 cat >conftest.$ac_ext <<_ACEOF
30150/* confdefs.h. */
30151_ACEOF
30152cat confdefs.h >>conftest.$ac_ext
30153cat >>conftest.$ac_ext <<_ACEOF
30154/* end confdefs.h. */
30155#include <sys/types.h>
30156#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030157
30158int
30159main ()
30160{
Reid Spencera773bd52006-08-04 18:18:08 +000030161return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030162 ;
30163 return 0;
30164}
30165_ACEOF
30166rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030167if { (ac_try="$ac_compile"
30168case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030174 ac_status=$?
30175 grep -v '^ *+' conftest.er1 >conftest.err
30176 rm -f conftest.er1
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30184esac
30185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030200 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030201else
30202 echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
Reid Spencera773bd52006-08-04 18:18:08 +000030205 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030206fi
Reid Spencera773bd52006-08-04 18:18:08 +000030207
30208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030209fi
Reid Spencera773bd52006-08-04 18:18:08 +000030210{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30211echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030212
30213cat >>confdefs.h <<_ACEOF
30214#define RETSIGTYPE $ac_cv_type_signal
30215_ACEOF
30216
30217
Reid Spencera773bd52006-08-04 18:18:08 +000030218{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30219echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030220if test "${ac_cv_struct_tm+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30222else
30223 cat >conftest.$ac_ext <<_ACEOF
30224/* confdefs.h. */
30225_ACEOF
30226cat confdefs.h >>conftest.$ac_ext
30227cat >>conftest.$ac_ext <<_ACEOF
30228/* end confdefs.h. */
30229#include <sys/types.h>
30230#include <time.h>
30231
30232int
30233main ()
30234{
Tanya Lattnercf067672008-01-17 05:57:22 +000030235struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030236 ;
30237 return 0;
30238}
30239_ACEOF
30240rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030241if { (ac_try="$ac_compile"
30242case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30245esac
30246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030248 ac_status=$?
30249 grep -v '^ *+' conftest.er1 >conftest.err
30250 rm -f conftest.er1
30251 cat conftest.err >&5
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030253 (exit $ac_status); } &&
30254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30255 { (case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30258esac
30259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_try") 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; } &&
30264 { ac_try='test -s conftest.$ac_objext'
30265 { (case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30268esac
30269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_try") 2>&5
30271 ac_status=$?
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030274 ac_cv_struct_tm=time.h
30275else
30276 echo "$as_me: failed program was:" >&5
30277sed 's/^/| /' conftest.$ac_ext >&5
30278
Reid Spencera773bd52006-08-04 18:18:08 +000030279 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030280fi
Reid Spencera773bd52006-08-04 18:18:08 +000030281
30282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030283fi
Reid Spencera773bd52006-08-04 18:18:08 +000030284{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30285echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030286if test $ac_cv_struct_tm = sys/time.h; then
30287
30288cat >>confdefs.h <<\_ACEOF
30289#define TM_IN_SYS_TIME 1
30290_ACEOF
30291
30292fi
30293
Reid Spencera773bd52006-08-04 18:18:08 +000030294{ echo "$as_me:$LINENO: checking for int64_t" >&5
30295echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030296if test "${ac_cv_type_int64_t+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30298else
30299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030300/* confdefs.h. */
30301_ACEOF
30302cat confdefs.h >>conftest.$ac_ext
30303cat >>conftest.$ac_ext <<_ACEOF
30304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030305$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030306typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030307int
30308main ()
30309{
Reid Spencera773bd52006-08-04 18:18:08 +000030310if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030311 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030312if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030313 return 0;
30314 ;
30315 return 0;
30316}
30317_ACEOF
30318rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030319if { (ac_try="$ac_compile"
30320case "(($ac_try" in
30321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30323esac
30324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030327 grep -v '^ *+' conftest.er1 >conftest.err
30328 rm -f conftest.er1
30329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030331 (exit $ac_status); } &&
30332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30333 { (case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30336esac
30337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_try") 2>&5
30339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest.$ac_objext'
30343 { (case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30346esac
30347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_try") 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030352 ac_cv_type_int64_t=yes
30353else
30354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030355sed 's/^/| /' conftest.$ac_ext >&5
30356
Reid Spencera773bd52006-08-04 18:18:08 +000030357 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030358fi
Reid Spencera773bd52006-08-04 18:18:08 +000030359
30360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030361fi
Reid Spencera773bd52006-08-04 18:18:08 +000030362{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30363echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030364if test $ac_cv_type_int64_t = yes; then
30365
30366cat >>confdefs.h <<_ACEOF
30367#define HAVE_INT64_T 1
30368_ACEOF
30369
30370
30371else
30372 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30373echo "$as_me: error: Type int64_t required but not found" >&2;}
30374 { (exit 1); exit 1; }; }
30375fi
30376
Reid Spencera773bd52006-08-04 18:18:08 +000030377{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30378echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030379if test "${ac_cv_type_uint64_t+set}" = set; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30381else
30382 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030383/* confdefs.h. */
30384_ACEOF
30385cat confdefs.h >>conftest.$ac_ext
30386cat >>conftest.$ac_ext <<_ACEOF
30387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030388$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030389typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030390int
30391main ()
30392{
Reid Spencera773bd52006-08-04 18:18:08 +000030393if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030394 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030395if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030396 return 0;
30397 ;
30398 return 0;
30399}
30400_ACEOF
30401rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030402if { (ac_try="$ac_compile"
30403case "(($ac_try" in
30404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30405 *) ac_try_echo=$ac_try;;
30406esac
30407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30408 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030410 grep -v '^ *+' conftest.er1 >conftest.err
30411 rm -f conftest.er1
30412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030414 (exit $ac_status); } &&
30415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30416 { (case "(($ac_try" in
30417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418 *) ac_try_echo=$ac_try;;
30419esac
30420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421 (eval "$ac_try") 2>&5
30422 ac_status=$?
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); }; } &&
30425 { ac_try='test -s conftest.$ac_objext'
30426 { (case "(($ac_try" in
30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428 *) ac_try_echo=$ac_try;;
30429esac
30430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431 (eval "$ac_try") 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030435 ac_cv_type_uint64_t=yes
30436else
30437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030438sed 's/^/| /' conftest.$ac_ext >&5
30439
Reid Spencera773bd52006-08-04 18:18:08 +000030440 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030441fi
Reid Spencera773bd52006-08-04 18:18:08 +000030442
30443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030444fi
Reid Spencera773bd52006-08-04 18:18:08 +000030445{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30446echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030447if test $ac_cv_type_uint64_t = yes; then
30448
30449cat >>confdefs.h <<_ACEOF
30450#define HAVE_UINT64_T 1
30451_ACEOF
30452
30453
30454else
Reid Spencera773bd52006-08-04 18:18:08 +000030455 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30456echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030457if test "${ac_cv_type_u_int64_t+set}" = set; then
30458 echo $ECHO_N "(cached) $ECHO_C" >&6
30459else
30460 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030461/* confdefs.h. */
30462_ACEOF
30463cat confdefs.h >>conftest.$ac_ext
30464cat >>conftest.$ac_ext <<_ACEOF
30465/* end confdefs.h. */
30466$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030467typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030468int
30469main ()
30470{
Reid Spencera773bd52006-08-04 18:18:08 +000030471if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030472 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030473if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030474 return 0;
30475 ;
30476 return 0;
30477}
30478_ACEOF
30479rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030480if { (ac_try="$ac_compile"
30481case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30484esac
30485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030487 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030488 grep -v '^ *+' conftest.er1 >conftest.err
30489 rm -f conftest.er1
30490 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030492 (exit $ac_status); } &&
30493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30494 { (case "(($ac_try" in
30495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496 *) ac_try_echo=$ac_try;;
30497esac
30498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30499 (eval "$ac_try") 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest.$ac_objext'
30504 { (case "(($ac_try" in
30505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506 *) ac_try_echo=$ac_try;;
30507esac
30508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509 (eval "$ac_try") 2>&5
30510 ac_status=$?
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030513 ac_cv_type_u_int64_t=yes
30514else
30515 echo "$as_me: failed program was:" >&5
30516sed 's/^/| /' conftest.$ac_ext >&5
30517
Reid Spencera773bd52006-08-04 18:18:08 +000030518 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030519fi
Reid Spencera773bd52006-08-04 18:18:08 +000030520
30521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030522fi
Reid Spencera773bd52006-08-04 18:18:08 +000030523{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30524echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030525if test $ac_cv_type_u_int64_t = yes; then
30526
30527cat >>confdefs.h <<_ACEOF
30528#define HAVE_U_INT64_T 1
30529_ACEOF
30530
30531
Misha Brukmanceca9042004-09-02 23:02:30 +000030532else
30533 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30534echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30535 { (exit 1); exit 1; }; }
30536fi
30537
John Criswell679ff312004-09-02 18:44:44 +000030538fi
30539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030540
30541
30542
30543
30544
30545
30546
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030547
30548
Reid Spencerdf3be822006-01-23 08:15:53 +000030549for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030550do
30551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030552{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30554if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030558/* confdefs.h. */
30559_ACEOF
30560cat confdefs.h >>conftest.$ac_ext
30561cat >>conftest.$ac_ext <<_ACEOF
30562/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30565#define $ac_func innocuous_$ac_func
30566
30567/* System header to define __stub macros and hopefully few prototypes,
30568 which can conflict with char $ac_func (); below.
30569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30570 <limits.h> exists even on freestanding compilers. */
30571
30572#ifdef __STDC__
30573# include <limits.h>
30574#else
30575# include <assert.h>
30576#endif
30577
30578#undef $ac_func
30579
Reid Spencera773bd52006-08-04 18:18:08 +000030580/* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030583#ifdef __cplusplus
30584extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030585#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030586char $ac_func ();
30587/* The GNU C library defines this for functions which it implements
30588 to always fail with ENOSYS. Some functions are actually named
30589 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030590#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030591choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030592#endif
John Criswell7a73b802003-06-30 21:59:07 +000030593
John Criswell7a73b802003-06-30 21:59:07 +000030594int
30595main ()
30596{
Reid Spencera773bd52006-08-04 18:18:08 +000030597return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030598 ;
30599 return 0;
30600}
30601_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030602rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030603if { (ac_try="$ac_link"
30604case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607esac
30608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030610 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030611 grep -v '^ *+' conftest.er1 >conftest.err
30612 rm -f conftest.er1
30613 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030615 (exit $ac_status); } &&
30616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617 { (case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30620esac
30621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; } &&
30626 { ac_try='test -s conftest$ac_exeext'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630esac
30631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030636 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030637else
30638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030639sed 's/^/| /' conftest.$ac_ext >&5
30640
Reid Spencera773bd52006-08-04 18:18:08 +000030641 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030642fi
Reid Spencera773bd52006-08-04 18:18:08 +000030643
Tanya Lattnercf067672008-01-17 05:57:22 +000030644rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030645 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030646fi
Reid Spencera773bd52006-08-04 18:18:08 +000030647ac_res=`eval echo '${'$as_ac_var'}'`
30648 { echo "$as_me:$LINENO: result: $ac_res" >&5
30649echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030650if test `eval echo '${'$as_ac_var'}'` = yes; then
30651 cat >>confdefs.h <<_ACEOF
30652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030653_ACEOF
30654
30655fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030656done
John Criswell7a73b802003-06-30 21:59:07 +000030657
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030658
30659
30660
Reid Spencer6af3d262004-12-15 04:01:48 +000030661
Reid Spencer96cf5872007-07-13 10:05:30 +000030662for ac_func in powf fmodf strtof round
30663do
30664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30665{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30667if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30668 echo $ECHO_N "(cached) $ECHO_C" >&6
30669else
30670 cat >conftest.$ac_ext <<_ACEOF
30671/* confdefs.h. */
30672_ACEOF
30673cat confdefs.h >>conftest.$ac_ext
30674cat >>conftest.$ac_ext <<_ACEOF
30675/* end confdefs.h. */
30676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30678#define $ac_func innocuous_$ac_func
30679
30680/* System header to define __stub macros and hopefully few prototypes,
30681 which can conflict with char $ac_func (); below.
30682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30683 <limits.h> exists even on freestanding compilers. */
30684
30685#ifdef __STDC__
30686# include <limits.h>
30687#else
30688# include <assert.h>
30689#endif
30690
30691#undef $ac_func
30692
30693/* Override any GCC internal prototype to avoid an error.
30694 Use char because int might match the return type of a GCC
30695 builtin and then its argument prototype would still apply. */
30696#ifdef __cplusplus
30697extern "C"
30698#endif
30699char $ac_func ();
30700/* The GNU C library defines this for functions which it implements
30701 to always fail with ENOSYS. Some functions are actually named
30702 something starting with __ and the normal name is an alias. */
30703#if defined __stub_$ac_func || defined __stub___$ac_func
30704choke me
30705#endif
30706
30707int
30708main ()
30709{
30710return $ac_func ();
30711 ;
30712 return 0;
30713}
30714_ACEOF
30715rm -f conftest.$ac_objext conftest$ac_exeext
30716if { (ac_try="$ac_link"
30717case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30720esac
30721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_link") 2>conftest.er1
30723 ac_status=$?
30724 grep -v '^ *+' conftest.er1 >conftest.err
30725 rm -f conftest.er1
30726 cat conftest.err >&5
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030728 (exit $ac_status); } &&
30729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30730 { (case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30733esac
30734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_try") 2>&5
30736 ac_status=$?
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; } &&
30739 { ac_try='test -s conftest$ac_exeext'
30740 { (case "(($ac_try" in
30741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742 *) ac_try_echo=$ac_try;;
30743esac
30744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745 (eval "$ac_try") 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030749 eval "$as_ac_var=yes"
30750else
30751 echo "$as_me: failed program was:" >&5
30752sed 's/^/| /' conftest.$ac_ext >&5
30753
30754 eval "$as_ac_var=no"
30755fi
30756
Tanya Lattnercf067672008-01-17 05:57:22 +000030757rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030758 conftest$ac_exeext conftest.$ac_ext
30759fi
30760ac_res=`eval echo '${'$as_ac_var'}'`
30761 { echo "$as_me:$LINENO: result: $ac_res" >&5
30762echo "${ECHO_T}$ac_res" >&6; }
30763if test `eval echo '${'$as_ac_var'}'` = yes; then
30764 cat >>confdefs.h <<_ACEOF
30765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30766_ACEOF
30767
30768fi
30769done
30770
30771
30772
30773
30774
Reid Spencer6af3d262004-12-15 04:01:48 +000030775
Reid Spencerb90645c2007-02-16 19:17:20 +000030776for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30777do
30778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30779{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30782 echo $ECHO_N "(cached) $ECHO_C" >&6
30783else
30784 cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
30790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30792#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030793
Reid Spencerb90645c2007-02-16 19:17:20 +000030794/* System header to define __stub macros and hopefully few prototypes,
30795 which can conflict with char $ac_func (); below.
30796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30797 <limits.h> exists even on freestanding compilers. */
30798
30799#ifdef __STDC__
30800# include <limits.h>
30801#else
30802# include <assert.h>
30803#endif
30804
30805#undef $ac_func
30806
30807/* Override any GCC internal prototype to avoid an error.
30808 Use char because int might match the return type of a GCC
30809 builtin and then its argument prototype would still apply. */
30810#ifdef __cplusplus
30811extern "C"
30812#endif
30813char $ac_func ();
30814/* The GNU C library defines this for functions which it implements
30815 to always fail with ENOSYS. Some functions are actually named
30816 something starting with __ and the normal name is an alias. */
30817#if defined __stub_$ac_func || defined __stub___$ac_func
30818choke me
30819#endif
30820
30821int
30822main ()
30823{
30824return $ac_func ();
30825 ;
30826 return 0;
30827}
30828_ACEOF
30829rm -f conftest.$ac_objext conftest$ac_exeext
30830if { (ac_try="$ac_link"
30831case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30834esac
30835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_link") 2>conftest.er1
30837 ac_status=$?
30838 grep -v '^ *+' conftest.er1 >conftest.err
30839 rm -f conftest.er1
30840 cat conftest.err >&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030842 (exit $ac_status); } &&
30843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30844 { (case "(($ac_try" in
30845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846 *) ac_try_echo=$ac_try;;
30847esac
30848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849 (eval "$ac_try") 2>&5
30850 ac_status=$?
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); }; } &&
30853 { ac_try='test -s conftest$ac_exeext'
30854 { (case "(($ac_try" in
30855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30856 *) ac_try_echo=$ac_try;;
30857esac
30858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30859 (eval "$ac_try") 2>&5
30860 ac_status=$?
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030863 eval "$as_ac_var=yes"
30864else
30865 echo "$as_me: failed program was:" >&5
30866sed 's/^/| /' conftest.$ac_ext >&5
30867
30868 eval "$as_ac_var=no"
30869fi
30870
Tanya Lattnercf067672008-01-17 05:57:22 +000030871rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030872 conftest$ac_exeext conftest.$ac_ext
30873fi
30874ac_res=`eval echo '${'$as_ac_var'}'`
30875 { echo "$as_me:$LINENO: result: $ac_res" >&5
30876echo "${ECHO_T}$ac_res" >&6; }
30877if test `eval echo '${'$as_ac_var'}'` = yes; then
30878 cat >>confdefs.h <<_ACEOF
30879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30880_ACEOF
30881
30882fi
30883done
30884
30885
30886
30887
30888for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030889do
30890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030891{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30893if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030894 echo $ECHO_N "(cached) $ECHO_C" >&6
30895else
30896 cat >conftest.$ac_ext <<_ACEOF
30897/* confdefs.h. */
30898_ACEOF
30899cat confdefs.h >>conftest.$ac_ext
30900cat >>conftest.$ac_ext <<_ACEOF
30901/* end confdefs.h. */
30902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30904#define $ac_func innocuous_$ac_func
30905
30906/* System header to define __stub macros and hopefully few prototypes,
30907 which can conflict with char $ac_func (); below.
30908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30909 <limits.h> exists even on freestanding compilers. */
30910
30911#ifdef __STDC__
30912# include <limits.h>
30913#else
30914# include <assert.h>
30915#endif
30916
30917#undef $ac_func
30918
Reid Spencera773bd52006-08-04 18:18:08 +000030919/* Override any GCC internal prototype to avoid an error.
30920 Use char because int might match the return type of a GCC
30921 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030922#ifdef __cplusplus
30923extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030924#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030925char $ac_func ();
30926/* The GNU C library defines this for functions which it implements
30927 to always fail with ENOSYS. Some functions are actually named
30928 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030929#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030930choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030931#endif
30932
30933int
30934main ()
30935{
Reid Spencera773bd52006-08-04 18:18:08 +000030936return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030937 ;
30938 return 0;
30939}
30940_ACEOF
30941rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030942if { (ac_try="$ac_link"
30943case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30946esac
30947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030949 ac_status=$?
30950 grep -v '^ *+' conftest.er1 >conftest.err
30951 rm -f conftest.er1
30952 cat conftest.err >&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030954 (exit $ac_status); } &&
30955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30956 { (case "(($ac_try" in
30957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958 *) ac_try_echo=$ac_try;;
30959esac
30960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30961 (eval "$ac_try") 2>&5
30962 ac_status=$?
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); }; } &&
30965 { ac_try='test -s conftest$ac_exeext'
30966 { (case "(($ac_try" in
30967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30968 *) ac_try_echo=$ac_try;;
30969esac
30970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30971 (eval "$ac_try") 2>&5
30972 ac_status=$?
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030975 eval "$as_ac_var=yes"
30976else
30977 echo "$as_me: failed program was:" >&5
30978sed 's/^/| /' conftest.$ac_ext >&5
30979
Reid Spencera773bd52006-08-04 18:18:08 +000030980 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030981fi
Reid Spencera773bd52006-08-04 18:18:08 +000030982
Tanya Lattnercf067672008-01-17 05:57:22 +000030983rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030984 conftest$ac_exeext conftest.$ac_ext
30985fi
Reid Spencera773bd52006-08-04 18:18:08 +000030986ac_res=`eval echo '${'$as_ac_var'}'`
30987 { echo "$as_me:$LINENO: result: $ac_res" >&5
30988echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030989if test `eval echo '${'$as_ac_var'}'` = yes; then
30990 cat >>confdefs.h <<_ACEOF
30991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30992_ACEOF
30993
30994fi
30995done
30996
30997
30998
30999
31000
31001
31002
31003
31004for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031005do
31006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031007{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31009if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031010 echo $ECHO_N "(cached) $ECHO_C" >&6
31011else
31012 cat >conftest.$ac_ext <<_ACEOF
31013/* confdefs.h. */
31014_ACEOF
31015cat confdefs.h >>conftest.$ac_ext
31016cat >>conftest.$ac_ext <<_ACEOF
31017/* end confdefs.h. */
31018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31020#define $ac_func innocuous_$ac_func
31021
31022/* System header to define __stub macros and hopefully few prototypes,
31023 which can conflict with char $ac_func (); below.
31024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31025 <limits.h> exists even on freestanding compilers. */
31026
31027#ifdef __STDC__
31028# include <limits.h>
31029#else
31030# include <assert.h>
31031#endif
31032
31033#undef $ac_func
31034
Reid Spencera773bd52006-08-04 18:18:08 +000031035/* Override any GCC internal prototype to avoid an error.
31036 Use char because int might match the return type of a GCC
31037 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031038#ifdef __cplusplus
31039extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031040#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031041char $ac_func ();
31042/* The GNU C library defines this for functions which it implements
31043 to always fail with ENOSYS. Some functions are actually named
31044 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031045#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031046choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031047#endif
31048
31049int
31050main ()
31051{
Reid Spencera773bd52006-08-04 18:18:08 +000031052return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031053 ;
31054 return 0;
31055}
31056_ACEOF
31057rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031058if { (ac_try="$ac_link"
31059case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31062esac
31063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031065 ac_status=$?
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031070 (exit $ac_status); } &&
31071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31072 { (case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31075esac
31076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077 (eval "$ac_try") 2>&5
31078 ac_status=$?
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; } &&
31081 { ac_try='test -s conftest$ac_exeext'
31082 { (case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31085esac
31086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_try") 2>&5
31088 ac_status=$?
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031091 eval "$as_ac_var=yes"
31092else
31093 echo "$as_me: failed program was:" >&5
31094sed 's/^/| /' conftest.$ac_ext >&5
31095
Reid Spencera773bd52006-08-04 18:18:08 +000031096 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031097fi
Reid Spencera773bd52006-08-04 18:18:08 +000031098
Tanya Lattnercf067672008-01-17 05:57:22 +000031099rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031100 conftest$ac_exeext conftest.$ac_ext
31101fi
Reid Spencera773bd52006-08-04 18:18:08 +000031102ac_res=`eval echo '${'$as_ac_var'}'`
31103 { echo "$as_me:$LINENO: result: $ac_res" >&5
31104echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031105if test `eval echo '${'$as_ac_var'}'` = yes; then
31106 cat >>confdefs.h <<_ACEOF
31107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31108_ACEOF
31109
31110fi
31111done
31112
31113
Reid Spencerba46ca32004-12-31 05:49:15 +000031114
31115
Chris Lattner0b142592005-11-14 06:57:34 +000031116
Chris Lattner511f11d2005-11-14 07:25:50 +000031117for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031118do
31119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031123 echo $ECHO_N "(cached) $ECHO_C" >&6
31124else
31125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031126/* confdefs.h. */
31127_ACEOF
31128cat confdefs.h >>conftest.$ac_ext
31129cat >>conftest.$ac_ext <<_ACEOF
31130/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31133#define $ac_func innocuous_$ac_func
31134
31135/* System header to define __stub macros and hopefully few prototypes,
31136 which can conflict with char $ac_func (); below.
31137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31138 <limits.h> exists even on freestanding compilers. */
31139
31140#ifdef __STDC__
31141# include <limits.h>
31142#else
31143# include <assert.h>
31144#endif
31145
31146#undef $ac_func
31147
Reid Spencera773bd52006-08-04 18:18:08 +000031148/* Override any GCC internal prototype to avoid an error.
31149 Use char because int might match the return type of a GCC
31150 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031151#ifdef __cplusplus
31152extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031153#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031154char $ac_func ();
31155/* The GNU C library defines this for functions which it implements
31156 to always fail with ENOSYS. Some functions are actually named
31157 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031158#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031159choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031160#endif
John Criswell7a73b802003-06-30 21:59:07 +000031161
John Criswell7a73b802003-06-30 21:59:07 +000031162int
31163main ()
31164{
Reid Spencera773bd52006-08-04 18:18:08 +000031165return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031166 ;
31167 return 0;
31168}
31169_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031170rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031171if { (ac_try="$ac_link"
31172case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31175esac
31176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031179 grep -v '^ *+' conftest.er1 >conftest.err
31180 rm -f conftest.er1
31181 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031183 (exit $ac_status); } &&
31184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31188esac
31189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; } &&
31194 { ac_try='test -s conftest$ac_exeext'
31195 { (case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31198esac
31199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_try") 2>&5
31201 ac_status=$?
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031204 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031205else
31206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031207sed 's/^/| /' conftest.$ac_ext >&5
31208
Reid Spencera773bd52006-08-04 18:18:08 +000031209 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031210fi
Reid Spencera773bd52006-08-04 18:18:08 +000031211
Tanya Lattnercf067672008-01-17 05:57:22 +000031212rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031213 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031214fi
Reid Spencera773bd52006-08-04 18:18:08 +000031215ac_res=`eval echo '${'$as_ac_var'}'`
31216 { echo "$as_me:$LINENO: result: $ac_res" >&5
31217echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031218if test `eval echo '${'$as_ac_var'}'` = yes; then
31219 cat >>confdefs.h <<_ACEOF
31220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031221_ACEOF
31222
31223fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031224done
John Criswell7a73b802003-06-30 21:59:07 +000031225
Reid Spencercdb08a32006-06-05 16:11:07 +000031226
31227
31228
31229
Reid Spencerafa22e22006-12-10 23:29:19 +000031230for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031231do
31232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031233{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31235if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031236 echo $ECHO_N "(cached) $ECHO_C" >&6
31237else
31238 cat >conftest.$ac_ext <<_ACEOF
31239/* confdefs.h. */
31240_ACEOF
31241cat confdefs.h >>conftest.$ac_ext
31242cat >>conftest.$ac_ext <<_ACEOF
31243/* end confdefs.h. */
31244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31246#define $ac_func innocuous_$ac_func
31247
31248/* System header to define __stub macros and hopefully few prototypes,
31249 which can conflict with char $ac_func (); below.
31250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31251 <limits.h> exists even on freestanding compilers. */
31252
31253#ifdef __STDC__
31254# include <limits.h>
31255#else
31256# include <assert.h>
31257#endif
31258
31259#undef $ac_func
31260
Reid Spencera773bd52006-08-04 18:18:08 +000031261/* Override any GCC internal prototype to avoid an error.
31262 Use char because int might match the return type of a GCC
31263 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031264#ifdef __cplusplus
31265extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031266#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031267char $ac_func ();
31268/* The GNU C library defines this for functions which it implements
31269 to always fail with ENOSYS. Some functions are actually named
31270 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031271#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031272choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031273#endif
31274
31275int
31276main ()
31277{
Reid Spencera773bd52006-08-04 18:18:08 +000031278return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031279 ;
31280 return 0;
31281}
31282_ACEOF
31283rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031284if { (ac_try="$ac_link"
31285case "(($ac_try" in
31286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31288esac
31289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031291 ac_status=$?
31292 grep -v '^ *+' conftest.er1 >conftest.err
31293 rm -f conftest.er1
31294 cat conftest.err >&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031296 (exit $ac_status); } &&
31297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31298 { (case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31301esac
31302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_try") 2>&5
31304 ac_status=$?
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; } &&
31307 { ac_try='test -s conftest$ac_exeext'
31308 { (case "(($ac_try" in
31309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310 *) ac_try_echo=$ac_try;;
31311esac
31312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31313 (eval "$ac_try") 2>&5
31314 ac_status=$?
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031317 eval "$as_ac_var=yes"
31318else
31319 echo "$as_me: failed program was:" >&5
31320sed 's/^/| /' conftest.$ac_ext >&5
31321
Reid Spencera773bd52006-08-04 18:18:08 +000031322 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031323fi
Reid Spencera773bd52006-08-04 18:18:08 +000031324
Tanya Lattnercf067672008-01-17 05:57:22 +000031325rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031326 conftest$ac_exeext conftest.$ac_ext
31327fi
Reid Spencera773bd52006-08-04 18:18:08 +000031328ac_res=`eval echo '${'$as_ac_var'}'`
31329 { echo "$as_me:$LINENO: result: $ac_res" >&5
31330echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031331if test `eval echo '${'$as_ac_var'}'` = yes; then
31332 cat >>confdefs.h <<_ACEOF
31333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31334_ACEOF
31335
31336fi
31337done
31338
Reid Spencera773bd52006-08-04 18:18:08 +000031339{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31340echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031341if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031342 echo $ECHO_N "(cached) $ECHO_C" >&6
31343else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031344 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031345ac_cpp='$CPP $CPPFLAGS'
31346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348ac_compiler_gnu=$ac_cv_c_compiler_gnu
31349
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031350 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031351 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031352else
31353 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031355 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031356_ACEOF
31357cat confdefs.h >>conftest.$ac_ext
31358cat >>conftest.$ac_ext <<_ACEOF
31359/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031360
John Criswella0137d32003-10-13 16:22:01 +000031361#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031362#include <stdlib.h>
31363
John Criswella0137d32003-10-13 16:22:01 +000031364int
31365main ()
31366{
31367
Reid Spencer2706f8c2004-09-19 23:53:36 +000031368volatile double A, B;
31369char Buffer[100];
31370A = 1;
31371A /= 10.0;
31372sprintf(Buffer, "%a", A);
31373B = atof(Buffer);
31374if (A != B)
31375 return (1);
31376if (A != 0x1.999999999999ap-4)
31377 return (1);
31378return (0);
John Criswella0137d32003-10-13 16:22:01 +000031379 ;
31380 return 0;
31381}
31382_ACEOF
31383rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031384if { (ac_try="$ac_link"
31385case "(($ac_try" in
31386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31387 *) ac_try_echo=$ac_try;;
31388esac
31389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31390 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031394 { (case "(($ac_try" in
31395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31396 *) ac_try_echo=$ac_try;;
31397esac
31398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31399 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031400 ac_status=$?
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031403 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031404else
31405 echo "$as_me: program exited with status $ac_status" >&5
31406echo "$as_me: failed program was:" >&5
31407sed 's/^/| /' conftest.$ac_ext >&5
31408
31409( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031410llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031411fi
Reid Spencera773bd52006-08-04 18:18:08 +000031412rm -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 +000031413fi
Reid Spencera773bd52006-08-04 18:18:08 +000031414
31415
Reid Spencer2706f8c2004-09-19 23:53:36 +000031416 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031417ac_cpp='$CPP $CPPFLAGS'
31418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31420ac_compiler_gnu=$ac_cv_c_compiler_gnu
31421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031422fi
Reid Spencera773bd52006-08-04 18:18:08 +000031423{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31424echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031425 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031426
31427cat >>confdefs.h <<\_ACEOF
31428#define HAVE_PRINTF_A 1
31429_ACEOF
31430
Reid Spencer2706f8c2004-09-19 23:53:36 +000031431 fi
John Criswella0137d32003-10-13 16:22:01 +000031432
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031433# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31434# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031435{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31436echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031437if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031438 echo $ECHO_N "(cached) $ECHO_C" >&6
31439else
John Criswell0021c312004-02-13 21:57:29 +000031440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031441/* confdefs.h. */
31442_ACEOF
31443cat confdefs.h >>conftest.$ac_ext
31444cat >>conftest.$ac_ext <<_ACEOF
31445/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031446#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031447int
31448main ()
31449{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031450char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031451 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031452 ;
31453 return 0;
31454}
31455_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031456rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031457if { (ac_try="$ac_link"
31458case "(($ac_try" in
31459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460 *) ac_try_echo=$ac_try;;
31461esac
31462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031465 grep -v '^ *+' conftest.er1 >conftest.err
31466 rm -f conftest.er1
31467 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031469 (exit $ac_status); } &&
31470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31471 { (case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31474esac
31475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_try") 2>&5
31477 ac_status=$?
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; } &&
31480 { ac_try='test -s conftest$ac_exeext'
31481 { (case "(($ac_try" in
31482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483 *) ac_try_echo=$ac_try;;
31484esac
31485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486 (eval "$ac_try") 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031490 ac_cv_working_alloca_h=yes
31491else
31492 echo "$as_me: failed program was:" >&5
31493sed 's/^/| /' conftest.$ac_ext >&5
31494
Reid Spencera773bd52006-08-04 18:18:08 +000031495 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031496fi
Reid Spencera773bd52006-08-04 18:18:08 +000031497
Tanya Lattnercf067672008-01-17 05:57:22 +000031498rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031499 conftest$ac_exeext conftest.$ac_ext
31500fi
Reid Spencera773bd52006-08-04 18:18:08 +000031501{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31502echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031503if test $ac_cv_working_alloca_h = yes; then
31504
31505cat >>confdefs.h <<\_ACEOF
31506#define HAVE_ALLOCA_H 1
31507_ACEOF
31508
31509fi
31510
Reid Spencera773bd52006-08-04 18:18:08 +000031511{ echo "$as_me:$LINENO: checking for alloca" >&5
31512echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031513if test "${ac_cv_func_alloca_works+set}" = set; then
31514 echo $ECHO_N "(cached) $ECHO_C" >&6
31515else
31516 cat >conftest.$ac_ext <<_ACEOF
31517/* confdefs.h. */
31518_ACEOF
31519cat confdefs.h >>conftest.$ac_ext
31520cat >>conftest.$ac_ext <<_ACEOF
31521/* end confdefs.h. */
31522#ifdef __GNUC__
31523# define alloca __builtin_alloca
31524#else
31525# ifdef _MSC_VER
31526# include <malloc.h>
31527# define alloca _alloca
31528# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031529# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031530# include <alloca.h>
31531# else
31532# ifdef _AIX
31533 #pragma alloca
31534# else
31535# ifndef alloca /* predefined by HP cc +Olibcalls */
31536char *alloca ();
31537# endif
31538# endif
31539# endif
31540# endif
31541#endif
31542
31543int
31544main ()
31545{
31546char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031547 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031548 ;
31549 return 0;
31550}
31551_ACEOF
31552rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031553if { (ac_try="$ac_link"
31554case "(($ac_try" in
31555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556 *) ac_try_echo=$ac_try;;
31557esac
31558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31559 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031560 ac_status=$?
31561 grep -v '^ *+' conftest.er1 >conftest.err
31562 rm -f conftest.er1
31563 cat conftest.err >&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031565 (exit $ac_status); } &&
31566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31567 { (case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31570esac
31571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_try") 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; } &&
31576 { ac_try='test -s conftest$ac_exeext'
31577 { (case "(($ac_try" in
31578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579 *) ac_try_echo=$ac_try;;
31580esac
31581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31582 (eval "$ac_try") 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031586 ac_cv_func_alloca_works=yes
31587else
31588 echo "$as_me: failed program was:" >&5
31589sed 's/^/| /' conftest.$ac_ext >&5
31590
Reid Spencera773bd52006-08-04 18:18:08 +000031591 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031592fi
Reid Spencera773bd52006-08-04 18:18:08 +000031593
Tanya Lattnercf067672008-01-17 05:57:22 +000031594rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031595 conftest$ac_exeext conftest.$ac_ext
31596fi
Reid Spencera773bd52006-08-04 18:18:08 +000031597{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31598echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031599
31600if test $ac_cv_func_alloca_works = yes; then
31601
31602cat >>confdefs.h <<\_ACEOF
31603#define HAVE_ALLOCA 1
31604_ACEOF
31605
31606else
31607 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31608# that cause trouble. Some versions do not even contain alloca or
31609# contain a buggy version. If you still want to use their alloca,
31610# use ar to extract alloca.o from them instead of compiling alloca.c.
31611
Reid Spencera773bd52006-08-04 18:18:08 +000031612ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031613
31614cat >>confdefs.h <<\_ACEOF
31615#define C_ALLOCA 1
31616_ACEOF
31617
31618
Reid Spencera773bd52006-08-04 18:18:08 +000031619{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31620echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031621if test "${ac_cv_os_cray+set}" = set; then
31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31623else
31624 cat >conftest.$ac_ext <<_ACEOF
31625/* confdefs.h. */
31626_ACEOF
31627cat confdefs.h >>conftest.$ac_ext
31628cat >>conftest.$ac_ext <<_ACEOF
31629/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031630#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031631webecray
31632#else
31633wenotbecray
31634#endif
31635
31636_ACEOF
31637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31638 $EGREP "webecray" >/dev/null 2>&1; then
31639 ac_cv_os_cray=yes
31640else
31641 ac_cv_os_cray=no
31642fi
31643rm -f conftest*
31644
31645fi
Reid Spencera773bd52006-08-04 18:18:08 +000031646{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31647echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031648if test $ac_cv_os_cray = yes; then
31649 for ac_func in _getb67 GETB67 getb67; do
31650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031654 echo $ECHO_N "(cached) $ECHO_C" >&6
31655else
31656 cat >conftest.$ac_ext <<_ACEOF
31657/* confdefs.h. */
31658_ACEOF
31659cat confdefs.h >>conftest.$ac_ext
31660cat >>conftest.$ac_ext <<_ACEOF
31661/* end confdefs.h. */
31662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31664#define $ac_func innocuous_$ac_func
31665
31666/* System header to define __stub macros and hopefully few prototypes,
31667 which can conflict with char $ac_func (); below.
31668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669 <limits.h> exists even on freestanding compilers. */
31670
31671#ifdef __STDC__
31672# include <limits.h>
31673#else
31674# include <assert.h>
31675#endif
31676
31677#undef $ac_func
31678
Reid Spencera773bd52006-08-04 18:18:08 +000031679/* Override any GCC internal prototype to avoid an error.
31680 Use char because int might match the return type of a GCC
31681 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031682#ifdef __cplusplus
31683extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031684#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685char $ac_func ();
31686/* The GNU C library defines this for functions which it implements
31687 to always fail with ENOSYS. Some functions are actually named
31688 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031689#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031690choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031691#endif
31692
31693int
31694main ()
31695{
Reid Spencera773bd52006-08-04 18:18:08 +000031696return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031697 ;
31698 return 0;
31699}
31700_ACEOF
31701rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031702if { (ac_try="$ac_link"
31703case "(($ac_try" in
31704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705 *) ac_try_echo=$ac_try;;
31706esac
31707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709 ac_status=$?
31710 grep -v '^ *+' conftest.er1 >conftest.err
31711 rm -f conftest.er1
31712 cat conftest.err >&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031714 (exit $ac_status); } &&
31715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31716 { (case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31719esac
31720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_try") 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
31725 { ac_try='test -s conftest$ac_exeext'
31726 { (case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31729esac
31730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_try") 2>&5
31732 ac_status=$?
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031735 eval "$as_ac_var=yes"
31736else
31737 echo "$as_me: failed program was:" >&5
31738sed 's/^/| /' conftest.$ac_ext >&5
31739
Reid Spencera773bd52006-08-04 18:18:08 +000031740 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031741fi
Reid Spencera773bd52006-08-04 18:18:08 +000031742
Tanya Lattnercf067672008-01-17 05:57:22 +000031743rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031744 conftest$ac_exeext conftest.$ac_ext
31745fi
Reid Spencera773bd52006-08-04 18:18:08 +000031746ac_res=`eval echo '${'$as_ac_var'}'`
31747 { echo "$as_me:$LINENO: result: $ac_res" >&5
31748echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031749if test `eval echo '${'$as_ac_var'}'` = yes; then
31750
31751cat >>confdefs.h <<_ACEOF
31752#define CRAY_STACKSEG_END $ac_func
31753_ACEOF
31754
31755 break
31756fi
31757
31758 done
31759fi
31760
Reid Spencera773bd52006-08-04 18:18:08 +000031761{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31762echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031763if test "${ac_cv_c_stack_direction+set}" = set; then
31764 echo $ECHO_N "(cached) $ECHO_C" >&6
31765else
31766 if test "$cross_compiling" = yes; then
31767 ac_cv_c_stack_direction=0
31768else
31769 cat >conftest.$ac_ext <<_ACEOF
31770/* confdefs.h. */
31771_ACEOF
31772cat confdefs.h >>conftest.$ac_ext
31773cat >>conftest.$ac_ext <<_ACEOF
31774/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031775$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031776int
31777find_stack_direction ()
31778{
31779 static char *addr = 0;
31780 auto char dummy;
31781 if (addr == 0)
31782 {
31783 addr = &dummy;
31784 return find_stack_direction ();
31785 }
John Criswell0021c312004-02-13 21:57:29 +000031786 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031787 return (&dummy > addr) ? 1 : -1;
31788}
John Criswell0021c312004-02-13 21:57:29 +000031789
John Criswell0021c312004-02-13 21:57:29 +000031790int
31791main ()
31792{
Reid Spencera773bd52006-08-04 18:18:08 +000031793 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031794}
31795_ACEOF
31796rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031797if { (ac_try="$ac_link"
31798case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801esac
31802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031807 { (case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31810esac
31811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031813 ac_status=$?
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031816 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031817else
31818 echo "$as_me: program exited with status $ac_status" >&5
31819echo "$as_me: failed program was:" >&5
31820sed 's/^/| /' conftest.$ac_ext >&5
31821
31822( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031823ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031824fi
Reid Spencera773bd52006-08-04 18:18:08 +000031825rm -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 +000031826fi
Reid Spencera773bd52006-08-04 18:18:08 +000031827
31828
John Criswell0021c312004-02-13 21:57:29 +000031829fi
Reid Spencera773bd52006-08-04 18:18:08 +000031830{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31831echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031832
31833cat >>confdefs.h <<_ACEOF
31834#define STACK_DIRECTION $ac_cv_c_stack_direction
31835_ACEOF
31836
31837
John Criswell0021c312004-02-13 21:57:29 +000031838fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031839
31840
Reid Spencera773bd52006-08-04 18:18:08 +000031841{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31842echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031843if test "${ac_cv_func_rand48+set}" = set; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31845else
Reid Spencera773bd52006-08-04 18:18:08 +000031846 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031847ac_cpp='$CXXCPP $CPPFLAGS'
31848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31851
31852 cat >conftest.$ac_ext <<_ACEOF
31853/* confdefs.h. */
31854_ACEOF
31855cat confdefs.h >>conftest.$ac_ext
31856cat >>conftest.$ac_ext <<_ACEOF
31857/* end confdefs.h. */
31858#include <stdlib.h>
31859int
31860main ()
31861{
31862srand48(0);lrand48();drand48();
31863 ;
31864 return 0;
31865}
31866_ACEOF
31867rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031868if { (ac_try="$ac_compile"
31869case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31872esac
31873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031875 ac_status=$?
31876 grep -v '^ *+' conftest.er1 >conftest.err
31877 rm -f conftest.er1
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882 { (case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31885esac
31886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_try") 2>&5
31888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; } &&
31891 { ac_try='test -s conftest.$ac_objext'
31892 { (case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31895esac
31896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031901 ac_cv_func_rand48=yes
31902else
31903 echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
Reid Spencera773bd52006-08-04 18:18:08 +000031906 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031907fi
Reid Spencera773bd52006-08-04 18:18:08 +000031908
31909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031910 ac_ext=c
31911ac_cpp='$CPP $CPPFLAGS'
31912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914ac_compiler_gnu=$ac_cv_c_compiler_gnu
31915
31916fi
Reid Spencera773bd52006-08-04 18:18:08 +000031917{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31918echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031919
31920if test "$ac_cv_func_rand48" = "yes" ; then
31921
31922cat >>confdefs.h <<\_ACEOF
31923#define HAVE_RAND48 1
31924_ACEOF
31925
31926fi
John Criswell0021c312004-02-13 21:57:29 +000031927
31928
Reid Spencera773bd52006-08-04 18:18:08 +000031929{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31930echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031931if test "${ac_cv_cxx_namespaces+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31933else
Reid Spencera773bd52006-08-04 18:18:08 +000031934 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031935ac_cpp='$CXXCPP $CPPFLAGS'
31936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31939
31940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031946namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031947int
31948main ()
31949{
31950using namespace Outer::Inner; return i;
31951 ;
31952 return 0;
31953}
31954_ACEOF
31955rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031956if { (ac_try="$ac_compile"
31957case "(($ac_try" in
31958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959 *) ac_try_echo=$ac_try;;
31960esac
31961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031963 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031968 (exit $ac_status); } &&
31969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970 { (case "(($ac_try" in
31971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972 *) ac_try_echo=$ac_try;;
31973esac
31974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975 (eval "$ac_try") 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest.$ac_objext'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31983esac
31984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031989 ac_cv_cxx_namespaces=yes
31990else
31991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031992sed 's/^/| /' conftest.$ac_ext >&5
31993
Reid Spencera773bd52006-08-04 18:18:08 +000031994 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031995fi
Reid Spencera773bd52006-08-04 18:18:08 +000031996
31997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031998 ac_ext=c
31999ac_cpp='$CPP $CPPFLAGS'
32000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003
32004
32005fi
Reid Spencera773bd52006-08-04 18:18:08 +000032006{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32007echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032008if test "$ac_cv_cxx_namespaces" = yes; then
32009
32010cat >>confdefs.h <<\_ACEOF
32011#define HAVE_NAMESPACES
32012_ACEOF
32013
32014fi
32015
Reid Spencera773bd52006-08-04 18:18:08 +000032016{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32017echo $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 +000032018if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032019 echo $ECHO_N "(cached) $ECHO_C" >&6
32020else
32021
Reid Spencera773bd52006-08-04 18:18:08 +000032022 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032023ac_cpp='$CXXCPP $CPPFLAGS'
32024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32027
32028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032029/* confdefs.h. */
32030_ACEOF
32031cat confdefs.h >>conftest.$ac_ext
32032cat >>conftest.$ac_ext <<_ACEOF
32033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032034#include <ext/hash_map>
32035#ifdef HAVE_NAMESPACES
32036using namespace std;
32037#endif
John Criswell7a73b802003-06-30 21:59:07 +000032038int
32039main ()
32040{
Brian Gaeke90583492003-11-10 03:06:28 +000032041hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032042 ;
32043 return 0;
32044}
32045_ACEOF
32046rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032047if { (ac_try="$ac_compile"
32048case "(($ac_try" in
32049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050 *) ac_try_echo=$ac_try;;
32051esac
32052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32053 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032055 grep -v '^ *+' conftest.er1 >conftest.err
32056 rm -f conftest.er1
32057 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032059 (exit $ac_status); } &&
32060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32061 { (case "(($ac_try" in
32062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063 *) ac_try_echo=$ac_try;;
32064esac
32065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066 (eval "$ac_try") 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; } &&
32070 { ac_try='test -s conftest.$ac_objext'
32071 { (case "(($ac_try" in
32072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32073 *) ac_try_echo=$ac_try;;
32074esac
32075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32076 (eval "$ac_try") 2>&5
32077 ac_status=$?
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032080 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032081else
32082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032083sed 's/^/| /' conftest.$ac_ext >&5
32084
Reid Spencera773bd52006-08-04 18:18:08 +000032085 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032086fi
Reid Spencera773bd52006-08-04 18:18:08 +000032087
32088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032089 ac_ext=c
32090ac_cpp='$CPP $CPPFLAGS'
32091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32093ac_compiler_gnu=$ac_cv_c_compiler_gnu
32094
John Criswell7a73b802003-06-30 21:59:07 +000032095fi
Reid Spencera773bd52006-08-04 18:18:08 +000032096{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32097echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032098 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32099 then
John Criswell9f011862004-09-24 18:28:00 +000032100
32101cat >>confdefs.h <<\_ACEOF
32102#define HAVE_STD_EXT_HASH_MAP 1
32103_ACEOF
32104
32105 else
32106
32107cat >>confdefs.h <<\_ACEOF
32108#define HAVE_STD_EXT_HASH_MAP 0
32109_ACEOF
32110
Brian Gaeke90583492003-11-10 03:06:28 +000032111 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032112
Reid Spencera773bd52006-08-04 18:18:08 +000032113 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32114echo $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 +000032115if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32116 echo $ECHO_N "(cached) $ECHO_C" >&6
32117else
32118
Reid Spencera773bd52006-08-04 18:18:08 +000032119 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032120ac_cpp='$CXXCPP $CPPFLAGS'
32121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32124
32125 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032126/* confdefs.h. */
32127_ACEOF
32128cat confdefs.h >>conftest.$ac_ext
32129cat >>conftest.$ac_ext <<_ACEOF
32130/* end confdefs.h. */
32131#include <ext/hash_map>
32132#ifdef HAVE_NAMESPACES
32133using namespace __gnu_cxx;
32134#endif
32135int
32136main ()
32137{
32138hash_map<int,int> t;
32139 ;
32140 return 0;
32141}
32142_ACEOF
32143rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032144if { (ac_try="$ac_compile"
32145case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32148esac
32149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032152 grep -v '^ *+' conftest.er1 >conftest.err
32153 rm -f conftest.er1
32154 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032156 (exit $ac_status); } &&
32157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32158 { (case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32161esac
32162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
32164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; } &&
32167 { ac_try='test -s conftest.$ac_objext'
32168 { (case "(($ac_try" in
32169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170 *) ac_try_echo=$ac_try;;
32171esac
32172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173 (eval "$ac_try") 2>&5
32174 ac_status=$?
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032177 ac_cv_cxx_have_gnu_ext_hash_map=yes
32178else
32179 echo "$as_me: failed program was:" >&5
32180sed 's/^/| /' conftest.$ac_ext >&5
32181
Reid Spencera773bd52006-08-04 18:18:08 +000032182 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032183fi
Reid Spencera773bd52006-08-04 18:18:08 +000032184
32185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032186 ac_ext=c
32187ac_cpp='$CPP $CPPFLAGS'
32188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32190ac_compiler_gnu=$ac_cv_c_compiler_gnu
32191
32192fi
Reid Spencera773bd52006-08-04 18:18:08 +000032193{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32194echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032195 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32196 then
John Criswell9f011862004-09-24 18:28:00 +000032197
32198cat >>confdefs.h <<\_ACEOF
32199#define HAVE_GNU_EXT_HASH_MAP 1
32200_ACEOF
32201
32202 else
32203
32204cat >>confdefs.h <<\_ACEOF
32205#define HAVE_GNU_EXT_HASH_MAP 0
32206_ACEOF
32207
Brian Gaeke90583492003-11-10 03:06:28 +000032208 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032209
Reid Spencera773bd52006-08-04 18:18:08 +000032210 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32211echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032212if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32214else
John Criswell7a73b802003-06-30 21:59:07 +000032215
Reid Spencera773bd52006-08-04 18:18:08 +000032216 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032217ac_cpp='$CXXCPP $CPPFLAGS'
32218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32221
32222 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032223/* confdefs.h. */
32224_ACEOF
32225cat confdefs.h >>conftest.$ac_ext
32226cat >>conftest.$ac_ext <<_ACEOF
32227/* end confdefs.h. */
32228#include <hash_map>
32229int
32230main ()
32231{
32232hash_map<int,int> t;
32233 ;
32234 return 0;
32235}
32236_ACEOF
32237rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032238if { (ac_try="$ac_compile"
32239case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32242esac
32243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032246 grep -v '^ *+' conftest.er1 >conftest.err
32247 rm -f conftest.er1
32248 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032250 (exit $ac_status); } &&
32251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32255esac
32256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
32258 ac_status=$?
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; } &&
32261 { ac_try='test -s conftest.$ac_objext'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265esac
32266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032271 ac_cv_cxx_have_global_hash_map=yes
32272else
32273 echo "$as_me: failed program was:" >&5
32274sed 's/^/| /' conftest.$ac_ext >&5
32275
Reid Spencera773bd52006-08-04 18:18:08 +000032276 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032277fi
Reid Spencera773bd52006-08-04 18:18:08 +000032278
32279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032280 ac_ext=c
32281ac_cpp='$CPP $CPPFLAGS'
32282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32284ac_compiler_gnu=$ac_cv_c_compiler_gnu
32285
32286fi
Reid Spencera773bd52006-08-04 18:18:08 +000032287{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32288echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032289 if test "$ac_cv_cxx_have_global_hash_map" = yes
32290 then
John Criswell9f011862004-09-24 18:28:00 +000032291
32292cat >>confdefs.h <<\_ACEOF
32293#define HAVE_GLOBAL_HASH_MAP 1
32294_ACEOF
32295
32296 else
32297
32298cat >>confdefs.h <<\_ACEOF
32299#define HAVE_GLOBAL_HASH_MAP 0
32300_ACEOF
32301
Brian Gaeke90583492003-11-10 03:06:28 +000032302 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032303
Reid Spencera773bd52006-08-04 18:18:08 +000032304{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32305echo $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 +000032306if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032307 echo $ECHO_N "(cached) $ECHO_C" >&6
32308else
32309
Reid Spencera773bd52006-08-04 18:18:08 +000032310 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032311ac_cpp='$CXXCPP $CPPFLAGS'
32312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32315
32316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032317/* confdefs.h. */
32318_ACEOF
32319cat confdefs.h >>conftest.$ac_ext
32320cat >>conftest.$ac_ext <<_ACEOF
32321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032322#include <ext/hash_set>
32323#ifdef HAVE_NAMESPACES
32324using namespace std;
32325#endif
John Criswell7a73b802003-06-30 21:59:07 +000032326int
32327main ()
32328{
Brian Gaeke90583492003-11-10 03:06:28 +000032329hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032330 ;
32331 return 0;
32332}
32333_ACEOF
32334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032335if { (ac_try="$ac_compile"
32336case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32339esac
32340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032343 grep -v '^ *+' conftest.er1 >conftest.err
32344 rm -f conftest.er1
32345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032347 (exit $ac_status); } &&
32348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32349 { (case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32352esac
32353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_try") 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
32359 { (case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362esac
32363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_try") 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032368 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032369else
32370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032371sed 's/^/| /' conftest.$ac_ext >&5
32372
Reid Spencera773bd52006-08-04 18:18:08 +000032373 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032374fi
Reid Spencera773bd52006-08-04 18:18:08 +000032375
32376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032377 ac_ext=c
32378ac_cpp='$CPP $CPPFLAGS'
32379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381ac_compiler_gnu=$ac_cv_c_compiler_gnu
32382
32383fi
Reid Spencera773bd52006-08-04 18:18:08 +000032384{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32385echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032386 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32387 then
John Criswell9f011862004-09-24 18:28:00 +000032388
32389cat >>confdefs.h <<\_ACEOF
32390#define HAVE_STD_EXT_HASH_SET 1
32391_ACEOF
32392
32393 else
32394
32395cat >>confdefs.h <<\_ACEOF
32396#define HAVE_STD_EXT_HASH_SET 0
32397_ACEOF
32398
Brian Gaeke90583492003-11-10 03:06:28 +000032399 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032400
Reid Spencera773bd52006-08-04 18:18:08 +000032401 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32402echo $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 +000032403if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32404 echo $ECHO_N "(cached) $ECHO_C" >&6
32405else
32406
Reid Spencera773bd52006-08-04 18:18:08 +000032407 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032408ac_cpp='$CXXCPP $CPPFLAGS'
32409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32412
John Criswell7a73b802003-06-30 21:59:07 +000032413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032414/* confdefs.h. */
32415_ACEOF
32416cat confdefs.h >>conftest.$ac_ext
32417cat >>conftest.$ac_ext <<_ACEOF
32418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032419#include <ext/hash_set>
32420#ifdef HAVE_NAMESPACES
32421using namespace __gnu_cxx;
32422#endif
John Criswell7a73b802003-06-30 21:59:07 +000032423int
32424main ()
32425{
Brian Gaeke90583492003-11-10 03:06:28 +000032426hash_set<int> t;
32427 ;
32428 return 0;
32429}
32430_ACEOF
32431rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032432if { (ac_try="$ac_compile"
32433case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32436esac
32437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032440 grep -v '^ *+' conftest.er1 >conftest.err
32441 rm -f conftest.er1
32442 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032444 (exit $ac_status); } &&
32445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32446 { (case "(($ac_try" in
32447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448 *) ac_try_echo=$ac_try;;
32449esac
32450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32451 (eval "$ac_try") 2>&5
32452 ac_status=$?
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; } &&
32455 { ac_try='test -s conftest.$ac_objext'
32456 { (case "(($ac_try" in
32457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458 *) ac_try_echo=$ac_try;;
32459esac
32460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461 (eval "$ac_try") 2>&5
32462 ac_status=$?
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032465 ac_cv_cxx_have_gnu_ext_hash_set=yes
32466else
32467 echo "$as_me: failed program was:" >&5
32468sed 's/^/| /' conftest.$ac_ext >&5
32469
Reid Spencera773bd52006-08-04 18:18:08 +000032470 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032471fi
Reid Spencera773bd52006-08-04 18:18:08 +000032472
32473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032474 ac_ext=c
32475ac_cpp='$CPP $CPPFLAGS'
32476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32478ac_compiler_gnu=$ac_cv_c_compiler_gnu
32479
32480fi
Reid Spencera773bd52006-08-04 18:18:08 +000032481{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32482echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032483 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32484 then
John Criswell9f011862004-09-24 18:28:00 +000032485
32486cat >>confdefs.h <<\_ACEOF
32487#define HAVE_GNU_EXT_HASH_SET 1
32488_ACEOF
32489
32490 else
32491
32492cat >>confdefs.h <<\_ACEOF
32493#define HAVE_GNU_EXT_HASH_SET 0
32494_ACEOF
32495
Brian Gaeke90583492003-11-10 03:06:28 +000032496 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032497
Reid Spencera773bd52006-08-04 18:18:08 +000032498 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32499echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032500if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32502else
32503
Reid Spencera773bd52006-08-04 18:18:08 +000032504 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032505ac_cpp='$CXXCPP $CPPFLAGS'
32506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32509
32510 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032511/* confdefs.h. */
32512_ACEOF
32513cat confdefs.h >>conftest.$ac_ext
32514cat >>conftest.$ac_ext <<_ACEOF
32515/* end confdefs.h. */
32516#include <hash_set>
32517int
32518main ()
32519{
John Criswell7a73b802003-06-30 21:59:07 +000032520hash_set<int> t; return 0;
32521 ;
32522 return 0;
32523}
32524_ACEOF
32525rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032526if { (ac_try="$ac_compile"
32527case "(($ac_try" in
32528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529 *) ac_try_echo=$ac_try;;
32530esac
32531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032533 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032534 grep -v '^ *+' conftest.er1 >conftest.err
32535 rm -f conftest.er1
32536 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032538 (exit $ac_status); } &&
32539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32540 { (case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32543esac
32544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_try") 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest.$ac_objext'
32550 { (case "(($ac_try" in
32551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32552 *) ac_try_echo=$ac_try;;
32553esac
32554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555 (eval "$ac_try") 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032559 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032560else
32561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032562sed 's/^/| /' conftest.$ac_ext >&5
32563
Reid Spencera773bd52006-08-04 18:18:08 +000032564 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032565fi
Reid Spencera773bd52006-08-04 18:18:08 +000032566
32567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032568 ac_ext=c
32569ac_cpp='$CPP $CPPFLAGS'
32570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32572ac_compiler_gnu=$ac_cv_c_compiler_gnu
32573
John Criswell7a73b802003-06-30 21:59:07 +000032574fi
Reid Spencera773bd52006-08-04 18:18:08 +000032575{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32576echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032577 if test "$ac_cv_cxx_have_global_hash_set" = yes
32578 then
John Criswell9f011862004-09-24 18:28:00 +000032579
32580cat >>confdefs.h <<\_ACEOF
32581#define HAVE_GLOBAL_HASH_SET 1
32582_ACEOF
32583
32584 else
32585
32586cat >>confdefs.h <<\_ACEOF
32587#define HAVE_GLOBAL_HASH_SET 0
32588_ACEOF
32589
Brian Gaeke90583492003-11-10 03:06:28 +000032590 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032591
Reid Spencera773bd52006-08-04 18:18:08 +000032592{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32593echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032594if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32595 echo $ECHO_N "(cached) $ECHO_C" >&6
32596else
32597
Reid Spencera773bd52006-08-04 18:18:08 +000032598 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032599ac_cpp='$CXXCPP $CPPFLAGS'
32600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32603
32604 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032605/* confdefs.h. */
32606_ACEOF
32607cat confdefs.h >>conftest.$ac_ext
32608cat >>conftest.$ac_ext <<_ACEOF
32609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032610#include <iterator>
32611#ifdef HAVE_NAMESPACES
32612using namespace std;
32613#endif
John Criswell7a73b802003-06-30 21:59:07 +000032614int
32615main ()
32616{
32617iterator<int,int,int> t; return 0;
32618 ;
32619 return 0;
32620}
32621_ACEOF
32622rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032623if { (ac_try="$ac_compile"
32624case "(($ac_try" in
32625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626 *) ac_try_echo=$ac_try;;
32627esac
32628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032630 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032635 (exit $ac_status); } &&
32636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32637 { (case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32640esac
32641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
32647 { (case "(($ac_try" in
32648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649 *) ac_try_echo=$ac_try;;
32650esac
32651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652 (eval "$ac_try") 2>&5
32653 ac_status=$?
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032656 ac_cv_cxx_have_std_iterator=yes
32657else
32658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032659sed 's/^/| /' conftest.$ac_ext >&5
32660
Reid Spencera773bd52006-08-04 18:18:08 +000032661 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032662fi
Reid Spencera773bd52006-08-04 18:18:08 +000032663
32664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032665 ac_ext=c
32666ac_cpp='$CPP $CPPFLAGS'
32667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32669ac_compiler_gnu=$ac_cv_c_compiler_gnu
32670
32671
32672fi
Reid Spencera773bd52006-08-04 18:18:08 +000032673{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32674echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032675if test "$ac_cv_cxx_have_std_iterator" = yes
32676then
John Criswell40468462004-09-24 21:19:06 +000032677
32678cat >>confdefs.h <<\_ACEOF
32679#define HAVE_STD_ITERATOR 1
32680_ACEOF
32681
32682else
32683
32684cat >>confdefs.h <<\_ACEOF
32685#define HAVE_STD_ITERATOR 0
32686_ACEOF
32687
John Criswell7a73b802003-06-30 21:59:07 +000032688fi
32689
Reid Spencera773bd52006-08-04 18:18:08 +000032690{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32691echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032692if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694else
32695
Reid Spencera773bd52006-08-04 18:18:08 +000032696 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032697ac_cpp='$CXXCPP $CPPFLAGS'
32698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32701
32702 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032703/* confdefs.h. */
32704_ACEOF
32705cat confdefs.h >>conftest.$ac_ext
32706cat >>conftest.$ac_ext <<_ACEOF
32707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032708#include <iterator>
32709#ifdef HAVE_NAMESPACES
32710using namespace std;
32711#endif
John Criswell7a73b802003-06-30 21:59:07 +000032712int
32713main ()
32714{
John Criswellc78022e2003-07-29 19:11:58 +000032715bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032716 ;
32717 return 0;
32718}
32719_ACEOF
32720rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032721if { (ac_try="$ac_compile"
32722case "(($ac_try" in
32723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724 *) ac_try_echo=$ac_try;;
32725esac
32726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032729 grep -v '^ *+' conftest.er1 >conftest.err
32730 rm -f conftest.er1
32731 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032733 (exit $ac_status); } &&
32734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32735 { (case "(($ac_try" in
32736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737 *) ac_try_echo=$ac_try;;
32738esac
32739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740 (eval "$ac_try") 2>&5
32741 ac_status=$?
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); }; } &&
32744 { ac_try='test -s conftest.$ac_objext'
32745 { (case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32748esac
32749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_try") 2>&5
32751 ac_status=$?
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032754 ac_cv_cxx_have_bi_iterator=yes
32755else
32756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032757sed 's/^/| /' conftest.$ac_ext >&5
32758
Reid Spencera773bd52006-08-04 18:18:08 +000032759 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032760fi
Reid Spencera773bd52006-08-04 18:18:08 +000032761
32762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032763 ac_ext=c
32764ac_cpp='$CPP $CPPFLAGS'
32765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767ac_compiler_gnu=$ac_cv_c_compiler_gnu
32768
32769
32770fi
Reid Spencera773bd52006-08-04 18:18:08 +000032771{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32772echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032773if test "$ac_cv_cxx_have_bi_iterator" = yes
32774then
John Criswell40468462004-09-24 21:19:06 +000032775
32776cat >>confdefs.h <<\_ACEOF
32777#define HAVE_BI_ITERATOR 1
32778_ACEOF
32779
32780else
32781
32782cat >>confdefs.h <<\_ACEOF
32783#define HAVE_BI_ITERATOR 0
32784_ACEOF
32785
John Criswell7a73b802003-06-30 21:59:07 +000032786fi
32787
Reid Spencera773bd52006-08-04 18:18:08 +000032788{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32789echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032790if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32792else
32793
Reid Spencera773bd52006-08-04 18:18:08 +000032794 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032795ac_cpp='$CXXCPP $CPPFLAGS'
32796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32799
32800 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032801/* confdefs.h. */
32802_ACEOF
32803cat confdefs.h >>conftest.$ac_ext
32804cat >>conftest.$ac_ext <<_ACEOF
32805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032806#include <iterator>
32807#ifdef HAVE_NAMESPACES
32808using namespace std;
32809#endif
John Criswell7a73b802003-06-30 21:59:07 +000032810int
32811main ()
32812{
John Criswellc78022e2003-07-29 19:11:58 +000032813forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032814 ;
32815 return 0;
32816}
32817_ACEOF
32818rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032819if { (ac_try="$ac_compile"
32820case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032827 grep -v '^ *+' conftest.er1 >conftest.err
32828 rm -f conftest.er1
32829 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032831 (exit $ac_status); } &&
32832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32833 { (case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_try") 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest.$ac_objext'
32843 { (case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32846esac
32847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848 (eval "$ac_try") 2>&5
32849 ac_status=$?
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032852 ac_cv_cxx_have_fwd_iterator=yes
32853else
32854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032855sed 's/^/| /' conftest.$ac_ext >&5
32856
Reid Spencera773bd52006-08-04 18:18:08 +000032857 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032858fi
Reid Spencera773bd52006-08-04 18:18:08 +000032859
32860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032861 ac_ext=c
32862ac_cpp='$CPP $CPPFLAGS'
32863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865ac_compiler_gnu=$ac_cv_c_compiler_gnu
32866
32867
32868fi
Reid Spencera773bd52006-08-04 18:18:08 +000032869{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32870echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032871if test "$ac_cv_cxx_have_fwd_iterator" = yes
32872then
John Criswell40468462004-09-24 21:19:06 +000032873
32874cat >>confdefs.h <<\_ACEOF
32875#define HAVE_FWD_ITERATOR 1
32876_ACEOF
32877
32878else
32879
32880cat >>confdefs.h <<\_ACEOF
32881#define HAVE_FWD_ITERATOR 0
32882_ACEOF
32883
John Criswell7a73b802003-06-30 21:59:07 +000032884fi
32885
32886
Reid Spencera773bd52006-08-04 18:18:08 +000032887{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32888echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032889if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32890 echo $ECHO_N "(cached) $ECHO_C" >&6
32891else
Reid Spencera773bd52006-08-04 18:18:08 +000032892 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032893ac_cpp='$CXXCPP $CPPFLAGS'
32894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32897
Reid Spencerabec8f92004-10-27 23:03:44 +000032898 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032899/* confdefs.h. */
32900_ACEOF
32901cat confdefs.h >>conftest.$ac_ext
32902cat >>conftest.$ac_ext <<_ACEOF
32903/* end confdefs.h. */
32904#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032905int
32906main ()
32907{
32908float f; isnan(f);
32909 ;
32910 return 0;
32911}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032912_ACEOF
32913rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032914if { (ac_try="$ac_compile"
32915case "(($ac_try" in
32916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32917 *) ac_try_echo=$ac_try;;
32918esac
32919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32920 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032921 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032922 grep -v '^ *+' conftest.er1 >conftest.err
32923 rm -f conftest.er1
32924 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032926 (exit $ac_status); } &&
32927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32928 { (case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32931esac
32932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_try") 2>&5
32934 ac_status=$?
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); }; } &&
32937 { ac_try='test -s conftest.$ac_objext'
32938 { (case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32941esac
32942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_try") 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032947 ac_cv_func_isnan_in_math_h=yes
32948else
32949 echo "$as_me: failed program was:" >&5
32950sed 's/^/| /' conftest.$ac_ext >&5
32951
Reid Spencera773bd52006-08-04 18:18:08 +000032952 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032953fi
Reid Spencera773bd52006-08-04 18:18:08 +000032954
32955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032956 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032957ac_cpp='$CPP $CPPFLAGS'
32958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32960ac_compiler_gnu=$ac_cv_c_compiler_gnu
32961
32962fi
Reid Spencera773bd52006-08-04 18:18:08 +000032963{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32964echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032965
32966
32967if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032968
32969cat >>confdefs.h <<\_ACEOF
32970#define HAVE_ISNAN_IN_MATH_H 1
32971_ACEOF
32972
Reid Spencerabec8f92004-10-27 23:03:44 +000032973fi
32974
Reid Spencera773bd52006-08-04 18:18:08 +000032975{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32976echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032977if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32979else
Reid Spencera773bd52006-08-04 18:18:08 +000032980 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032981ac_cpp='$CXXCPP $CPPFLAGS'
32982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32985
Reid Spencerabec8f92004-10-27 23:03:44 +000032986 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032987/* confdefs.h. */
32988_ACEOF
32989cat confdefs.h >>conftest.$ac_ext
32990cat >>conftest.$ac_ext <<_ACEOF
32991/* end confdefs.h. */
32992#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032993int
32994main ()
32995{
32996float f; isnan(f);
32997 ;
32998 return 0;
32999}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033000_ACEOF
33001rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033002if { (ac_try="$ac_compile"
33003case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33006esac
33007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033010 grep -v '^ *+' conftest.er1 >conftest.err
33011 rm -f conftest.er1
33012 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033014 (exit $ac_status); } &&
33015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33016 { (case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33019esac
33020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_try") 2>&5
33022 ac_status=$?
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; } &&
33025 { ac_try='test -s conftest.$ac_objext'
33026 { (case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33029esac
33030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
33032 ac_status=$?
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033035 ac_cv_func_isnan_in_cmath=yes
33036else
33037 echo "$as_me: failed program was:" >&5
33038sed 's/^/| /' conftest.$ac_ext >&5
33039
Reid Spencera773bd52006-08-04 18:18:08 +000033040 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033041fi
Reid Spencera773bd52006-08-04 18:18:08 +000033042
33043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033044 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033045ac_cpp='$CPP $CPPFLAGS'
33046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33048ac_compiler_gnu=$ac_cv_c_compiler_gnu
33049
33050fi
Reid Spencera773bd52006-08-04 18:18:08 +000033051{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33052echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033053
33054if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033055
33056cat >>confdefs.h <<\_ACEOF
33057#define HAVE_ISNAN_IN_CMATH 1
33058_ACEOF
33059
Reid Spencerabec8f92004-10-27 23:03:44 +000033060fi
33061
Reid Spencera773bd52006-08-04 18:18:08 +000033062{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33063echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033064if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066else
Reid Spencera773bd52006-08-04 18:18:08 +000033067 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033068ac_cpp='$CXXCPP $CPPFLAGS'
33069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33072
Reid Spencerabec8f92004-10-27 23:03:44 +000033073 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033074/* confdefs.h. */
33075_ACEOF
33076cat confdefs.h >>conftest.$ac_ext
33077cat >>conftest.$ac_ext <<_ACEOF
33078/* end confdefs.h. */
33079#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033080int
33081main ()
33082{
33083float f; std::isnan(f);
33084 ;
33085 return 0;
33086}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033087_ACEOF
33088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033089if { (ac_try="$ac_compile"
33090case "(($ac_try" in
33091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092 *) ac_try_echo=$ac_try;;
33093esac
33094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033097 grep -v '^ *+' conftest.er1 >conftest.err
33098 rm -f conftest.er1
33099 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033101 (exit $ac_status); } &&
33102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33103 { (case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33106esac
33107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_try") 2>&5
33109 ac_status=$?
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; } &&
33112 { ac_try='test -s conftest.$ac_objext'
33113 { (case "(($ac_try" in
33114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115 *) ac_try_echo=$ac_try;;
33116esac
33117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33118 (eval "$ac_try") 2>&5
33119 ac_status=$?
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033122 ac_cv_func_std_isnan_in_cmath=yes
33123else
33124 echo "$as_me: failed program was:" >&5
33125sed 's/^/| /' conftest.$ac_ext >&5
33126
Reid Spencera773bd52006-08-04 18:18:08 +000033127 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033128fi
Reid Spencera773bd52006-08-04 18:18:08 +000033129
33130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033131 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033132ac_cpp='$CPP $CPPFLAGS'
33133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33135ac_compiler_gnu=$ac_cv_c_compiler_gnu
33136
33137fi
Reid Spencera773bd52006-08-04 18:18:08 +000033138{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33139echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033140
33141if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033142
33143cat >>confdefs.h <<\_ACEOF
33144#define HAVE_STD_ISNAN_IN_CMATH 1
33145_ACEOF
33146
Reid Spencerabec8f92004-10-27 23:03:44 +000033147fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033148
33149
Reid Spencera773bd52006-08-04 18:18:08 +000033150{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33151echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033152if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154else
Reid Spencera773bd52006-08-04 18:18:08 +000033155 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033156ac_cpp='$CXXCPP $CPPFLAGS'
33157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33160
Reid Spencerabec8f92004-10-27 23:03:44 +000033161 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033162/* confdefs.h. */
33163_ACEOF
33164cat confdefs.h >>conftest.$ac_ext
33165cat >>conftest.$ac_ext <<_ACEOF
33166/* end confdefs.h. */
33167#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033168int
33169main ()
33170{
33171float f; isinf(f);
33172 ;
33173 return 0;
33174}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033175_ACEOF
33176rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033177if { (ac_try="$ac_compile"
33178case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33181esac
33182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033185 grep -v '^ *+' conftest.er1 >conftest.err
33186 rm -f conftest.er1
33187 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033189 (exit $ac_status); } &&
33190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33191 { (case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33194esac
33195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196 (eval "$ac_try") 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest.$ac_objext'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33204esac
33205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033210 ac_cv_func_isinf_in_math_h=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
Reid Spencera773bd52006-08-04 18:18:08 +000033215 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033216fi
Reid Spencera773bd52006-08-04 18:18:08 +000033217
33218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033219 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033220ac_cpp='$CPP $CPPFLAGS'
33221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223ac_compiler_gnu=$ac_cv_c_compiler_gnu
33224
33225fi
Reid Spencera773bd52006-08-04 18:18:08 +000033226{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33227echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033228
33229if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033230
33231cat >>confdefs.h <<\_ACEOF
33232#define HAVE_ISINF_IN_MATH_H 1
33233_ACEOF
33234
Reid Spencerabec8f92004-10-27 23:03:44 +000033235fi
33236
Reid Spencera773bd52006-08-04 18:18:08 +000033237{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33238echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033239if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33241else
Reid Spencera773bd52006-08-04 18:18:08 +000033242 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033243ac_cpp='$CXXCPP $CPPFLAGS'
33244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33247
Reid Spencerabec8f92004-10-27 23:03:44 +000033248 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033249/* confdefs.h. */
33250_ACEOF
33251cat confdefs.h >>conftest.$ac_ext
33252cat >>conftest.$ac_ext <<_ACEOF
33253/* end confdefs.h. */
33254#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033255int
33256main ()
33257{
33258float f; isinf(f);
33259 ;
33260 return 0;
33261}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033262_ACEOF
33263rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033264if { (ac_try="$ac_compile"
33265case "(($ac_try" in
33266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267 *) ac_try_echo=$ac_try;;
33268esac
33269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033272 grep -v '^ *+' conftest.er1 >conftest.err
33273 rm -f conftest.er1
33274 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033276 (exit $ac_status); } &&
33277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33278 { (case "(($ac_try" in
33279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280 *) ac_try_echo=$ac_try;;
33281esac
33282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283 (eval "$ac_try") 2>&5
33284 ac_status=$?
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); }; } &&
33287 { ac_try='test -s conftest.$ac_objext'
33288 { (case "(($ac_try" in
33289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290 *) ac_try_echo=$ac_try;;
33291esac
33292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293 (eval "$ac_try") 2>&5
33294 ac_status=$?
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033297 ac_cv_func_isinf_in_cmath=yes
33298else
33299 echo "$as_me: failed program was:" >&5
33300sed 's/^/| /' conftest.$ac_ext >&5
33301
Reid Spencera773bd52006-08-04 18:18:08 +000033302 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033303fi
Reid Spencera773bd52006-08-04 18:18:08 +000033304
33305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033306 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033307ac_cpp='$CPP $CPPFLAGS'
33308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33310ac_compiler_gnu=$ac_cv_c_compiler_gnu
33311
33312fi
Reid Spencera773bd52006-08-04 18:18:08 +000033313{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33314echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033315
33316if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033317
33318cat >>confdefs.h <<\_ACEOF
33319#define HAVE_ISINF_IN_CMATH 1
33320_ACEOF
33321
Reid Spencerabec8f92004-10-27 23:03:44 +000033322fi
33323
Reid Spencera773bd52006-08-04 18:18:08 +000033324{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33325echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033326if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33328else
Reid Spencera773bd52006-08-04 18:18:08 +000033329 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033330ac_cpp='$CXXCPP $CPPFLAGS'
33331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33334
Reid Spencerabec8f92004-10-27 23:03:44 +000033335 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033336/* confdefs.h. */
33337_ACEOF
33338cat confdefs.h >>conftest.$ac_ext
33339cat >>conftest.$ac_ext <<_ACEOF
33340/* end confdefs.h. */
33341#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033342int
33343main ()
33344{
33345float f; std::isinf(f)}
33346 ;
33347 return 0;
33348}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033349_ACEOF
33350rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033351if { (ac_try="$ac_compile"
33352case "(($ac_try" in
33353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354 *) ac_try_echo=$ac_try;;
33355esac
33356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033359 grep -v '^ *+' conftest.er1 >conftest.err
33360 rm -f conftest.er1
33361 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033363 (exit $ac_status); } &&
33364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33365 { (case "(($ac_try" in
33366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367 *) ac_try_echo=$ac_try;;
33368esac
33369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_try") 2>&5
33371 ac_status=$?
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; } &&
33374 { ac_try='test -s conftest.$ac_objext'
33375 { (case "(($ac_try" in
33376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33377 *) ac_try_echo=$ac_try;;
33378esac
33379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33380 (eval "$ac_try") 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033384 ac_cv_func_std_isinf_in_cmath=yes
33385else
33386 echo "$as_me: failed program was:" >&5
33387sed 's/^/| /' conftest.$ac_ext >&5
33388
Reid Spencera773bd52006-08-04 18:18:08 +000033389 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033390fi
Reid Spencera773bd52006-08-04 18:18:08 +000033391
33392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033393 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033394ac_cpp='$CPP $CPPFLAGS'
33395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33397ac_compiler_gnu=$ac_cv_c_compiler_gnu
33398
33399fi
Reid Spencera773bd52006-08-04 18:18:08 +000033400{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33401echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033402
33403if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033404
33405cat >>confdefs.h <<\_ACEOF
33406#define HAVE_STD_ISINF_IN_CMATH 1
33407_ACEOF
33408
Reid Spencerabec8f92004-10-27 23:03:44 +000033409fi
33410
Reid Spencera773bd52006-08-04 18:18:08 +000033411{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33412echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033413if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33414 echo $ECHO_N "(cached) $ECHO_C" >&6
33415else
Reid Spencera773bd52006-08-04 18:18:08 +000033416 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033417ac_cpp='$CXXCPP $CPPFLAGS'
33418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33421
Reid Spencerabec8f92004-10-27 23:03:44 +000033422 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033423/* confdefs.h. */
33424_ACEOF
33425cat confdefs.h >>conftest.$ac_ext
33426cat >>conftest.$ac_ext <<_ACEOF
33427/* end confdefs.h. */
33428#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033429int
33430main ()
33431{
33432float f; finite(f);
33433 ;
33434 return 0;
33435}
Brian Gaeked59a6472004-07-21 03:33:58 +000033436_ACEOF
33437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033438if { (ac_try="$ac_compile"
33439case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33442esac
33443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033446 grep -v '^ *+' conftest.er1 >conftest.err
33447 rm -f conftest.er1
33448 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033450 (exit $ac_status); } &&
33451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33452 { (case "(($ac_try" in
33453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454 *) ac_try_echo=$ac_try;;
33455esac
33456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457 (eval "$ac_try") 2>&5
33458 ac_status=$?
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; } &&
33461 { ac_try='test -s conftest.$ac_objext'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33465esac
33466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033471 ac_cv_func_finite_in_ieeefp_h=yes
33472else
33473 echo "$as_me: failed program was:" >&5
33474sed 's/^/| /' conftest.$ac_ext >&5
33475
Reid Spencera773bd52006-08-04 18:18:08 +000033476 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033477fi
Reid Spencera773bd52006-08-04 18:18:08 +000033478
33479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033480 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033481ac_cpp='$CPP $CPPFLAGS'
33482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484ac_compiler_gnu=$ac_cv_c_compiler_gnu
33485
33486fi
Reid Spencera773bd52006-08-04 18:18:08 +000033487{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33488echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033489
Brian Gaeke6802b552004-10-28 05:06:45 +000033490if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033491
33492cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033493#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033494_ACEOF
33495
Reid Spencerabec8f92004-10-27 23:03:44 +000033496fi
33497
33498
33499
Reid Spencer30fe5262007-01-20 07:48:49 +000033500if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033501
33502
33503for ac_header in stdlib.h unistd.h
33504do
33505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033510 echo $ECHO_N "(cached) $ECHO_C" >&6
33511fi
Reid Spencera773bd52006-08-04 18:18:08 +000033512ac_res=`eval echo '${'$as_ac_Header'}'`
33513 { echo "$as_me:$LINENO: result: $ac_res" >&5
33514echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033515else
33516 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033517{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033519cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033520/* confdefs.h. */
33521_ACEOF
33522cat confdefs.h >>conftest.$ac_ext
33523cat >>conftest.$ac_ext <<_ACEOF
33524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033525$ac_includes_default
33526#include <$ac_header>
33527_ACEOF
33528rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033529if { (ac_try="$ac_compile"
33530case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33533esac
33534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033536 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33546esac
33547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest.$ac_objext'
33553 { (case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_try") 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033562 ac_header_compiler=yes
33563else
33564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033565sed 's/^/| /' conftest.$ac_ext >&5
33566
Reid Spencera773bd52006-08-04 18:18:08 +000033567 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033568fi
Reid Spencera773bd52006-08-04 18:18:08 +000033569
33570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33571{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33572echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033573
33574# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033575{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033577cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033578/* confdefs.h. */
33579_ACEOF
33580cat confdefs.h >>conftest.$ac_ext
33581cat >>conftest.$ac_ext <<_ACEOF
33582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033583#include <$ac_header>
33584_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033585if { (ac_try="$ac_cpp conftest.$ac_ext"
33586case "(($ac_try" in
33587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588 *) ac_try_echo=$ac_try;;
33589esac
33590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033592 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033593 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033594 rm -f conftest.er1
33595 cat conftest.err >&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033597 (exit $ac_status); } >/dev/null; then
33598 if test -s conftest.err; then
33599 ac_cpp_err=$ac_c_preproc_warn_flag
33600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33601 else
33602 ac_cpp_err=
33603 fi
33604else
33605 ac_cpp_err=yes
33606fi
33607if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033608 ac_header_preproc=yes
33609else
33610 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033611sed 's/^/| /' conftest.$ac_ext >&5
33612
John Criswell7a73b802003-06-30 21:59:07 +000033613 ac_header_preproc=no
33614fi
Reid Spencera773bd52006-08-04 18:18:08 +000033615
John Criswell7a73b802003-06-30 21:59:07 +000033616rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33618echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033619
33620# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33622 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33627 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033628 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033629 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033642 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033643## ----------------------------------- ##
33644## Report this to llvmbugs@cs.uiuc.edu ##
33645## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033646_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033647 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033648 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033649esac
Reid Spencera773bd52006-08-04 18:18:08 +000033650{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033653 echo $ECHO_N "(cached) $ECHO_C" >&6
33654else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033655 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033656fi
Reid Spencera773bd52006-08-04 18:18:08 +000033657ac_res=`eval echo '${'$as_ac_Header'}'`
33658 { echo "$as_me:$LINENO: result: $ac_res" >&5
33659echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033660
33661fi
33662if test `eval echo '${'$as_ac_Header'}'` = yes; then
33663 cat >>confdefs.h <<_ACEOF
33664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33665_ACEOF
33666
33667fi
33668
33669done
33670
33671
33672for ac_func in getpagesize
33673do
33674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033675{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033678 echo $ECHO_N "(cached) $ECHO_C" >&6
33679else
33680 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033681/* confdefs.h. */
33682_ACEOF
33683cat confdefs.h >>conftest.$ac_ext
33684cat >>conftest.$ac_ext <<_ACEOF
33685/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33688#define $ac_func innocuous_$ac_func
33689
John Criswell7a73b802003-06-30 21:59:07 +000033690/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033691 which can conflict with char $ac_func (); below.
33692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33693 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033694
John Criswell0c38eaf2003-09-10 15:17:25 +000033695#ifdef __STDC__
33696# include <limits.h>
33697#else
33698# include <assert.h>
33699#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033700
33701#undef $ac_func
33702
Reid Spencera773bd52006-08-04 18:18:08 +000033703/* Override any GCC internal prototype to avoid an error.
33704 Use char because int might match the return type of a GCC
33705 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033706#ifdef __cplusplus
33707extern "C"
33708#endif
John Criswell7a73b802003-06-30 21:59:07 +000033709char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033710/* The GNU C library defines this for functions which it implements
33711 to always fail with ENOSYS. Some functions are actually named
33712 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033713#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033714choke me
John Criswell7a73b802003-06-30 21:59:07 +000033715#endif
33716
John Criswell0c38eaf2003-09-10 15:17:25 +000033717int
33718main ()
33719{
Reid Spencera773bd52006-08-04 18:18:08 +000033720return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033721 ;
33722 return 0;
33723}
33724_ACEOF
33725rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033726if { (ac_try="$ac_link"
33727case "(($ac_try" in
33728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729 *) ac_try_echo=$ac_try;;
33730esac
33731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33732 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033734 grep -v '^ *+' conftest.er1 >conftest.err
33735 rm -f conftest.er1
33736 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033738 (exit $ac_status); } &&
33739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33740 { (case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33743esac
33744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_try") 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; } &&
33749 { ac_try='test -s conftest$ac_exeext'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33753esac
33754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033759 eval "$as_ac_var=yes"
33760else
33761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033762sed 's/^/| /' conftest.$ac_ext >&5
33763
Reid Spencera773bd52006-08-04 18:18:08 +000033764 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033765fi
Reid Spencera773bd52006-08-04 18:18:08 +000033766
Tanya Lattnercf067672008-01-17 05:57:22 +000033767rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033768 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033769fi
Reid Spencera773bd52006-08-04 18:18:08 +000033770ac_res=`eval echo '${'$as_ac_var'}'`
33771 { echo "$as_me:$LINENO: result: $ac_res" >&5
33772echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033773if test `eval echo '${'$as_ac_var'}'` = yes; then
33774 cat >>confdefs.h <<_ACEOF
33775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33776_ACEOF
33777
33778fi
33779done
33780
Reid Spencera773bd52006-08-04 18:18:08 +000033781{ echo "$as_me:$LINENO: checking for working mmap" >&5
33782echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033783if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33784 echo $ECHO_N "(cached) $ECHO_C" >&6
33785else
33786 if test "$cross_compiling" = yes; then
33787 ac_cv_func_mmap_fixed_mapped=no
33788else
33789 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033790/* confdefs.h. */
33791_ACEOF
33792cat confdefs.h >>conftest.$ac_ext
33793cat >>conftest.$ac_ext <<_ACEOF
33794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033795$ac_includes_default
33796/* malloc might have been renamed as rpl_malloc. */
33797#undef malloc
33798
33799/* Thanks to Mike Haertel and Jim Avera for this test.
33800 Here is a matrix of mmap possibilities:
33801 mmap private not fixed
33802 mmap private fixed at somewhere currently unmapped
33803 mmap private fixed at somewhere already mapped
33804 mmap shared not fixed
33805 mmap shared fixed at somewhere currently unmapped
33806 mmap shared fixed at somewhere already mapped
33807 For private mappings, we should verify that changes cannot be read()
33808 back from the file, nor mmap's back from the file at a different
33809 address. (There have been systems where private was not correctly
33810 implemented like the infamous i386 svr4.0, and systems where the
33811 VM page cache was not coherent with the file system buffer cache
33812 like early versions of FreeBSD and possibly contemporary NetBSD.)
33813 For shared mappings, we should conversely verify that changes get
33814 propagated back to all the places they're supposed to be.
33815
33816 Grep wants private fixed already mapped.
33817 The main things grep needs to know about mmap are:
33818 * does it exist and is it safe to write into the mmap'd area
33819 * how to use it (BSD variants) */
33820
33821#include <fcntl.h>
33822#include <sys/mman.h>
33823
Tanya Lattnercf067672008-01-17 05:57:22 +000033824#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033825char *malloc ();
33826#endif
33827
33828/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033829#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033830/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033831# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033832# define HAVE_SYS_PARAM_H 1
33833# endif
33834
33835# ifdef _SC_PAGESIZE
33836# define getpagesize() sysconf(_SC_PAGESIZE)
33837# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033838# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033839# include <sys/param.h>
33840# ifdef EXEC_PAGESIZE
33841# define getpagesize() EXEC_PAGESIZE
33842# else /* no EXEC_PAGESIZE */
33843# ifdef NBPG
33844# define getpagesize() NBPG * CLSIZE
33845# ifndef CLSIZE
33846# define CLSIZE 1
33847# endif /* no CLSIZE */
33848# else /* no NBPG */
33849# ifdef NBPC
33850# define getpagesize() NBPC
33851# else /* no NBPC */
33852# ifdef PAGESIZE
33853# define getpagesize() PAGESIZE
33854# endif /* PAGESIZE */
33855# endif /* no NBPC */
33856# endif /* no NBPG */
33857# endif /* no EXEC_PAGESIZE */
33858# else /* no HAVE_SYS_PARAM_H */
33859# define getpagesize() 8192 /* punt totally */
33860# endif /* no HAVE_SYS_PARAM_H */
33861# endif /* no _SC_PAGESIZE */
33862
33863#endif /* no HAVE_GETPAGESIZE */
33864
33865int
33866main ()
33867{
33868 char *data, *data2, *data3;
33869 int i, pagesize;
33870 int fd;
33871
33872 pagesize = getpagesize ();
33873
33874 /* First, make a file with some known garbage in it. */
33875 data = (char *) malloc (pagesize);
33876 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033877 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033878 for (i = 0; i < pagesize; ++i)
33879 *(data + i) = rand ();
33880 umask (0);
33881 fd = creat ("conftest.mmap", 0600);
33882 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033883 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033884 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033885 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033886 close (fd);
33887
33888 /* Next, try to mmap the file at a fixed address which already has
33889 something else allocated at it. If we can, also make sure that
33890 we see the same garbage. */
33891 fd = open ("conftest.mmap", O_RDWR);
33892 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033893 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033894 data2 = (char *) malloc (2 * pagesize);
33895 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033896 return 1;
33897 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033900 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033901 for (i = 0; i < pagesize; ++i)
33902 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033903 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033904
33905 /* Finally, make sure that changes to the mapped area do not
33906 percolate back to the file as seen by read(). (This is a bug on
33907 some variants of i386 svr4.0.) */
33908 for (i = 0; i < pagesize; ++i)
33909 *(data2 + i) = *(data2 + i) + 1;
33910 data3 = (char *) malloc (pagesize);
33911 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033912 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033913 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033914 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033915 for (i = 0; i < pagesize; ++i)
33916 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033917 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033918 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033919 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033920}
33921_ACEOF
33922rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033923if { (ac_try="$ac_link"
33924case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33927esac
33928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033933 { (case "(($ac_try" in
33934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935 *) ac_try_echo=$ac_try;;
33936esac
33937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
33942 ac_cv_func_mmap_fixed_mapped=yes
33943else
33944 echo "$as_me: program exited with status $ac_status" >&5
33945echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033946sed 's/^/| /' conftest.$ac_ext >&5
33947
John Criswell7a73b802003-06-30 21:59:07 +000033948( exit $ac_status )
33949ac_cv_func_mmap_fixed_mapped=no
33950fi
Reid Spencera773bd52006-08-04 18:18:08 +000033951rm -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 +000033952fi
Reid Spencera773bd52006-08-04 18:18:08 +000033953
33954
John Criswell7a73b802003-06-30 21:59:07 +000033955fi
Reid Spencera773bd52006-08-04 18:18:08 +000033956{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33957echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033958if test $ac_cv_func_mmap_fixed_mapped = yes; then
33959
33960cat >>confdefs.h <<\_ACEOF
33961#define HAVE_MMAP 1
33962_ACEOF
33963
33964fi
33965rm -f conftest.mmap
33966
Reid Spencer30fe5262007-01-20 07:48:49 +000033967 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033968echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033969if test "${ac_cv_func_mmap_file+set}" = set; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33971else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033972 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033973ac_cpp='$CPP $CPPFLAGS'
33974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977
33978 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033979 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033980else
33981 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033982
Reid Spencer777ce172004-09-20 04:09:56 +000033983 /* confdefs.h. */
33984_ACEOF
33985cat confdefs.h >>conftest.$ac_ext
33986cat >>conftest.$ac_ext <<_ACEOF
33987/* end confdefs.h. */
33988
John Criswell7a73b802003-06-30 21:59:07 +000033989#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033990#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033991#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033992
33993int
33994main ()
33995{
John Criswell7a73b802003-06-30 21:59:07 +000033996
33997 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033998 fd = creat ("foo",0777);
33999 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34000 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034001 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034002 ;
34003 return 0;
34004}
John Criswell7a73b802003-06-30 21:59:07 +000034005_ACEOF
34006rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034007if { (ac_try="$ac_link"
34008case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34011esac
34012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34020esac
34021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034023 ac_status=$?
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; }; then
34026 ac_cv_func_mmap_file=yes
34027else
34028 echo "$as_me: program exited with status $ac_status" >&5
34029echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034030sed 's/^/| /' conftest.$ac_ext >&5
34031
John Criswell7a73b802003-06-30 21:59:07 +000034032( exit $ac_status )
34033ac_cv_func_mmap_file=no
34034fi
Reid Spencera773bd52006-08-04 18:18:08 +000034035rm -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 +000034036fi
Reid Spencera773bd52006-08-04 18:18:08 +000034037
34038
John Criswell7a73b802003-06-30 21:59:07 +000034039 ac_ext=c
34040ac_cpp='$CPP $CPPFLAGS'
34041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043ac_compiler_gnu=$ac_cv_c_compiler_gnu
34044
34045
34046fi
Reid Spencera773bd52006-08-04 18:18:08 +000034047{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34048echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034049if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034050
34051cat >>confdefs.h <<\_ACEOF
34052#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034053_ACEOF
34054
34055 MMAP_FILE=yes
34056
34057fi
34058
Reid Spencer30fe5262007-01-20 07:48:49 +000034059 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034060echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034061if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34063else
Reid Spencer582a23c2004-12-29 07:07:57 +000034064 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034065 ac_cv_need_dev_zero_for_mmap=yes
34066 else
34067 ac_cv_need_dev_zero_for_mmap=no
34068 fi
34069
34070fi
Reid Spencera773bd52006-08-04 18:18:08 +000034071{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34072echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034073if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34074
34075cat >>confdefs.h <<\_ACEOF
34076#define NEED_DEV_ZERO_FOR_MMAP 1
34077_ACEOF
34078
34079fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034080
Reid Spencer30fe5262007-01-20 07:48:49 +000034081 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34082 then
34083 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034084echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034085 fi
34086 if test "$ac_cv_func_mmap_file" = "no"
34087 then
34088 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034089echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034090 fi
John Criswellb13092b2003-07-22 21:00:24 +000034091fi
John Criswell7a73b802003-06-30 21:59:07 +000034092
34093
Reid Spencer9372f152007-07-30 20:13:24 +000034094
34095for ac_func in __dso_handle
34096do
34097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34101 echo $ECHO_N "(cached) $ECHO_C" >&6
34102else
34103 cat >conftest.$ac_ext <<_ACEOF
34104/* confdefs.h. */
34105_ACEOF
34106cat confdefs.h >>conftest.$ac_ext
34107cat >>conftest.$ac_ext <<_ACEOF
34108/* end confdefs.h. */
34109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34111#define $ac_func innocuous_$ac_func
34112
34113/* System header to define __stub macros and hopefully few prototypes,
34114 which can conflict with char $ac_func (); below.
34115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34116 <limits.h> exists even on freestanding compilers. */
34117
34118#ifdef __STDC__
34119# include <limits.h>
34120#else
34121# include <assert.h>
34122#endif
34123
34124#undef $ac_func
34125
34126/* Override any GCC internal prototype to avoid an error.
34127 Use char because int might match the return type of a GCC
34128 builtin and then its argument prototype would still apply. */
34129#ifdef __cplusplus
34130extern "C"
34131#endif
34132char $ac_func ();
34133/* The GNU C library defines this for functions which it implements
34134 to always fail with ENOSYS. Some functions are actually named
34135 something starting with __ and the normal name is an alias. */
34136#if defined __stub_$ac_func || defined __stub___$ac_func
34137choke me
34138#endif
34139
34140int
34141main ()
34142{
34143return $ac_func ();
34144 ;
34145 return 0;
34146}
34147_ACEOF
34148rm -f conftest.$ac_objext conftest$ac_exeext
34149if { (ac_try="$ac_link"
34150case "(($ac_try" in
34151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34152 *) ac_try_echo=$ac_try;;
34153esac
34154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155 (eval "$ac_link") 2>conftest.er1
34156 ac_status=$?
34157 grep -v '^ *+' conftest.er1 >conftest.err
34158 rm -f conftest.er1
34159 cat conftest.err >&5
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034161 (exit $ac_status); } &&
34162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34163 { (case "(($ac_try" in
34164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165 *) ac_try_echo=$ac_try;;
34166esac
34167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168 (eval "$ac_try") 2>&5
34169 ac_status=$?
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); }; } &&
34172 { ac_try='test -s conftest$ac_exeext'
34173 { (case "(($ac_try" in
34174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175 *) ac_try_echo=$ac_try;;
34176esac
34177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178 (eval "$ac_try") 2>&5
34179 ac_status=$?
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034182 eval "$as_ac_var=yes"
34183else
34184 echo "$as_me: failed program was:" >&5
34185sed 's/^/| /' conftest.$ac_ext >&5
34186
34187 eval "$as_ac_var=no"
34188fi
34189
Tanya Lattnercf067672008-01-17 05:57:22 +000034190rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034191 conftest$ac_exeext conftest.$ac_ext
34192fi
34193ac_res=`eval echo '${'$as_ac_var'}'`
34194 { echo "$as_me:$LINENO: result: $ac_res" >&5
34195echo "${ECHO_T}$ac_res" >&6; }
34196if test `eval echo '${'$as_ac_var'}'` = yes; then
34197 cat >>confdefs.h <<_ACEOF
34198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34199_ACEOF
34200
34201fi
34202done
34203
34204
Reid Spencera773bd52006-08-04 18:18:08 +000034205{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34206echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034207if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34208 echo $ECHO_N "(cached) $ECHO_C" >&6
34209else
34210 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034211if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034212 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034213 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34214 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034215 if test $? -eq 0 ; then
34216 llvm_cv_llvmgcc_sanity="yes"
34217 fi
34218 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034219fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034220fi
Reid Spencera773bd52006-08-04 18:18:08 +000034221{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34222echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034223
34224if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034225 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34226echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034227 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034228 LLVMCC1=$llvmcc1path
34229
Reid Spencer502935f2004-12-22 05:56:56 +000034230 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034231 LLVMCC1PLUS=$llvmcc1pluspath
34232
Reid Spencer502935f2004-12-22 05:56:56 +000034233 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34234 LLVMGCCDIR=$llvmgccdir
34235
Reid Spencer282d8c12006-12-21 22:55:41 +000034236 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34237 LLVMGCCLIBEXEC=$llvmgcclibexec
34238
Reid Spencerb5d75b82006-05-09 00:31:01 +000034239 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034240 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34241 LLVMGCC_VERSION=$llvmgccversion
34242
34243 LLVMGCC_MAJVERS=$llvmgccmajvers
34244
Reid Spencer0d238182007-04-21 21:28:52 +000034245 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34246 LLVMGCC_LANGS=$llvmgcclangs
34247
34248 { echo "$as_me:$LINENO: result: ok" >&5
34249echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034250fi
34251
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034252SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034253
34254
Reid Spencere9de0912004-08-20 09:03:57 +000034255# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034256# information into substitutions that will end up in Makefile.config.in
34257# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034258if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034259 prefix="/usr/local"
34260fi
Reid Spencere9de0912004-08-20 09:03:57 +000034261eval LLVM_PREFIX="${prefix}";
34262eval LLVM_BINDIR="${prefix}/bin";
34263eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034264eval LLVM_DATADIR="${prefix}/share/llvm";
34265eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34266eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034267eval LLVM_INCLUDEDIR="${prefix}/include";
34268eval LLVM_INFODIR="${prefix}/info";
34269eval LLVM_MANDIR="${prefix}/man";
34270LLVM_CONFIGTIME=`date`
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034282# Place the various directores into the config.h file as #defines so that we
34283# can know about the installation paths within LLVM.
34284
Reid Spencere9de0912004-08-20 09:03:57 +000034285cat >>confdefs.h <<_ACEOF
34286#define LLVM_PREFIX "$LLVM_PREFIX"
34287_ACEOF
34288
34289
34290cat >>confdefs.h <<_ACEOF
34291#define LLVM_BINDIR "$LLVM_BINDIR"
34292_ACEOF
34293
34294
34295cat >>confdefs.h <<_ACEOF
34296#define LLVM_LIBDIR "$LLVM_LIBDIR"
34297_ACEOF
34298
34299
34300cat >>confdefs.h <<_ACEOF
34301#define LLVM_DATADIR "$LLVM_DATADIR"
34302_ACEOF
34303
34304
34305cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034306#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034307_ACEOF
34308
34309
34310cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034311#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034312_ACEOF
34313
34314
34315cat >>confdefs.h <<_ACEOF
34316#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34317_ACEOF
34318
34319
34320cat >>confdefs.h <<_ACEOF
34321#define LLVM_INFODIR "$LLVM_INFODIR"
34322_ACEOF
34323
34324
34325cat >>confdefs.h <<_ACEOF
34326#define LLVM_MANDIR "$LLVM_MANDIR"
34327_ACEOF
34328
34329
34330cat >>confdefs.h <<_ACEOF
34331#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34332_ACEOF
34333
34334
Eric Christopher790e11c2007-12-01 00:34:39 +000034335cat >>confdefs.h <<_ACEOF
34336#define LLVM_HOSTTRIPLE "$host"
34337_ACEOF
34338
34339
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034340# Determine which bindings to build.
34341if test "$BINDINGS_TO_BUILD" = auto ; then
34342 BINDINGS_TO_BUILD=""
34343 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34344 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34345 fi
34346fi
34347BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34348
34349
34350# This isn't really configurey, but it avoids having to repeat the list in
34351# other files.
34352ALL_BINDINGS=ocaml
34353
34354
Gordon Henriksenf0915682007-10-02 16:42:22 +000034355# Do any work necessary to ensure that bindings have what they need.
34356binding_prereqs_failed=0
34357for a_binding in $BINDINGS_TO_BUILD ; do
34358 case "$a_binding" in
34359 ocaml)
34360 if test "x$OCAMLC" = x ; then
34361 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34362echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34363 binding_prereqs_failed=1
34364 fi
34365 if test "x$OCAMLDEP" = x ; then
34366 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34367echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34368 binding_prereqs_failed=1
34369 fi
34370 if test "x$OCAMLOPT" = x ; then
34371 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34372echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34373 fi
34374 if test "x$with_ocaml_libdir" != xauto ; then
34375 OCAML_LIBDIR=$with_ocaml_libdir
34376
34377 else
34378 ocaml_stdlib="`"$OCAMLC" -where`"
34379 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34380 then
34381 # ocaml stdlib is beneath our prefix; use stdlib
34382 OCAML_LIBDIR=$ocaml_stdlib
34383
34384 else
34385 # ocaml stdlib is outside our prefix; use libdir/ocaml
34386 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34387
34388 fi
34389 fi
34390 ;;
34391 esac
34392done
34393if test "$binding_prereqs_failed" = 1 ; then
34394 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34395echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34396 { (exit 1); exit 1; }; }
34397fi
34398
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034399{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34400echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34401if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34402 echo $ECHO_N "(cached) $ECHO_C" >&6
34403else
34404 ac_ext=cpp
34405ac_cpp='$CXXCPP $CPPFLAGS'
34406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34409
34410 oldcxxflags="$CXXFLAGS"
34411 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34412 cat >conftest.$ac_ext <<_ACEOF
34413/* confdefs.h. */
34414_ACEOF
34415cat confdefs.h >>conftest.$ac_ext
34416cat >>conftest.$ac_ext <<_ACEOF
34417/* end confdefs.h. */
34418
34419int
34420main ()
34421{
34422
34423 ;
34424 return 0;
34425}
34426_ACEOF
34427rm -f conftest.$ac_objext
34428if { (ac_try="$ac_compile"
34429case "(($ac_try" in
34430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431 *) ac_try_echo=$ac_try;;
34432esac
34433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434 (eval "$ac_compile") 2>conftest.er1
34435 ac_status=$?
34436 grep -v '^ *+' conftest.er1 >conftest.err
34437 rm -f conftest.er1
34438 cat conftest.err >&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } &&
34441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34442 { (case "(($ac_try" in
34443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444 *) ac_try_echo=$ac_try;;
34445esac
34446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34447 (eval "$ac_try") 2>&5
34448 ac_status=$?
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; } &&
34451 { ac_try='test -s conftest.$ac_objext'
34452 { (case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34455esac
34456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_try") 2>&5
34458 ac_status=$?
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; }; then
34461 llvm_cv_cxx_visibility_inlines_hidden=yes
34462else
34463 echo "$as_me: failed program was:" >&5
34464sed 's/^/| /' conftest.$ac_ext >&5
34465
34466 llvm_cv_cxx_visibility_inlines_hidden=no
34467fi
34468
34469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34470 CXXFLAGS="$oldcxxflags"
34471 ac_ext=c
34472ac_cpp='$CPP $CPPFLAGS'
34473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34475ac_compiler_gnu=$ac_cv_c_compiler_gnu
34476
34477
34478fi
34479{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34480echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34481if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34482 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34483
34484else
34485 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34486
34487fi
34488
Gordon Henriksenf0915682007-10-02 16:42:22 +000034489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034490
Reid Spencera773bd52006-08-04 18:18:08 +000034491ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034492
Reid Spencera773bd52006-08-04 18:18:08 +000034493ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034494
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034495ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034496
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034497ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034498
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034499ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034500
34501
Reid Spencera773bd52006-08-04 18:18:08 +000034502ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034503
34504
Reid Spencerea949cf2006-08-16 00:45:38 +000034505ac_config_files="$ac_config_files llvm.spec"
34506
34507
Reid Spencera773bd52006-08-04 18:18:08 +000034508ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034509
34510
Reid Spencera773bd52006-08-04 18:18:08 +000034511ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034512
34513
Reid Spencera773bd52006-08-04 18:18:08 +000034514ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034515
Reid Spencera773bd52006-08-04 18:18:08 +000034516ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034517
34518
Reid Spencera773bd52006-08-04 18:18:08 +000034519ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034520
34521
Reid Spencera773bd52006-08-04 18:18:08 +000034522ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034523
34524
Reid Spencera773bd52006-08-04 18:18:08 +000034525ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034526
34527
Reid Spencer8b2e1412006-11-17 03:32:33 +000034528ac_config_commands="$ac_config_commands runtime/Makefile"
34529
34530
Reid Spencera773bd52006-08-04 18:18:08 +000034531ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034532
34533
Reid Spencera773bd52006-08-04 18:18:08 +000034534ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034535
34536
Reid Spencera773bd52006-08-04 18:18:08 +000034537ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034538
34539
Reid Spencera773bd52006-08-04 18:18:08 +000034540ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034541
34542
Reid Spencera773bd52006-08-04 18:18:08 +000034543ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034544
34545
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034546ac_config_commands="$ac_config_commands bindings/Makefile"
34547
34548
34549ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34550
34551
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034552
John Criswell7a73b802003-06-30 21:59:07 +000034553cat >confcache <<\_ACEOF
34554# This file is a shell script that caches the results of configure
34555# tests run on this system so they can be shared between configure
34556# scripts and configure runs, see configure's option --config-cache.
34557# It is not useful on other systems. If it contains results you don't
34558# want to keep, you may remove or edit it.
34559#
34560# config.status only pays attention to the cache file if you give it
34561# the --recheck option to rerun configure.
34562#
John Criswell0c38eaf2003-09-10 15:17:25 +000034563# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034564# loading this file, other *unset* `ac_cv_foo' will be assigned the
34565# following values.
34566
34567_ACEOF
34568
34569# The following way of writing the cache mishandles newlines in values,
34570# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034571# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034572# Ultrix sh set writes to stderr and can't be redirected directly,
34573# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034574(
34575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34576 eval ac_val=\$$ac_var
34577 case $ac_val in #(
34578 *${as_nl}*)
34579 case $ac_var in #(
34580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34581echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34582 esac
34583 case $ac_var in #(
34584 _ | IFS | as_nl) ;; #(
34585 *) $as_unset $ac_var ;;
34586 esac ;;
34587 esac
34588 done
34589
John Criswell7a73b802003-06-30 21:59:07 +000034590 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34592 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034593 # `set' does not quote correctly, so add quotes (double-quote
34594 # substitution turns \\\\ into \\, and sed turns \\ into \).
34595 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034596 "s/'/'\\\\''/g;
34597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034598 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034599 *)
34600 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034602 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034603 esac |
34604 sort
34605) |
John Criswell7a73b802003-06-30 21:59:07 +000034606 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034607 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034608 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034609 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34611 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34613 :end' >>confcache
34614if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34615 if test -w "$cache_file"; then
34616 test "x$cache_file" != "x/dev/null" &&
34617 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34618echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034619 cat confcache >$cache_file
34620 else
Reid Spencera773bd52006-08-04 18:18:08 +000034621 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34622echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034623 fi
34624fi
34625rm -f confcache
34626
34627test "x$prefix" = xNONE && prefix=$ac_default_prefix
34628# Let make expand exec_prefix.
34629test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34630
John Criswell7a73b802003-06-30 21:59:07 +000034631DEFS=-DHAVE_CONFIG_H
34632
John Criswell0c38eaf2003-09-10 15:17:25 +000034633ac_libobjs=
34634ac_ltlibobjs=
34635for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34636 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34638 ac_i=`echo "$ac_i" | sed "$ac_script"`
34639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34640 # will be set to the directory where LIBOBJS objects are built.
34641 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34642 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034643done
34644LIBOBJS=$ac_libobjs
34645
34646LTLIBOBJS=$ac_ltlibobjs
34647
34648
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034649if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34650 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34651Usually this means the macro was only invoked conditionally." >&5
34652echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34653Usually this means the macro was only invoked conditionally." >&2;}
34654 { (exit 1); exit 1; }; }
34655fi
34656if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34657 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34658Usually this means the macro was only invoked conditionally." >&5
34659echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34660Usually this means the macro was only invoked conditionally." >&2;}
34661 { (exit 1); exit 1; }; }
34662fi
John Criswell7a73b802003-06-30 21:59:07 +000034663
34664: ${CONFIG_STATUS=./config.status}
34665ac_clean_files_save=$ac_clean_files
34666ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34667{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34668echo "$as_me: creating $CONFIG_STATUS" >&6;}
34669cat >$CONFIG_STATUS <<_ACEOF
34670#! $SHELL
34671# Generated by $as_me.
34672# Run this file to recreate the current configuration.
34673# Compiler output produced by configure, useful for debugging
34674# configure, is in config.log if it exists.
34675
34676debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034677ac_cs_recheck=false
34678ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034679SHELL=\${CONFIG_SHELL-$SHELL}
34680_ACEOF
34681
34682cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034683## --------------------- ##
34684## M4sh Initialization. ##
34685## --------------------- ##
34686
Tanya Lattnercf067672008-01-17 05:57:22 +000034687# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034688if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34689 emulate sh
34690 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34692 # is contrary to our usage. Disable this feature.
34693 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034694 setopt NO_GLOB_SUBST
34695else
Tanya Lattnercf067672008-01-17 05:57:22 +000034696 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034697fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034698BIN_SH=xpg4; export BIN_SH # for Tru64
34699DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034700
John Criswell7a73b802003-06-30 21:59:07 +000034701
Reid Spencera773bd52006-08-04 18:18:08 +000034702# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034703# Avoid depending upon Character Ranges.
34704as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34705as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34706as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34707as_cr_digits='0123456789'
34708as_cr_alnum=$as_cr_Letters$as_cr_digits
34709
34710# The user is always right.
34711if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034712 echo "#! /bin/sh" >conf$$.sh
34713 echo "exit 0" >>conf$$.sh
34714 chmod +x conf$$.sh
34715 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034716 PATH_SEPARATOR=';'
34717 else
34718 PATH_SEPARATOR=:
34719 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034720 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034721fi
34722
Reid Spencera773bd52006-08-04 18:18:08 +000034723# Support unset when possible.
34724if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34725 as_unset=unset
34726else
34727 as_unset=false
34728fi
John Criswell7a73b802003-06-30 21:59:07 +000034729
Reid Spencera773bd52006-08-04 18:18:08 +000034730
34731# IFS
34732# We need space, tab and new line, in precisely that order. Quoting is
34733# there to prevent editors from complaining about space-tab.
34734# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34735# splitting by setting IFS to empty value.)
34736as_nl='
34737'
34738IFS=" "" $as_nl"
34739
34740# Find who we are. Look in the path if we contain no directory separator.
34741case $0 in
34742 *[\\/]* ) as_myself=$0 ;;
34743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034744for as_dir in $PATH
34745do
34746 IFS=$as_save_IFS
34747 test -z "$as_dir" && as_dir=.
34748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34749done
Reid Spencera773bd52006-08-04 18:18:08 +000034750IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034751
Reid Spencera773bd52006-08-04 18:18:08 +000034752 ;;
34753esac
34754# We did not find ourselves, most probably we were run as `sh COMMAND'
34755# in which case we are not to be found in the path.
34756if test "x$as_myself" = x; then
34757 as_myself=$0
34758fi
34759if test ! -f "$as_myself"; then
34760 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34761 { (exit 1); exit 1; }
34762fi
34763
34764# Work around bugs in pre-3.0 UWIN ksh.
34765for as_var in ENV MAIL MAILPATH
34766do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34767done
34768PS1='$ '
34769PS2='> '
34770PS4='+ '
34771
34772# NLS nuisances.
34773for as_var in \
34774 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34775 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34776 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034777do
Reid Spencera773bd52006-08-04 18:18:08 +000034778 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34779 eval $as_var=C; export $as_var
34780 else
34781 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34782 fi
34783done
34784
34785# Required to use basename.
34786if expr a : '\(a\)' >/dev/null 2>&1 &&
34787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34788 as_expr=expr
34789else
34790 as_expr=false
34791fi
34792
34793if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34794 as_basename=basename
34795else
34796 as_basename=false
34797fi
34798
34799
34800# Name of the executable.
34801as_me=`$as_basename -- "$0" ||
34802$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34803 X"$0" : 'X\(//\)$' \| \
34804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34805echo X/"$0" |
34806 sed '/^.*\/\([^/][^/]*\)\/*$/{
34807 s//\1/
34808 q
34809 }
34810 /^X\/\(\/\/\)$/{
34811 s//\1/
34812 q
34813 }
34814 /^X\/\(\/\).*/{
34815 s//\1/
34816 q
34817 }
34818 s/.*/./; q'`
34819
34820# CDPATH.
34821$as_unset CDPATH
34822
34823
34824
John Criswell7a73b802003-06-30 21:59:07 +000034825 as_lineno_1=$LINENO
34826 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034827 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034828 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034829
34830 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34831 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034832 # line-number line after each line using $LINENO; the second 'sed'
34833 # does the real work. The second script uses 'N' to pair each
34834 # line-number line with the line containing $LINENO, and appends
34835 # trailing '-' during substitution so that $LINENO is not a special
34836 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034837 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034838 # scripts with optimization help from Paolo Bonzini. Blame Lee
34839 # E. McMahon (1931-1989) for sed's syntax. :-)
34840 sed -n '
34841 p
34842 /[$]LINENO/=
34843 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034844 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034845 s/[$]LINENO.*/&-/
34846 t lineno
34847 b
34848 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034849 N
Reid Spencera773bd52006-08-04 18:18:08 +000034850 :loop
34851 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034852 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034853 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034854 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034855 chmod +x "$as_me.lineno" ||
34856 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034857 { (exit 1); exit 1; }; }
34858
34859 # Don't try to exec as it changes $[0], causing all sort of problems
34860 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034861 # original and so on. Autoconf is especially sensitive to this).
34862 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034863 # Exit status is that of the last command.
34864 exit
34865}
34866
34867
Reid Spencera773bd52006-08-04 18:18:08 +000034868if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34869 as_dirname=dirname
34870else
34871 as_dirname=false
34872fi
34873
34874ECHO_C= ECHO_N= ECHO_T=
34875case `echo -n x` in
34876-n*)
34877 case `echo 'x\c'` in
34878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34879 *) ECHO_C='\c';;
34880 esac;;
34881*)
34882 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034883esac
34884
Reid Spencera773bd52006-08-04 18:18:08 +000034885if expr a : '\(a\)' >/dev/null 2>&1 &&
34886 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034887 as_expr=expr
34888else
34889 as_expr=false
34890fi
34891
34892rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034893if test -d conf$$.dir; then
34894 rm -f conf$$.dir/conf$$.file
34895else
34896 rm -f conf$$.dir
34897 mkdir conf$$.dir
34898fi
John Criswell7a73b802003-06-30 21:59:07 +000034899echo >conf$$.file
34900if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034901 as_ln_s='ln -s'
34902 # ... but there are two gotchas:
34903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34905 # In both cases, we have to default to `cp -p'.
34906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034907 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034908elif ln conf$$.file conf$$ 2>/dev/null; then
34909 as_ln_s=ln
34910else
34911 as_ln_s='cp -p'
34912fi
Reid Spencera773bd52006-08-04 18:18:08 +000034913rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34914rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034915
John Criswell0c38eaf2003-09-10 15:17:25 +000034916if mkdir -p . 2>/dev/null; then
34917 as_mkdir_p=:
34918else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034919 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034920 as_mkdir_p=false
34921fi
34922
Tanya Lattnercf067672008-01-17 05:57:22 +000034923# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34924# systems may use methods other than mode bits to determine executability.
34925cat >conf$$.file <<_ASEOF
34926#! /bin/sh
34927exit 0
34928_ASEOF
34929chmod +x conf$$.file
34930if test -x conf$$.file >/dev/null 2>&1; then
34931 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034932else
Tanya Lattnercf067672008-01-17 05:57:22 +000034933 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034934fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034935rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034936
34937# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034939
34940# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034942
34943
John Criswell7a73b802003-06-30 21:59:07 +000034944exec 6>&1
34945
Reid Spencera773bd52006-08-04 18:18:08 +000034946# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034947# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034948# values after options handling.
34949ac_log="
Tanya Lattner49ff6612008-05-10 04:20:38 +000034950This file was extended by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +000034951generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034952
34953 CONFIG_FILES = $CONFIG_FILES
34954 CONFIG_HEADERS = $CONFIG_HEADERS
34955 CONFIG_LINKS = $CONFIG_LINKS
34956 CONFIG_COMMANDS = $CONFIG_COMMANDS
34957 $ $0 $@
34958
Reid Spencera773bd52006-08-04 18:18:08 +000034959on `(hostname || uname -n) 2>/dev/null | sed 1q`
34960"
34961
John Criswell7a73b802003-06-30 21:59:07 +000034962_ACEOF
34963
Reid Spencera773bd52006-08-04 18:18:08 +000034964cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034965# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034966config_files="$ac_config_files"
34967config_headers="$ac_config_headers"
34968config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034969
Reid Spencera773bd52006-08-04 18:18:08 +000034970_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034971
34972cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034973ac_cs_usage="\
34974\`$as_me' instantiates files from templates according to the
34975current configuration.
34976
34977Usage: $0 [OPTIONS] [FILE]...
34978
34979 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034980 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034981 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034982 -d, --debug don't remove temporary files
34983 --recheck update $as_me by reconfiguring in the same conditions
34984 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034985 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034986 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034987 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034988
34989Configuration files:
34990$config_files
34991
34992Configuration headers:
34993$config_headers
34994
John Criswellc764fbc2003-09-06 15:17:13 +000034995Configuration commands:
34996$config_commands
34997
John Criswell7a73b802003-06-30 21:59:07 +000034998Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034999
Reid Spencera773bd52006-08-04 18:18:08 +000035000_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035001cat >>$CONFIG_STATUS <<_ACEOF
35002ac_cs_version="\\
Tanya Lattner49ff6612008-05-10 04:20:38 +000035003llvm config.status 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +000035004configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035005 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035006
Reid Spencera773bd52006-08-04 18:18:08 +000035007Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035008This config.status script is free software; the Free Software Foundation
35009gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035010
35011ac_pwd='$ac_pwd'
35012srcdir='$srcdir'
35013INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035014_ACEOF
35015
35016cat >>$CONFIG_STATUS <<\_ACEOF
35017# If no file are specified by the user, then we need to provide default
35018# value. By we need to know if files were specified by the user.
35019ac_need_defaults=:
35020while test $# != 0
35021do
35022 case $1 in
35023 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035026 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035027 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035028 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035029 ac_option=$1
35030 ac_optarg=$2
35031 ac_shift=shift
35032 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035033 esac
35034
John Criswell0c38eaf2003-09-10 15:17:25 +000035035 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035036 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35038 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35040 echo "$ac_cs_version"; exit ;;
35041 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035042 debug=: ;;
35043 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035044 $ac_shift
35045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035046 ac_need_defaults=false;;
35047 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035048 $ac_shift
35049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035050 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035051 --he | --h)
35052 # Conflict between --help and --header
35053 { echo "$as_me: error: ambiguous option: $1
35054Try \`$0 --help' for more information." >&2
35055 { (exit 1); exit 1; }; };;
35056 --help | --hel | -h )
35057 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35060 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035061
35062 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035063 -*) { echo "$as_me: error: unrecognized option: $1
35064Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035065 { (exit 1); exit 1; }; } ;;
35066
Reid Spencera773bd52006-08-04 18:18:08 +000035067 *) ac_config_targets="$ac_config_targets $1"
35068 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035069
35070 esac
35071 shift
35072done
35073
John Criswell0c38eaf2003-09-10 15:17:25 +000035074ac_configure_extra_args=
35075
35076if $ac_cs_silent; then
35077 exec 6>/dev/null
35078 ac_configure_extra_args="$ac_configure_extra_args --silent"
35079fi
35080
35081_ACEOF
35082cat >>$CONFIG_STATUS <<_ACEOF
35083if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035084 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35085 CONFIG_SHELL=$SHELL
35086 export CONFIG_SHELL
35087 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035088fi
35089
John Criswell7a73b802003-06-30 21:59:07 +000035090_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035091cat >>$CONFIG_STATUS <<\_ACEOF
35092exec 5>>config.log
35093{
35094 echo
35095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35096## Running $as_me. ##
35097_ASBOX
35098 echo "$ac_log"
35099} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035100
Reid Spencera773bd52006-08-04 18:18:08 +000035101_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035102cat >>$CONFIG_STATUS <<_ACEOF
35103#
Reid Spencera773bd52006-08-04 18:18:08 +000035104# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035105#
Reid Spencerc0682832005-02-24 19:05:19 +000035106llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035107
35108_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035109
John Criswell7a73b802003-06-30 21:59:07 +000035110cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035111
35112# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035113for ac_config_target in $ac_config_targets
35114do
Reid Spencera773bd52006-08-04 18:18:08 +000035115 case $ac_config_target in
35116 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35117 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035118 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35119 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35120 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035121 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035122 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035123 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35124 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35125 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35126 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35127 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35128 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35129 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035130 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035131 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35132 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35133 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35134 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35135 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035136 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35137 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035138
John Criswell7a73b802003-06-30 21:59:07 +000035139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35140echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35141 { (exit 1); exit 1; }; };;
35142 esac
35143done
35144
Reid Spencera773bd52006-08-04 18:18:08 +000035145
John Criswell7a73b802003-06-30 21:59:07 +000035146# If the user did not use the arguments to specify the items to instantiate,
35147# then the envvar interface is used. Set only those that are not.
35148# We use the long form for the default assignment because of an extremely
35149# bizarre bug on SunOS 4.1.3.
35150if $ac_need_defaults; then
35151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035154fi
35155
John Criswell0c38eaf2003-09-10 15:17:25 +000035156# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035157# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035158# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035159# Hook for its removal unless debugging.
35160# Note that there is a small window in which the directory will not be cleaned:
35161# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035162$debug ||
35163{
Reid Spencera773bd52006-08-04 18:18:08 +000035164 tmp=
35165 trap 'exit_status=$?
35166 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35167' 0
John Criswell7a73b802003-06-30 21:59:07 +000035168 trap '{ (exit 1); exit 1; }' 1 2 13 15
35169}
John Criswell7a73b802003-06-30 21:59:07 +000035170# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035171
John Criswell7a73b802003-06-30 21:59:07 +000035172{
Reid Spencera773bd52006-08-04 18:18:08 +000035173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035174 test -n "$tmp" && test -d "$tmp"
35175} ||
35176{
Reid Spencera773bd52006-08-04 18:18:08 +000035177 tmp=./conf$$-$RANDOM
35178 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035179} ||
35180{
John Criswell0c38eaf2003-09-10 15:17:25 +000035181 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035182 { (exit 1); exit 1; }
35183}
35184
John Criswell7a73b802003-06-30 21:59:07 +000035185#
Reid Spencera773bd52006-08-04 18:18:08 +000035186# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035187#
35188
35189# No need to generate the scripts if there are no CONFIG_FILES.
35190# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035191if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035192
35193_ACEOF
35194
Reid Spencera773bd52006-08-04 18:18:08 +000035195
35196
35197ac_delim='%!_!# '
35198for ac_last_try in false false false false false :; do
35199 cat >conf$$subs.sed <<_ACEOF
35200SHELL!$SHELL$ac_delim
35201PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35202PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35203PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35204PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35205PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35206PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35207exec_prefix!$exec_prefix$ac_delim
35208prefix!$prefix$ac_delim
35209program_transform_name!$program_transform_name$ac_delim
35210bindir!$bindir$ac_delim
35211sbindir!$sbindir$ac_delim
35212libexecdir!$libexecdir$ac_delim
35213datarootdir!$datarootdir$ac_delim
35214datadir!$datadir$ac_delim
35215sysconfdir!$sysconfdir$ac_delim
35216sharedstatedir!$sharedstatedir$ac_delim
35217localstatedir!$localstatedir$ac_delim
35218includedir!$includedir$ac_delim
35219oldincludedir!$oldincludedir$ac_delim
35220docdir!$docdir$ac_delim
35221infodir!$infodir$ac_delim
35222htmldir!$htmldir$ac_delim
35223dvidir!$dvidir$ac_delim
35224pdfdir!$pdfdir$ac_delim
35225psdir!$psdir$ac_delim
35226libdir!$libdir$ac_delim
35227localedir!$localedir$ac_delim
35228mandir!$mandir$ac_delim
35229DEFS!$DEFS$ac_delim
35230ECHO_C!$ECHO_C$ac_delim
35231ECHO_N!$ECHO_N$ac_delim
35232ECHO_T!$ECHO_T$ac_delim
35233LIBS!$LIBS$ac_delim
35234build_alias!$build_alias$ac_delim
35235host_alias!$host_alias$ac_delim
35236target_alias!$target_alias$ac_delim
35237LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35238subdirs!$subdirs$ac_delim
35239build!$build$ac_delim
35240build_cpu!$build_cpu$ac_delim
35241build_vendor!$build_vendor$ac_delim
35242build_os!$build_os$ac_delim
35243host!$host$ac_delim
35244host_cpu!$host_cpu$ac_delim
35245host_vendor!$host_vendor$ac_delim
35246host_os!$host_os$ac_delim
35247target!$target$ac_delim
35248target_cpu!$target_cpu$ac_delim
35249target_vendor!$target_vendor$ac_delim
35250target_os!$target_os$ac_delim
35251OS!$OS$ac_delim
35252LINKALL!$LINKALL$ac_delim
35253NOLINKALL!$NOLINKALL$ac_delim
35254LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35255LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35256ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035257ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035258CC!$CC$ac_delim
35259CFLAGS!$CFLAGS$ac_delim
35260LDFLAGS!$LDFLAGS$ac_delim
35261CPPFLAGS!$CPPFLAGS$ac_delim
35262ac_ct_CC!$ac_ct_CC$ac_delim
35263EXEEXT!$EXEEXT$ac_delim
35264OBJEXT!$OBJEXT$ac_delim
35265CPP!$CPP$ac_delim
35266GREP!$GREP$ac_delim
35267EGREP!$EGREP$ac_delim
35268LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35269BUILD_CC!$BUILD_CC$ac_delim
35270BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035271BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035272CVSBUILD!$CVSBUILD$ac_delim
35273ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35274DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035275ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35276EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035277DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035278JIT!$JIT$ac_delim
35279TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35280ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35281ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035282ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035283TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035284ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035285EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35286CXX!$CXX$ac_delim
35287CXXFLAGS!$CXXFLAGS$ac_delim
35288ac_ct_CXX!$ac_ct_CXX$ac_delim
35289LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035290LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035291LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035292FLEX!$FLEX$ac_delim
35293YACC!$YACC$ac_delim
35294YFLAGS!$YFLAGS$ac_delim
35295BISON!$BISON$ac_delim
35296NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035297_ACEOF
35298
35299 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35300 break
35301 elif $ac_last_try; then
35302 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35303echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35304 { (exit 1); exit 1; }; }
35305 else
35306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035307 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035308done
35309
35310ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35311if test -n "$ac_eof"; then
35312 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35313 ac_eof=`expr $ac_eof + 1`
35314fi
35315
35316cat >>$CONFIG_STATUS <<_ACEOF
35317cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35319_ACEOF
35320sed '
35321s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35322s/^/s,@/; s/!/@,|#_!!_#|/
35323:n
35324t n
35325s/'"$ac_delim"'$/,g/; t
35326s/$/\\/; p
35327N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35328' >>$CONFIG_STATUS <conf$$subs.sed
35329rm -f conf$$subs.sed
35330cat >>$CONFIG_STATUS <<_ACEOF
35331CEOF$ac_eof
35332_ACEOF
35333
35334
35335ac_delim='%!_!# '
35336for ac_last_try in false false false false false :; do
35337 cat >conf$$subs.sed <<_ACEOF
Jim Grosbach673612e2008-10-02 22:56:44 +000035338ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035339LN_S!$LN_S$ac_delim
35340CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035341CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035342DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035343FIND!$FIND$ac_delim
35344MKDIR!$MKDIR$ac_delim
35345MV!$MV$ac_delim
35346RANLIB!$RANLIB$ac_delim
35347RM!$RM$ac_delim
35348SED!$SED$ac_delim
35349TAR!$TAR$ac_delim
35350BINPWD!$BINPWD$ac_delim
35351GRAPHVIZ!$GRAPHVIZ$ac_delim
35352DOT!$DOT$ac_delim
35353GV!$GV$ac_delim
35354DOTTY!$DOTTY$ac_delim
35355PERL!$PERL$ac_delim
35356HAVE_PERL!$HAVE_PERL$ac_delim
35357INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35358INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35359INSTALL_DATA!$INSTALL_DATA$ac_delim
35360BZIP2!$BZIP2$ac_delim
35361DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035362GROFF!$GROFF$ac_delim
35363GZIP!$GZIP$ac_delim
35364POD2HTML!$POD2HTML$ac_delim
35365POD2MAN!$POD2MAN$ac_delim
35366RUNTEST!$RUNTEST$ac_delim
35367TCLSH!$TCLSH$ac_delim
35368ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035369OCAMLC!$OCAMLC$ac_delim
35370OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035371OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035372OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035373INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35374INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35375CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35376CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35377LIBADD_DL!$LIBADD_DL$ac_delim
35378ECHO!$ECHO$ac_delim
35379AR!$AR$ac_delim
35380STRIP!$STRIP$ac_delim
35381CXXCPP!$CXXCPP$ac_delim
35382F77!$F77$ac_delim
35383FFLAGS!$FFLAGS$ac_delim
35384ac_ct_F77!$ac_ct_F77$ac_delim
35385LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035386LLVMGCC!$LLVMGCC$ac_delim
35387LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035388USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035389HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035390HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035391ALLOCA!$ALLOCA$ac_delim
35392MMAP_FILE!$MMAP_FILE$ac_delim
35393LLVMCC1!$LLVMCC1$ac_delim
35394LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35395LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035396LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035397LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35398LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035399LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035400SHLIBEXT!$SHLIBEXT$ac_delim
35401LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35402LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35403LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35404LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35405LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35406LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35407LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35408LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35409LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35410LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035411BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35412ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035413OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035414ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035415LIBOBJS!$LIBOBJS$ac_delim
35416LTLIBOBJS!$LTLIBOBJS$ac_delim
35417_ACEOF
35418
Jim Grosbach673612e2008-10-02 22:56:44 +000035419 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Reid Spencera773bd52006-08-04 18:18:08 +000035420 break
35421 elif $ac_last_try; then
35422 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35423echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35424 { (exit 1); exit 1; }; }
35425 else
35426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35427 fi
35428done
35429
35430ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35431if test -n "$ac_eof"; then
35432 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35433 ac_eof=`expr $ac_eof + 1`
35434fi
35435
35436cat >>$CONFIG_STATUS <<_ACEOF
35437cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35438/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35439_ACEOF
35440sed '
35441s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35442s/^/s,@/; s/!/@,|#_!!_#|/
35443:n
35444t n
35445s/'"$ac_delim"'$/,g/; t
35446s/$/\\/; p
35447N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35448' >>$CONFIG_STATUS <conf$$subs.sed
35449rm -f conf$$subs.sed
35450cat >>$CONFIG_STATUS <<_ACEOF
35451:end
35452s/|#_!!_#|//g
35453CEOF$ac_eof
35454_ACEOF
35455
35456
35457# VPATH may cause trouble with some makes, so we remove $(srcdir),
35458# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35459# trailing colons and then remove the whole line if VPATH becomes empty
35460# (actually we leave an empty line to preserve line numbers).
35461if test "x$srcdir" = x.; then
35462 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35463s/:*\$(srcdir):*/:/
35464s/:*\${srcdir}:*/:/
35465s/:*@srcdir@:*/:/
35466s/^\([^=]*=[ ]*\):*/\1/
35467s/:*$//
35468s/^[^=]*=[ ]*$//
35469}'
35470fi
35471
35472cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035473fi # test -n "$CONFIG_FILES"
35474
Reid Spencera773bd52006-08-04 18:18:08 +000035475
35476for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35477do
35478 case $ac_tag in
35479 :[FHLC]) ac_mode=$ac_tag; continue;;
35480 esac
35481 case $ac_mode$ac_tag in
35482 :[FHL]*:*);;
35483 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35484echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35485 { (exit 1); exit 1; }; };;
35486 :[FH]-) ac_tag=-:-;;
35487 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35488 esac
35489 ac_save_IFS=$IFS
35490 IFS=:
35491 set x $ac_tag
35492 IFS=$ac_save_IFS
35493 shift
35494 ac_file=$1
35495 shift
35496
35497 case $ac_mode in
35498 :L) ac_source=$1;;
35499 :[FH])
35500 ac_file_inputs=
35501 for ac_f
35502 do
35503 case $ac_f in
35504 -) ac_f="$tmp/stdin";;
35505 *) # Look for the file first in the build tree, then in the source tree
35506 # (if the path is not absolute). The absolute path cannot be DOS-style,
35507 # because $ac_f cannot contain `:'.
35508 test -f "$ac_f" ||
35509 case $ac_f in
35510 [\\/$]*) false;;
35511 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35512 esac ||
35513 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35514echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35515 { (exit 1); exit 1; }; };;
35516 esac
35517 ac_file_inputs="$ac_file_inputs $ac_f"
35518 done
35519
35520 # Let's still pretend it is `configure' which instantiates (i.e., don't
35521 # use $as_me), people would be surprised to read:
35522 # /* config.h. Generated by config.status. */
35523 configure_input="Generated from "`IFS=:
35524 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35525 if test x"$ac_file" != x-; then
35526 configure_input="$ac_file. $configure_input"
35527 { echo "$as_me:$LINENO: creating $ac_file" >&5
35528echo "$as_me: creating $ac_file" >&6;}
35529 fi
35530
35531 case $ac_tag in
35532 *:-:* | *:-) cat >"$tmp/stdin";;
35533 esac
35534 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035535 esac
35536
Reid Spencera773bd52006-08-04 18:18:08 +000035537 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035538$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035539 X"$ac_file" : 'X\(//\)[^/]' \| \
35540 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035542echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35544 s//\1/
35545 q
35546 }
35547 /^X\(\/\/\)[^/].*/{
35548 s//\1/
35549 q
35550 }
35551 /^X\(\/\/\)$/{
35552 s//\1/
35553 q
35554 }
35555 /^X\(\/\).*/{
35556 s//\1/
35557 q
35558 }
35559 s/.*/./; q'`
35560 { as_dir="$ac_dir"
35561 case $as_dir in #(
35562 -*) as_dir=./$as_dir;;
35563 esac
35564 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035565 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035566 while :; do
35567 case $as_dir in #(
35568 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35569 *) as_qdir=$as_dir;;
35570 esac
35571 as_dirs="'$as_qdir' $as_dirs"
35572 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035573$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035574 X"$as_dir" : 'X\(//\)[^/]' \| \
35575 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035577echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35579 s//\1/
35580 q
35581 }
35582 /^X\(\/\/\)[^/].*/{
35583 s//\1/
35584 q
35585 }
35586 /^X\(\/\/\)$/{
35587 s//\1/
35588 q
35589 }
35590 /^X\(\/\).*/{
35591 s//\1/
35592 q
35593 }
35594 s/.*/./; q'`
35595 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035596 done
Reid Spencera773bd52006-08-04 18:18:08 +000035597 test -z "$as_dirs" || eval "mkdir $as_dirs"
35598 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35599echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035600 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035601 ac_builddir=.
35602
Reid Spencera773bd52006-08-04 18:18:08 +000035603case "$ac_dir" in
35604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35605*)
John Criswell7a73b802003-06-30 21:59:07 +000035606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035607 # A ".." for each directory in $ac_dir_suffix.
35608 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35609 case $ac_top_builddir_sub in
35610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35612 esac ;;
35613esac
35614ac_abs_top_builddir=$ac_pwd
35615ac_abs_builddir=$ac_pwd$ac_dir_suffix
35616# for backward compatibility:
35617ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035618
35619case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035620 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035621 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035622 ac_top_srcdir=$ac_top_builddir_sub
35623 ac_abs_top_srcdir=$ac_pwd ;;
35624 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035625 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035626 ac_top_srcdir=$srcdir
35627 ac_abs_top_srcdir=$srcdir ;;
35628 *) # Relative name.
35629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35630 ac_top_srcdir=$ac_top_build_prefix$srcdir
35631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035632esac
Reid Spencera773bd52006-08-04 18:18:08 +000035633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035634
John Criswell7a73b802003-06-30 21:59:07 +000035635
Reid Spencera773bd52006-08-04 18:18:08 +000035636 case $ac_mode in
35637 :F)
35638 #
35639 # CONFIG_FILE
35640 #
John Criswell7a73b802003-06-30 21:59:07 +000035641
35642 case $INSTALL in
35643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035645 esac
John Criswell7a73b802003-06-30 21:59:07 +000035646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035647
35648cat >>$CONFIG_STATUS <<\_ACEOF
35649# If the template does not know about datarootdir, expand it.
35650# FIXME: This hack should be removed a few years after 2.60.
35651ac_datarootdir_hack=; ac_datarootdir_seen=
35652
35653case `sed -n '/datarootdir/ {
35654 p
35655 q
35656}
35657/@datadir@/p
35658/@docdir@/p
35659/@infodir@/p
35660/@localedir@/p
35661/@mandir@/p
35662' $ac_file_inputs` in
35663*datarootdir*) ac_datarootdir_seen=yes;;
35664*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35665 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35666echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35667_ACEOF
35668cat >>$CONFIG_STATUS <<_ACEOF
35669 ac_datarootdir_hack='
35670 s&@datadir@&$datadir&g
35671 s&@docdir@&$docdir&g
35672 s&@infodir@&$infodir&g
35673 s&@localedir@&$localedir&g
35674 s&@mandir@&$mandir&g
35675 s&\\\${datarootdir}&$datarootdir&g' ;;
35676esac
35677_ACEOF
35678
35679# Neutralize VPATH when `$srcdir' = `.'.
35680# Shell code in configure.ac might set extrasub.
35681# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035682cat >>$CONFIG_STATUS <<_ACEOF
35683 sed "$ac_vpsub
35684$extrasub
35685_ACEOF
35686cat >>$CONFIG_STATUS <<\_ACEOF
35687:t
35688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035689s&@configure_input@&$configure_input&;t t
35690s&@top_builddir@&$ac_top_builddir_sub&;t t
35691s&@srcdir@&$ac_srcdir&;t t
35692s&@abs_srcdir@&$ac_abs_srcdir&;t t
35693s&@top_srcdir@&$ac_top_srcdir&;t t
35694s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35695s&@builddir@&$ac_builddir&;t t
35696s&@abs_builddir@&$ac_abs_builddir&;t t
35697s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35698s&@INSTALL@&$ac_INSTALL&;t t
35699$ac_datarootdir_hack
35700" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035701
Reid Spencera773bd52006-08-04 18:18:08 +000035702test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35703 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35704 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35705 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35706which seems to be undefined. Please make sure it is defined." >&5
35707echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35708which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035709
Reid Spencera773bd52006-08-04 18:18:08 +000035710 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035711 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035712 -) cat "$tmp/out"; rm -f "$tmp/out";;
35713 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035714 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035715 ;;
35716 :H)
35717 #
35718 # CONFIG_HEADER
35719 #
John Criswell7a73b802003-06-30 21:59:07 +000035720_ACEOF
35721
Reid Spencera773bd52006-08-04 18:18:08 +000035722# Transform confdefs.h into a sed script `conftest.defines', that
35723# substitutes the proper values into config.h.in to produce config.h.
35724rm -f conftest.defines conftest.tail
35725# First, append a space to every undef/define line, to ease matching.
35726echo 's/$/ /' >conftest.defines
35727# Then, protect against being on the right side of a sed subst, or in
35728# an unquoted here document, in config.status. If some macros were
35729# called several times there might be several #defines for the same
35730# symbol, which is useless. But do not sort them, since the last
35731# AC_DEFINE must be honored.
35732ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35733# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35734# NAME is the cpp macro being defined, VALUE is the value it is being given.
35735# PARAMS is the parameter list in the macro definition--in most cases, it's
35736# just an empty string.
35737ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35738ac_dB='\\)[ (].*,\\1define\\2'
35739ac_dC=' '
35740ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035741
Reid Spencera773bd52006-08-04 18:18:08 +000035742uniq confdefs.h |
35743 sed -n '
35744 t rset
35745 :rset
35746 s/^[ ]*#[ ]*define[ ][ ]*//
35747 t ok
35748 d
35749 :ok
35750 s/[\\&,]/\\&/g
35751 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35752 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35753 ' >>conftest.defines
35754
35755# Remove the space that was appended to ease matching.
35756# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035757# example, in the case of _POSIX_SOURCE, which is predefined and required
35758# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035759# (The regexp can be short, since the line contains either #define or #undef.)
35760echo 's/ $//
35761s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035762
Reid Spencera773bd52006-08-04 18:18:08 +000035763# Break up conftest.defines:
35764ac_max_sed_lines=50
35765
35766# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35767# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35768# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35769# et cetera.
35770ac_in='$ac_file_inputs'
35771ac_out='"$tmp/out1"'
35772ac_nxt='"$tmp/out2"'
35773
35774while :
John Criswell7a73b802003-06-30 21:59:07 +000035775do
Reid Spencera773bd52006-08-04 18:18:08 +000035776 # Write a here document:
35777 cat >>$CONFIG_STATUS <<_ACEOF
35778 # First, check the format of the line:
35779 cat >"\$tmp/defines.sed" <<\\CEOF
35780/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35781/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35782b
35783:def
35784_ACEOF
35785 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035786 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035787 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35788 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35789 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35790 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035791 rm -f conftest.defines
35792 mv conftest.tail conftest.defines
35793done
Reid Spencera773bd52006-08-04 18:18:08 +000035794rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035795
Reid Spencera773bd52006-08-04 18:18:08 +000035796echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035797cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035798 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035799 echo "/* $configure_input */" >"$tmp/config.h"
35800 cat "$ac_result" >>"$tmp/config.h"
35801 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035802 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35803echo "$as_me: $ac_file is unchanged" >&6;}
35804 else
John Criswell7a73b802003-06-30 21:59:07 +000035805 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035806 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035807 fi
35808 else
Reid Spencera773bd52006-08-04 18:18:08 +000035809 echo "/* $configure_input */"
35810 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035811 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035812 rm -f "$tmp/out12"
35813 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035814
Reid Spencera773bd52006-08-04 18:18:08 +000035815 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35816echo "$as_me: executing $ac_file commands" >&6;}
35817 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035818 esac
John Criswell7a73b802003-06-30 21:59:07 +000035819
Reid Spencera773bd52006-08-04 18:18:08 +000035820
35821 case $ac_file$ac_mode in
35822 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35823 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35824 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35825 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35826 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35827 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35828 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35829 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035830 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35831 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035832 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35833 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35834 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35835 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35836 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35837 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35838 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35839 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35840 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35841 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035842 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35843 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35844 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35845 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035846
35847 esac
35848done # for ac_tag
35849
John Criswell7a73b802003-06-30 21:59:07 +000035850
35851{ (exit 0); exit 0; }
35852_ACEOF
35853chmod +x $CONFIG_STATUS
35854ac_clean_files=$ac_clean_files_save
35855
35856
35857# configure is writing to config.log, and then calls config.status.
35858# config.status does its own redirection, appending to config.log.
35859# Unfortunately, on DOS this fails, as config.log is still kept open
35860# by configure, so config.status won't be able to write to it; its
35861# output is simply discarded. So we exec the FD to /dev/null,
35862# effectively closing config.log, so it can be properly (re)opened and
35863# appended to by config.status. When coming back to configure, we
35864# need to make the FD available again.
35865if test "$no_create" != yes; then
35866 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035867 ac_config_status_args=
35868 test "$silent" = yes &&
35869 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035870 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035872 exec 5>>config.log
35873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35874 # would make configure fail if this is the last instruction.
35875 $ac_cs_success || { (exit 1); exit 1; }
35876fi
35877
John Criswell12399a12003-09-30 15:55:44 +000035878#
35879# CONFIG_SUBDIRS section.
35880#
35881if test "$no_recursion" != yes; then
35882
35883 # Remove --cache-file and --srcdir arguments so they do not pile up.
35884 ac_sub_configure_args=
35885 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035886 eval "set x $ac_configure_args"
35887 shift
35888 for ac_arg
35889 do
John Criswell12399a12003-09-30 15:55:44 +000035890 if test -n "$ac_prev"; then
35891 ac_prev=
35892 continue
35893 fi
35894 case $ac_arg in
35895 -cache-file | --cache-file | --cache-fil | --cache-fi \
35896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35897 ac_prev=cache_file ;;
35898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35900 | --c=*)
35901 ;;
35902 --config-cache | -C)
35903 ;;
35904 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35905 ac_prev=srcdir ;;
35906 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35907 ;;
35908 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35909 ac_prev=prefix ;;
35910 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35911 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035912 *)
35913 case $ac_arg in
35914 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35915 esac
35916 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035917 esac
35918 done
35919
35920 # Always prepend --prefix to ensure using the same prefix
35921 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035922 ac_arg="--prefix=$prefix"
35923 case $ac_arg in
35924 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35925 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035926 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035927
35928 ac_popdir=`pwd`
35929 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35930
35931 # Do not complain, so a configure script can configure whichever
35932 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035933 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035934
Reid Spencera773bd52006-08-04 18:18:08 +000035935 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35936 echo "$as_me:$LINENO: $ac_msg" >&5
35937 echo "$ac_msg" >&6
35938 { as_dir="$ac_dir"
35939 case $as_dir in #(
35940 -*) as_dir=./$as_dir;;
35941 esac
35942 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035943 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035944 while :; do
35945 case $as_dir in #(
35946 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35947 *) as_qdir=$as_dir;;
35948 esac
35949 as_dirs="'$as_qdir' $as_dirs"
35950 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035951$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035952 X"$as_dir" : 'X\(//\)[^/]' \| \
35953 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035955echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35957 s//\1/
35958 q
35959 }
35960 /^X\(\/\/\)[^/].*/{
35961 s//\1/
35962 q
35963 }
35964 /^X\(\/\/\)$/{
35965 s//\1/
35966 q
35967 }
35968 /^X\(\/\).*/{
35969 s//\1/
35970 q
35971 }
35972 s/.*/./; q'`
35973 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035974 done
Reid Spencera773bd52006-08-04 18:18:08 +000035975 test -z "$as_dirs" || eval "mkdir $as_dirs"
35976 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35977echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035978 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035979 ac_builddir=.
35980
Reid Spencera773bd52006-08-04 18:18:08 +000035981case "$ac_dir" in
35982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35983*)
John Criswell12399a12003-09-30 15:55:44 +000035984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035985 # A ".." for each directory in $ac_dir_suffix.
35986 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35987 case $ac_top_builddir_sub in
35988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35990 esac ;;
35991esac
35992ac_abs_top_builddir=$ac_pwd
35993ac_abs_builddir=$ac_pwd$ac_dir_suffix
35994# for backward compatibility:
35995ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035996
35997case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035998 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035999 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036000 ac_top_srcdir=$ac_top_builddir_sub
36001 ac_abs_top_srcdir=$ac_pwd ;;
36002 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036003 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036004 ac_top_srcdir=$srcdir
36005 ac_abs_top_srcdir=$srcdir ;;
36006 *) # Relative name.
36007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36008 ac_top_srcdir=$ac_top_build_prefix$srcdir
36009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036010esac
Reid Spencera773bd52006-08-04 18:18:08 +000036011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036012
36013
Reid Spencera773bd52006-08-04 18:18:08 +000036014 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036015
36016 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036017 if test -f "$ac_srcdir/configure.gnu"; then
36018 ac_sub_configure=$ac_srcdir/configure.gnu
36019 elif test -f "$ac_srcdir/configure"; then
36020 ac_sub_configure=$ac_srcdir/configure
36021 elif test -f "$ac_srcdir/configure.in"; then
36022 # This should be Cygnus configure.
36023 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036024 else
36025 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36026echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36027 ac_sub_configure=
36028 fi
36029
36030 # The recursion is here.
36031 if test -n "$ac_sub_configure"; then
36032 # Make the cache file name correct relative to the subdirectory.
36033 case $cache_file in
36034 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036035 *) # Relative name.
36036 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036037 esac
36038
Reid Spencera773bd52006-08-04 18:18:08 +000036039 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36040echo "$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 +000036041 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036042 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36043 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036044 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036045echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36046 { (exit 1); exit 1; }; }
36047 fi
36048
Reid Spencera773bd52006-08-04 18:18:08 +000036049 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036050 done
36051fi
36052